/* ========================================
   CUSTOMER START PAGE - LANDING SCREEN
   ======================================== */

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

body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 50%, #fdc830 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.welcome-container {
    background: white;
    border-radius: 24px;
    padding: 60px 80px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    text-align: center;
    max-width: 600px;
    width: 100%;
    animation: fadeIn 0.6s ease;
}

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

.logo {
    font-size: 80px;
    margin-bottom: 20px;
    animation: bounce 2s infinite;
}

/* Logo restorana umjesto emojija na ekranu dobrodoslice. font-size iznad na
   sliku ne djeluje, pa visina mora biti izricita; odskakivanje ostaje jer je
   animacija na .logo, a slika je unutar njega. */
.logo img.nema-slike-logo {
    height: 104px;
    width: auto;
    max-width: 88%;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.restaurant-name {
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 16px;
}

.welcome-text {
    font-size: 20px;
    color: #6c757d;
    margin-bottom: 50px;
}

.language-section {
    margin-top: 40px;
}

.language-section.order-type-section {
    margin-top: 50px;
}

.language-title {
    font-size: 18px;
    font-weight: 600;
    color: #6c757d;
    margin-bottom: 24px;
}

.language-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.lang-card {
    background: white;
    border: 3px solid #e9ecef;
    border-radius: 16px;
    padding: 30px 40px;
    cursor: pointer;
    transition: all 0.3s;
    flex: 1;
    max-width: 200px;
    position: relative;
}

.lang-card input[type="radio"] {
    display: none;
}

.lang-card:hover {
    border-color: #ff6b35;
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(255, 107, 53, 0.3);
    background: #fff8f0;
}

.lang-card input[type="radio"]:checked ~ .lang-content {
    color: #ff6b35;
}

.lang-card:has(input[type="radio"]:checked) {
    border-color: #ff6b35;
    background: #fff8f0;
    box-shadow: 0 8px 16px rgba(255, 107, 53, 0.3);
}

.lang-content {
    display: block;
    text-align: center;
}

.lang-flag {
    font-size: 64px;
    margin-bottom: 16px;
    display: block;
}

.lang-name {
    font-size: 22px;
    font-weight: 700;
    color: #2c3e50;
}

.submit-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(255, 107, 53, 0.5);
}

.submit-btn:active {
    transform: translateY(-2px);
}

.messages {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    list-style: none;
    max-width: 400px;
}

.messages li {
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.messages .success { background-color: #2ecc71; }
.messages .error { background-color: #e74c3c; }
.messages .warning { background-color: #f39c12; }
.messages .info { background-color: #3498db; }

/* ========== MOBILE ========== */
@media (max-width: 768px) {
    body {
        padding: 32px 16px;
    }

    .welcome-container {
        padding: 28px 20px;
        border-radius: 20px;
        box-shadow: 0 12px 40px rgba(0,0,0,0.25);
    }

    .logo {
        font-size: 48px;
        margin-bottom: 12px;
    }

    .logo img.nema-slike-logo {
        height: 64px;
    }

    .restaurant-name {
        font-size: 22px;
        margin-bottom: 8px;
    }

    .welcome-text {
        font-size: 15px;
        margin-bottom: 24px;
    }

    .language-section {
        margin-top: 20px;
    }

    .language-section.order-type-section {
        margin-top: 28px;
    }

    .language-title {
        font-size: 15px;
        margin-bottom: 14px;
    }

    .language-buttons {
        gap: 12px;
    }

    .lang-card {
        padding: 16px 12px;
        border-radius: 12px;
        border-width: 2px;
    }

    .lang-flag {
        font-size: 36px;
        margin-bottom: 8px;
    }

    .lang-name {
        font-size: 15px;
    }
}
