/* 🎄 YILBAŞI TEMASI CSS - MÜŞTERİ PANELİ */
/* Apex SMM Panel - Christmas Theme for Customer Panel */
/* Kar yağışı, şekerler, yıldızlar ve süslemeler */

/* ==================== KAR YAĞIŞI ==================== */
.christmas-snow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    top: -10px;
    color: #fff;
    font-size: 1em;
    font-family: Arial, sans-serif;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    animation: fall linear infinite;
    opacity: 0.8;
    user-select: none;
    /* GPU acceleration */
    transform: translate3d(0, 0, 0);
    will-change: transform, opacity;
    backface-visibility: hidden;
}

@keyframes fall {
    0% {
        top: -10%;
        opacity: 1;
    }
    100% {
        top: 110%;
        opacity: 0.3;
    }
}

/* ==================== NAVBAR/HEADER SÜSLEMELERİ ==================== */
.navbar.christmas-theme,
header.christmas-theme,
.header.christmas-theme,
.top-header.christmas-theme {
    border-top: 3px solid #c41e3a;
    border-bottom: 3px solid #0fa542;
    box-shadow: 0 2px 10px rgba(196, 30, 58, 0.3);
    background: linear-gradient(to bottom, rgba(196, 30, 58, 0.05) 0%, transparent 100%);
}

/* ==================== CARD/PANEL BAŞLIKLARI ==================== */
.card-header.christmas-theme,
.panel-heading.christmas-theme,
.box-header.christmas-theme,
h1.christmas-theme,
h2.christmas-theme,
h3.christmas-theme {
    background: linear-gradient(135deg, #c41e3a 0%, #0fa542 100%) !important;
    color: white !important;
    position: relative;
    padding-left: 40px !important;
}

.card-header.christmas-theme::before,
.panel-heading.christmas-theme::before,
.box-header.christmas-theme::before {
    content: "🎄";
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
}

.card-header.christmas-theme::after,
.panel-heading.christmas-theme::after,
.box-header.christmas-theme::after {
    content: "⭐";
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    animation: twinkle 1.5s infinite;
}

@keyframes twinkle {
    0%, 100% { 
        opacity: 1; 
        transform: translateY(-50%) scale(1);
    }
    50% { 
        opacity: 0.3; 
        transform: translateY(-50%) scale(1.2);
    }
}

/* ==================== ŞEKER BASTONU SÜSLEMELERİ ==================== */
.christmas-candy {
    position: fixed;
    font-size: 35px;
    animation: swing 3s ease-in-out infinite;
    z-index: 998;
    pointer-events: none;
    user-select: none;
}

.christmas-candy.left {
    left: 15px;
    top: 100px;
}

.christmas-candy.right {
    right: 15px;
    top: 100px;
}

@keyframes swing {
    0%, 100% { 
        transform: rotate(-10deg); 
    }
    50% { 
        transform: rotate(10deg); 
    }
}

/* ==================== BUTONLARA ÖZEL EFEKT ==================== */
.btn.christmas-glow,
button.christmas-glow,
.button.christmas-glow {
    animation: glow 2s ease-in-out infinite alternate;
    transition: all 0.3s ease;
}

@keyframes glow {
    from {
        box-shadow: 0 0 5px #c41e3a, 0 0 10px #c41e3a;
    }
    to {
        box-shadow: 0 0 10px #0fa542, 0 0 20px #0fa542;
    }
}

/* ==================== ÇAN SÜSLEMESİ ==================== */
.christmas-bell {
    position: fixed;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 30px;
    animation: bell-ring 2s ease-in-out infinite;
    z-index: 997;
    pointer-events: none;
    user-select: none;
}

@keyframes bell-ring {
    0%, 100% { 
        transform: translateX(-50%) rotate(-15deg); 
    }
    50% { 
        transform: translateX(-50%) rotate(15deg); 
    }
}

/* ==================== YILDIZ PARLAMASI ==================== */
.christmas-stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 996;
}

