/*
Theme Name: Independent Casinos UK
Theme URI: https://independentcasinosuk.it.com
Author: Independent Casinos UK
Description: Casino affiliate theme for Independent Casinos UK
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: independentcasinosuk
*/

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

:root {
    --color-bg: #F5F0EB;
    --color-surface: #FFFFFF;
    --color-primary: #1B4D3E;
    --color-primary-light: #2A7A5F;
    --color-accent: #D4A843;
    --color-accent-hover: #BF9535;
    --color-text: #1A1A1A;
    --color-text-muted: #5A5A5A;
    --color-border: #D6CFC7;
    --color-success: #2A7A5F;
    --color-danger: #B8453A;
    --color-header-bg: #1B4D3E;
    --color-header-text: #FFFFFF;
    --color-hero-bg: #1B4D3E;
    --color-hero-text: #FFFFFF;
    --color-footer-bg: #12332A;
    --color-footer-text: #C8C0B8;
    --color-card-bg: #FFFFFF;
    --color-badge: #D4A843;
    --color-badge-text: #1A1A1A;
    --color-stars: #D4A843;
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --max-width: 1280px;
    --radius: 0px;
}

html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-primary-light); }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; }
h1 { font-size: 2.8rem; }
h2 { font-size: 2rem; margin-bottom: 1rem; }
h3 { font-size: 1.4rem; margin-bottom: 0.75rem; }
p { margin-bottom: 1rem; }

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

