/*
Theme Name: Best Payout Casinos UK
Theme URI: https://bestpayoutcasinosuk.org.uk
Description: Casino affiliate theme for UK players - Best Payout Casinos
Version: 1.0.0
Author: Best Payout Casinos UK
Text Domain: best-payout-casinos-uk
*/

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --primary: #1E3A5F;
    --secondary: #F8FAFC;
    --accent: #2563EB;
    --bg: #FFFFFF;
    --surface: #EFF6FF;
    --text: #0C1929;
    --text-muted: #3B82F6;
    --cta: #1E3A5F;
    --cta-hover: #172554;
    --border: #BAD6F2;
    --success: #16a34a;
    --danger: #dc2626;
    --font-body: 'Inter', sans-serif;
    --font-heading: 'Space Grotesk', sans-serif;
    --max-w: 1280px;
    --radius: 0px;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text);
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--cta-hover); }
img { max-width: 100%; height: auto; display: block; }

.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

.section-spacing { padding: 64px 0; }

/* ===== HEADER ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--primary);
    border-bottom: 3px solid var(--accent);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.site-logo {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: #FFFFFF;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.site-logo:hover { color: var(--border); }

.main-nav { display: flex; gap: 32px; align-items: center; }
.main-nav a {
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
    font-family: var(--font-body);
}
.main-nav a:hover { color: var(--border); }

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #FFFFFF;
    margin: 5px 0;
    transition: 0.3s;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary);
    z-index: 999;
    padding: 32px 24px;
}
.mobile-nav.active { display: flex; flex-direction: column; gap: 24px; }
.mobile-nav a {
    color: #FFFFFF;
    font-size: 18px;
    font-weight: 500;
    text-decoration: none;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* ===== HERO ===== */
.hero {
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero-home { min-height: 60vh; }
.hero-inner { min-height: 40vh; }
.hero-rate { min-height: 45vh; }

.hero-content { max-width: 800px; padding: 48px 24px; }
.hero h1 {
    color: #FFFFFF;
    font-size: clamp(28px, 5vw, 48px);
    margin-bottom: 16px;
    letter-spacing: -1px;
}
.hero p {
    color: var(--border);
    font-size: clamp(16px, 2.5vw, 20px);
    margin-bottom: 32px;
}

.hero-badges {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 32px;
}
.hero-badge {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #FFFFFF;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-weight: 700;
    font-size: 15px;
    font-family: var(--font-heading);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: background 0.2s, transform 0.1s;
}
.btn:active { transform: scale(0.98); }

.btn-cta {
    background: var(--cta);
    color: #FFFFFF;
}
.btn-cta:hover { background: var(--cta-hover); color: #FFFFFF; }

.btn-accent {
    background: var(--accent);
    color: #FFFFFF;
}
.btn-accent:hover { background: var(--cta); color: #FFFFFF; }

.btn-outline {
    background: transparent;
    border: 2px solid #FFFFFF;
    color: #FFFFFF;
}
.btn-outline:hover { background: rgba(255,255,255,0.1); color: #FFFFFF; }

/* ===== CASINO GRID ===== */
.casino-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.casino-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow 0.2s;
}
.casino-card:hover { box-shadow: 0 4px 24px rgba(30,58,95,0.12); }

.casino-card-header {
    background: var(--surface);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid var(--border);
}

.casino-rank {
    background: var(--primary);
    color: #FFFFFF;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    font-family: var(--font-heading);
    flex-shrink: 0;
    border-radius: var(--radius);
}

.casino-logo-wrap {
    width: 80px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.casino-logo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.casino-card-name {
    font-size: 16px;
    font-weight: 700;
    font-family: var(--font-heading);
    flex: 1;
    min-width: 0;
}

.casino-card-body { padding: 20px; }

.casino-stars { color: #f59e0b; font-size: 14px; margin-bottom: 12px; }
.casino-stars .rating-num { color: var(--text); font-weight: 700; margin-left: 4px; }

.casino-badge {
    display: inline-block;
    background: var(--surface);
    color: var(--accent);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    margin-bottom: 12px;
    border-radius: var(--radius);
}

.casino-bonus {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
    line-height: 1.3;
}

.casino-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
    font-size: 13px;
    color: var(--text);
}
.casino-meta span { display: flex; justify-content: space-between; }
.casino-meta .meta-label { color: #64748b; }
.casino-meta .meta-value { font-weight: 600; }

.casino-card-footer {
    padding: 0 20px 20px;
}

.casino-card-footer .btn {
    display: block;
    width: 100%;
    text-align: center;
}

.casino-terms {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 8px;
    text-align: center;
}

/* ===== REVIEW BLOCKS ===== */
.review-block {
    margin-bottom: 48px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 48px;
}
.review-block:last-child { border-bottom: none; }

.review-topbar {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.review-logo-wrap {
    width: 100px;
    height: 56px;
    flex-shrink: 0;
    overflow: hidden;
}
.review-logo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.review-topbar-info { flex: 1; min-width: 200px; }
.review-topbar-info h3 {
    font-size: 22px;
    margin-bottom: 4px;
}
.review-topbar-info .casino-stars { margin-bottom: 0; }

.review-topbar .btn { flex-shrink: 0; }

.review-screenshots {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.review-screenshot {
    border: 1px solid var(--border);
    overflow: hidden;
    cursor: pointer;
    border-radius: var(--radius);
    aspect-ratio: 16/10;
}
.review-screenshot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.review-screenshot:hover img { transform: scale(1.03); }

.review-body {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 24px;
    color: var(--text);
}
.review-body p { margin-bottom: 16px; }

.review-pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border: 1px solid var(--border);
    overflow: hidden;
    border-radius: var(--radius);
    margin-bottom: 24px;
}

.review-pros, .review-cons {
    padding: 20px;
}
.review-pros { border-right: 1px solid var(--border); }

.review-pros h4, .review-cons h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid;
}
.review-pros h4 { color: var(--success); border-color: var(--success); }
.review-cons h4 { color: var(--danger); border-color: var(--danger); }

.review-pros ul, .review-cons ul {
    list-style: none;
    padding: 0;
}
.review-pros li, .review-cons li {
    padding: 6px 0;
    font-size: 14px;
    padding-left: 20px;
    position: relative;
}
.review-pros li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 700;
}
.review-cons li::before {
    content: "✗";
    position: absolute;
    left: 0;
    color: var(--danger);
    font-weight: 700;
}

/* ===== FAQ ===== */
.faq-item {
    margin-bottom: 32px;
}
.faq-item h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--primary);
}
.faq-item p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
}

/* ===== AUTHOR BOX ===== */
.author-box {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 32px;
    display: flex;
    gap: 24px;
    align-items: flex-start;
    border-radius: var(--radius);
}
.author-avatar {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: var(--radius);
}
.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.author-info h4 {
    font-size: 18px;
    margin-bottom: 4px;
}
.author-info .author-role {
    color: var(--accent);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}
.author-info p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text);
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--primary);
    padding: 40px 0;
    margin-top: 64px;
}
.footer-inner {
    text-align: center;
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}
.footer-inner .footer-name {
    color: #FFFFFF;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 12px;
}
.footer-inner .footer-copy {
    margin-bottom: 16px;
}
.footer-disclaimer {
    font-size: 12px;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
    color: rgba(255,255,255,0.5);
}