.star {
    position: absolute;
    font-size: 18px;
    animation: star-twinkle 3s ease-in-out infinite;
    user-select: none;
}

@keyframes star-twinkle {
    0%, 100% { 
        opacity: 0; 
        transform: scale(0.5) rotate(0deg);
    }
    50% { 
        opacity: 1; 
        transform: scale(1.2) rotate(180deg);
    }
}

/* ==================== KONFETİ EFEKTİ ==================== */
.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    animation: confetti-fall 5s linear infinite;
    pointer-events: none;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* ==================== HOŞ GELDİN MESAJI ==================== */
.christmas-welcome {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #c41e3a, #0fa542);
    color: white;
    padding: 30px 50px;
    border-radius: 20px;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    z-index: 10000;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.5s;
}

.christmas-welcome small {
    font-size: 16px;
    display: block;
    margin-top: 10px;
    opacity: 0.9;
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translate(-50%, -60%); 
    }
    to { 
        opacity: 1; 
        transform: translate(-50%, -50%); 
    }
}

@keyframes fadeOut {
    from { 
        opacity: 1; 
    }
    to { 
        opacity: 0; 
    }
}

/* ==================== ÇAM AĞACI SÜSLEMESİ ==================== */
.christmas-tree {
    position: fixed;
    bottom: 20px;
    right: 25px;
    font-size: 50px;
    z-index: 995;
    pointer-events: none;
    user-select: none;
    animation: tree-glow 2s ease-in-out infinite;
}

@keyframes tree-glow {
    0%, 100% {
        filter: drop-shadow(0 0 5px #0fa542);
    }
    50% {
        filter: drop-shadow(0 0 20px #0fa542);
    }
}

/* ==================== NOEL BABA SÜSLEMESİ ==================== */
.christmas-santa {
    position: fixed;
    bottom: 20px;
    left: 25px;
    font-size: 45px;
    z-index: 995;
    pointer-events: none;
    user-select: none;
    animation: santa-wave 3s ease-in-out infinite;
}

@keyframes santa-wave {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-10deg);
    }
    75% {
        transform: rotate(10deg);
    }
}

/* ==================== HEDİYE KUTUSU ==================== */
.christmas-gift {
    position: fixed;
    top: 50%;
    right: 25px;
    font-size: 30px;
    z-index: 994;
    pointer-events: none;
    user-select: none;
    animation: gift-bounce 2s ease-in-out infinite;
}

@keyframes gift-bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* ==================== FORM SÜSLEMELERİ ==================== */
.form-control.christmas-border,
input.christmas-border,
textarea.christmas-border,
select.christmas-border {
    border: 2px solid transparent;
    background-image: linear-gradient(white, white), linear-gradient(135deg, #c41e3a, #0fa542);
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

/* ==================== RESPONSIVE TASARIM ==================== */
@media (max-width: 768px) {
    .christmas-candy {
        font-size: 25px;
    }
    
    .christmas-candy.left {
        left: 10px;
        top: 70px;
    }
    
    .christmas-candy.right {
        right: 10px;
        top: 70px;
    }
    
    .christmas-bell {
        font-size: 22px;
        top: 10px;
    }
    
    .christmas-tree,
    .christmas-santa {
        font-size: 30px;
        bottom: 10px;
    }
    
    .christmas-tree {
        right: 10px;
    }
    
    .christmas-santa {
        left: 10px;
    }
    
    .christmas-gift {
        display: none;
    }
    
    .christmas-welcome {
        padding: 20px 30px;
        font-size: 18px;
        max-width: 90%;
    }
    
    .snowflake {
        font-size: 0.7em !important;
        animation-duration: 3s !important; /* Daha hızlı düşsün */
    }
    
    .star {
        font-size: 14px;
    }
    
    /* Mobilde konfeti tamamen kapat */
    .confetti {
        display: none !important;
    }
    
    /* Mobilde ağır animasyonları kapat */
    .christmas-candy,
    .christmas-bell,
    .christmas-gift {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .christmas-candy {
        font-size: 20px;
    }
    
    .christmas-tree,
    .christmas-santa {
        font-size: 25px;
    }
    
    .christmas-bell {
        font-size: 18px;
    }
    
    .snowflake {
        font-size: 0.7em;
    }
}

/* ==================== DARK MODE UYUMLULUĞU ==================== */
body.dark-mode .snowflake,
body[dark-mode] .snowflake,
.dark-theme .snowflake {
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
}

body.dark-mode .card-header.christmas-theme,
body[dark-mode] .card-header.christmas-theme,
.dark-theme .card-header.christmas-theme {
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ==================== TABLE SÜSLEMELERİ ==================== */
table.table thead.christmas-theme,
table thead.christmas-theme {
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.1) 0%, rgba(15, 165, 66, 0.1) 100%);
}

table.table tbody tr:hover {
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.05) 0%, rgba(15, 165, 66, 0.05) 100%);
}

