/*
Theme Name: Independent Casinos UK
Theme URI: https://independentcasinosuk.cn.com
Author: Independent Casinos UK
Author URI: https://independentcasinosuk.cn.com
Description: A professional casino affiliate theme for Independent Casinos UK.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: independent-casinos-uk
*/

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

:root {
    --color-primary: #475569;
    --color-secondary: #F8FAFC;
    --color-accent: #64748B;
    --color-bg: #FFFFFF;
    --color-surface: #F1F5F9;
    --color-text: #0F172A;
    --color-cta: #334155;
    --color-border: #CBD5E1;
    --color-success: #16a34a;
    --color-danger: #dc2626;
    --color-star: #f59e0b;
    --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);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; }
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

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

.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-bg);
    border-bottom: 2px solid var(--color-border);
    padding: 0;
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}
.site-logo {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.site-logo a { color: inherit; }
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 32px;
}
.main-nav a {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s;
}
.main-nav a:hover { border-bottom-color: var(--color-cta); color: var(--color-cta); }

.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;
}
.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); }

/* === HERO === */
.hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--color-primary);
    color: #fff;
    padding: 60px 24px;
}
.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 16px;
    color: #fff;
}
.hero p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255,255,255,0.85);
    margin-bottom: 32px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.hero-cta {
    display: inline-block;
    background: var(--color-cta);
    color: #fff;
    padding: 14px 40px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: var(--radius);
    transition: background 0.2s;
}
.hero-cta:hover { background: var(--color-text); color: #fff; }

.inner-hero {
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--color-primary);
    color: #fff;
    padding: 60px 24px;
}
.inner-hero.tall { min-height: 45vh; }
.inner-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 24px;
    color: #fff;
}

.hero-badges {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 16px;
}
.hero-badge {
    background: rgba(255,255,255,0.15);
    color: #fff;
    padding: 8px 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: var(--radius);
}

/* === CASINO GRID === */
.casino-grid-section { background: var(--color-surface); }
.casino-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.casino-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.casino-card-header {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-secondary);
}
.casino-rank {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    min-width: 32px;
}
.casino-card-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: var(--radius);
}
.casino-card-name {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
}
.casino-card-badge {
    font-size: 0.7rem;
    color: var(--color-success);
    font-weight: 600;
}
.casino-card-body { padding: 20px; flex: 1; }
.casino-stars { color: var(--color-star); font-size: 0.9rem; margin-bottom: 8px; }
.casino-bonus {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 12px;
    color: var(--color-text);
}
.casino-meta { font-size: 0.8rem; color: var(--color-accent); margin-bottom: 4px; }
.casino-card-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--color-border);
    text-align: center;
}
.btn-cta {
    display: inline-block;
    width: 100%;
    padding: 12px 24px;
    background: var(--color-cta);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: var(--radius);
    transition: background 0.2s;
    cursor: pointer;
}
.btn-cta:hover { background: var(--color-text); color: #fff; }
.casino-terms { font-size: 0.7rem; color: var(--color-accent); margin-top: 8px; text-align: center; }

/* === REVIEW BLOCKS === */
.reviews-section { background: var(--color-bg); }
.reviews-heading { margin-bottom: 40px; }
.review-block { margin-bottom: 60px; border-bottom: 2px solid var(--color-border); padding-bottom: 60px; }
.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(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
}
.review-topbar-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: var(--radius);
}
.review-topbar-info { flex: 1; }
.review-topbar-info h3 { margin-bottom: 4px; }
.review-topbar-stars { color: var(--color-star); font-size: 0.9rem; }
.review-topbar-cta {
    display: inline-block;
    padding: 10px 24px;
    background: var(--color-cta);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--radius);
}
.review-topbar-cta:hover { background: var(--color-text); color: #fff; }

.review-screenshots {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}
.review-screenshot-wrap {
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 16/10;
}
.review-screenshot-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.review-screenshot-wrap:hover img { transform: scale(1.03); }

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

.pros-cons-table {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 16px;
}
.pros-col, .cons-col { padding: 20px; }
.pros-col { background: #f0fdf4; border-right: 1px solid var(--color-border); }
.cons-col { background: #fef2f2; }
.pros-col h4 { color: var(--color-success); margin-bottom: 12px; }
.cons-col h4 { color: var(--color-danger); margin-bottom: 12px; }
.pros-col ul, .cons-col ul { list-style: none; }
.pros-col li, .cons-col li { padding: 4px 0; font-size: 0.9rem; }
.pros-col li::before { content: "✓ "; color: var(--color-success); font-weight: 700; }
.cons-col li::before { content: "✗ "; color: var(--color-danger); font-weight: 700; }

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

/* === FAQ === */
.faq-section { background: var(--color-surface); }
.faq-item { margin-bottom: 24px; }
.faq-item h4 { margin-bottom: 8px; color: var(--color-primary); }
.faq-item p { color: var(--color-accent); }

/* === AUTHOR BOX === */
.author-box {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    padding: 32px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
}
.author-box img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius);
}
.author-box-info h4 { margin-bottom: 4px; }
.author-box-info p { font-size: 0.9rem; color: var(--color-accent); }

/* === FOOTER === */
.site-footer {
    background: var(--color-text);
    color: rgba(255,255,255,0.7);
    padding: 40px 0;
    font-size: 0.85rem;
}
.site-footer p { margin-bottom: 8px; }
.footer-disclaimer {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
    margin-top: 12px;
    line-height: 1.6;
}

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

/* === TEAM GRID === */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin: 40px 0;
}
.team-member {
    text-align: center;
    padding: 24px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
}
.team-member img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: var(--radius);
    margin: 0 auto 16px;
}
.team-member h4 { margin-bottom: 4px; }
.team-member p { font-size: 0.85rem; color: var(--color-accent); }

