/* === WINE GLASS DECORATIONS === */

/* ========================================
   WINE GLASS - Elegant floating decoration
   ======================================== */

.sconce-decoration {
    position: absolute;
    pointer-events: none;
    z-index: 2;
    opacity: 0.6;
}

/* Wine glass body - built from the .sconce element */
.sconce {
    width: 50px;
    height: 120px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Glass bowl (top) */
.sconce::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 44px;
    height: 52px;
    border: 2px solid rgba(158, 122, 46, 0.35);
    border-top: none;
    border-radius: 0 0 50% 50%;
    background: linear-gradient(to bottom,
            rgba(139, 30, 50, 0.15) 0%,
            rgba(139, 30, 50, 0.08) 60%,
            transparent 100%);
    box-shadow: inset 0 -5px 15px rgba(139, 30, 50, 0.06);
}

/* Glass stem + base */
.sconce::after {
    content: '';
    position: absolute;
    top: 52px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(158, 122, 46, 0.3), rgba(158, 122, 46, 0.2));
    box-shadow: 0 40px 0 0 transparent;
}

/* Wine level inside glass - reusing .sconce-flame */
.sconce-flame {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 34px;
    height: 28px;
    background: radial-gradient(ellipse at 50% 80%,
            rgba(139, 30, 50, 0.25) 0%,
            rgba(120, 20, 40, 0.12) 50%,
            transparent 100%);
    border-radius: 0 0 50% 50%;
    animation: wineSwirl 4s ease-in-out infinite;
}

/* Glass base (foot) - drawn on top of stem via box-shadow on a pseudo */
.sconce-flame::after {
    content: '';
    position: absolute;
    bottom: -67px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 4px;
    background: rgba(158, 122, 46, 0.25);
    border-radius: 50%;
}

/* Warm ambient glow around glass */
.sconce-glow {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 180px;
    height: 180px;
    background: radial-gradient(circle,
            rgba(158, 122, 46, 0.08) 0%,
            rgba(139, 30, 50, 0.04) 40%,
            transparent 70%);
    border-radius: 50%;
    animation: wineGlow 5s ease-in-out infinite;
    pointer-events: none;
}

/* ========================================
   FLOOR GRADIENT
   ======================================== */

.cellar-floor {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 220px;
    background: linear-gradient(to top,
            rgba(221, 212, 197, 0.5) 0%,
            rgba(245, 239, 230, 0.2) 40%,
            transparent 100%);
    pointer-events: none;
    z-index: 0;
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes wineSwirl {

    0%,
    100% {
        transform: translateX(-50%) scaleX(1) skewX(0deg);
        opacity: 1;
    }

    25% {
        transform: translateX(-50%) scaleX(1.05) skewX(1deg);
        opacity: 0.85;
    }

    50% {
        transform: translateX(-50%) scaleX(0.97) skewX(-0.5deg);
        opacity: 0.95;
    }

    75% {
        transform: translateX(-50%) scaleX(1.03) skewX(0.8deg);
        opacity: 0.9;
    }
}

@keyframes wineGlow {

    0%,
    100% {
        opacity: 0.7;
        transform: translateX(-50%) scale(1);
    }

    33% {
        opacity: 0.5;
        transform: translateX(-50%) scale(1.08);
    }

    66% {
        opacity: 0.8;
        transform: translateX(-50%) scale(0.95);
    }
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1200px) {
    .sconce-decoration {
        opacity: 0.4;
    }

    .sconce-glow {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 968px) {

    /* Hide floor, keep glasses */
    .cellar-floor {
        display: none;
    }

    .sconce-decoration {
        display: block !important;
        transform: scale(0.55);
        opacity: 0.25 !important;
    }

    .sconce-left {
        left: -15px !important;
        right: auto !important;
    }

    .sconce-right {
        right: -15px !important;
        left: auto !important;
    }
}