/* ========================================
   TẾT 2026 DECORATIONS - HIỆU ỨNG TRANG TRÍ
   Pháo hoa - Hoa mai rơi - Đèn lồng
   ======================================== */

/* ============ FALLING FLOWER PETALS ============ */
.tet-petals-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.tet-petal {
    position: absolute;
    top: -50px;
    animation: falling-petal linear infinite;
    opacity: 0.8;
}

.tet-petal.cherry {
    width: 15px;
    height: 15px;
    background: radial-gradient(circle at 30% 30%, #FFB7C5, #FF69B4);
    border-radius: 50% 0 50% 50%;
    transform: rotate(45deg);
    box-shadow: 0 2px 10px rgba(255, 105, 180, 0.3);
}

.tet-petal.yellow {
    width: 12px;
    height: 12px;
    background: radial-gradient(circle at 30% 30%, #FFD700, #FFA500);
    border-radius: 50% 0 50% 50%;
    transform: rotate(45deg);
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.4);
}

.tet-petal.red-envelope {
    width: 20px;
    height: 25px;
    background: linear-gradient(135deg, #FF0000, #CC0000);
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(255, 0, 0, 0.4);
}

.tet-petal.coin {
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.5);
    border: 2px solid #B8860B;
}

@keyframes falling-petal {
    0% {
        transform: translateY(-50px) rotate(0deg) translateX(0);
        opacity: 1;
    }

    25% {
        transform: translateY(25vh) rotate(90deg) translateX(30px);
    }

    50% {
        transform: translateY(50vh) rotate(180deg) translateX(-20px);
    }

    75% {
        transform: translateY(75vh) rotate(270deg) translateX(40px);
    }

    100% {
        transform: translateY(110vh) rotate(360deg) translateX(0);
        opacity: 0;
    }
}

/* ============ FIREWORK EFFECTS ============ */
.firework-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    pointer-events: none;
    z-index: 9998;
    overflow: hidden;
}

.firework {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    animation: firework-rise 2s ease-out infinite;
}

.firework::before,
.firework::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.firework.red {
    background: #FF4444;
    box-shadow: 0 0 20px #FF4444, 0 0 40px #FF4444;
}

.firework.gold {
    background: #FFD700;
    box-shadow: 0 0 20px #FFD700, 0 0 40px #FFD700;
}

.firework.pink {
    background: #FF69B4;
    box-shadow: 0 0 20px #FF69B4, 0 0 40px #FF69B4;
}

@keyframes firework-rise {
    0% {
        transform: translateY(100vh) scale(1);
        opacity: 1;
    }

    50% {
        transform: translateY(20vh) scale(1.5);
        opacity: 1;
    }

    70% {
        transform: translateY(10vh) scale(3);
        opacity: 0.8;
    }

    100% {
        transform: translateY(10vh) scale(0);
        opacity: 0;
    }
}

/* ============ LANTERN DECORATIONS ============ */
.tet-lanterns {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 120px;
    pointer-events: none;
    z-index: 100;
    display: flex;
    justify-content: space-around;
    padding: 0 20px;
}

.lantern {
    position: relative;
    animation: lantern-swing 3s ease-in-out infinite;
    transform-origin: top center;
}

