/* 
   FUTURE KIOSK THEME: "Vision 2028"
   Aesthetic: Deep Space, Neon, Glass, 3D
*/

:root {
    /* Color Palette - Vision 2028 */
    --void-bg: #100f12;
    /* Darker, slightly tectonic grey-black */
    --tb-purple: #702082;
    /* Official-adjacent specific purple */
    --neon-purple: #a855f7;
    /* Lighter vivid purple for glow */
    --neon-purple-glow: rgba(168, 85, 247, 0.5);
    --tb-pink: #E91E63;
    /* Accent pink often used in modern branding */
    --neon-orange: #f59e0b;
    /* Bell accent */
    --neon-orange-glow: rgba(245, 158, 11, 0.4);

    --glass-surface: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --surface-hover: rgba(112, 32, 130, 0.15);

    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.6);

    /* Effects */
    --backdrop-blur: 30px;
    /* Smoother blur */
    --card-radius: 16px;
    /* Slightly tighter radius for modern feel */
    --glow-shadow: 0 0 30px var(--neon-purple-glow);
}

body {
    background-color: var(--void-bg);
    background-image:
        linear-gradient(160deg, #1a0b1f 0%, var(--void-bg) 60%);
    font-family: 'Outfit', sans-serif;
    color: var(--text-primary);
    overflow-x: hidden;
    margin: 0;
    min-height: 100vh;
}

/* === Layout Restructure === */
.kiosk-container {
    display: grid;
    grid-template-columns: 1fr 350px 400px;
    /* Menu | Voice/Status | Order */
    grid-template-rows: auto 1fr;
    gap: 2rem;
    padding: 2rem;
    height: 100vh;
    box-sizing: border-box;
}

/* === Hero & Menu Section === */
.menu-board {
    grid-column: 1;
    overflow-y: auto;
    padding-right: 1rem;
    /* Hide Scrollbar */
    scrollbar-width: none;
}

.menu-board::-webkit-scrollbar {
    display: none;
}

.hero-banner {
    background: linear-gradient(90deg, rgba(112, 32, 130, 0.2), rgba(0, 0, 0, 0));
    border-radius: var(--card-radius);
    padding: 3rem;
    margin-bottom: 3rem;
    border-left: 4px solid var(--tb-purple);
    position: relative;
    overflow: hidden;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1551504734-5ee1c4a1479b?q=80&w=2070&auto=format&fit=crop') center/cover;
    opacity: 0.2;
    z-index: -1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(to right, #fff, #cbd5e1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
    margin: 0;
}

.category-header {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--neon-orange);
    margin: 2rem 0 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.category-header::after {
    content: '';
    height: 1px;
    flex: 1;
    background: linear-gradient(to right, var(--neon-orange), transparent);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}

/* === 3D Glass Cards === */
.menu-item-card {
    background: var(--glass-surface);
    backdrop-filter: blur(var(--backdrop-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--card-radius);
    padding: 1.5rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.menu-item-card:hover {
    transform: translateY(-5px) scale(1.01);
    border-color: var(--neon-purple);
    box-shadow: 0 10px 30px -5px rgba(112, 32, 130, 0.4);
    background: var(--surface-hover);
}

.item-price {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--neon-orange);
    color: black;
    font-weight: 800;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    box-shadow: 0 0 15px var(--neon-orange-glow);
}

.item-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 1rem;
}

/* === Voice Orb (Interactivity) === */
.voice-center {
    grid-column: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.voice-orb-container {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.voice-orb {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #d8b4fe, var(--tb-purple));
    box-shadow: 0 0 60px var(--neon-purple-glow), inset 0 0 20px rgba(255, 255, 255, 0.5);
    z-index: 10;
    transition: all 0.5s ease;
    animation: orb-idle 4s infinite ease-in-out;
}

/* Listening State */
.voice-orb-container.listening .voice-orb {
    background: radial-gradient(circle at 30% 30%, #ffffff, var(--neon-purple));
    /* White/Purple Pulse */
    box-shadow: 0 0 80px rgba(168, 85, 247, 0.8), 0 0 20px #fff;
    transform: scale(1.15);
    animation: orb-listen 1.5s infinite alternate ease-in-out;
}

/* Processing State */
.voice-orb-container.processing .voice-orb {
    background: radial-gradient(circle at 30% 30%, #fcd34d, var(--neon-orange));
    /* Bell Orange */
    box-shadow: 0 0 60px var(--neon-orange-glow);
    animation: orb-spin 2s infinite linear;
}

.orb-ring {
    position: absolute;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: ripple 3s infinite linear;
}

.orb-ring:nth-child(1) {
    width: 140px;
    height: 140px;
    animation-delay: 0s;
}

.orb-ring:nth-child(2) {
    width: 180px;
    height: 180px;
    animation-delay: 1s;
}

.orb-ring:nth-child(3) {
    width: 220px;
    height: 220px;
    animation-delay: 2s;
}

.voice-status-text {
    margin-top: 2rem;
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: center;
    color: var(--text-secondary);
}

/* === Order Panel (The HUD) === */
.order-panel {
    grid-column: 3;
    background: rgba(16, 15, 18, 0.8);
    backdrop-filter: blur(40px);
    border-left: 1px solid var(--glass-border);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
}

.hud-header {
    font-size: 0.9rem;
    color: var(--neon-orange);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
}

.order-list {
    flex: 1;
    overflow-y: auto;
}

.order-item-hud {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    margin-bottom: 1rem;
    background: var(--glass-surface);
    border-radius: 12px;
    border: 1px solid transparent;
}

.order-item-hud.new {
    animation: slideInRight 0.3s ease-out;
    border-color: var(--neon-orange);
}

.hud-total-section {
    margin-top: auto;
    border-top: 1px solid var(--glass-border);
    padding-top: 2rem;
}

.hud-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.hud-total-final {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    text-shadow: 0 0 20px var(--neon-purple-glow);
}

/* === Animations === */
@keyframes orb-idle {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-10px) scale(1.05);
    }
}

@keyframes orb-listen {
    0% {
        box-shadow: 0 0 40px rgba(239, 68, 68, 0.5);
        transform: scale(1.1);
    }

    100% {
        box-shadow: 0 0 100px rgba(239, 68, 68, 0.9);
        transform: scale(1.3);
    }
}

@keyframes ripple {
    0% {
        transform: scale(0.8);
        opacity: 1;
        border-color: var(--neon-purple);
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
        border-color: transparent;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(50px);
        opacity: 0;
    }

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