/*
Theme Name: Best Bitcoin Casinos
Theme URI: https://bestbitcoincasinos.ae.org
Description: Custom casino affiliate theme for Best Bitcoin Casinos UK
Author: bestbitcoincasinos.ae.org
Version: 1.0.0
Text Domain: bestbitcoincasinos
*/

/* === TEMPLATE 1 === */
:root {
    --color-bg: #0B1120;
    --color-section: #0F1A30;
    --color-card: #131D35;
    --color-accent: #00D4FF;
    --color-secondary: #0A5C7A;
    --color-text: #E8ECF1;
    --color-muted: #8A9BB5;
    --color-border: #1A2A45;
    --color-cta-hover: #00B8E0;
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --max-width: 1280px;
    --radius: 8px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
}

a { color: var(--color-accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--color-cta-hover); }

img { max-width: 100%; height: auto; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-text);
    line-height: 1.3;
    margin-bottom: 16px;
}
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }

p { margin-bottom: 18px; color: var(--color-text); }

strong { color: var(--color-accent); }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* === HEADER === */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(11, 17, 32, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--color-border);
    padding: 0;
}
.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.site-logo {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-text);
    text-decoration: none;
}
.site-logo span { color: var(--color-accent); }

.desktop-nav { display: flex; gap: 24px; align-items: center; }
.desktop-nav a {
    color: var(--color-muted);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
    padding: 8px 0;
}
.desktop-nav a:hover { color: var(--color-accent); }

.nav-dropdown { position: relative; }
.nav-dropdown > a::after { content: ' ▾'; font-size: 10px; }
.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 8px 0;
    min-width: 220px;
    z-index: 1001;
    max-height: 400px;
    overflow-y: auto;
}
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
    display: block;
    padding: 8px 16px;
    font-size: 13px;
    color: var(--color-text);
    white-space: nowrap;
}
.nav-dropdown-menu a:hover { background: var(--color-section); color: var(--color-accent); }

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    margin: 5px 0;
    transition: 0.3s;
}

.mobile-nav {
    display: none;
    background: var(--color-card);
    border-top: 1px solid var(--color-border);
    padding: 16px 20px;
}
.mobile-nav.active { display: block; }
.mobile-nav a {
    display: block;
    padding: 12px 0;
    color: var(--color-text);
    font-size: 15px;
    border-bottom: 1px solid var(--color-border);
}
.mobile-nav-dropdown-toggle {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    color: var(--color-text);
    font-size: 15px;
    border-bottom: 1px solid var(--color-border);
    background: none;
    border-left: 0;
    border-right: 0;
    border-top: 0;
    width: 100%;
    font-family: var(--font-body);
}
.mobile-nav-dropdown-toggle::after { content: '+'; color: var(--color-accent); font-size: 18px; }
.mobile-nav-dropdown-toggle.active::after { content: '×'; }
.mobile-nav-sub {
    display: none;
    padding-left: 16px;
}
.mobile-nav-sub.active { display: block; }
.mobile-nav-sub a { font-size: 13px; padding: 8px 0; }

@media (max-width: 768px) {
    .desktop-nav { display: none; }
    .hamburger { display: block; }
}

/* === HERO === */
.hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(180deg, var(--color-section) 0%, var(--color-bg) 100%);
    padding: 60px 20px;
}
.hero h1 { max-width: 800px; margin: 0 auto 20px; }
.hero p {
    max-width: 600px;
    margin: 0 auto 24px;
    color: var(--color-muted);
    font-size: 1.1rem;
}

.inner-hero {
    min-height: 40vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(180deg, var(--color-section) 0%, var(--color-bg) 100%);
    padding: 60px 20px;
}
.inner-hero.tall { min-height: 45vh; }
.inner-hero h1 { max-width: 800px; }

.hero-badges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
}
.hero-badge {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 8px 16px;
    font-size: 13px;
    color: var(--color-accent);
    font-weight: 600;
}

/* === CTA BUTTON === */
.cta-button {
    display: inline-block;
    background: var(--color-accent);
    color: var(--color-bg);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 15px;
    padding: 14px 32px;
    border-radius: var(--radius);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.2s, transform 0.15s;
    cursor: pointer;
    border: none;
}
.cta-button:hover {
    background: var(--color-cta-hover);
    color: var(--color-bg);
    transform: translateY(-1px);
}

/* === SECTIONS === */
.full-section {
    padding: 60px 0;
    width: 100%;
}
.full-section.alt { background: var(--color-section); }

.visual-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
    margin: 40px 0;
    border: none;
}

/* === CASINO LEADERBOARD === */
.casino-grid { display: flex; flex-direction: column; gap: 16px; }

.casino-row {
    display: flex;
    background: var(--color-card);
    border-radius: var(--radius);
    border-left: 3px solid var(--color-accent);
    padding: 20px;
    gap: 24px;
    align-items: center;
    position: relative;
    transition: border-color 0.2s;
}
.casino-row:hover { border-left-color: var(--color-cta-hover); }

