/* lower.bar - Neon Arcade Cocktail HUD */
/* Colors: #F5E6D3, #FF6B35, #FFD700, #FF8C6B, #1A0A00, #8B6F5E, #FFB347 */
/* Fonts: Barlow Condensed 400/700/800, Inter 300/400 */

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

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Barlow Condensed', sans-serif;
    color: #F5E6D3;
}

/* Sunset Gradient Background */
#sunset-bg {
    position: fixed;
    inset: 0;
    background: radial-gradient(
        ellipse 120% 80% at 50% 100%,
        #FF6B35 0%,
        #FF8C6B 25%,
        #FFB347 45%,
        #FFD700 60%,
        #1A0A00 100%
    );
    z-index: 0;
}

/* Bottle silhouettes */
#bottle-layer {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.bottle-svg {
    width: 100%;
    height: 100%;
}

/* HUD Visor Frame */
#visor-frame {
    position: fixed;
    inset: 16px;
    z-index: 5;
    pointer-events: none;
}

.bracket {
    position: absolute;
    width: 40px;
    height: 40px;
    border-color: #FF6B35;
    border-style: solid;
    border-width: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bracket.visible {
    opacity: 1;
}

.top-left {
    top: 0; left: 0;
    border-top-width: 2px;
    border-left-width: 2px;
}

.top-right {
    top: 0; right: 0;
    border-top-width: 2px;
    border-right-width: 2px;
}

.bottom-left {
    bottom: 0; left: 0;
    border-bottom-width: 2px;
    border-left-width: 2px;
}

.bottom-right {
    bottom: 0; right: 0;
    border-bottom-width: 2px;
    border-right-width: 2px;
}

.frame-line {
    position: absolute;
    background: #FF6B35;
    opacity: 0;
    transition: opacity 0.5s ease 0.3s;
}

.frame-line.visible {
    opacity: 0.5;
}

.top-line {
    top: 0; left: 40px; right: 40px;
    height: 2px;
}

.bottom-line {
    bottom: 0; left: 40px; right: 40px;
    height: 2px;
}

.left-line {
    left: 0; top: 40px; bottom: 40px;
    width: 2px;
}

.right-line {
    right: 0; top: 40px; bottom: 40px;
    width: 2px;
}

/* Status Bar */
#status-bar {
    position: fixed;
    top: 24px;
    left: 32px;
    right: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.5s ease 0.5s;
}

#status-bar.visible {
    opacity: 1;
}

.status-left, .status-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.status-label {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: clamp(0.6rem, 1.2vw, 0.8rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #FFB347;
}

.equalizer {
    display: flex;
    gap: 2px;
    align-items: flex-end;
    height: 16px;
}

.eq-bar {
    width: 3px;
    background: #FFB347;
    animation: eqBounce ease-in-out infinite;
    min-height: 4px;
}

@keyframes eqBounce {
    0%, 100% { height: 4px; }
    50% { height: 16px; }
}

/* Panels Container */
#panels-container {
    position: fixed;
    inset: 60px 32px 32px;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 1fr auto;
    gap: 16px;
    overflow: hidden;
}

/* HUD Panel Base */
.hud-panel {
    background: rgba(26, 10, 0, 0.5);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 107, 53, 0.3);
    padding: 20px 24px;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease, border-color 0.3s ease;
}

.hud-panel.visible {
    opacity: 1;
    transform: translateY(0);
}

.hud-panel:hover {
    border-color: #FF6B35;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.panel-label {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #FFB347;
}

.panel-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #FF6B35;
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

.panel-text {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: clamp(0.8rem, 1.4vw, 0.95rem);
    line-height: 1.7;
    color: #F5E6D3;
}

/* Hero Panel */
.hero-panel {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
}

.hero-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: clamp(3rem, 8vw, 6rem);
    letter-spacing: 0.15em;
    color: #FFD700;
    text-transform: uppercase;
    line-height: 1;
    text-shadow: 0 0 40px rgba(255, 215, 0, 0.3);
}

.hero-sub {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: clamp(1.5rem, 4vw, 3rem);
    letter-spacing: 0.2em;
    color: #FF6B35;
    margin-top: 4px;
}

/* Info Panels */
.info-panel {
    display: flex;
    flex-direction: column;
}

.right-panel {
    text-align: right;
}

/* Menu Panel */
.menu-panel {
    grid-column: 1 / -1;
}

.menu-list {
    list-style: none;
}

.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 107, 53, 0.15);
    cursor: pointer;
    transition: background 0.3s ease;
}

.menu-item:hover {
    background: rgba(255, 107, 53, 0.1);
}

.menu-item:last-child {
    border-bottom: none;
}

.item-name {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: clamp(0.8rem, 1.5vw, 1rem);
    letter-spacing: 0.08em;
    color: #FFD700;
}

.item-detail {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: clamp(0.65rem, 1.2vw, 0.85rem);
    color: #8B6F5E;
}

/* Signal Panel */
.signal-panel {
    grid-column: 1 / -1;
}

.signal-wave {
    height: 30px;
    margin-top: 12px;
    position: relative;
    overflow: hidden;
}

/* Responsive */
@media (max-width: 768px) {
    #panels-container {
        grid-template-columns: 1fr;
        inset: 60px 20px 20px;
        overflow-y: auto;
    }

    .menu-item {
        flex-direction: column;
        gap: 4px;
    }

    #visor-frame {
        inset: 10px;
    }
}