/* ==================== PERFORMANS OPTİMİZASYONU ==================== */
.christmas-snow,
.christmas-stars,
.christmas-candy,
.christmas-bell,
.christmas-tree,
.christmas-santa,
.christmas-gift {
    will-change: transform;
}

.snowflake,
.star,
.confetti {
    will-change: transform, opacity;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
}

/* Yıldızlar için GPU acceleration */
.star {
    transform: translate3d(0, 0, 0);
}

/* Konfeti için GPU acceleration */
.confetti {
    transform: translate3d(0, 0, 0);
}

/* ==================== SİDEBAR SÜSLEMELERİ ==================== */
.sidebar.christmas-theme,
.side-menu.christmas-theme {
    border-right: 3px solid #c41e3a;
}

.sidebar-menu li.active.christmas-theme,
.side-menu li.active.christmas-theme {
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.1) 0%, rgba(15, 165, 66, 0.1) 100%);
    border-left: 3px solid #c41e3a;
}

/* ==================== FOOTER SÜSLEMELERİ ==================== */
footer.christmas-theme,
.footer.christmas-theme {
    border-top: 3px solid #0fa542;
    background: linear-gradient(to top, rgba(15, 165, 66, 0.05) 0%, transparent 100%);
}

/* ==================== LOADING SPINNER SÜSLEMESİ ==================== */
.spinner-border.christmas-theme,
.loader.christmas-theme {
    border-top-color: #c41e3a;
    border-right-color: #0fa542;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==================== ALERT/NOTIFICATION SÜSLEMELERİ ==================== */
.alert.christmas-theme,
.notification.christmas-theme {
    border-left: 4px solid #c41e3a;
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.05) 0%, rgba(15, 165, 66, 0.05) 100%);
}

/* ==================== BADGE SÜSLEMELERİ ==================== */
.badge.christmas-theme,
.label.christmas-theme {
    background: linear-gradient(135deg, #c41e3a 0%, #0fa542 100%);
    color: white;
}

/* ==================== PROGRESS BAR SÜSLEMELERİ ==================== */
.progress-bar.christmas-theme {
    background: linear-gradient(135deg, #c41e3a 0%, #0fa542 100%);
    animation: progress-glow 2s ease-in-out infinite;
}

@keyframes progress-glow {
    0%, 100% {
        box-shadow: 0 0 5px #c41e3a;
    }
    50% {
        box-shadow: 0 0 15px #0fa542;
    }
}

/* ==================== MODAL SÜSLEMELERİ ==================== */
.modal-header.christmas-theme {
    background: linear-gradient(135deg, #c41e3a 0%, #0fa542 100%);
    color: white;
}

.modal-content.christmas-theme {
    border: 2px solid transparent;
    background-image: linear-gradient(white, white), linear-gradient(135deg, #c41e3a, #0fa542);
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

/* ==================== FOOTER MESAJI ==================== */
.christmas-footer-message {
    text-align: center;
    padding: 15px;
    font-size: 18px;
    font-weight: bold;
    background: linear-gradient(135deg, #c41e3a, #0fa542);
    color: white;
    margin-top: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(196, 30, 58, 0.3);
}

