/*
Theme Name: Safe Non Gamstop Casinos
Theme URI: https://safenongamstopcasinos.org.uk
Author: Safe Non Gamstop Casinos Team
Description: A professional casino affiliate theme for safenongamstopcasinos.org.uk
Version: 1.0.0
Text Domain: safe-non-gamstop-casinos
*/

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

:root {
    --color-primary: #166534;
    --color-secondary: #F0FDF4;
    --color-accent: #22C55E;
    --color-bg: #FFFFFF;
    --color-surface: #F7FEE7;
    --color-text: #064E3B;
    --color-cta: #15803D;
    --color-border: #DCFCE7;
    --color-text-light: #4B5563;
    --color-star: #FBBF24;
    --color-pros: #166534;
    --color-cons: #DC2626;
    --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;
}

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

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

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

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

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    max-width: var(--max-width);
    margin: 0 auto;
    height: 70px;
}

.site-branding a {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: -0.5px;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 0;
}

.main-nav a {
    display: block;
    padding: 0 20px;
    color: #FFFFFF;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 70px;
    transition: background 0.2s;
}

.main-nav a:hover {
    background: rgba(255,255,255,0.1);
    color: #FFFFFF;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #FFFFFF;
    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 {
    background: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
    position: relative;
}

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

.hero-content { max-width: 800px; width: 100%; }

.hero h1 {
    font-size: 2.8rem;
    color: #FFFFFF;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 30px;
    line-height: 1.8;
}

.hero-badges {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 25px;
}

.hero-badge {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.25);
    color: #FFFFFF;
    padding: 10px 24px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: var(--font-heading);
    border-radius: var(--radius);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 14px 36px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.2s, transform 0.1s;
}

.btn:active { transform: scale(0.98); }

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

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

.btn-outline {
    background: transparent;
    color: #FFFFFF;
    border: 2px solid #FFFFFF;
}

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

.btn-hero-cta {
    background: var(--color-accent);
    color: #FFFFFF;
    font-size: 1rem;
    padding: 16px 48px;
}

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

/* ===== SECTION SPACING ===== */
.section-spacing { padding: 70px 0; }
.section-bg-surface { background: var(--color-surface); }
.section-bg-secondary { background: var(--color-secondary); }
.section-bg-white { background: var(--color-bg); }

.section-heading {
    font-size: 2rem;
    margin-bottom: 15px;
    text-align: left;
}

.section-subheading {
    font-size: 1.05rem;
    color: var(--color-text-light);
    margin-bottom: 40px;
    text-align: left;
}

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

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

.casino-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

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

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

.casino-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: var(--radius);
}

.casino-card-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-primary);
    font-family: var(--font-heading);
}

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

.casino-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.casino-stars {
    color: var(--color-star);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.casino-stars .star-empty { color: #D1D5DB; }

.casino-bonus {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 12px;
    font-family: var(--font-heading);
}

.casino-meta {
    font-size: 0.8rem;
    color: var(--color-text-light);
    margin-bottom: 5px;
}

.casino-meta span { font-weight: 600; color: var(--color-text); }

.casino-card-footer {
    padding: 15px 20px;
    border-top: 1px solid var(--color-border);
    margin-top: auto;
}

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

.casino-terms {
    font-size: 0.7rem;
    color: #9CA3AF;
    margin-top: 8px;
    text-align: center;
}

/* ===== REVIEW BLOCKS ===== */
.review-block {
    margin-bottom: 60px;
    padding-bottom: 60px;
    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: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    padding: 20px;
    background: var(--color-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
}

.review-topbar .casino-logo {
    width: 60px;
    height: 60px;
}

.review-topbar-info { flex: 1; min-width: 200px; }

.review-topbar-info h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.review-topbar-cta {
    margin-left: auto;
}

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

.review-screenshot-wrap {
    border: 1px solid var(--color-border);
    overflow: hidden;
    cursor: pointer;
    border-radius: var(--radius);
    aspect-ratio: 16/9;
}

.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: 30px;
    font-size: 1rem;
    line-height: 1.8;
    width: 90%;
}

.review-body p { margin-bottom: 15px; }
.review-body h2, .review-body h3 { margin: 25px 0 10px; }

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

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

.review-pros {
    background: var(--color-secondary);
    border-right: 1px solid var(--color-border);
}

.review-cons {
    background: #FEF2F2;
}

.review-pros h4 {
    color: var(--color-pros);
    margin-bottom: 12px;
    font-size: 1rem;
    font-family: var(--font-heading);
}

.review-cons h4 {
    color: var(--color-cons);
    margin-bottom: 12px;
    font-size: 1rem;
    font-family: var(--font-heading);
}

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

.review-pros li, .review-cons li {
    padding: 6px 0 6px 22px;
    position: relative;
    font-size: 0.9rem;
}

.review-pros li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-pros);
    font-weight: 700;
}

