/* ═══════════════════════════════════════════════════════════════
   ChooseSportsbooks.top — Shortcodes Stylesheet
   ═══════════════════════════════════════════════════════════════ */

/* ── Shortcode section heading (ToC-compatible) ───────────── */
.sc-section-heading {
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--navy-900);
    margin: 40px 0 20px;
    padding-bottom: 10px;
    position: relative;
    letter-spacing: -0.01em;
    scroll-margin-top: 90px;
}
.sc-section-heading::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 52px; height: 3px;
    background: linear-gradient(90deg, var(--emerald-500), var(--gold-400));
    border-radius: 2px;
}

/* ── Grid Layouts ─────────────────────────────────────────── */
.shortcode-sites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin: 40px 0;
    align-items: stretch; /* Enforces equal height for standard cards */
}

/* When using horizontal cards in a grid, force single column stack */
.shortcode-sites-grid.sc-layout-horizontal {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ── Standard Vertical Card Base ──────────────────────────── */
.sc-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 24px;
    box-shadow: var(--shadow-card);
    transition: all 0.3s var(--ease-out);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    height: 100%; /* Fill the grid cell */
}
.sc-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--emerald-500), var(--gold-400));
    opacity: 0;
    transition: opacity 0.3s;
}
.sc-card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-4px);
}
.sc-card:hover::before {
    opacity: 1;
}

/* Replaces <h3> to avoid ToC hijacking */
.sc-site-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--navy-900);
    margin-bottom: 4px;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

/* ── Compact Horizontal Card ──────────────────────────────── */
.sc-card.horizontal {
    flex-direction: row;
    align-items: center;
    padding: 16px 20px;
    gap: 20px;
    height: auto;
}
.sc-card.horizontal:hover {
    transform: translateX(4px); /* Slide right instead of up for list items */
}

/* Horizontal Card Structure */
.sc-hz-col-rank {
    flex-shrink: 0;
    width: 32px;
    display: flex;
    justify-content: center;
}
.sc-hz-rank-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--gray-500);
    background: var(--gray-100);
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.1);
}
.sc-hz-col-rank[data-rank="1"] .sc-hz-rank-badge { color: var(--gold-500); background: var(--gold-100); }
.sc-hz-col-rank[data-rank="2"] .sc-hz-rank-badge { color: var(--gray-600); background: var(--gray-200); }
.sc-hz-col-rank[data-rank="3"] .sc-hz-rank-badge { color: #cd7f32; background: #fdf5e6; }

.sc-hz-col-logo {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    position: relative;
    border-radius: var(--radius-md);
    background: var(--gray-50);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--gray-100);
}
.sc-hz-col-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
}

.sc-hz-col-info {
    flex: 1;
    min-width: 0; /* allows text truncation */
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.sc-hz-col-info .sc-site-title {
    margin-bottom: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sc-hz-rating-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
}
.sc-hz-rating-num {
    font-weight: 700;
    color: var(--gray-600);
}

.sc-hz-col-features {
    flex: 1.5;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 0 16px;
    border-left: 1px solid var(--gray-100);
    border-right: 1px solid var(--gray-100);
}
.sc-hz-bonus {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--gold-500);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sc-hz-desc {
    font-size: 0.85rem;
    color: var(--gray-500);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sc-hz-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
.sc-hz-badges .badge {
    font-size: 0.7rem;
    padding: 2px 8px;
}

.sc-hz-col-actions {
    flex-shrink: 0;
    width: 150px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.sc-hz-col-actions .btn-play,
.sc-hz-col-actions .btn-review {
    padding: 10px 16px;
    font-size: 0.85rem;
    width: 100%;
    justify-content: center;
}

/* ── Responsive adjustments for Horizontal Card ───────────── */
@media (max-width: 968px) {
    .sc-card.horizontal { padding: 16px; gap: 16px; }
    .sc-hz-col-features { padding: 0 12px; flex: 1.2; }
    .sc-hz-col-actions { width: 130px; }
}

@media (max-width: 768px) {
    .sc-card.horizontal {
        flex-direction: column;
        align-items: stretch;
        position: relative;
        padding: 20px;
        gap: 16px;
    }
    .sc-card.horizontal:hover { transform: translateY(-4px); } /* Reset hover direction */
    
    .sc-hz-col-rank {
        position: absolute;
        top: 16px;
        left: 16px;
        width: auto;
    }
    
    .sc-hz-col-logo {
        margin: 0 auto; /* Center logo on mobile */
        width: 80px;
        height: 80px;
    }
    
    .sc-hz-col-info {
        text-align: center;
        align-items: center;
    }
    .sc-hz-col-info .sc-site-title { white-space: normal; }
    
    .sc-hz-col-features {
        border-left: none;
        border-right: none;
        border-top: 1px solid var(--gray-100);
        padding: 16px 0 0;
        text-align: center;
        align-items: center;
    }
    .sc-hz-desc { white-space: normal; line-height: 1.4; }
    .sc-hz-badges { justify-content: center; }
    
    .sc-hz-col-actions {
        width: 100%;
        flex-direction: row;
        border-top: 1px solid var(--gray-100);
        padding-top: 16px;
    }
}

@media (max-width: 480px) {
    .sc-hz-col-actions { flex-direction: column; }
}

/* ── Geo-blocked State ────────────────────────────────────── */
.sc-card-blocked { opacity: 0.72; }
.btn-blocked {
    background: #94a3b8 !important;
    box-shadow: none !important;
    cursor: not-allowed !important;
    color: #fff !important;
    transform: none !important;
}
.btn-restricted {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    box-shadow: 0 4px 14px rgba(245,158,11,0.25) !important;
}
.btn-restricted:hover {
    background: linear-gradient(135deg, #d97706, #b45309) !important;
    color: #fff !important;
}

.sc-geo-notice {
    font-size: 0.78rem;
    color: #ef4444;
    margin-top: 6px;
    line-height: 1.4;
    padding: 6px 10px;
    background: #fef2f2;
    border-radius: 6px;
    border: 1px solid #fecaca;
    text-align: center;
}
.sc-geo-restricted {
    color: #92400e;
    background: #fffbeb;
    border-color: #fde68a;
}
.sc-geo-link {
    display: inline-block;
    margin-top: 4px;
    color: #0891b2;
    font-weight: 600;
    text-decoration: none;
}
.sc-geo-link:hover { text-decoration: underline; }

/* ── Button Hover Text Fixes ──────────────────────────────── */
.btn-primary, .btn-play,
.btn-primary:hover, .btn-primary:focus, .btn-primary:active,
.btn-play:hover, .btn-play:focus, .btn-play:active,
.btn-primary:visited, .btn-play:visited {
    color: #ffffff !important;
    text-decoration: none !important;
}

.btn-secondary, .btn-review,
.btn-secondary:hover, .btn-review:hover,
.btn-secondary:focus, .btn-review:focus,
.btn-secondary:visited, .btn-review:visited {
    text-decoration: none !important;
}