/**
 * Talacote — Bookmakers module styles
 *
 * Scoped to /bookmakers/* pages. Designed to sit on the existing Talacote
 * dark-green theme without overriding global variables.
 */

/* =====================================================
   PAGE BACKGROUND — solid opaque sections so the hero
   clover doesn't bleed into content
===================================================== */

body.tc-bm-page .tc-section:not(.tc-section--hero) {
    background-color: #0a1a12;
    position: relative;
    z-index: 2;
}

body.tc-bm-page .tc-section--alt {
    background-color: #071410;
}

/* =====================================================
   COUNTRIES GRID (index page)
===================================================== */

.tc-bm-countries {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.tc-bm-country-card {
    display: block;
    background: linear-gradient(145deg, #0f2620, #0a1a15);
    border: 1px solid rgba(46, 204, 113, 0.15);
    border-radius: 12px;
    padding: 20px 24px;
    color: #e8f5e9;
    text-decoration: none;
    transition: all 0.2s ease;
    min-height: 110px;
}

.tc-bm-country-card:hover {
    border-color: rgba(46, 204, 113, 0.55);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(46, 204, 113, 0.12);
    color: #ffffff;
}

.tc-bm-country-card h3 {
    margin: 0 0 8px;
    font-size: 1.35rem;
    color: #ffffff;
}

.tc-bm-country-card .tc-muted {
    color: #8ea89a;
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 0;
}

/* Spotlight on visitor's country */
.tc-bm-spotlight {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.12), rgba(46, 204, 113, 0.02));
    border: 1px solid rgba(46, 204, 113, 0.35);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    margin: 24px auto;
    max-width: 560px;
}

.tc-bm-spotlight h2 {
    margin: 0 0 8px;
    font-size: 1.8rem;
    color: #fff;
}

.tc-bm-spotlight p {
    color: #8ea89a;
    margin: 0 0 20px;
}

/* =====================================================
   TOP 3 — featured cards, 3 columns
===================================================== */

.tc-bm-top3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 24px;
}

@media (max-width: 900px) {
    .tc-bm-top3 {
        grid-template-columns: 1fr;
    }
}

.tc-bm-card--featured {
    background: linear-gradient(160deg, #13302a, #0a1f19);
    border: 1px solid rgba(46, 204, 113, 0.25);
    border-radius: 14px;
    padding: 28px 24px;
    text-align: center;
    position: relative;
    transition: all 0.2s ease;
}

.tc-bm-card--featured:hover {
    border-color: rgba(46, 204, 113, 0.6);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.tc-bm-rank {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #f1c40f, #d4ac0d);
    color: #1a1a1a;
    font-weight: 800;
    font-size: 0.9rem;
    padding: 6px 14px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(241, 196, 15, 0.3);
}

.tc-bm-name {
    margin: 12px 0 8px;
    font-size: 1.6rem;
    color: #ffffff;
}

.tc-bm-rating {
    color: #f1c40f;
    font-size: 1.05rem;
    margin-bottom: 16px;
}

.tc-bm-rating strong {
    color: #ffffff;
    font-size: 1.3rem;
}

.tc-bm-bonus {
    font-size: 0.95rem;
    margin-bottom: 6px;
}

.tc-bm-bonus .tc-muted {
    color: #8ea89a;
}

.tc-bm-bonus strong {
    color: #2ecc71;
    font-size: 1.1rem;
}

.tc-bm-bonus-desc {
    color: #c0d4c7;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 10px 0 20px;
    min-height: 2.7em;
}

/* =====================================================
   FULL LIST — row cards
===================================================== */

.tc-bm-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 20px;
}

.tc-bm-row {
    background: #0f2620;
    border: 1px solid rgba(46, 204, 113, 0.15);
    border-radius: 12px;
    padding: 20px 24px;
    transition: border-color 0.2s ease;
}

.tc-bm-row:hover {
    border-color: rgba(46, 204, 113, 0.4);
}

.tc-bm-row__head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 8px;
}

.tc-bm-row__head h3 {
    margin: 0;
    font-size: 1.3rem;
    color: #fff;
}

.tc-bm-rating-sm {
    color: #f1c40f;
    font-weight: 600;
    white-space: nowrap;
}

.tc-bm-row p {
    color: #c0d4c7;
    margin: 6px 0 10px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.tc-bm-row p strong {
    color: #2ecc71;
}

.tc-bm-pros {
    list-style: none;
    padding: 0;
    margin: 10px 0 14px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 4px 16px;
}

.tc-bm-pros li {
    color: #c0d4c7;
    font-size: 0.88rem;
    line-height: 1.4;
    padding: 2px 0;
}

.tc-bm-row__foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(46, 204, 113, 0.1);
}

.tc-bm-row__foot .tc-muted {
    color: #8ea89a;
    font-size: 0.85rem;
}

