/* FAVORIT V6 - Luxury Casino - Index */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800;900&display=swap');

:root {
    --gold: #d4af37;
    --gold-light: #f7c948;
    --gold-dark: #b8941e;
    --orange: #f59e0b;
    --red: #dc2626;
    --green: #10b981;
    --navy: #0f172a;
    --navy-light: #1e293b;
    --navy-lighter: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-gold: var(--gold);
    --border: rgba(212, 175, 55, 0.2);
    --shadow-gold: 0 0 20px rgba(212, 175, 55, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    /* FIX BUG-17: prevent horizontal overflow on mobile */
    overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1rem, 2vw, 1.0625rem);
    line-height: 1.6;
    color: var(--text-primary);
    background: 
        radial-gradient(circle at 20% 20%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(245, 158, 11, 0.08) 0%, transparent 50%),
        linear-gradient(180deg, var(--navy) 0%, var(--navy-light) 100%);
    min-height: 100vh;
    padding: clamp(1rem, 3vw, 2rem);
    position: relative;
    overflow-x: hidden;
}

/* Animated stars */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, white, transparent),
        radial-gradient(2px 2px at 60% 70%, white, transparent),
        radial-gradient(1px 1px at 50% 50%, white, transparent),
        radial-gradient(1px 1px at 80% 10%, white, transparent),
        radial-gradient(2px 2px at 90% 60%, white, transparent);
    background-size: 200% 200%;
    opacity: 0.05;
    animation: sparkle 100s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes sparkle {
    0%, 100% { opacity: 0.03; }
    50% { opacity: 0.08; }
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.95) 100%);
    padding: clamp(2rem, 5vw, 4rem);
    border-radius: clamp(1.5rem, 3vw, 2rem);
    border: 2px solid var(--border);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(212, 175, 55, 0.1),
        inset 0 1px 0 rgba(212, 175, 55, 0.1);
    position: relative;
    overflow: hidden;
    animation: fadeIn 0.8s ease-out;
    z-index: 1;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Gold top border */
.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--orange), var(--gold));
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
    border-radius: 2rem 2rem 0 0;
    z-index: 2;
    /* FIX: pointer-events none so it doesn't block clicks */
    pointer-events: none;
}

@keyframes shimmer {
    0%   { background-position: -200% 0; }
    100% { background-position:  200% 0; }
}

header {
    text-align: center;
    margin-bottom: clamp(2rem, 5vw, 3rem);
    position: relative;
}

/*
 * FIX BUG-01: Removed h1::before { content:'🎰' } pseudo-element.
 * The HTML <h1> tag ALREADY contains the slot emoji directly in the markup.
 * The old CSS ::before was adding a second identical emoji + spin animation
 * on top of it — resulting in two stacked slot machine icons.
 * The spin animation is now on the emoji inside <h1> via the HTML itself (removed),
 * keeping the heading visually clean with a single icon.
 */

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: goldShine 3s ease-in-out infinite;
    /*
     * FIX BUG-02: text-shadow has zero visual effect when -webkit-text-fill-color
     * is set to transparent (the text fill is replaced by the gradient clip).
     * Using filter:drop-shadow() instead, which applies to the rendered gradient text.
     */
    filter: drop-shadow(0 0 12px rgba(212, 175, 55, 0.4));
}

@keyframes goldShine {
    0%, 100% { background-position:   0% 50%; }
    50%       { background-position: 100% 50%; }
}

.subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--text-secondary);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: clamp(1rem, 2vw, 1.5rem);
    margin: clamp(2rem, 5vw, 3rem) 0;
}