/* === HEADER === */
.site-header {
    position: sticky; top: 0; z-index: 1000;
    background: var(--color-header-bg);
    border-bottom: 3px solid var(--color-accent);
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 64px;
}
.site-logo {
    font-family: var(--font-heading);
    font-size: 1.25rem; font-weight: 700;
    color: var(--color-header-text);
    text-decoration: none;
    letter-spacing: -0.5px;
}
.site-logo:hover { color: var(--color-accent); }
.main-nav ul { list-style: none; display: flex; gap: 28px; }
.main-nav a {
    color: var(--color-header-text); font-size: 0.9rem;
    font-weight: 500; text-decoration: none;
    padding: 4px 0; border-bottom: 2px solid transparent;
    transition: border-color 0.2s;
}
.main-nav a:hover { border-color: var(--color-accent); color: var(--color-header-text); }
.hamburger {
    display: none; background: none; border: none; cursor: pointer;
    width: 32px; height: 32px; position: relative;
}
.hamburger span {
    display: block; width: 24px; height: 2px;
    background: var(--color-header-text);
    position: absolute; left: 4px;
    transition: all 0.3s;
}
.hamburger span:nth-child(1) { top: 8px; }
.hamburger span:nth-child(2) { top: 15px; }
.hamburger span:nth-child(3) { top: 22px; }
.hamburger.active span:nth-child(1) { top: 15px; transform: rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { top: 15px; transform: rotate(-45deg); }

/* === HERO === */
.hero {
    min-height: 60vh; display: flex; align-items: center; justify-content: center;
    background: var(--color-hero-bg); color: var(--color-hero-text);
    text-align: center; padding: 60px 24px;
}
.hero h1 { font-size: 3rem; margin-bottom: 16px; max-width: 800px; }
.hero p { font-size: 1.15rem; opacity: 0.9; margin-bottom: 28px; max-width: 600px; }
.hero-inner { display: flex; flex-direction: column; align-items: center; }
.inner-hero {
    min-height: 40vh; display: flex; align-items: center; justify-content: center;
    background: var(--color-hero-bg); color: var(--color-hero-text);
    text-align: center; padding: 60px 24px;
}
.inner-hero.tall { min-height: 45vh; }
.inner-hero-inner { display: flex; flex-direction: column; align-items: center; }
.inner-hero h1 { font-size: 2.6rem; margin-bottom: 16px; }
.inner-hero p { font-size: 1.1rem; opacity: 0.9; margin-bottom: 20px; max-width: 600px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 20px; }
.hero-badge {
    background: var(--color-accent);
    color: var(--color-badge-text);
    font-family: var(--font-heading);
    font-size: 0.85rem; font-weight: 600;
    padding: 8px 20px;
    border-radius: var(--radius);
}

/* === BUTTONS === */
.btn {
    display: inline-block; font-family: var(--font-heading);
    font-weight: 600; font-size: 0.95rem;
    padding: 12px 28px; border: none; cursor: pointer;
    text-decoration: none; text-align: center;
    border-radius: var(--radius);
    transition: background 0.2s, transform 0.1s;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
    background: var(--color-accent); color: var(--color-text);
}
.btn-primary:hover { background: var(--color-accent-hover); color: var(--color-text); }
.btn-cta {
    background: var(--color-accent); color: var(--color-text);
    font-size: 0.85rem; padding: 10px 22px;
}
.btn-cta:hover { background: var(--color-accent-hover); color: var(--color-text); }
.btn-visit {
    background: var(--color-primary); color: #fff;
    padding: 10px 24px; font-size: 0.9rem;
}
.btn-visit:hover { background: var(--color-primary-light); color: #fff; }

/* === CASINO GRID === */
.casino-grid-section { background: var(--color-bg); }
.casino-grid-section h2 { text-align: left; margin-bottom: 32px; }
.casino-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.casino-card {
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex; flex-direction: column;
    transition: box-shadow 0.2s;
}
.casino-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.card-rank {
    background: var(--color-primary);
    color: #fff; font-family: var(--font-heading);
    font-size: 0.75rem; font-weight: 700;
    padding: 6px 14px;
    display: inline-block;
}
.card-header { padding: 16px 16px 0; display: flex; align-items: center; gap: 12px; }
.card-logo {
    width: 56px; height: 56px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden; flex-shrink: 0;
    background: #fff;
}
.card-logo img { width: 100%; height: 100%; object-fit: contain; }
.card-logo-placeholder {
    width: 100%; height: 100%;
    border: 2px dashed var(--color-border);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.65rem; color: var(--color-text-muted);
}
.card-title-area h3 { font-size: 1.05rem; margin-bottom: 2px; }
.card-stars { color: var(--color-stars); font-size: 0.85rem; letter-spacing: 1px; }
.card-body { padding: 16px; flex: 1; }
.card-bonus {
    font-family: var(--font-heading);
    font-size: 0.95rem; font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 10px;
}
.card-meta { font-size: 0.8rem; color: var(--color-text-muted); line-height: 1.6; }
.card-meta span { display: block; }
.card-badge {
    display: inline-block; font-size: 0.7rem; font-weight: 600;
    background: var(--color-accent);
    color: var(--color-badge-text);
    padding: 3px 10px; margin-top: 8px;
    border-radius: var(--radius);
}
.card-footer {
    padding: 0 16px 16px;
}
.card-footer .btn-cta { width: 100%; display: block; }
.card-terms { font-size: 0.65rem; color: var(--color-text-muted); margin-top: 6px; text-align: center; }

/* === REVIEWS === */
.reviews-section { background: var(--color-surface); }
.reviews-section > .container > h2 { text-align: left; margin-bottom: 40px; }
.review-block {
    margin-bottom: 48px;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 48px;
}
.review-block:last-child { border-bottom: none; }
.review-topbar {
    display: flex; align-items: center; gap: 16px;
    padding: 16px 20px;
    background: var(--color-primary);
    color: #fff;
    margin-bottom: 24px;
    border-radius: var(--radius);
    flex-wrap: wrap;
}
.review-topbar-logo {
    width: 48px; height: 48px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius);
    overflow: hidden; flex-shrink: 0;
    background: #fff;
}
.review-topbar-logo img { width: 100%; height: 100%; object-fit: contain; }
.review-topbar h3 { margin: 0; font-size: 1.3rem; flex: 1; }
.review-topbar-stars { color: var(--color-stars); font-size: 1rem; }
.review-topbar .btn-visit { margin-left: auto; white-space: nowrap; }

.review-screenshots {
    display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
    margin-bottom: 24px;
}
.review-screenshot {
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden; cursor: pointer;
    aspect-ratio: 16/10;
    background: #f0ebe5;
}
.review-screenshot img { width: 100%; height: 100%; object-fit: cover; }
.review-screenshot-placeholder {
    width: 100%; height: 100%;
    border: 2px dashed var(--color-border);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.8rem; color: var(--color-text-muted);
    min-height: 200px;
}

.review-body { margin-bottom: 24px; font-size: 0.95rem; line-height: 1.7; }
.review-body p { margin-bottom: 1rem; }

.review-pros-cons {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
}
.review-pros, .review-cons { padding: 20px; }
.review-pros {
    background: #E8F5E9;
    border-right: 1px solid var(--color-border);
}
.review-cons { background: #FFEBEE; }
.review-pros h4, .review-cons h4 {
    font-family: var(--font-heading);
    font-size: 0.9rem; font-weight: 700;
    margin-bottom: 12px;
}
.review-pros h4 { color: var(--color-success); }
.review-cons h4 { color: var(--color-danger); }
.review-pros ul, .review-cons ul {
    list-style: none; padding: 0;
}
.review-pros li, .review-cons li {
    font-size: 0.85rem; padding: 4px 0 4px 20px; position: relative;
}
.review-pros li::before { content: "✓"; position: absolute; left: 0; color: var(--color-success); font-weight: 700; }
.review-cons li::before { content: "✗"; position: absolute; left: 0; color: var(--color-danger); font-weight: 700; }

/* === FAQ === */
.faq-section { background: var(--color-bg); }
.faq-section h2 { text-align: left; margin-bottom: 32px; }
.faq-item { margin-bottom: 24px; }
.faq-item h3 {
    font-size: 1.1rem; color: var(--color-primary);
    margin-bottom: 8px;
}
.faq-item p { color: var(--color-text-muted); font-size: 0.95rem; }

/* === AUTHOR BOX === */
.author-section { background: var(--color-surface); }
.author-box {
    display: flex; gap: 24px; align-items: flex-start;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 28px;
    background: var(--color-card-bg);
}
.author-avatar {
    width: 80px; height: 80px;
    border-radius: var(--radius);
    overflow: hidden; flex-shrink: 0;
    border: 2px solid var(--color-accent);
}
.author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-info h3 { margin-bottom: 4px; }
.author-info .author-role {
    font-size: 0.85rem; color: var(--color-accent);
    font-weight: 600; margin-bottom: 8px; display: block;
}
.author-info p { font-size: 0.9rem; color: var(--color-text-muted); margin-bottom: 0; }

/* === CONTENT SECTION (plugin injected) === */
.content-section { }
.content-section h2, .content-section h3, .content-section h4 { margin-top: 1.5rem; }
.content-section ul, .content-section ol { margin: 1rem 0; padding-left: 1.5rem; }
.content-section li { margin-bottom: 0.5rem; }
.content-section a { color: var(--color-primary); text-decoration: underline; }
.content-section a u { color: var(--color-danger); }

/* === INNER PAGES === */
.page-content { background: var(--color-surface); }
.page-content .container { max-width: 900px; }
.page-content h2 { margin-top: 2rem; }
.page-content ul, .page-content ol { margin: 1rem 0; padding-left: 1.5rem; }
.page-content li { margin-bottom: 0.4rem; }

/* About page team */
.team-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
    margin-top: 32px;
}
.team-card {
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 24px; text-align: center;
}
.team-avatar {
    width: 100px; height: 100px; margin: 0 auto 12px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 2px solid var(--color-accent);
}
.team-avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-card h3 { font-size: 1.1rem; margin-bottom: 4px; }
.team-card p { font-size: 0.85rem; color: var(--color-text-muted); margin-bottom: 0; }

/* === CONTACT === */
.contact-form-wrap {
    max-width: 600px; margin-top: 32px;
}
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block; font-weight: 600;
    font-size: 0.9rem; margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%; padding: 12px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.95rem;
    background: var(--color-surface);
    transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none; border-color: var(--color-primary);
}
.form-group textarea { min-height: 140px; resize: vertical; }
.contact-info-box {
    margin-top: 40px; padding: 24px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
}
.contact-info-box h3 { margin-bottom: 12px; }
.contact-info-box p { font-size: 0.9rem; color: var(--color-text-muted); margin-bottom: 6px; }
.form-toast {
    display: none; padding: 14px 20px;
    background: var(--color-success);
    color: #fff; font-weight: 600;
    font-size: 0.9rem; margin-bottom: 20px;
    border-radius: var(--radius);
}
.form-toast.show { display: block; }

