/* CSS Variables & Theme */
:root {
    --primary-blue: #CA7F26;
    /* EuroJackpot Gold/Brown */
    --secondary-blue: #0b2309;
    /* EuroJackpot Dark Green/Black */
    --accent-gold: #fbbf24;
    --accent-gold-hover: #f59e0b;
    --text-light: #f8fafc;
    --text-dim: #94a3b8;
    /* Lighter dim text for contrast on dark */
    --glass-bg: rgba(202, 127, 38, 0.7);
    --glass-border: rgba(255, 255, 255, 0.2);
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Poppins', sans-serif;
    --max-width: 1200px;
    --header-height: 150px;
    --transition-speed: 0.3s;
    --lottoland-green: #69A507;
    --lottoland-navy: #1f2228;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: #0b2309;
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed);
}

ul {
    list-style: none;
}

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

/* Typography */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    line-height: 1.2;
    font-weight: 700;
}

h1 {
    font-size: 3.5rem;
    background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--accent-gold);
}

p {
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
    color: var(--text-dim);
}

/* Layout */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
.header {
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: #0b2309;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

/* Top Bar Styles */
.top-bar {
    background-color: #020b02;
    /* EuroJackpot Dark Green/Black */
    color: #ffffff;
    padding: 0.5rem 0;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    /* Ensure padding matches container */
}

.latest-draw-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.draw-label {
    color: #ffffff;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

.mini-balls {
    display: flex;
    gap: 0.4rem;
}

.mini-ball {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.75rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.mini-ball.main {
    background-color: #ffffff;
    color: var(--lottoland-navy);
}

.mini-ball.star {
    background-color: #fcd34d;
    color: var(--lottoland-navy);
}

.check-results-link {
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 12px;
    border-radius: 4px;
    transition: all 0.2s;
}

.check-results-link:hover {
    text-decoration: none;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}



.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    flex: 1;
}

.logo {
    display: flex;
    align-items: center;
    padding: 10px 0;
    /* Removed Pill Padding */
    background: transparent;
    /* Removed Pill BG */
    border-radius: 0;
    box-shadow: none;
    transition: transform var(--transition-speed);
}

.home-page .logo {
    padding: 10px 0 25px 0;
}

.logo:hover {
    transform: scale(1.02);
    background: transparent;
}

.logo img {
    height: 80px;
    width: auto;
}

.home-page .logo img {
    height: 85px;
}

.nav ul {
    display: flex;
    gap: 1.5rem;
}

.nav a {
    font-weight: 600;
    font-size: 1rem;
    color: #ffffff;
    /* White nav links */
    position: relative;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -8px;
    left: 0;
    background-color: #CA7F26;
    transition: width var(--transition-speed);
}

.nav a:hover::after,
.nav a.active::after {
    width: 100%;
}

.nav a:hover,
.nav a.active {
    color: #CA7F26;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: var(--header-height);
    padding-bottom: 4rem;
    /* Add breathing room at bottom */
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('..//images/hero-bg.png');
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradient from EuroJackpot Dark to darker at bottom */
    background: linear-gradient(180deg, rgba(11, 35, 9, 0.4) 0%, rgba(11, 35, 9, 0.95) 100%);
    z-index: -1;
}

.hero-content {
    text-align: center;
    z-index: 1;
    max-width: 800px;
    padding: 2rem;
    animation: fadeInUp 1s ease-out;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Offer Card (New CTA Structure) */
.offer-card {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    color: #0b2309;
    width: 100%;
    max-width: 500px;
    margin-top: 1.5rem;
    position: relative;
    overflow: hidden;
}

.offer-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: #69A507;
    /* Lottoland Green accent */
}

.jackpot-highlight {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
    color: #CA7F26;
    margin-bottom: 0.5rem;
    padding: 4rem 0;
    background: none;
    -webkit-text-fill-color: initial;
    text-shadow: none;
}

.jackpot-label-small {
    text-transform: uppercase;
    font-size: 0.875rem;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 1.5px;
    margin-bottom: 2rem;
}

.offer-details {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border: 1px solid #e2e8f0;
    text-align: center;
}

.offer-title {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #0f172a;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.offer-price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 1.5rem;
}

.old-price {
    text-decoration: line-through;
    color: #94a3b8;
    font-size: 1.125rem;
    font-weight: 500;
}

.new-price {
    font-weight: 800;
    color: #e11d48;
    /* Stronger red for discount */
}

.btn-offer {
    display: block;
    width: 100%;
    padding: 1rem 2rem;
    background: #69A507;
    /* Lottoland Green */
    color: #ffffff;
    font-weight: 700;
    font-size: 1.25rem;
    border-radius: 5px;
    /* Lottoland often uses slightly rounded buttons, not full pills for widgets */
    text-align: center;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 6px rgba(105, 165, 7, 0.3);
}

.btn-offer:hover {
    background: #558a06;
    /* Slightly darker green */
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(105, 165, 7, 0.4);
}

.offer-timer {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Unified Footer */
.footer {
    padding: 6rem 0 3rem;
    background: #0b2309;
    /* EuroJackpot Dark Green/Black */
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
}

.footer-trust {
    margin-bottom: 3rem;
}

.footer-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
    margin: 3rem 0;
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.02);
    padding: 1rem;
    border-radius: 10px;
    transition: all var(--transition-speed);
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    text-align: left;
}

.feature-card:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.06);
}