/* =====================================================
   BUTTONS (bookmaker CTAs)
===================================================== */

.tc-bm-row__foot .tc-btn,
.tc-bm-card--featured .tc-btn {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: #fff !important;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    border: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.tc-bm-row__foot .tc-btn:hover,
.tc-bm-card--featured .tc-btn:hover {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    box-shadow: 0 6px 18px rgba(46, 204, 113, 0.35);
    transform: translateY(-1px);
}

.tc-bm-card--featured .tc-btn--block {
    display: block;
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 6px;
}

.tc-bm-row__foot .tc-btn--sm {
    padding: 8px 16px;
    font-size: 0.88rem;
}

/* =====================================================
   LEGAL / RESPONSIBLE-GAMING BLOCK
===================================================== */

.tc-bm-legal {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.08), rgba(231, 76, 60, 0.02));
    border: 1px solid rgba(231, 76, 60, 0.3);
    border-radius: 12px;
    padding: 24px 28px;
    max-width: 760px;
    margin: 0 auto;
}

.tc-bm-legal h3 {
    color: #e74c3c;
    margin: 0 0 10px;
    font-size: 1.15rem;
}

.tc-bm-legal p {
    color: #c0d4c7;
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.6;
}

/* =====================================================
   HERO TWEAKS — less overwhelming clover
===================================================== */

body.tc-bm-page .tc-section--hero {
    padding-top: 60px;
    padding-bottom: 40px;
}

body.tc-bm-page .tc-section--hero h1 {
    font-size: 2.3rem;
    line-height: 1.2;
    margin-bottom: 14px;
}

body.tc-bm-page .tc-section--hero .tc-hero__subtitle {
    max-width: 720px;
    margin: 0 auto 12px;
    font-size: 1.05rem;
    color: #c0d4c7;
    line-height: 1.5;
}

body.tc-bm-page h2 {
    font-size: 1.8rem;
    margin-bottom: 4px;
    color: #fff;
}

@media (max-width: 700px) {
    body.tc-bm-page .tc-section--hero h1 { font-size: 1.7rem; }
    .tc-bm-row__head { flex-direction: column; gap: 4px; align-items: flex-start; }
    .tc-bm-row__foot { flex-direction: column; align-items: stretch; gap: 10px; }
    .tc-bm-row__foot .tc-btn { text-align: center; }
}

/* =====================================================
   ENRICHED CONTENT BLOCKS
   (voice answer, how-to, payments, facts, FAQ, methodology)
===================================================== */

/* Intro paragraph — slightly larger for readability + Speakable target */
.tc-bm-intro {
    font-size: 1.1rem !important;
    line-height: 1.6;
    max-width: 760px;
    margin: 0 auto;
}

/* Voice-answer box — factual summary consumed by voice assistants */
.tc-bm-voice-answer {
    max-width: 820px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(241, 196, 15, 0.1), rgba(241, 196, 15, 0.02));
    border-left: 4px solid #f1c40f;
    border-radius: 8px;
    padding: 20px 24px;
}
.tc-bm-voice-answer p {
    margin: 0;
    color: #e8f5e9;
    font-size: 1.02rem;
    line-height: 1.6;
}

/* How-to ordered list */
.tc-bm-howto {
    list-style: none;
    padding: 0;
    margin: 24px 0 0;
    counter-reset: howto;
}
.tc-bm-howto > li {
    background: #0f2620;
    border: 1px solid rgba(46, 204, 113, 0.15);
    border-radius: 10px;
    padding: 18px 22px;
    margin-bottom: 12px;
}
.tc-bm-howto h3 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    gap: 12px;
}
.tc-bm-howto-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px; height: 32px;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: #fff;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.95rem;
    flex: 0 0 32px;
}
.tc-bm-howto p {
    color: #c0d4c7;
    margin: 0;
    line-height: 1.55;
    font-size: 0.95rem;
}

/* Payment + legal-facts 2-column grid */
.tc-bm-factgrid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 24px;
}
@media (max-width: 820px) {
    .tc-bm-factgrid { grid-template-columns: 1fr; }
}
.tc-bm-fact {
    background: #0f2620;
    border: 1px solid rgba(46, 204, 113, 0.15);
    border-radius: 12px;
    padding: 24px 26px;
}
.tc-bm-fact h3 {
    margin: 0 0 12px;
    color: #fff;
    font-size: 1.2rem;
}
.tc-bm-fact-lead {
    color: #c0d4c7;
    margin: 0 0 14px;
    font-size: 0.95rem;
    line-height: 1.5;
}
.tc-bm-payments {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 8px;
}
.tc-bm-payments li {
    background: rgba(46, 204, 113, 0.08);
    border: 1px solid rgba(46, 204, 113, 0.2);
    border-radius: 6px;
    padding: 8px 12px;
    color: #e8f5e9;
    font-size: 0.88rem;
    text-align: center;
}
.tc-bm-facts {
    margin: 0;
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 8px 16px;
    font-size: 0.93rem;
}
.tc-bm-facts dt {
    color: #8ea89a;
    font-weight: 600;
}
.tc-bm-facts dd {
    color: #e8f5e9;
    margin: 0;
}
.tc-bm-facts dd a {
    color: #2ecc71;
    text-decoration: none;
}
.tc-bm-facts dd a:hover { text-decoration: underline; }

