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

/* ── RESET & VARIABLES ──────────────────────────── */
: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: #F59E0B;
    --color-pros: #166534;
    --color-cons: #DC2626;
    --max-width: 1280px;
    --font-body: 'Inter', sans-serif;
    --font-heading: 'Space Grotesk', sans-serif;
}

*, *::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;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-primary);
    text-decoration: none;
}

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

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

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

.btn-cta {
    display: inline-block;
    background: var(--color-cta);
    color: #FFFFFF;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 15px;
    padding: 12px 28px;
    border: none;
    border-radius: 0;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.2s ease, transform 0.15s ease;
    text-align: center;
}

.btn-cta:hover {
    background: var(--color-primary);
    color: #FFFFFF;
    transform: translateY(-1px);
}

.btn-cta-outline {
    display: inline-block;
    background: transparent;
    color: #FFFFFF;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 15px;
    padding: 12px 28px;
    border: 2px solid #FFFFFF;
    border-radius: 0;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.2s ease, color 0.2s ease;
    text-align: center;
}

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

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

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

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

.site-logo span {
    color: var(--color-accent);
}

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

.main-nav a {
    color: #FFFFFF;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s ease;
}

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

.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: all 0.3s ease;
}

.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);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 80px,
        rgba(255,255,255,0.03) 80px,
        rgba(255,255,255,0.03) 81px
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 40px 24px;
    max-width: 800px;
}

.hero h1 {
    font-size: 48px;
    color: #FFFFFF;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.hero h1 span {
    color: var(--color-accent);
}

.hero p {
    font-size: 18px;
    color: rgba(255,255,255,0.85);
    margin-bottom: 32px;
    line-height: 1.6;
}

/* Inner hero for secondary pages */
.hero-inner {
    min-height: 40vh;
}

.hero-inner.hero-howwerate {
    min-height: 45vh;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 0;
    padding: 10px 20px;
    color: #FFFFFF;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
}

.hero-badge svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

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

.casino-grid-section .section-heading {
    text-align: left;
    margin-bottom: 40px;
}

.casino-grid-section .section-heading h2 {
    font-size: 32px;
    margin-bottom: 8px;
}

.casino-grid-section .section-heading p {
    color: var(--color-text-light);
    font-size: 16px;
}

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

.casino-card {
    background: var(--color-bg);
    border: 2px solid var(--color-border);
    border-radius: 0;
    overflow: hidden;
    transition: border-color 0.2s ease, transform 0.15s ease;
    position: relative;
}

.casino-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-2px);
}

.casino-card-rank {
    position: absolute;
    top: 0;
    left: 0;
    background: var(--color-primary);
    color: #FFFFFF;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 13px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.casino-card-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--color-surface);
    color: var(--color-primary);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 0;
    z-index: 2;
}

.casino-card-logo {
    width: 100%;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-surface);
    padding: 16px;
    border-bottom: 1px solid var(--color-border);
}

.casino-card-logo img {
    max-height: 68px;
    max-width: 80%;
    object-fit: contain;
}

.casino-card-logo .placeholder-logo {
    width: 80%;
    height: 68px;
    border: 2px dashed var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-light);
    font-size: 12px;
}

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

.casino-card-name {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.casino-card-stars {
    display: flex;
    align-items: center;
    gap: 3px;
    margin-bottom: 12px;
}

.casino-card-stars .star {
    color: var(--color-star);
    font-size: 16px;
}

.casino-card-stars .rating-num {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-text);
    margin-left: 6px;
}

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

.casino-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.casino-card-meta-tag {
    background: var(--color-surface);
    color: var(--color-text);
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 0;
    font-weight: 500;
}

.casino-card-cta {
    display: block;
    width: 100%;
}

.casino-card-terms {
    display: block;
    text-align: center;
    font-size: 11px;
    color: var(--color-text-light);
    margin-top: 8px;
}

/* ── REVIEW BLOCKS ───────────────────────────────── */
.reviews-section {
    background: var(--color-bg);
}

