/*
Theme Name: European Casinos Theme
Theme URI: https://europeancasinosinuk.it.com
Description: Casino affiliate theme for European Casinos For UK Players
Version: 1.0.0
Author: European Casinos Team
Text Domain: european-casinos
*/

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', sans-serif;
    color: #064E3B;
    background: #FFFFFF;
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}
a { color: #059669; text-decoration: none; }
a:hover { color: #10B981; }
img { max-width: 100%; height: auto; display: block; }

/* === UTILITY === */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; width: 100%; }
.section-spacing { padding: 64px 0; }
.text-center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* === BUTTONS === */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 15px;
    border: none;
    border-radius: 0;
    cursor: pointer;
    text-align: center;
    transition: background 0.2s, transform 0.1s;
    text-decoration: none;
}
.btn-primary { background: #059669; color: #fff; }
.btn-primary:hover { background: #10B981; color: #fff; transform: translateY(-1px); }
.btn-secondary { background: #ECFDF5; color: #059669; border: 2px solid #D1FAE5; }
.btn-secondary:hover { background: #D1FAE5; color: #059669; }
.btn-sm { padding: 10px 20px; font-size: 13px; }

/* === HEADER === */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #FFFFFF;
    border-bottom: 2px solid #D1FAE5;
    padding: 0 24px;
}
.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.site-logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #059669;
    text-decoration: none;
}
.site-logo:hover { color: #10B981; }
.main-nav { display: flex; gap: 32px; align-items: center; }
.main-nav a {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #064E3B;
    text-decoration: none;
    padding: 4px 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s, color 0.2s;
}
.main-nav a:hover, .main-nav a.active { color: #059669; border-bottom-color: #059669; }
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #064E3B;
    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); }

/* === MOBILE NAV === */
@media (max-width: 768px) {
    .hamburger { display: block; }
    .main-nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: #FFFFFF;
        flex-direction: column;
        padding: 16px 24px;
        gap: 0;
        border-bottom: 2px solid #D1FAE5;
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    }
    .main-nav.open { display: flex; }
    .main-nav a { padding: 12px 0; border-bottom: 1px solid #ECFDF5; }
}

/* === HERO === */
.hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F0FDF4;
    text-align: center;
    padding: 80px 24px;
}
.hero h1 {
    font-size: clamp(32px, 5vw, 56px);
    color: #064E3B;
    margin-bottom: 16px;
}
.hero p {
    font-size: clamp(16px, 2vw, 20px);
    color: #064E3B;
    opacity: 0.8;
    margin-bottom: 32px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

/* === INNER HERO === */
.inner-hero {
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F0FDF4;
    text-align: center;
    padding: 60px 24px;
}
.inner-hero.tall { min-height: 45vh; }
.inner-hero h1 {
    font-size: clamp(28px, 4vw, 48px);
    color: #064E3B;
    margin-bottom: 16px;
}
.inner-hero p {
    font-size: 18px;
    color: #064E3B;
    opacity: 0.8;
    margin-bottom: 24px;
}
.badge-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 16px; }
.badge {
    display: inline-block;
    background: #FFFFFF;
    border: 2px solid #D1FAE5;
    padding: 8px 20px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: #059669;
    border-radius: 0;
}

/* === CASINO GRID === */
.casino-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.casino-card {
    background: #FFFFFF;
    border: 2px solid #D1FAE5;
    border-radius: 0;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.casino-card:hover { border-color: #10B981; box-shadow: 0 4px 16px rgba(5,150,105,0.1); }
.casino-card-header {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid #ECFDF5;
}
.casino-card-rank {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #059669;
    min-width: 36px;
}
.casino-card-logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border: 1px solid #D1FAE5;
    border-radius: 0;
    flex-shrink: 0;
}
.casino-card-logo-placeholder {
    width: 56px;
    height: 56px;
    border: 2px dashed #D1FAE5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #aaa;
    flex-shrink: 0;
}
.casino-card-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #064E3B;
}
.casino-card-stars { color: #059669; font-size: 14px; }
.casino-card-badge {
    display: inline-block;
    background: #ECFDF5;
    color: #059669;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 0;
    margin-top: 4px;
}
.casino-card-body { padding: 20px; }
.casino-card-bonus {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #064E3B;
    margin-bottom: 12px;
}
.casino-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}
.casino-card-meta span {
    background: #F0FDF4;
    padding: 4px 10px;
    font-size: 12px;
    color: #064E3B;
    border: 1px solid #D1FAE5;
}
.casino-card-footer {
    padding: 0 20px 20px;
}
.casino-card-footer .btn { width: 100%; display: block; text-align: center; }
.casino-card-terms {
    font-size: 11px;
    color: #064E3B;
    opacity: 0.6;
    margin-top: 8px;
    text-align: left;
}

@media (max-width: 1024px) {
    .casino-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .casino-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .casino-card-header { padding: 12px; gap: 8px; }
    .casino-card-rank { font-size: 20px; }
    .casino-card-logo { width: 40px; height: 40px; }
    .casino-card-name { font-size: 14px; }
    .casino-card-body { padding: 12px; }
    .casino-card-bonus { font-size: 15px; }
    .casino-card-footer { padding: 0 12px 12px; }
    .btn { padding: 10px 16px; font-size: 13px; }
}

/* === REVIEW BLOCKS === */
.review-block {
    margin-bottom: 64px;
    padding-bottom: 64px;
    border-bottom: 2px solid #D1FAE5;
}
.review-block:last-child { border-bottom: none; }
.review-topbar {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.review-topbar-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border: 1px solid #D1FAE5;
    flex-shrink: 0;
}
.review-topbar-info { flex: 1; min-width: 200px; }
.review-topbar-info h3 {
    font-size: 24px;
    color: #064E3B;
    margin-bottom: 4px;
}
.review-topbar-stars { color: #059669; font-size: 16px; }
.review-topbar .btn { margin-left: auto; white-space: nowrap; }
.review-screenshots {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}
.review-screenshot {
    cursor: pointer;
    border: 2px solid #D1FAE5;
    overflow: hidden;
    border-radius: 0;
    transition: border-color 0.2s;
}
.review-screenshot:hover { border-color: #10B981; }
.review-screenshot img { width: 100%; height: 220px; object-fit: cover; }
.review-screenshot-placeholder {
    width: 100%;
    height: 220px;
    border: 2px dashed #D1FAE5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #aaa;
}
.review-body { margin-bottom: 24px; text-align: left; }
.review-body p { margin-bottom: 16px; }
.review-body h4 { margin-bottom: 8px; }

/* === PROS/CONS TABLE === */
.pros-cons-table {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 2px solid #D1FAE5;
    border-radius: 0;
    overflow: hidden;
    margin-top: 24px;
}
.pros-col, .cons-col { padding: 20px; }
.pros-col { background: #F0FDF4; border-right: 2px solid #D1FAE5; }
.cons-col { background: #FFFFFF; }
.pros-col h4 { color: #059669; margin-bottom: 12px; font-size: 16px; }
.cons-col h4 { color: #DC2626; margin-bottom: 12px; font-size: 16px; }
.pros-col ul, .cons-col ul { list-style: none; padding: 0; }
.pros-col li, .cons-col li { padding: 6px 0; font-size: 14px; }
.pros-col li::before { content: "✓ "; color: #059669; font-weight: 700; }
.cons-col li::before { content: "✗ "; color: #DC2626; font-weight: 700; }
@media (max-width: 600px) {
    .pros-cons-table { grid-template-columns: 1fr; }
    .pros-col { border-right: none; border-bottom: 2px solid #D1FAE5; }
    .review-screenshots { grid-template-columns: 1fr; }
    .review-screenshot img { height: 180px; }
}

/* === FAQ === */
.faq-section { background: #F0FDF4; }
.faq-item { margin-bottom: 24px; text-align: left; }
.faq-item h3 {
    font-size: 18px;
    color: #064E3B;
    margin-bottom: 8px;
}
.faq-item p { color: #064E3B; opacity: 0.85; }

/* === AUTHOR BOX === */
.author-box {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    background: #ECFDF5;
    border: 2px solid #D1FAE5;
    padding: 32px;
    text-align: left;
}
.author-box img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 2px solid #D1FAE5;
    border-radius: 0;
    flex-shrink: 0;
}
.author-box-info h3 { font-size: 18px; color: #064E3B; margin-bottom: 4px; }
.author-box-info .author-role { font-size: 13px; color: #059669; font-weight: 600; margin-bottom: 8px; }
.author-box-info p { font-size: 14px; opacity: 0.85; }
@media (max-width: 600px) {
    .author-box { flex-direction: column; align-items: center; text-align: center; padding: 24px; }
}

/* === 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;
    cursor: pointer;
}
.lightbox-overlay.active { display: flex; }
.lightbox-overlay img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border: 4px solid #fff;
}

/* === FOOTER === */
.site-footer {
    background: #064E3B;
    color: #ECFDF5;
    padding: 32px 24px;
    text-align: left;
}
.footer-inner { max-width: 1280px; margin: 0 auto; }
.footer-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #10B981;
    margin-bottom: 8px;
}
.footer-copy { font-size: 13px; opacity: 0.7; margin-bottom: 16px; }
.footer-disclaimer {
    font-size: 12px;
    opacity: 0.6;
    line-height: 1.6;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 16px;
}

/* === CONTACT FORM === */
.contact-form { max-width: 640px; text-align: left; }
.contact-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 14px;
    color: #064E3B;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #D1FAE5;
    border-radius: 0;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: #064E3B;
    background: #FFFFFF;
    margin-bottom: 20px;
    transition: border-color 0.2s;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #059669;
}
.contact-form textarea { min-height: 160px; resize: vertical; }
.contact-info-box {
    background: #F0FDF4;
    border: 2px solid #D1FAE5;
    padding: 24px;
    margin-top: 32px;
    text-align: left;
}
.contact-info-box h3 { font-size: 18px; margin-bottom: 12px; }
.contact-info-box p { font-size: 14px; margin-bottom: 8px; }
.toast {
    display: none;
    position: fixed;
    bottom: 32px;
    right: 32px;
    background: #059669;
    color: #fff;
    padding: 16px 24px;
    font-weight: 600;
    font-size: 14px;
    z-index: 9999;
    border-radius: 0;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.toast.show { display: block; animation: fadeInUp 0.3s; }
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* === CONTENT SECTIONS === */
.content-section {
    text-align: left;
}
.content-section h2 { font-size: 28px; margin-bottom: 16px; }
.content-section h3 { font-size: 22px; margin-bottom: 12px; }
.content-section p { margin-bottom: 16px; }
.content-section ul, .content-section ol { margin-bottom: 16px; padding-left: 24px; }
.content-section li { margin-bottom: 8px; }

/* === PAGE CONTENT === */
.page-content {
    text-align: left;
}
.page-content h2 { font-size: 28px; margin-bottom: 16px; }
.page-content h3 { font-size: 22px; margin-bottom: 12px; }
.page-content p { margin-bottom: 16px; }
.page-content ul, .page-content ol { margin-bottom: 16px; padding-left: 24px; }
.page-content li { margin-bottom: 8px; }
.page-content img { margin: 16px 0; }

/* Team grid for About page */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin: 32px 0;
}
.team-member {
    background: #ECFDF5;
    border: 2px solid #D1FAE5;
    padding: 24px;
    text-align: center;
}
.team-member img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    margin: 0 auto 16px;
    border: 2px solid #D1FAE5;
}
.team-member h3 { font-size: 18px; margin-bottom: 4px; }
.team-member p { font-size: 14px; opacity: 0.8; }
