/*
Theme Name: Independent Online Casino Sites
Theme URI: https://independentonlinecasinosites.it.com
Author: Independent Online Casino Sites
Description: Casino affiliate theme with hardcoded casino data, grid, reviews, and hook system.
Version: 1.0.0
Text Domain: nokyc-casino
*/

/* ===== RESET & VARIABLES ===== */
:root {
    --color-primary: #854D0E;
    --color-secondary: #FEFCE8;
    --color-accent: #EAB308;
    --color-bg: #FFFFFF;
    --color-surface: #FFFDF0;
    --color-text: #422006;
    --color-cta: #A16207;
    --color-border: #FEF08A;
    --color-cta-hover: #854D0E;
    --color-star: #EAB308;
    --color-green: #16a34a;
    --color-red: #dc2626;
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --max-width: 1280px;
    --radius: 0px;
}

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

html { scroll-behavior: smooth; }

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

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

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

.container {
    max-width: var(--max-width);
    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(--color-bg);
    border-bottom: 2px solid var(--color-border);
    transition: box-shadow 0.2s;
}

.site-header.scrolled {
    box-shadow: 0 2px 12px rgba(133,77,14,0.08);
}

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

.site-logo {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: -0.5px;
}

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

.main-nav { display: flex; gap: 32px; align-items: center; }

.main-nav a {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text);
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-accent);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-primary);
    transition: all 0.3s;
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

.mobile-nav {
    display: none;
    background: var(--color-bg);
    border-bottom: 2px solid var(--color-border);
    padding: 16px 24px;
}

.mobile-nav.open { display: block; }

.mobile-nav a {
    display: block;
    padding: 12px 0;
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text);
    border-bottom: 1px solid var(--color-border);
}

.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { color: var(--color-primary); }

/* ===== HERO ===== */
.hero {
    background: var(--color-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-bottom: 2px solid var(--color-border);
}

.hero-home { min-height: 60vh; }
.hero-inner { min-height: 40vh; }
.hero-rate { min-height: 45vh; }

.hero-content { max-width: 800px; margin: 0 auto; padding: 48px 24px; }

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 16px;
    color: var(--color-primary);
}

.hero p {
    font-size: 1.15rem;
    margin-bottom: 32px;
    color: var(--color-text);
    opacity: 0.85;
}

.hero-badges {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--color-bg);
    border: 2px solid var(--color-border);
    padding: 8px 18px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-primary);
    border-radius: var(--radius);
}

.btn-cta {
    display: inline-block;
    background: var(--color-cta);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    padding: 14px 36px;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.btn-bonus {
    display: inline-block;
    background: var(--color-accent);
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 10px 24px;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background 0.2s;
}

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

/* ===== CASINO GRID ===== */
.casino-grid-section { background: var(--color-bg); }

.casino-grid-section h2 {
    font-size: 2rem;
    margin-bottom: 32px;
    text-align: left;
}

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

.casino-card {
    background: var(--color-surface);
    border: 2px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.2s;
    display: flex;
    flex-direction: column;
}

.casino-card:hover { border-color: var(--color-accent); }

.card-rank {
    background: var(--color-primary);
    color: var(--color-secondary);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.75rem;
    padding: 4px 12px;
    display: inline-block;
    position: absolute;
    top: 0;
    left: 0;
}

.card-header {
    position: relative;
    padding: 24px 20px 12px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.card-logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border: 1px solid var(--color-border);
    background: #fff;
    flex-shrink: 0;
}

.card-logo-placeholder {
    width: 56px;
    height: 56px;
    border: 2px dashed var(--color-border);
    background: var(--color-bg);
    flex-shrink: 0;
}

.card-info h3 {
    font-size: 1rem;
    margin-bottom: 2px;
}

.card-stars { color: var(--color-star); font-size: 0.9rem; letter-spacing: 1px; }

.card-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--color-green);
    margin-top: 2px;
}