.casino-left {
    flex: 0 0 30%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    text-align: center;
}
.casino-rank {
    position: absolute;
    top: -8px;
    left: -8px;
    width: 32px;
    height: 32px;
    background: var(--color-accent);
    color: var(--color-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    font-family: var(--font-heading);
}
.casino-logo-wrap {
    width: 200px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 6px;
    padding: 8px;
}
.casino-logo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.casino-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-text);
}
.casino-stars { color: #FFD700; font-size: 14px; letter-spacing: 1px; }
.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #4ade80;
    font-weight: 600;
}
.verified-badge::before { content: '✓'; }

.casino-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.casino-bonus {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-text);
}
.casino-stats {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--color-muted);
}
.casino-stat span { color: var(--color-text); font-weight: 600; }

.payment-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.payment-tag {
    background: var(--color-section);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    padding: 3px 8px;
    font-size: 11px;
    color: var(--color-muted);
    text-transform: uppercase;
    font-weight: 600;
}

.bonus-toggle {
    background: none;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    padding: 6px 12px;
    color: var(--color-accent);
    font-size: 12px;
    cursor: pointer;
    font-family: var(--font-body);
    transition: background 0.2s;
    align-self: flex-start;
}
.bonus-toggle:hover { background: var(--color-section); }
.bonus-details {
    display: none;
    background: var(--color-section);
    border-radius: 4px;
    padding: 10px 14px;
    font-size: 13px;
    color: var(--color-muted);
    line-height: 1.5;
}
.bonus-details.active { display: block; }

.casino-cta-wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.casino-tc {
    font-size: 11px;
    color: var(--color-muted);
    font-style: italic;
}

@media (max-width: 768px) {
    .casino-row {
        flex-direction: column;
        text-align: center;
        padding: 16px;
    }
    .casino-left {
        flex: none;
        width: 100%;
    }
    .casino-rank { left: 50%; transform: translateX(-50%); top: -12px; }
    .casino-right { align-items: center; text-align: center; }
    .casino-stats { justify-content: center; }
    .payment-tags { justify-content: center; }
    .casino-cta-wrap { align-items: center; width: 100%; }
    .casino-cta-wrap .cta-button { width: 100%; text-align: center; }
    .bonus-toggle { align-self: center; }
}

/* === CATEGORY CARDS === */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}
.category-card {
    background: var(--color-card);
    border-radius: var(--radius);
    padding: 20px;
    border: 1px solid var(--color-border);
    transition: border-color 0.2s;
}
.category-card:hover { border-color: var(--color-accent); }
.category-card h4 {
    font-family: var(--font-heading);
    margin-bottom: 8px;
}
.category-card p { font-size: 14px; color: var(--color-muted); margin-bottom: 12px; }

