@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');

/* RESET & GLOBAL */
*,
*::before,
*::after { box-sizing: border-box; }



html, body {
  font-family: 'Inter', sans-serif;
  background-color: #121212;
  color: #e0e0e0;
  margin: 0;
  padding: 0;
  /* Vraćamo normalno ponašanje za sve stranice */
  width: 100%;
  min-height: 100%;
}

/* Globalna Utility Klasa */
.hidden { display: none; }

/* ================================================= */
/* GLOBALNI STILOVI ZA MODALE (koriste ih sve stranice) */
/* ================================================= */

.modal {
    display: none;
    position: fixed;
    z-index: 1001; /* Iznad svega */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0,0,0,0.8); /* Tamna pozadina */
    justify-content: center;
    align-items: center;
}

/* Sadržaj Modala - generički */
.modal-content {
    background-color: #2b2b2b;
    padding: 25px;
    border-radius: 15px;
    border: 3px solid #5d5dff;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.6);
    position: relative; /* Za gumb za zatvaranje */
}

/* Gumb za zatvaranje (koristi ga više modala) */
.close-modal-btn {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 30px;
  font-weight: bold;
  color: #aaa;
  cursor: pointer;
  transition: color 0.2s ease;
  line-height: 1;
}

.close-modal-btn:hover {
  color: #fff;
}

/* --- LANDING PAGE STILOVI --- */
.landing-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #1f2833 0%, #0b0c10 100%);
    z-index: 99999;
    
    /* KLJUČNA PROMJENA ZA MOBITEL: */
    overflow-y: auto; /* Dopusti vertikalno skrolanje */
    display: flex;
    flex-direction: column;
    /* align-items: center; <-- OVO JE RADILO PROBLEM (Centriranje je rezalo vrh) */
    padding: 20px 0; /* Malo prostora gore/dolje */
}

.landing-content {
    max-width: 800px;
    width: 90%;
    /* Koristimo marginu auto da ga centriramo kad ima mjesta, 
       a kad nema, ostaje na vrhu */
    margin: auto; 
    text-align: center;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    animation: fadeIn 1s ease-out;
    padding-bottom: 50px; /* Da se može skrolati do dna */
}

.landing-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 3.5rem; /* Malo manji font za start */
    margin-top: 20px;
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
    letter-spacing: 2px;
    line-height: 1.1; /* Da se ne preklapaju redovi */
}

.landing-title .highlight {
    color: #FFD700; /* Tvoja zlatna boja */
}

.landing-subtitle {
    font-size: 1.2rem;
    color: #a0a0a0;
    margin-bottom: 40px;
}
.landing-buttons {
    display: flex;           /* Aktivira flexbox */
    flex-direction: column;  /* Slaže elemente vertikalno (jedan ispod drugog) */
    align-items: center;     /* Centrira ih horizontalno */
    justify-content: center;
    width: 100%;             /* Osigurava punu širinu za centriranje */
    gap: 15px;               /* Razmak između gumba */
}
/* GUMB ZA ULAZ */
.mega-btn {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    border: none;
    padding: 20px 50px;
    font-size: 1.5rem;
    font-family: 'Orbitron', sans-serif;
    color: #000;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
    text-transform: uppercase;
}

.mega-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 50px rgba(255, 215, 0, 0.7);
}

.mega-btn:active {
    transform: scale(0.95);
}

/* FEATURES SEKCIJA (Za Google AdSense) */
.landing-features {
    display: flex;
    gap: 20px;
    margin-top: 60px;
    justify-content: center;
    flex-wrap: wrap;
}

.feature-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
    flex: 1;
    min-width: 200px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-box h3 {
    color: #4db8ff; /* Svijetloplava */
    margin-top: 0;
}

/* FOOTER */
.landing-footer {
    margin-top: 60px;
    font-size: 0.8rem;
    color: #666;
}

.landing-footer a {
    color: #888;
    text-decoration: none;
    margin: 0 10px;
}

.landing-footer a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 600px) {
    .landing-title { 
        font-size: 2.2rem; /* Još manji na mobitelu */
        margin-top: 10px;
    }
    .landing-subtitle {
        font-size: 1rem;
        padding: 0 10px;
    }
    .landing-overlay {
        padding-top: 10px;
    }
    .mega-btn { 
        padding: 15px 40px; 
        font-size: 1.2rem; 
        width: 80%; /* Širi gumb na mobitelu */
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #222;
    color: #fff;
    text-align: center;
    padding: 15px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.5);
    z-index: 100000; /* Iznad svega */
    display: none; /* Sakriveno dok JS ne provjeri */
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
}

.cookie-banner a {
    color: #FFD700;
    text-decoration: underline;
}

#accept-cookies-btn {
    background-color: #2ecc71;
    color: white;
    border: none;
    padding: 8px 20px;
    margin-left: 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

#accept-cookies-btn:hover {
    background-color: #27ae60;
}

/* Stil za sekundarni gumb (Dvorana Slavnih) */
.secondary-btn {
    display: inline-block;
    margin-top: 0; /* Razmak od glavnog gumba */
    color: #a0a0a0;
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    padding: 10px 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    transition: all 0.3s ease;
}

.secondary-btn:hover {
    color: #fff;
    border-color: #FFD700; /* Zlatni rub na hover */
    background: rgba(255, 215, 0, 0.1);
}