.card-body {
    padding: 0 20px 16px;
    flex: 1;
}

.card-bonus {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.card-meta {
    font-size: 0.8rem;
    color: var(--color-text);
    opacity: 0.7;
    line-height: 1.6;
}

.card-meta span { display: block; }

.card-footer {
    padding: 0 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.card-footer .btn-bonus { text-align: center; width: 100%; }

.card-terms {
    font-size: 0.7rem;
    color: var(--color-text);
    opacity: 0.55;
    text-align: center;
}

/* ===== REVIEWS ===== */
.reviews-section { background: var(--color-surface); }

.reviews-section h2 {
    font-size: 2rem;
    margin-bottom: 40px;
    text-align: left;
}

.review-block {
    margin-bottom: 56px;
    padding-bottom: 56px;
    border-bottom: 2px solid var(--color-border);
}

.review-block:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.review-topbar {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--color-border);
}

.review-topbar-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border: 1px solid var(--color-border);
    background: #fff;
    flex-shrink: 0;
}

.review-topbar h3 {
    font-size: 1.4rem;
    flex: 1;
    min-width: 150px;
}

.review-topbar .card-stars { font-size: 1rem; }

.review-topbar .btn-cta {
    font-size: 0.85rem;
    padding: 10px 24px;
    margin-left: auto;
}

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

.review-screenshot {
    border: 2px solid var(--color-border);
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s;
    aspect-ratio: 16/9;
}

.review-screenshot:hover { border-color: var(--color-accent); }

.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.85rem;
    color: var(--color-text);
    opacity: 0.4;
}

.review-body {
    margin-bottom: 28px;
    font-size: 1rem;
    line-height: 1.8;
}

.review-body h2, .review-body h3, .review-body h4 { margin: 20px 0 10px; }
.review-body p { margin-bottom: 14px; }
.review-body ul, .review-body ol { margin: 0 0 14px 24px; }

.review-proscons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border: 2px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
}

.review-pros, .review-cons { padding: 20px 24px; }

.review-pros {
    background: #f0fdf4;
    border-right: 2px solid var(--color-border);
}

.review-cons { background: #fef2f2; }

.review-pros h4 {
    color: var(--color-green);
    font-size: 0.9rem;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.review-cons h4 {
    color: var(--color-red);
    font-size: 0.9rem;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.review-pros ul, .review-cons ul {
    list-style: none;
    padding: 0;
}

.review-pros li, .review-cons li {
    padding: 6px 0;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.review-pros li:last-child, .review-cons li:last-child { border-bottom: none; }

.review-pros li::before {
    content: "✓ ";
    color: var(--color-green);
    font-weight: 700;
}

.review-cons li::before {
    content: "✗ ";
    color: var(--color-red);
    font-weight: 700;
}

/* ===== FAQ ===== */
.faq-section { background: var(--color-bg); }

.faq-section h2 {
    font-size: 2rem;
    margin-bottom: 32px;
    text-align: left;
}

.faq-item { margin-bottom: 28px; }

.faq-item h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
    color: var(--color-primary);
}

.faq-item p {
    font-size: 0.95rem;
    line-height: 1.7;
    opacity: 0.85;
}

/* ===== AUTHOR BOX ===== */
.author-box-section { background: var(--color-surface); border-top: 2px solid var(--color-border); }

.author-box {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.author-avatar {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 2px solid var(--color-border);
    flex-shrink: 0;
}

.author-info h3 { font-size: 1.1rem; margin-bottom: 4px; }

.author-info .author-title {
    font-size: 0.85rem;
    color: var(--color-cta);
    font-weight: 600;
    margin-bottom: 8px;
}

.author-info p { font-size: 0.9rem; line-height: 1.7; opacity: 0.8; }

/* ===== FOOTER ===== */
.site-footer {
    background: var(--color-primary);
    color: var(--color-secondary);
    padding: 32px 0;
    font-size: 0.85rem;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-brand {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
}

.footer-disclaimer {
    font-size: 0.78rem;
    opacity: 0.7;
    line-height: 1.6;
}

/* ===== INNER PAGES ===== */
.page-content {
    min-height: 50vh;
}

.page-content .container {
    width: 90%;
    max-width: var(--max-width);
}

.page-content h2, .page-content h3, .page-content h4 { margin: 24px 0 12px; }
.page-content p { margin-bottom: 16px; line-height: 1.8; }
.page-content ul, .page-content ol { margin: 0 0 16px 24px; line-height: 1.8; }

/* About page team */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.team-member {
    background: var(--color-surface);
    border: 2px solid var(--color-border);
    padding: 24px;
    text-align: center;
}

.team-member img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    margin: 0 auto 16px;
    border: 2px solid var(--color-border);
}

.team-member h3 { font-size: 1.05rem; margin-bottom: 4px; }
.team-member p { font-size: 0.85rem; opacity: 0.7; }

/* How We Rate criteria */
.criteria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 32px;
}

.criteria-card {
    background: var(--color-surface);
    border: 2px solid var(--color-border);
    padding: 24px;
}

.criteria-card h3 { font-size: 1rem; margin-bottom: 8px; }
.criteria-card p { font-size: 0.9rem; opacity: 0.8; }

/* Contact form */
.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-top: 32px;
}

.contact-form label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 6px;
    color: var(--color-primary);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--color-border);
    background: var(--color-bg);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--color-text);
    margin-bottom: 20px;
    border-radius: var(--radius);
    transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-accent);
}