/* === REVIEW BLOCKS === */
.review-block {
    background: var(--color-card);
    border-radius: var(--radius);
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid var(--color-border);
}
.review-header {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.review-logo-wrap {
    width: 120px;
    height: 60px;
    background: #fff;
    border-radius: 6px;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.review-logo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.review-title-area h3 { margin-bottom: 4px; }
.review-title-area .casino-stars { font-size: 13px; }

.review-screenshots {
    display: flex;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin: 20px 0;
}
.review-screenshots img {
    width: 50%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    cursor: pointer;
    transition: opacity 0.2s;
}
.review-screenshots img:hover { opacity: 0.85; }

.review-pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 20px;
}
@media (max-width: 600px) {
    .review-pros-cons { grid-template-columns: 1fr; }
}
.review-pros, .review-cons {
    background: var(--color-section);
    border-radius: var(--radius);
    padding: 16px;
}
.review-pros h4 { color: #4ade80; font-size: 14px; margin-bottom: 10px; }
.review-cons h4 { color: #f87171; font-size: 14px; margin-bottom: 10px; }
.review-pros li, .review-cons li {
    font-size: 13px;
    color: var(--color-muted);
    margin-bottom: 6px;
    padding-left: 16px;
    position: relative;
    list-style: none;
}
.review-pros li::before { content: '✓'; position: absolute; left: 0; color: #4ade80; }
.review-cons li::before { content: '✗'; position: absolute; left: 0; color: #f87171; }

.review-cta-area {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* === TOC === */
.toc-sidebar, .toc-desktop, .table-of-contents, [class*="toc"] {
    position: static !important;
    width: 100% !important;
    max-width: 600px !important;
    margin: 0 auto 30px auto !important;
    float: none !important;
}
.toc-wrap {
    max-width: 600px;
    margin: 0 auto 30px;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
}
.toc-toggle {
    width: 100%;
    padding: 14px 20px;
    background: var(--color-card);
    border: none;
    color: var(--color-text);
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
}
.toc-toggle::after { content: '+'; color: var(--color-accent); font-size: 18px; }
.toc-toggle.active::after { content: '×'; }
.toc-list {
    display: none;
    padding: 0 20px 16px;
    list-style: none;
}
.toc-list.active { display: block; }
.toc-list li { padding: 6px 0; }
.toc-list a {
    color: var(--color-muted);
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s;
}
.toc-list a:hover { color: var(--color-accent); }

/* === FAQ === */
.faq-section { max-width: 800px; margin: 0 auto; }
.faq-item {
    border-bottom: 1px solid var(--color-border);
}
.faq-question {
    width: 100%;
    padding: 16px 0;
    background: none;
    border: none;
    color: var(--color-text);
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    min-height: 48px;
}
.faq-question::after { content: '+'; color: var(--color-accent); font-size: 20px; flex-shrink: 0; margin-left: 12px; }
.faq-question.active::after { content: '×'; }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}
.faq-answer-inner {
    padding: 0 0 16px;
    font-size: 14px;
    color: var(--color-muted);
    line-height: 1.7;
}

/* === AUTHOR BOX === */
.author-box {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: var(--color-card);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--color-border);
}
.author-box img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.author-box h4 { font-size: 16px; margin-bottom: 4px; }
.author-box p { font-size: 13px; color: var(--color-muted); margin-bottom: 0; }

/* === RESPONSIVE TABLES === */
.content-section table, .page-content table {
    width: 100%;
    border-collapse: collapse;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 24px;
}
.content-section table th, .page-content table th {
    background: var(--color-section);
    color: var(--color-accent);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 13px;
    text-align: left;
    padding: 12px;
    white-space: nowrap;
}
.content-section table td, .page-content table td {
    padding: 10px 12px;
    font-size: 14px;
    color: var(--color-text);
    border-bottom: 1px solid var(--color-border);
}
.content-section table tr:hover td, .page-content table tr:hover td {
    background: rgba(0,212,255,0.03);
}
@media (max-width: 768px) {
    .content-section table td,
    .content-section table th,
    .page-content table td,
    .page-content table th {
        min-width: 100px;
        padding: 8px 6px;
        font-size: 13px;
    }
}

/* === FOOTER === */
.site-footer {
    background: var(--color-section);
    border-top: 1px solid var(--color-border);
    padding: 40px 20px;
    text-align: center;
}
.footer-disclaimer {
    max-width: 800px;
    margin: 0 auto;
    font-size: 13px;
    color: var(--color-muted);
    line-height: 1.8;
}
.footer-disclaimer a, .site-footer a {
    color: var(--color-accent) !important;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.footer-disclaimer p { margin-bottom: 8px; }

/* === LIGHTBOX === */
.lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.lightbox-overlay.active { display: flex; }
.lightbox-overlay img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: var(--radius);
    object-fit: contain;
}

/* === STICKY MOBILE CTA BAR === */
.mobile-cta-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--color-card);
    border-top: 1px solid var(--color-border);
    z-index: 999;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
}
.mobile-cta-bar .mcb-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text);
    font-family: var(--font-heading);
}
.mobile-cta-bar .mcb-btn {
    background: #22c55e;
    color: #fff;
    padding: 10px 20px;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    font-family: var(--font-heading);
}
.mobile-cta-bar .mcb-close {
    background: none;
    border: none;
    color: var(--color-muted);
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
}
@media (max-width: 768px) {
    .mobile-cta-bar.visible { display: flex; }
    body.mcb-active { padding-bottom: 60px; }
}

/* === CONTENT SECTIONS === */
.content-section {
    padding: 0 20px;
    max-width: var(--max-width);
    margin: 0 auto;
}
.content-section h2 {
    margin-top: 40px;
    margin-bottom: 16px;
}
.content-section h3 {
    margin-top: 24px;
    margin-bottom: 12px;
}

/* === PAGE CONTENT === */
.page-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}
.page-content h2 { margin-top: 40px; }
.page-content h3 { margin-top: 24px; }

/* === CONTACT FORM === */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}
.contact-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 6px;
}
.contact-form input, .contact-form textarea, .contact-form select {
    width: 100%;
    padding: 12px;
    background: var(--color-section);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 14px;
    margin-bottom: 16px;
}
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--color-accent);
}
.contact-toast {
    display: none;
    background: #22c55e;
    color: #fff;
    padding: 12px 20px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    margin-top: 16px;
    text-align: center;
}

.contact-info-box {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 24px;
    margin-top: 30px;
    text-align: center;
}
.contact-info-box h4 { margin-bottom: 8px; }
.contact-info-box p { font-size: 14px; color: var(--color-muted); }

/* === ABOUT PAGE TEAM === */
.team-grid {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 20px 0;
}
.team-card {
    background: var(--color-card);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    border: 1px solid var(--color-border);
    flex: 1;
    min-width: 250px;
    max-width: 380px;
}
.team-card img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 12px;
}
.team-card h4 { margin-bottom: 4px; }
.team-card p { font-size: 13px; color: var(--color-muted); }

/* === CRITERIA BADGES === */
.criteria-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}
.criteria-badge {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 8px 16px;
    font-size: 12px;
    color: var(--color-accent);
    font-weight: 600;
}

/* === LIST PAGE === */
.hreflang-note {
    font-size: 13px;
    color: var(--color-muted);
    text-align: center;
    margin-bottom: 20px;
}