.lantern-body {
    width: 50px;
    height: 70px;
    background: linear-gradient(180deg, #FF2222 0%, #CC0000 30%, #990000 70%, #CC0000 100%);
    border-radius: 50% 50% 40% 40%;
    box-shadow:
        0 0 30px rgba(255, 50, 50, 0.6),
        inset 0 -20px 40px rgba(0, 0, 0, 0.3),
        inset 0 20px 40px rgba(255, 255, 200, 0.2);
    position: relative;
}

.lantern-body::before {
    content: '福';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 28px;
    color: #FFD700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
    font-weight: bold;
}

.lantern-top {
    width: 30px;
    height: 15px;
    background: linear-gradient(180deg, #8B4513, #654321, #8B4513);
    border-radius: 5px 5px 0 0;
    margin: 0 auto;
    position: relative;
}

.lantern-top::before {
    content: '';
    position: absolute;
    top: -30px;
    left: 50%;
    width: 2px;
    height: 30px;
    background: #654321;
    transform: translateX(-50%);
}

.lantern-bottom {
    width: 30px;
    height: 15px;
    background: linear-gradient(180deg, #8B4513, #654321);
    border-radius: 0 0 5px 5px;
    margin: 0 auto;
}

.lantern-tassel {
    width: 2px;
    height: 35px;
    background: linear-gradient(180deg, #FFD700, #FF6B00);
    margin: 0 auto;
    position: relative;
}

.lantern-tassel::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 25px;
    background: linear-gradient(180deg, #FFD700, #FF6B00);
    border-radius: 0 0 50% 50%;
    clip-path: polygon(20% 0, 80% 0, 100% 30%, 90% 50%, 100% 70%, 80% 100%, 50% 80%, 20% 100%, 0 70%, 10% 50%, 0 30%);
}

@keyframes lantern-swing {

    0%,
    100% {
        transform: rotate(-5deg);
    }

    50% {
        transform: rotate(5deg);
    }
}

/* ============ SPARKLE EFFECTS ============ */
.tet-sparkle {
    position: relative;
}

.tet-sparkle::before,
.tet-sparkle::after {
    content: '✨';
    position: absolute;
    font-size: 20px;
    animation: sparkle-float 2s ease-in-out infinite;
    pointer-events: none;
}

.tet-sparkle::before {
    top: -10px;
    right: -10px;
    animation-delay: 0s;
}

.tet-sparkle::after {
    bottom: -10px;
    left: -10px;
    animation-delay: 1s;
}

@keyframes sparkle-float {

    0%,
    100% {
        opacity: 0;
        transform: scale(0.5);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* ============ GLOWING BORDER ============ */
.tet-glow-border {
    position: relative;
    border: 2px solid transparent !important;
    background:
        linear-gradient(white, white) padding-box,
        linear-gradient(135deg, #FFD700, #FF0000, #FFD700) border-box !important;
    animation: border-glow 3s ease-in-out infinite;
}

@keyframes border-glow {

    0%,
    100% {
        box-shadow: 0 0 10px rgba(255, 215, 0, 0.3), 0 0 20px rgba(255, 0, 0, 0.2);
    }

    50% {
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.5), 0 0 40px rgba(255, 0, 0, 0.3);
    }
}

/* ============ TET BANNER ENHANCEMENTS ============ */
#tet-event-section .card {
    border: 3px solid #FFD700 !important;
    box-shadow:
        0 0 30px rgba(255, 215, 0, 0.4),
        0 0 60px rgba(198, 40, 40, 0.3),
        inset 0 0 50px rgba(255, 215, 0, 0.1) !important;
}

#tet-event-section .card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #FFD700, #FF0000, #FFD700, #FF0000);
    background-size: 400% 400%;
    animation: gradient-border 3s ease infinite;
    z-index: -1;
    border-radius: 22px;
}

@keyframes gradient-border {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* ============ LUCKY CAT ANIMATION ============ */
.lucky-cat {
    animation: cat-wave 1s ease-in-out infinite;
    transform-origin: bottom center;
}

@keyframes cat-wave {

    0%,
    100% {
        transform: rotate(-5deg);
    }

    50% {
        transform: rotate(5deg);
    }
}

/* ============ RED ENVELOPE RAIN ============ */
.li-xi-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9997;
    overflow: hidden;
}

.li-xi {
    position: absolute;
    width: 30px;
    height: 40px;
    background: linear-gradient(180deg, #FF0000 0%, #CC0000 50%, #990000 100%);
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.4);
    animation: li-xi-fall linear infinite;
}

.li-xi::before {
    content: '福';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 18px;
    color: #FFD700;
    font-weight: bold;
}

.li-xi::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 15px;
    background: linear-gradient(180deg, #FFD700, #FFA500);
    border-radius: 10px 10px 0 0;
}

@keyframes li-xi-fall {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(110vh) rotate(720deg);
        opacity: 0.5;
    }
}

/* ============ CONFETTI BURST ============ */
.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    animation: confetti-fall linear infinite;
}

.confetti.square {
    background: #FFD700;
}

.confetti.circle {
    background: #FF0000;
    border-radius: 50%;
}

.confetti.triangle {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 10px solid #FF69B4;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(-50px) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* ============ FORTUNE TEXT ============ */
.fortune-text {
    background: linear-gradient(135deg, #FFD700, #FF4500, #FFD700);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fortune-shine 3s ease-in-out infinite;
    text-shadow: none;
}

@keyframes fortune-shine {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* ============ PULSE GLOW FOR BUTTONS ============ */
.tet-pulse-btn {
    animation: tet-pulse 2s ease-in-out infinite;
}

@keyframes tet-pulse {

    0%,
    100% {
        box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
    }

    50% {
        box-shadow: 0 0 30px rgba(255, 215, 0, 0.8), 0 0 50px rgba(255, 0, 0, 0.4);
    }
}

/* ============ GOLD SHIMMER TEXT ============ */
.gold-shimmer {
    background: linear-gradient(90deg, #FFD700 0%, #FFF8DC 25%, #FFD700 50%, #FFF8DC 75%, #FFD700 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gold-shimmer 2s linear infinite;
}

@keyframes gold-shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* ============ TOP CORNER DECORATIONS ============ */
.tet-corner-decor {
    position: fixed;
    width: 150px;
    height: 150px;
    z-index: 99;
    pointer-events: none;
}

.tet-corner-decor.top-left {
    top: 0;
    left: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M0 0 L100 0 L100 20 Q50 50 0 100 Z' fill='%23C62828'/%3E%3Cpath d='M0 0 L80 0 L80 15 Q40 40 0 80 Z' fill='%23FFD700'/%3E%3C/svg%3E");
    background-size: cover;
}

.tet-corner-decor.top-right {
    top: 0;
    right: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M100 0 L0 0 L0 20 Q50 50 100 100 Z' fill='%23C62828'/%3E%3Cpath d='M100 0 L20 0 L20 15 Q60 40 100 80 Z' fill='%23FFD700'/%3E%3C/svg%3E");
    background-size: cover;
}

/* ============ FLOATING EMOJI DECORATIONS ============ */
.floating-emoji {
    position: fixed;
    font-size: 30px;
    animation: float-around 6s ease-in-out infinite;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.8;
}

.floating-emoji:nth-child(1) {
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.floating-emoji:nth-child(2) {
    top: 20%;
    right: 8%;
    animation-delay: 1s;
}

.floating-emoji:nth-child(3) {
    top: 40%;
    left: 3%;
    animation-delay: 2s;
}

.floating-emoji:nth-child(4) {
    top: 60%;
    right: 5%;
    animation-delay: 3s;
}

.floating-emoji:nth-child(5) {
    top: 80%;
    left: 10%;
    animation-delay: 4s;
}

@keyframes float-around {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-20px) rotate(10deg);
    }

    50% {
        transform: translateY(0) rotate(0deg);
    }

    75% {
        transform: translateY(20px) rotate(-10deg);
    }
}

/* ============ MOBILE RESPONSIVE ============ */
@media (max-width: 768px) {
    .tet-lanterns {
        height: 80px;
    }

    .lantern-body {
        width: 35px;
        height: 50px;
    }

    .lantern-body::before {
        font-size: 20px;
    }

    .floating-emoji {
        font-size: 20px;
    }

    .tet-corner-decor {
        width: 80px;
        height: 80px;
    }
}

/* ============ DISABLE ANIMATIONS FOR REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {

    .tet-petal,
    .firework,
    .lantern,
    .li-xi,
    .confetti,
    .floating-emoji {
        animation: none;
    }
}