.feature-icon {
    display: flex;
    flex-shrink: 0;
    margin-top: 2px;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
}

.feature-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.feature-title {
    font-size: 0.95rem;
    color: #ffffff;
    font-weight: 700;
    line-height: 1.2;
}

.feature-card p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.4;
    margin: 0;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.footer-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: #ffffff;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-gold);
}

.footer-selector {
    margin-bottom: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.selector-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    justify-content: center;
}

.selector-label::before,
.selector-label::after {
    content: '';
    height: 1px;
    width: 40px;
    background: rgba(255, 255, 255, 0.1);
}

.flag-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.flag-item {
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.flag-item img {
    width: 24px;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.flag-item span {
    font-size: 0.8rem;
    font-weight: 700;
    color: #ffffff;
}

.flag-item:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.regulatory-text {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
    max-width: 600px;
    margin: 0 auto 1.5rem;
    line-height: 1.6;
    font-style: italic;
}


/* Dark Widget Styles (Reference Match) */
.widget-dark {
    background: #1a2c18; /* Dark green/black bg similar to reference */
    border: 2px solid #facc15; /* Gold border */
    border-radius: 20px;
    padding: 2rem;
    max-width: 450px; /* Compact width */
    margin: 2rem auto 0;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    position: relative;
    overflow: hidden;
    color: #ffffff;
    text-align: center;
}

.widget-dark::before {
    display: none; /* Remove top bar from old design */
}

.widget-header {
    margin-bottom: 2rem;
}

.widget-label {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #e2e8f0;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.widget-jackpot {
    font-size: 3rem;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 0 15px rgba(250, 204, 21, 0.4);
    line-height: 1;
}

.widget-offer-box {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    position: relative;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.widget-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: #eab308; /* Gold badge */
    color: #000;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.widget-prices {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 0.5rem;
    margin-top: 0.5rem;
}

.price-old {
    font-size: 1.5rem;
    color: #94a3b8;
    text-decoration: line-through;
    text-decoration-color: #ef4444; /* Red strike */
    text-decoration-thickness: 2px;
    font-weight: 600;
}

.price-new {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffff;
}

.widget-subtext {
    font-size: 0.85rem;
    font-weight: 700;
    color: #fbbf24; /* Gold text */
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-widget {
    background: #65a30d; /* Lime green btn */
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 1rem 2rem;
    border-radius: 8px;
    width: 100%;
    display: block;
    text-decoration: none;
    transition: transform 0.2s, background 0.2s;
    box-shadow: 0 4px 15px rgba(101, 163, 13, 0.3);
    margin-bottom: 1.5rem;
}

.btn-widget:hover {
    background: #4d7c0f;
    transform: translateY(-2px);
}

.widget-footer {
    font-size: 0.75rem;
    color: #94a3b8;
}

.widget-timer {
    margin-bottom: 0.5rem;
    color: #64748b;
}

.widget-disclaimer {
    font-size: 0.65rem;
    opacity: 0.6;
}

/* Override existing offer-card if needed */
.offer-card.widget-dark {
    color: white;
}

.ticket-branding {
    position: absolute;
    bottom: 12px;
    right: 15px;
    opacity: 0.6;
    /* More visible prominence */
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ticket-branding img {
    height: 18px;
    /* Slightly larger */
    width: auto;
    filter: saturate(0.8);
    /* Allow brand green to show slightly */
}

.branding-text {
    font-size: 10px;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 0.5px;
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 0;
}

.copyright {
    font-family: var(--font-main);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 0.75rem;
    letter-spacing: 0.5px;
}

.responsible-tag {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-family: var(--font-main);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: rgba(255, 255, 255, 0.6);
}

.responsible-tag span,
.responsible-tag a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.responsible-tag a:hover {
    color: #ffffff;
}

.separator {
    opacity: 0.4;
    font-weight: 300;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .jackpot-highlight {
        font-size: 3rem;
    }

    .nav {
        display: none;
        /* Mobile menu implementation could go here */
    }

    .header-container {
        justify-content: center;
    }
}

/* --- Compact Header (Interior Pages) --- */
.header.header-compact {
    height: 95px;
    /* Significantly reduced from 140px */
}

.header.header-compact .top-bar {
    padding: 0.2rem 0;
    font-size: 0.75rem;
}

.header.header-compact .mini-ball {
    width: 20px;
    height: 20px;
    font-size: 0.65rem;
}

.header.header-compact .header-container {
    height: auto;
    padding: 0.25rem 2rem;
}

.header.header-compact .logo img {
    height: 50px;
    /* reduced from 85px */
}

.header.header-compact .nav a {
    font-size: 0.9rem;
}

/* --- Sub-Hero (Interior Pages - Prominent Version) --- */
.sub-hero {
    position: relative;
    min-height: 520px;
    /* Más alto para dar protagonismo */
    padding-top: calc(var(--header-height) + 1rem);
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: #0b2309;
}

/* Highlight the background balls */
.sub-hero .hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/hero-bg-balls.jpg') no-repeat center center/cover;
    opacity: 0.85;
    /* Mucho más visible en la zona derecha */
    animation: moveBackground 60s linear infinite;
}

/* Smart Gradient: Solid Blue Left (Text) -> Transparent Right (CTA/Balls) */
.sub-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            rgba(11, 35, 9, 1) 0%,
            rgba(11, 35, 9, 0.95) 35%,
            rgba(11, 35, 9, 0.4) 100%);
}

.sub-hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 4rem;
    /* Más separación */
}

