/* Memorial Decoration - World Peace */

/* Black Mourning Ribbon - Top Right Corner */
.mourning-ribbon {
    position: fixed;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    overflow: hidden;
    z-index: 9998;
    pointer-events: none;
}

.mourning-ribbon::before {
    content: '';
    position: absolute;
    top: 25px;
    right: -50px;
    width: 200px;
    height: 35px;
    background: linear-gradient(135deg, #1a1a1a 0%, #000000 50%, #1a1a1a 100%);
    transform: rotate(45deg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

/* Memorial Container */
.memorial-overlay {
    position: fixed;
    bottom: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    animation: fadeInUp 1s ease-out;
    padding: 20px;
    background: radial-gradient(ellipse at center bottom, rgba(255, 150, 50, 0.1) 0%, transparent 70%);
    border-radius: 20px;
}

.memorial-left {
    left: 30px;
}

.memorial-right {
    right: 30px;
}

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

/* Multiple Candles Row */
.candles-row {
    display: flex;
    align-items: flex-end;
    gap: 15px;
}

/* The Candle */
.memorial-candle {
    position: relative;
    width: 40px;
    height: 120px;
}

.memorial-candle.small {
    transform: scale(0.7);
    opacity: 0.85;
}

/* Candle Flame */
.candle-flame {
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 40px;
}

.flame-outer {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 18px;
    height: 35px;
    background: linear-gradient(to top, #ff6600 0%, #ffcc00 50%, #ffffff 100%);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    animation: flameFlicker 0.3s ease-in-out infinite alternate, flameSway 2s ease-in-out infinite;
    filter: blur(1px);
}

.memorial-candle.small .flame-outer {
    animation-delay: 0.1s;
}

.memorial-candle.small:last-child .flame-outer {
    animation-delay: 0.2s;
}

.flame-inner {
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 22px;
    background: linear-gradient(to top, #ffcc00 0%, #ffffff 70%, #ffffff 100%);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    animation: flameFlickerInner 0.2s ease-in-out infinite alternate;
}

.flame-glow {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(255, 150, 50, 0.4) 0%, rgba(255, 150, 50, 0) 70%);
    border-radius: 50%;
    animation: glowPulse 2s ease-in-out infinite;
}

@keyframes flameFlicker {
    0% {
        height: 32px;
        width: 16px;
    }
    100% {
        height: 38px;
        width: 20px;
    }
}

@keyframes flameFlickerInner {
    0% {
        height: 20px;
        opacity: 0.9;
    }
    100% {
        height: 24px;
        opacity: 1;
    }
}

@keyframes flameSway {
    0%, 100% {
        transform: translateX(-50%) rotate(-2deg);
    }
    50% {
        transform: translateX(-50%) rotate(2deg);
    }
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0.6;
        transform: translateX(-50%) scale(1);
    }
    50% {
        opacity: 0.9;
        transform: translateX(-50%) scale(1.1);
    }
}

/* Candle Wick */
.candle-wick {
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 10px;
    background: linear-gradient(to top, #333 0%, #111 100%);
    border-radius: 1px;
}

/* Candle Body */
.candle-body {
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 80px;
    background: linear-gradient(90deg, 
        #f5f5dc 0%, 
        #fffef0 30%, 
        #f5f5dc 50%,
        #e8e8d0 70%,
        #f5f5dc 100%
    );
    border-radius: 3px 3px 5px 5px;
    box-shadow: 
        inset 0 -20px 30px rgba(0, 0, 0, 0.1),
        0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Wax Drips */
.candle-drip {
    position: absolute;
    background: linear-gradient(90deg, #f5f5dc 0%, #fffef0 50%, #f5f5dc 100%);
    border-radius: 0 0 50% 50%;
}

.drip-1 {
    top: 15px;
    left: 3px;
    width: 8px;
    height: 25px;
    animation: dripFlow 4s ease-in-out infinite;
}

.drip-2 {
    top: 25px;
    right: 5px;
    width: 6px;
    height: 18px;
    animation: dripFlow 5s ease-in-out infinite 1s;
}

@keyframes dripFlow {
    0%, 100% {
        height: 18px;
    }
    50% {
        height: 25px;
    }
}

/* Candle Holder */
.candle-holder {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 20px;
    background: linear-gradient(180deg, 
        #8B7355 0%, 
        #6B5344 30%, 
        #4a3728 100%
    );
    border-radius: 5px 5px 8px 8px;
    box-shadow: 
        0 5px 10px rgba(0, 0, 0, 0.4),
        inset 0 2px 5px rgba(255, 255, 255, 0.1);
}

.candle-holder::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 38px;
    height: 8px;
    background: linear-gradient(180deg, #9B8365 0%, #7B6355 100%);
    border-radius: 3px;
}

/* Memorial Text */
.memorial-text {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 2px 15px rgba(255, 150, 50, 0.5), 0 0 30px rgba(255, 150, 50, 0.3);
}

/* Dove Icon */
.dove-icon {
    width: 40px;
    height: 40px;
    color: rgba(255, 255, 255, 0.7);
    animation: doveFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

.dove-icon svg {
    width: 100%;
    height: 100%;
}

@keyframes doveFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-5px) rotate(2deg);
    }
    75% {
        transform: translateY(-3px) rotate(-2deg);
    }
}

/* Responsive - Tablet */
@media (max-width: 992px) {
    .memorial-overlay {
        transform: scale(0.85);
    }
    
    .memorial-left {
        left: 20px;
        transform-origin: bottom left;
    }
    
    .memorial-right {
        right: 20px;
        transform-origin: bottom right;
    }
}

/* Responsive - Mobile: Show only ONE centered candle */
@media (max-width: 768px) {
    /* Hide right side completely on mobile */
    .memorial-right {
        display: none;
    }
    
    /* Center the left one */
    .memorial-left {
        left: 50%;
        transform: translateX(-50%) scale(0.8);
        transform-origin: bottom center;
    }
    
    /* Hide small candles, show only the main one */
    .memorial-candle.small {
        display: none;
    }
    
    .mourning-ribbon {
        width: 100px;
        height: 100px;
    }
    
    .mourning-ribbon::before {
        top: 15px;
        right: -60px;
        width: 150px;
        height: 25px;
    }
}

@media (max-width: 480px) {
    .memorial-left {
        transform: translateX(-50%) scale(0.7);
        bottom: 20px;
    }
}