.reviews-section .section-heading {
    text-align: left;
    margin-bottom: 48px;
}

.reviews-section .section-heading h2 {
    font-size: 32px;
    margin-bottom: 8px;
}

.reviews-section .section-heading p {
    color: var(--color-text-light);
}

.review-block {
    margin-bottom: 64px;
    padding-bottom: 64px;
    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;
    flex-wrap: wrap;
    margin-bottom: 32px;
    padding: 20px;
    background: var(--color-surface);
    border: 2px solid var(--color-border);
    border-radius: 0;
}

.review-topbar-logo {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg);
    padding: 8px;
    border: 1px solid var(--color-border);
}

.review-topbar-logo img {
    max-width: 100%;
    max-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 .stars {
    display: flex;
    align-items: center;
    gap: 3px;
}

.review-topbar-info .stars .star {
    color: var(--color-star);
    font-size: 18px;
}

.review-topbar-info .stars .rating-num {
    margin-left: 6px;
    font-weight: 700;
    font-size: 15px;
}

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

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

.review-screenshot {
    cursor: pointer;
    overflow: hidden;
    border: 2px solid var(--color-border);
    border-radius: 0;
    transition: border-color 0.2s ease;
}

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

.review-screenshot img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.review-screenshot .placeholder-screenshot {
    width: 100%;
    height: 220px;
    border: 2px dashed var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-light);
    font-size: 13px;
}

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

.review-body p {
    margin-bottom: 16px;
}

.review-body h2,
.review-body h3,
.review-body h4 {
    margin-top: 24px;
    margin-bottom: 12px;
}

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

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

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

.review-pros h4 {
    color: var(--color-pros);
    font-family: var(--font-heading);
    font-size: 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.review-cons h4 {
    color: var(--color-cons);
    font-family: var(--font-heading);
    font-size: 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.review-pros li,
.review-cons li {
    padding: 8px 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 14px;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

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

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

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

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

.faq-section .section-heading {
    text-align: left;
    margin-bottom: 40px;
}

.faq-section .section-heading h2 {
    font-size: 32px;
    margin-bottom: 8px;
}

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

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

.faq-item p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--color-text);
}

/* ── AUTHOR BOX ──────────────────────────────────── */
.author-box-section {
    background: var(--color-bg);
}

.author-box {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    padding: 32px;
    background: var(--color-surface);
    border: 2px solid var(--color-border);
    border-radius: 0;
}

.author-box-avatar {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    overflow: hidden;
    border: 2px solid var(--color-border);
}

.author-box-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-box-info h4 {
    font-size: 18px;
    color: var(--color-primary);
    margin-bottom: 4px;
}

.author-box-info .author-role {
    font-size: 13px;
    color: var(--color-accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.author-box-info p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-text-light);
}

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

.site-footer .footer-logo {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 16px;
}

.site-footer .footer-logo span {
    color: var(--color-accent);
}

.site-footer .footer-copy {
    font-size: 13px;
    margin-bottom: 16px;
}

.site-footer .footer-disclaimer {
    font-size: 12px;
    line-height: 1.6;
    color: rgba(255,255,255,0.5);
    max-width: 800px;
}

/* ── 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;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #FFFFFF;
    font-size: 40px;
    cursor: pointer;
    font-weight: 300;
    line-height: 1;
    z-index: 10000;
}

/* ── CONTENT SECTIONS (from plugin) ──────────────── */
.content-section {
    background: var(--color-bg);
}

.content-section .content-inner {
    font-size: 16px;
    line-height: 1.8;
}

.content-section .content-inner h2 {
    font-size: 28px;
    margin-bottom: 16px;
    margin-top: 32px;
}

.content-section .content-inner h3 {
    font-size: 22px;
    margin-bottom: 12px;
    margin-top: 24px;
}

.content-section .content-inner p {
    margin-bottom: 16px;
}

.content-section .content-inner ul,
.content-section .content-inner ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

/* ── PAGE CONTENT ────────────────────────────────── */
.page-content {
    font-size: 16px;
    line-height: 1.8;
}

.page-content h2 {
    font-size: 28px;
    margin-bottom: 16px;
    margin-top: 32px;
}

.page-content h3 {
    font-size: 22px;
    margin-bottom: 12px;
    margin-top: 24px;
}

.page-content p {
    margin-bottom: 16px;
}

.page-content ul,
.page-content ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

/* ── ABOUT US PAGE ───────────────────────────────── */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 48px;
}