.sub-hero-text {
    flex: 1;
    max-width: 600px;
}

/* Ensure white text for Hero H1 */
.sub-hero-text h1 {
    color: #ffffff;
    font-size: 3.5rem;
    /* Más grande */
    margin-bottom: 1rem;
    line-height: 1.1;
    background: none !important;
    -webkit-text-fill-color: #ffffff !important;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.sub-hero-text p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.35rem;
    /* Más legible */
    margin: 0;
    font-weight: 500;
}

.sub-hero-cta {
    flex-shrink: 0;
    /* CTA will float over the balls bg */
}

/* Responsive Sub-Hero */
@media (max-width: 900px) {
    .sub-hero {
        min-height: auto;
        padding-bottom: 4rem;
        text-align: center;
    }

    .sub-hero .hero-bg {
        opacity: 0.4;
        /* Back to simple on mobile */
    }

    .sub-hero .hero-overlay {
        background: linear-gradient(180deg, rgba(11, 35, 9, 1) 0%, rgba(11, 35, 9, 0.9) 100%);
    }

    .sub-hero-content {
        flex-direction: column;
        gap: 2rem;
    }

    .sub-hero-text {
        margin-top: 2rem;
    }

    .sub-hero-cta {
        width: 100%;
        display: flex;
        justify-content: center;
    }
}