/* ===== LIGHTBOX ===== */
.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.9);
    z-index: 10000;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}
.lightbox-overlay.active { display: flex; }
.lightbox-overlay img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
}
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #FFFFFF;
    font-size: 32px;
    cursor: pointer;
    background: none;
    border: none;
    font-weight: 700;
}

/* ===== PAGE CONTENT ===== */
.page-content {
    font-size: 16px;
    line-height: 1.8;
}
.page-content h2 { font-size: 28px; margin: 32px 0 16px; }
.page-content h3 { font-size: 22px; margin: 24px 0 12px; }
.page-content p { margin-bottom: 16px; }
.page-content ul, .page-content ol { margin-bottom: 16px; padding-left: 24px; }
.page-content li { margin-bottom: 8px; }

/* ===== ABOUT PAGE ===== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 32px;
}
.team-card {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 24px;
    text-align: center;
    border-radius: var(--radius);
}
.team-card-avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto 16px;
    overflow: hidden;
    border-radius: var(--radius);
}
.team-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.team-card h3 { font-size: 18px; margin-bottom: 4px; }
.team-card .team-role { color: var(--accent); font-size: 14px; font-weight: 600; }

/* ===== CONTACT FORM ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
    margin-top: 32px;
}
.contact-form-wrap {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 32px;
    border-radius: var(--radius);
}

.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
    color: var(--text);
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    background: var(--bg);
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text);
    border-radius: var(--radius);
    transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}
.form-group textarea { resize: vertical; min-height: 140px; }

.contact-info-box {
    background: var(--primary);
    color: #FFFFFF;
    padding: 32px;
    border-radius: var(--radius);
    height: fit-content;
}
.contact-info-box h3 {
    color: #FFFFFF;
    font-size: 20px;
    margin-bottom: 20px;
}
.contact-info-item {
    margin-bottom: 20px;
    font-size: 15px;
}
.contact-info-item .info-label {
    color: var(--border);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--success);
    color: #FFFFFF;
    padding: 16px 24px;
    font-weight: 600;
    z-index: 10001;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s;
    border-radius: var(--radius);
}
.toast.show { transform: translateY(0); opacity: 1; }

/* ===== HOW WE RATE ===== */
.criteria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 32px;
}
.criteria-card {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 24px;
    border-radius: var(--radius);
}
.criteria-card h4 {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--primary);
}
.criteria-card p {
    font-size: 14px;
    color: var(--text);
    line-height: 1.6;
}

/* ===== CONTENT SECTIONS (injected) ===== */
.content-section {
    font-size: 16px;
    line-height: 1.8;
}
.content-section h2 { font-size: 28px; margin: 32px 0 16px; font-family: var(--font-heading); }
.content-section h3 { font-size: 22px; margin: 24px 0 12px; font-family: var(--font-heading); }
.content-section p { margin-bottom: 16px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .casino-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .hamburger { display: block; }
    .main-nav { display: none; }
    
    .casino-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    
    .review-topbar { flex-direction: column; align-items: flex-start; }
    .review-topbar .btn { width: 100%; }
    
    .review-screenshots { grid-template-columns: 1fr; }
    .review-pros-cons { grid-template-columns: 1fr; }
    .review-pros { border-right: none; border-bottom: 1px solid var(--border); }
    
    .author-box { flex-direction: column; }
    
    .contact-grid { grid-template-columns: 1fr; }
    
    .hero-content { padding: 32px 16px; }
    .section-spacing { padding: 40px 0; }
    .container { padding: 0 16px; }
}

@media (max-width: 480px) {
    .casino-card-header { padding: 12px; gap: 8px; }
    .casino-logo-wrap { width: 56px; height: 36px; }
    .casino-card-body { padding: 12px; }
    .casino-card-footer { padding: 0 12px 12px; }
    .casino-card-name { font-size: 14px; }
    .casino-bonus { font-size: 13px; }
    .casino-meta { font-size: 12px; }
}
