/* --- Osnovni stilovi i pozadina --- */
* {
    box-sizing: border-box;
}
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Montserrat', sans-serif;
    
    /* Maslinasto-tamno zelena gradijent pozadina (Globalni stil) */
    background: linear-gradient(135deg, #2a522e, #1c351f);
    color: #fff;
    
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    
    opacity: 1;
    transition: opacity 0.5s ease-out;
    overflow: hidden;
}

body.fade-out {
    opacity: 0;
}

/* --- Splash screen sa logom "Waitress" --- */
#intro-shade {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1c351f, #2a522e);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ffc107; /* Zlatno žuta */
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: 700;
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.8s ease-out, visibility 0.8s ease-out;
    visibility: visible;
}
#intro-shade.hidden {
    opacity: 0;
    visibility: hidden;
}

/* --- Kontejner za glavni sadržaj --- */
.container {
    max-width: 480px;
    width: 90%;
    padding: 50px 30px;
    background: rgba(42, 82, 46, 0.5); /* Poluprozirna pozadina - maslinasta */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1;
    
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    transition-delay: 0.7s;
}

.container.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Stil za naslov h1 --- */
h1 {
    margin: 0 0 50px 0;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 3.2rem;
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
    letter-spacing: 1px;
    
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    transition-delay: 0.9s;
}
.container.visible h1 {
    opacity: 1;
    transform: translateY(0);
}

/* --- Stil za "W" dugme kao logo --- */
.w-button {
    width: 120px;
    height: 120px;
    background: #ffc107; /* Zlatno žuta pozadina dugmeta */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: 700;
    color: #2a522e; /* Maslinasto zelena za slovo */
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    cursor: pointer;
    margin-bottom: 0;

    opacity: 0;
    transform: scale(0.5);
    transition: opacity 1s ease-out, transform 1s ease-out;
    transition-delay: 1.5s;
}

/* Stanje kada je "W" dugme vidljivo */
.container.visible .w-button {
    opacity: 1;
    transform: scale(1);
}

/* Hover, focus i active stilovi za "W" dugme */
.w-button:hover, .w-button:focus {
    background-color: #ffd740;
    box-shadow: 0 10px 28px rgba(0,0,0,0.4);
    transform: translateY(-3px) scale(1.02);
    outline: none;
    color: #1c351f;
}

.w-button:focus-visible {
    outline: 4px solid #fff;
    outline-offset: 3px;
}

.w-button:active {
    transform: scale(0.98);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* --- Footer za autorski potpis --- */
.footer-author {
    position: absolute;
    bottom: 20px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    font-family: 'Montserrat', sans-serif;
    opacity: 0;
    transition: opacity 0.8s ease-out;
    transition-delay: 2.5s;
    z-index: 0;
}

.footer-author.visible {
    opacity: 1;
}

/* --- Media Queries za responzivnost --- */
@media (max-width: 480px) {
    #intro-shade {
        font-size: 3rem;
    }
    .container {
        padding: 40px 20px;
        border-radius: 15px;
    }
    h1 {
        font-size: 2.5rem;
        margin-bottom: 40px;
    }
    .w-button {
        width: 100px;
        height: 100px;
        font-size: 3.5rem;
    }
    .footer-author {
        font-size: 0.8rem;
        bottom: 10px;
    }
}