.stat {
    background: linear-gradient(135deg, var(--navy-light) 0%, var(--navy-lighter) 100%);
    border: 2px solid var(--border);
    border-radius: 1.25rem;
    padding: clamp(1.5rem, 3vw, 2rem);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.stat::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(212, 175, 55, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.stat:hover {
    transform: translateY(-8px);
    border-color: var(--gold);
    box-shadow: var(--shadow-gold);
}

.stat:hover::before {
    opacity: 1;
}

.stat-value {
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: clamp(0.875rem, 1.5vw, 1rem);
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* FIX BUG-18: .questions-section and its h2 had no CSS rules at all */
.questions-section {
    margin-top: clamp(2rem, 5vw, 3rem);
}

.questions-section > h2 {
    font-size: clamp(1.125rem, 2.5vw, 1.375rem);
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

nav {
    margin-top: clamp(1rem, 3vw, 1.5rem);
}

ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 350px), 1fr));
    gap: clamp(1rem, 2.5vw, 1.5rem);
}

li {
    animation: cardSlide 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}

li:nth-child(1) { animation-delay: 0.1s; }
li:nth-child(2) { animation-delay: 0.2s; }
li:nth-child(3) { animation-delay: 0.3s; }
li:nth-child(4) { animation-delay: 0.4s; }
li:nth-child(5) { animation-delay: 0.5s; }

@keyframes cardSlide {
    from { opacity: 0; transform: translateX(-30px); }
    to   { opacity: 1; transform: translateX(0); }
}

a {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 2vw, 1.5rem);
    padding: clamp(1.25rem, 3vw, 1.75rem);
    background: linear-gradient(135deg, var(--navy-light) 0%, var(--navy-lighter) 100%);
    border: 2px solid var(--border);
    border-radius: 1.25rem;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: clamp(1rem, 2vw, 1.0625rem);
    line-height: 1.5;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    min-height: 85px;
}

/* Gold glow effect */
a::before {
    content: '';
    position: absolute;
    inset: -100%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.15), transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

a:hover::before {
    opacity: 1;
    animation: rotate 4s linear infinite;
}

@keyframes rotate {
    0%   { transform: rotate(  0deg); }
    100% { transform: rotate(360deg); }
}

a:hover,
a:focus-visible {
    transform: translateY(-6px);
    border-color: var(--gold);
    box-shadow: var(--shadow-gold), inset 0 1px 0 rgba(212, 175, 55, 0.1);
}

.number {
    flex-shrink: 0;
    width: clamp(3rem, 6vw, 3.75rem);
    height: clamp(3rem, 6vw, 3.75rem);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gold), var(--orange));
    color: var(--navy);
    font-weight: 900;
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    border-radius: 50%;
    position: relative;
    box-shadow: 
        0 4px 12px rgba(212, 175, 55, 0.4),
        inset 0 2px 4px rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

a:hover .number {
    transform: scale(1.15);
    box-shadow: 
        0 8px 20px rgba(212, 175, 55, 0.6),
        inset 0 2px 4px rgba(255, 255, 255, 0.3);
}

footer {
    margin-top: clamp(2rem, 5vw, 3rem);
    padding-top: clamp(1.5rem, 4vw, 2rem);
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-secondary);
    font-size: clamp(0.875rem, 1.5vw, 1rem);
    font-weight: 500;
}

/* FIX BUG-16: .footer-legal had no CSS — About/Privacy links were completely unstyled */
.footer-legal {
    margin-top: 1rem;
    font-size: 0.875rem;
    opacity: 0.8;
}

.footer-legal a {
    /* Reset global <a> card styles — these are inline text links, not cards */
    display: inline;
    min-height: auto;
    padding: 0;
    background: none;
    border: none;
    border-bottom: 1px solid transparent;
    border-radius: 0;
    overflow: visible;
    color: var(--gold);
    font-weight: 600;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-legal a:hover,
.footer-legal a:focus-visible {
    transform: none;
    box-shadow: none;
    background: none;
    border-color: var(--gold);
    color: var(--gold-light);
}

/* ===================================================================
   CTA SECTION
   FIX BUG-03, BUG-04, BUG-05: Collapsed 3x .cta-block + 3x .cta-button
   into single canonical definitions below.
   =================================================================== */

.cta-section {
    margin: clamp(2rem, 5vw, 3rem) 0;
}

.cta-block {
    background: linear-gradient(135deg, var(--gold) 0%, var(--orange) 100%);
    color: var(--navy);
    border-radius: clamp(1rem, 2vw, 1.5rem);
    padding: clamp(1.5rem, 4vw, 2.5rem);
    text-align: center;
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.3);
    position: relative;
    overflow: hidden;
}