.team-card {
    background: var(--color-surface);
    border: 2px solid var(--color-border);
    border-radius: 0;
    overflow: hidden;
    text-align: center;
    padding: 32px 24px;
}

.team-card-avatar {
    width: 100px;
    height: 100px;
    margin: 0 auto 16px;
    overflow: hidden;
    border: 2px solid var(--color-border);
}

.team-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card h3 {
    font-size: 18px;
    margin-bottom: 4px;
}

.team-card .team-role {
    font-size: 13px;
    color: var(--color-accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.team-card p {
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 1.6;
}

/* ── CONTACT FORM ────────────────────────────────── */
.contact-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.contact-form-wrap {
    background: var(--color-surface);
    border: 2px solid var(--color-border);
    padding: 40px;
}

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

.contact-form label {
    display: block;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    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);
    border-radius: 0;
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--color-text);
    background: var(--color-bg);
    transition: border-color 0.2s ease;
}

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

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

.contact-info-box {
    background: var(--color-primary);
    padding: 40px;
    color: #FFFFFF;
}

.contact-info-box h3 {
    color: #FFFFFF;
    font-size: 20px;
    margin-bottom: 24px;
}

.contact-info-item {
    margin-bottom: 24px;
}

.contact-info-item h4 {
    color: var(--color-accent);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.contact-info-item p {
    font-size: 15px;
    color: rgba(255,255,255,0.85);
}

/* Toast notification */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--color-primary);
    color: #FFFFFF;
    padding: 16px 28px;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    z-index: 9999;
    transform: translateY(120%);
    transition: transform 0.3s ease;
    border-radius: 0;
}

.toast.visible {
    transform: translateY(0);
}

/* ── HOW WE RATE ─────────────────────────────────── */
.criteria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 48px;
}

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

.criteria-card-icon {
    width: 48px;
    height: 48px;
    background: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: #FFFFFF;
    font-size: 22px;
}

.criteria-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.criteria-card p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-text-light);
}

/* ── MOBILE NAV ──────────────────────────────────── */
.mobile-nav {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--color-primary);
    border-top: 1px solid rgba(255,255,255,0.1);
    z-index: 999;
    padding: 16px 0;
}

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

.mobile-nav a {
    display: block;
    color: #FFFFFF;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    padding: 12px 24px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.mobile-nav a:hover {
    background: rgba(255,255,255,0.05);
}

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

    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

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

    .hamburger {
        display: block;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero p {
        font-size: 16px;
    }

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

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

    .casino-card-name {
        font-size: 15px;
    }

    .casino-card-bonus {
        font-size: 13px;
    }

    .review-topbar {
        flex-direction: column;
        text-align: left;
        align-items: flex-start;
    }

    .review-topbar-cta {
        margin-left: 0;
        width: 100%;
    }

    .review-topbar-cta .btn-cta {
        width: 100%;
    }

    .review-screenshots {
        grid-template-columns: 1fr;
    }

    .review-pros-cons {
        grid-template-columns: 1fr;
    }

    .review-pros {
        border-right: none;
        border-bottom: 2px solid var(--color-border);
    }

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

    .hero-inner {
        min-height: 32vh;
    }

    .author-box {
        flex-direction: column;
    }

    .contact-form-wrap {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .casino-card-logo {
        height: 80px;
    }

    .casino-card-meta-tag {
        font-size: 11px;
        padding: 3px 8px;
    }

    .hero h1 {
        font-size: 28px;
    }
}