/* FAQ — native <details> styling */
.tc-bm-faq {
    margin-top: 24px;
}
.tc-bm-faq-item {
    background: #0f2620;
    border: 1px solid rgba(46, 204, 113, 0.15);
    border-radius: 10px;
    padding: 16px 22px;
    margin-bottom: 10px;
    transition: border-color 0.2s ease;
}
.tc-bm-faq-item[open] {
    border-color: rgba(46, 204, 113, 0.4);
}
.tc-bm-faq-item summary {
    cursor: pointer;
    color: #fff;
    font-weight: 600;
    font-size: 1.02rem;
    list-style: none;
    position: relative;
    padding-right: 28px;
    line-height: 1.4;
}
.tc-bm-faq-item summary::-webkit-details-marker { display: none; }
.tc-bm-faq-item summary::after {
    content: "+";
    position: absolute;
    right: 0; top: 50%;
    transform: translateY(-50%);
    color: #2ecc71;
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.2s ease;
}
.tc-bm-faq-item[open] summary::after {
    content: "−";
    transform: translateY(-50%) rotate(0);
}
.tc-bm-faq-item p {
    color: #c0d4c7;
    margin: 12px 0 0;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Methodology list */
.tc-bm-methodology {
    list-style: none;
    padding: 0;
    margin: 18px 0 0;
    display: grid;
    gap: 10px;
}
.tc-bm-methodology li {
    background: #0f2620;
    border-left: 3px solid #2ecc71;
    padding: 12px 16px;
    border-radius: 0 8px 8px 0;
    color: #c0d4c7;
    font-size: 0.93rem;
    line-height: 1.5;
}
.tc-bm-methodology li strong {
    color: #fff;
}

/* =====================================================
   LIVE ODDS COMPARATOR WIDGET
===================================================== */

.tc-bm-odds-intro {
    color: #c0d4c7;
    margin: 10px 0 20px;
    line-height: 1.6;
    max-width: 820px;
}

.tc-bm-odds {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.tc-bm-odds-match {
    background: #0f2620;
    border: 1px solid rgba(46, 204, 113, 0.18);
    border-radius: 12px;
    padding: 20px 24px;
}

.tc-bm-odds-match__head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(46, 204, 113, 0.12);
}
.tc-bm-odds-match__head h3 {
    margin: 0;
    color: #fff;
    font-size: 1.15rem;
    line-height: 1.3;
}
.tc-bm-odds-vs {
    color: #8ea89a;
    font-weight: 400;
    font-size: 0.9rem;
    margin: 0 8px;
}
.tc-bm-odds-match__head time {
    color: #8ea89a;
    font-size: 0.88rem;
    white-space: nowrap;
}

.tc-bm-odds-table-wrap {
    overflow-x: auto;
}
.tc-bm-odds-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.93rem;
}
.tc-bm-odds-table th,
.tc-bm-odds-table td {
    padding: 10px 12px;
    text-align: center;
    border-bottom: 1px solid rgba(46, 204, 113, 0.08);
}
.tc-bm-odds-table th {
    color: #8ea89a;
    font-weight: 600;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.tc-bm-odds-table th:first-child,
.tc-bm-odds-table td:first-child {
    text-align: left;
}
.tc-bm-odds-table tbody tr:last-child td {
    border-bottom: none;
}
.tc-bm-odds-table tbody tr:hover {
    background: rgba(46, 204, 113, 0.04);
}
.tc-bm-odds-name {
    color: #fff;
    font-weight: 600;
}
.tc-bm-odds-best {
    background: rgba(241, 196, 15, 0.15) !important;
    color: #f1c40f !important;
    font-weight: 700;
    border-radius: 4px;
    position: relative;
}
.tc-bm-odds-best::after {
    content: "★";
    position: absolute;
    top: 2px;
    right: 4px;
    font-size: 0.6rem;
    opacity: 0.7;
}
.tc-bm-odds-table td:last-child .tc-btn {
    padding: 6px 12px;
    font-size: 0.85rem;
}

.tc-bm-odds-attrib {
    color: #8ea89a;
    font-size: 0.82rem;
    text-align: center;
    margin-top: 16px;
    font-style: italic;
}

@media (max-width: 620px) {
    .tc-bm-odds-table th,
    .tc-bm-odds-table td { padding: 8px 6px; font-size: 0.85rem; }
    .tc-bm-odds-name { font-size: 0.8rem; }
}