/* === CONTACT FORM === */
.contact-form { margin-bottom: 40px; }
.contact-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 0.9rem;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.95rem;
    background: var(--color-bg);
    margin-bottom: 20px;
    transition: border-color 0.2s;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}
.contact-form textarea { min-height: 150px; resize: vertical; }
.contact-form button { border: none; }

.contact-info-box {
    padding: 32px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
}
.contact-info-box h3 { margin-bottom: 16px; }
.contact-info-box p { margin-bottom: 8px; font-size: 0.9rem; color: var(--color-accent); }

.toast-notification {
    display: none;
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--color-success);
    color: #fff;
    padding: 16px 32px;
    font-weight: 600;
    border-radius: var(--radius);
    z-index: 9999;
    animation: slideIn 0.3s;
}
.toast-notification.show { display: block; }
@keyframes slideIn { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* === CONTENT SECTIONS (from plugin) === */
.content-section { background: var(--color-bg); }
.content-section h2 { margin-bottom: 16px; margin-top: 32px; }
.content-section h3 { margin-bottom: 12px; margin-top: 24px; }
.content-section p { margin-bottom: 16px; 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; position: absolute; top: 70px; left: 0; right: 0; background: var(--color-bg); border-bottom: 2px solid var(--color-border); padding: 16px 24px; }
    .main-nav.active { display: block; }
    .main-nav ul { flex-direction: column; gap: 0; }
    .main-nav li { border-bottom: 1px solid var(--color-border); }
    .main-nav a { display: block; padding: 12px 0; }
    .hamburger { display: block; }
    .casino-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .hero { min-height: 50vh; }
    .review-topbar { flex-direction: column; text-align: left; }
    .review-screenshots { grid-template-columns: 1fr; }
    .pros-cons-table { grid-template-columns: 1fr; }
    .pros-col { border-right: none; border-bottom: 1px solid var(--color-border); }
    .author-box { flex-direction: column; }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
}
@media (max-width: 480px) {
    .casino-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .casino-card-header { padding: 12px; gap: 8px; }
    .casino-card-body { padding: 12px; }
    .casino-card-footer { padding: 12px; }
    .casino-card-logo { width: 36px; height: 36px; }
    .casino-rank { font-size: 1.1rem; }
    .casino-card-name { font-size: 0.85rem; }
    .casino-bonus { font-size: 0.9rem; }
    .casino-meta { font-size: 0.75rem; }
    .container { padding: 0 16px; }
}