/* === LIGHTBOX === */
.lightbox-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.85);
    z-index: 9999;
    align-items: center; justify-content: center;
    padding: 24px; cursor: pointer;
}
.lightbox-overlay.active { display: flex; }
.lightbox-overlay img {
    max-width: 95vw; max-height: 90vh;
    object-fit: contain;
    border-radius: var(--radius);
}
.lightbox-close {
    position: absolute; top: 20px; right: 24px;
    color: #fff; font-size: 2rem;
    cursor: pointer; background: none; border: none;
    font-family: var(--font-heading);
}

/* === FOOTER === */
.site-footer {
    background: var(--color-footer-bg);
    color: var(--color-footer-text);
    padding: 40px 0;
    font-size: 0.85rem;
}
.footer-inner { text-align: center; }
.footer-site-name {
    font-family: var(--font-heading);
    font-size: 1.1rem; font-weight: 700;
    color: var(--color-header-text);
    margin-bottom: 12px;
}
.footer-disclaimer {
    max-width: 700px; margin: 12px auto 0;
    font-size: 0.75rem; line-height: 1.6;
    color: var(--color-footer-text); opacity: 0.7;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .casino-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .hamburger { display: block; }
    .main-nav {
        display: none; position: absolute;
        top: 64px; left: 0; right: 0;
        background: var(--color-header-bg);
        border-top: 1px solid rgba(255,255,255,0.1);
        padding: 16px 0;
    }
    .main-nav.open { display: block; }
    .main-nav ul { flex-direction: column; gap: 0; padding: 0 24px; }
    .main-nav li { padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
    .hero h1 { font-size: 2rem; }
    .hero { min-height: 50vh; }
    .inner-hero h1 { font-size: 1.8rem; }
    .review-topbar { flex-direction: column; text-align: center; gap: 10px; }
    .review-topbar .btn-visit { margin-left: 0; }
    .review-screenshots { grid-template-columns: 1fr; }
    .review-pros-cons { grid-template-columns: 1fr; }
    .review-pros { border-right: none; border-bottom: 1px solid var(--color-border); }
    .author-box { flex-direction: column; text-align: center; align-items: center; }
    .team-grid { grid-template-columns: 1fr; }
    .casino-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
}
@media (max-width: 480px) {
    .card-header { flex-direction: column; text-align: center; }
    .hero-badges { flex-direction: column; align-items: center; }
}