.contact-form textarea { min-height: 150px; resize: vertical; }

.contact-info-box {
    background: var(--color-surface);
    border: 2px solid var(--color-border);
    padding: 28px;
    height: fit-content;
}

.contact-info-box h3 { font-size: 1.1rem; margin-bottom: 16px; }

.contact-info-item {
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.contact-info-item strong {
    display: block;
    margin-bottom: 2px;
    color: var(--color-primary);
}

/* Toast */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--color-primary);
    color: #fff;
    padding: 16px 28px;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 9999;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s;
    border-radius: var(--radius);
}

.toast.show { opacity: 1; transform: translateY(0); }

/* Lightbox */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.lightbox-overlay.active { opacity: 1; visibility: visible; }

.lightbox-overlay img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border: 4px solid #fff;
}

/* Content sections from plugin */
.content-section {
    background: var(--color-bg);
}

.content-section h2, .content-section h3 { margin: 20px 0 10px; }
.content-section p { margin-bottom: 14px; line-height: 1.8; }

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

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

    .hero h1 { font-size: 1.8rem; }
    .hero p { font-size: 1rem; }
    .hero-home { min-height: 50vh; }

    .casino-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }

    .card-header { padding: 16px 14px 8px; gap: 10px; }
    .card-logo, .card-logo-placeholder { width: 40px; height: 40px; }
    .card-info h3 { font-size: 0.85rem; }
    .card-body { padding: 0 14px 12px; }
    .card-bonus { font-size: 0.9rem; }
    .card-meta { font-size: 0.75rem; }
    .card-footer { padding: 0 14px 14px; }

    .review-topbar { flex-direction: column; align-items: flex-start; }
    .review-topbar .btn-cta { margin-left: 0; width: 100%; text-align: center; }
    .review-screenshots { grid-template-columns: 1fr; }
    .review-proscons { grid-template-columns: 1fr; }
    .review-pros { border-right: none; border-bottom: 2px solid var(--color-border); }

    .contact-grid { grid-template-columns: 1fr; }
    .author-box { flex-direction: column; }

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

@media (max-width: 480px) {
    .casino-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .card-header { padding: 12px 10px 6px; }
    .card-body { padding: 0 10px 10px; }
    .card-footer { padding: 0 10px 12px; }
    .hero h1 { font-size: 1.5rem; }
    .hero-badges { flex-direction: column; align-items: center; }
}