.review-cons li::before {
    content: '✗';
    position: absolute;
    left: 0;
    color: var(--color-cons);
    font-weight: 700;
}

/* ===== FAQ ===== */
.faq-item {
    margin-bottom: 30px;
}

.faq-item h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.faq-item p {
    font-size: 0.95rem;
    color: var(--color-text-light);
    line-height: 1.8;
}

/* ===== AUTHOR BOX ===== */
.author-box {
    display: flex;
    gap: 25px;
    align-items: flex-start;
    padding: 30px;
    background: var(--color-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
}

.author-img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    flex-shrink: 0;
    border-radius: var(--radius);
}

.author-info h4 {
    font-size: 1.1rem;
    margin-bottom: 3px;
}

.author-role {
    font-size: 0.8rem;
    color: var(--color-accent);
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
}

.author-info p {
    font-size: 0.9rem;
    color: var(--color-text-light);
    line-height: 1.7;
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--color-primary);
    color: rgba(255,255,255,0.7);
    padding: 40px 0;
    text-align: left;
}

.footer-name {
    font-family: var(--font-heading);
    font-weight: 700;
    color: #FFFFFF;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.footer-copy {
    font-size: 0.8rem;
    margin-bottom: 15px;
}

.footer-disclaimer {
    font-size: 0.75rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.5);
    max-width: 800px;
}

/* ===== CONTACT FORM ===== */
.contact-form { width: 100%; }

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group 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);
    color: var(--color-text);
    transition: border-color 0.2s;
}

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

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

.contact-info-box {
    background: var(--color-secondary);
    border: 1px solid var(--color-border);
    padding: 30px;
    border-radius: var(--radius);
    margin-top: 40px;
}

.contact-info-box h3 { margin-bottom: 15px; font-size: 1.1rem; }
.contact-info-box p { font-size: 0.9rem; color: var(--color-text-light); margin-bottom: 8px; }

.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--color-cta);
    color: #FFFFFF;
    padding: 16px 30px;
    font-weight: 600;
    font-size: 0.9rem;
    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;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-overlay img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
}

/* ===== CONTENT SECTIONS ===== */
.content-section {
    width: 100%;
}

.content-section h2 { font-size: 1.6rem; margin-bottom: 15px; }
.content-section h3 { font-size: 1.3rem; margin-bottom: 10px; }
.content-section p { margin-bottom: 15px; line-height: 1.8; }
.content-section ul, .content-section ol { margin: 0 0 15px 20px; }
.content-section li { margin-bottom: 5px; }

/* ===== PAGE CONTENT ===== */
.page-content {
    width: 90%;
}

.page-content p { margin-bottom: 15px; line-height: 1.8; }
.page-content h2 { font-size: 1.6rem; margin: 30px 0 15px; }
.page-content h3 { font-size: 1.3rem; margin: 25px 0 10px; }
.page-content ul, .page-content ol { margin: 0 0 15px 20px; }
.page-content li { margin-bottom: 5px; }
.page-content img { margin: 20px 0; }

/* ===== TEAM GRID ===== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.team-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    padding: 25px;
    text-align: center;
    border-radius: var(--radius);
}

.team-card img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    margin: 0 auto 15px;
    border-radius: var(--radius);
}

.team-card h4 { font-size: 1rem; margin-bottom: 3px; }
.team-card p { font-size: 0.85rem; color: var(--color-text-light); }

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

@media (max-width: 768px) {
    .hamburger { display: block; }
    .main-nav {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--color-primary);
        border-top: 1px solid rgba(255,255,255,0.1);
    }
    .main-nav.active { display: block; }
    .main-nav ul { flex-direction: column; }
    .main-nav a {
        line-height: 50px;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    .casino-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .hero h1 { font-size: 1.8rem; }
    .hero-home { min-height: 50vh; }
    .review-pros-cons { grid-template-columns: 1fr; }
    .review-pros { border-right: none; border-bottom: 1px solid var(--color-border); }
    .review-topbar { flex-direction: column; text-align: left; }
    .review-topbar-cta { margin-left: 0; }
    .author-box { flex-direction: column; }
    .review-body { width: 100%; }
    .page-content { width: 100%; }
    .section-spacing { padding: 50px 0; }
}

@media (max-width: 480px) {
    .casino-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .casino-card-header { padding: 12px; gap: 8px; }
    .casino-logo { width: 36px; height: 36px; }
    .casino-card-body { padding: 12px; }
    .casino-card-name { font-size: 0.85rem; }
    .casino-bonus { font-size: 0.85rem; }
    .casino-meta { font-size: 0.75rem; }
    .casino-rank { width: 24px; height: 24px; font-size: 0.75rem; }
    .review-screenshots { grid-template-columns: 1fr; }
}