.cta-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmerCta 3s infinite;
    pointer-events: none;
}

@keyframes shimmerCta {
    0%   { left: -100%; }
    100% { left:  100%; }
}

/*
 * FIX BUG-03: Removed .cta-block h3::before { content: '🎰 ' }
 * The HTML h3 already contains the emoji in the markup (🎁).
 * The ::before was prepending a SECOND emoji, causing double icons.
 */
.cta-block h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: var(--navy);
    position: relative;
    z-index: 1;
}

.cta-description {
    font-size: clamp(0.95rem, 2vw, 1.125rem);
    margin-bottom: 1.5rem;
    opacity: 0.9;
    line-height: 1.6;
    color: var(--navy);
    position: relative;
    z-index: 1;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: clamp(0.875rem, 2vw, 1.125rem) clamp(1.5rem, 4vw, 2.5rem);
    background: var(--navy);
    color: var(--gold-light);
    font-weight: 800;
    font-size: clamp(1rem, 2vw, 1.125rem);
    font-family: inherit;
    border: 2px solid var(--navy);
    border-radius: 3rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    min-height: 52px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
    /* FIX: reset overflow:hidden + min-height from global <a> rule */
    overflow: visible;
}

.cta-button:hover,
.cta-button:focus-visible {
    transform: translateY(-3px) scale(1.05);
    background: var(--navy-light);
    border-color: var(--navy-light);
    color: var(--gold-light);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.cta-button::after {
    content: '→';
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

.cta-button:hover::after {
    transform: translateX(5px);
}

/* ===================================================================
   LANGUAGE SWITCHER FOOTER
   FIX BUG-04 (lang-flag): .lang-flag + :hover declared 3x. Merged.
   =================================================================== */

.language-switcher-footer {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.5rem 0;
    padding: 1rem;
    background: var(--navy-light);
    border-radius: 1rem;
}

.lang-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    font-size: 1.5rem;
    text-decoration: none;
    border-radius: 0.75rem;
    background: var(--navy-lighter);
    border: 2px solid transparent;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    /* FIX: reset global <a> card styles */
    min-height: unset;
    padding: 0;
    overflow: visible;
    font-weight: normal;
    line-height: 1;
}

.lang-flag:hover,
.lang-flag:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    border-color: var(--gold);
    background: var(--navy-lighter);
}

.lang-flag.active {
    background: var(--gold);
    border-color: var(--gold);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

.lang-flag.active:hover,
.lang-flag.active:focus-visible {
    background: var(--gold);
    border-color: var(--gold-light);
    transform: translateY(-2px);
}

/* ===================================================================
   RESPONSIVE
   =================================================================== */

@media (max-width: 640px) {
    body { padding: 1rem; }
    
    .container {
        padding: 1.5rem;
        border-radius: 1.25rem;
    }
    
    ul { grid-template-columns: 1fr; }
    
    .cta-block {
        padding: 1.5rem;
        border-radius: 1rem;
    }
    
    .cta-button {
        width: 100%;
        justify-content: center;
    }
    
    .language-switcher-footer {
        padding: 0.75rem;
        gap: 0.375rem;
    }
    
    .lang-flag {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
}

@media (min-width: 768px) {
    .container { padding: 3rem; }
}

@media (min-width: 1024px) {
    ul { grid-template-columns: repeat(2, 1fr); }
}

/* ===================================================================
   ACCESSIBILITY & UTILITIES
   =================================================================== */

:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

@media (prefers-contrast: high) {
    a, .stat { border-width: 3px; }
}

@media print {
    body { background: white; color: black; }
    body::before { display: none; }
    .container { box-shadow: none; border-color: black; }
}
