@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');


@layer base {
    html {
        color-scheme: dark;
        @apply dark;
    }
    
    body {
        @apply bg-gray-900 text-white;
    }
}   
        body {
            font-family: 'Inter', sans-serif;
            transition: background-color 0.3s, color 0.3s;
        }

.badge-card {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.badge-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s;
}

.badge-card:hover::before {
    left: 100%;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.badge-card {
    animation: fadeInUp 0.6s ease-out;
}
        
        .badge-admin {
    background: #ff6b6b;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
}

.badge-user {
    background: #4ecdc4;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
}

.badge-default {
    background: #95a5a6;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
}
        .gradient-bg {
            background: linear-gradient(90deg, #4f46e5 0%, #7c3aed 100%);
        }
        .mobile-menu {
            transform: translateX(100%);
            transition: transform 0.3s ease-in-out;
        }
        .mobile-menu.open {
            transform: translateX(0);
        }
        @media (max-width: 768px) {
            .no-scroll {
                overflow: hidden;
            }
        }
      
        
        .warning-box {
            background: linear-gradient(135deg, #fed7d7 0%, #feb2b2 100%);
            border: 2px solid #fc8181;
            border-radius: 12px;
            padding: 2rem;
            margin: 2rem 0;
            text-align: center;
        }
        .btn-danger {
            background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
            color: white;
            padding: 12px 24px;
            border: none;
            border-radius: 8px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        .btn-danger:hover {
            background: linear-gradient(135deg, #c53030 0%, #9b2c2c 100%);
            transform: translateY(-2px);
        }
        .btn-secondary {
            background: #718096;
            color: white;
            padding: 12px 24px;
            border: none;
            border-radius: 8px;
            font-size: 16px;
            text-decoration: none;
            display: inline-block;
            transition: all 0.3s ease;
        }
        .btn-secondary:hover {
            background: #4a5568;
            transform: translateY(-2px);
        }      
        
         .btn-primary {
            background: linear-gradient(120deg, #4f46e5, #7c3aed);
            transition: all 0.3s;
        }
        
        .btn-primary:hover {
            background: linear-gradient(120deg, #4338ca, #6d28d9);
            transform: translateY(-2px);
            box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.3), 0 2px 4px -1px rgba(79, 70, 229, 0.1);
        }       


         /* Новые стили для переключения тем */
        .theme-selector {
            position: relative;
            display: inline-block;
        }
        
        .theme-dropdown {
            position: absolute;
            right: 0;
            top: 100%;
            margin-top: 0.5rem;
            width: 180px;
            background: white;
            border-radius: 0.5rem;
            padding: 0.75rem;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
            z-index: 10;
            opacity: 0;
            visibility: hidden;
            transform: translateY(-10px);
            transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
        }
        
        .dark .theme-dropdown {
            background: #1f2937;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
        }
        
        .theme-selector.open .theme-dropdown {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }
        
        .theme-option {
            display: flex;
            align-items: center;
            padding: 0.5rem;
            border-radius: 0.375rem;
            cursor: pointer;
            transition: background-color 0.2s;
        }
        
        .theme-option:hover {
            background-color: #f3f4f6;
        }
        
        .dark .theme-option:hover {
            background-color: #374151;
        }
        
        .theme-option.active {
            background-color: #eef2ff;
            font-weight: 500;
        }
        
        .dark .theme-option.active {
            background-color: #3730a3;
        }
        
        .theme-icon {
            width: 20px;
            height: 20px;
            margin-right: 0.75rem;
            display: flex;
            align-items: center;
            justify-content: center;
        }

                .gradient-bg { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
        .btn-primary { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
        .btn-primary:hover { opacity: 0.9; }
        .animate-fade-in { animation: fadeIn 0.5s ease-in; }
        @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
        

        
        /* Оптимизация загрузки */
        .lazy-load { opacity: 0; transition: opacity 0.3s; }
        .lazy-load.loaded { opacity: 1; }  

    footer a {
        transition: all 0.3s ease;
    }
    
    footer a:hover {
        transform: translateY(-1px);
    }
    
    .bg-gradient-footer {
        background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    }
    
    /* Анимация появления */
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    footer > div {
        animation: fadeInUp 0.6s ease-out;
    }
     /* Анимации для навбара */
    nav {
        transition: transform 0.3s ease, opacity 0.5s ease;
    }

    /* Градиентный текст */
    .gradient-text {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    /* Стили для скроллбара в мобильном меню */
    #mobile-menu div::-webkit-scrollbar {
        width: 4px;
    }

    #mobile-menu div::-webkit-scrollbar-track {
        background: transparent;
    }

    #mobile-menu div::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 2px;
    }

.dark #mobile-menu div::-webkit-scrollbar-thumb {
        background
   /* Add to your main CSS file */
   
.overflow-hidden {
    overflow: hidden;
}

.fixed {
    position: fixed;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.z-50 {
    z-index: 50;
}

.transition-opacity {
    transition: opacity 0.15s ease-in-out;
}

.bg-opacity-50 {
    --tw-bg-opacity: 0.5;
}

.max-h-96 {
    max-height: 24rem;
}

.overflow-y-auto {
    overflow-y: auto;
}     


   /* Вставьте в конец вашего CSS файла */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
    position: relative;
}

* {
    box-sizing: border-box;
    animation-duration: 0.2s !important;
    transition-duration: 0.2s !important;
  }
  
  /* Отключите самые тяжелые анимации */
  .hover\\:scale-110:hover { transform: scale(1.05) !important; }
  .hover\\:rotate-3:hover { transform: rotate(1deg) !important; }
  .backdrop-blur-sm { backdrop-filter: none !important; }

/* Новогодняя гирлянда */
@keyframes twinkle {
  0%, 100% { opacity: 0.3; filter: brightness(0.7); }
  25% { opacity: 0.6; filter: brightness(0.9); }
  50% { opacity: 1; filter: brightness(1.2); transform: scale(1.1); }
  75% { opacity: 0.8; filter: brightness(1); }
}

@keyframes twinkle-multicolor {
  0%, 100% { opacity: 0.4; filter: brightness(0.6); }
  33% { opacity: 0.8; filter: brightness(0.9); transform: scale(1.05); }
  66% { opacity: 1; filter: brightness(1.3); transform: scale(1.1); }
}

.garland {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 20px;
    z-index: 9999;
    pointer-events: none;
    overflow: hidden;
    display: flex;
    justify-content: center;
    gap: 2px;
    padding: 0 10px;
}

.garland-light {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 1px;
    animation: twinkle 2s infinite;
    box-shadow: 0 0 8px currentColor;
    flex-shrink: 0;
}

/* Цвета гирлянды */
.garland-red { 
    background: linear-gradient(135deg, #ff3333, #ff6666);
    color: #ff3333;
    animation-delay: 0s;
}
.garland-green { 
    background: linear-gradient(135deg, #33ff33, #66ff66);
    color: #33ff33;
    animation-delay: 0.3s;
}
.garland-blue { 
    background: linear-gradient(135deg, #3333ff, #6666ff);
    color: #3333ff;
    animation-delay: 0.6s;
}
.garland-yellow { 
    background: linear-gradient(135deg, #ffff33, #ffff66);
    color: #ffff33;
    animation-delay: 0.9s;
}
.garland-purple { 
    background: linear-gradient(135deg, #ff33ff, #ff66ff);
    color: #ff33ff;
    animation-delay: 1.2s;
}

/* Для мобильных устройств - упрощенная гирлянда */
@media (max-width: 768px) {
    .garland {
        height: 15px;
        gap: 1px;
    }
    .garland-light {
        width: 8px;
        height: 8px;
        animation: twinkle 3s infinite;
    }
}

/* Анимация только при наличии класса .holiday-mode */
body.holiday-mode .garland-light {
    animation-play-state: running;
}
body:not(.holiday-mode) .garland-light {
    animation-play-state: paused;
    opacity: 0.3;
}

/* Мигающий новогодний текст */
@keyframes christmasBlink {
    0%, 100% { 
        color: #ff3333;
        text-shadow: 0 0 5px #ff3333;
    }
    50% { 
        color: #33ff33;
        text-shadow: 0 0 10px #33ff33;
    }
}

.christmas-text {
    animation: christmasBlink 2s infinite;
}
}
/* Снежинки */
@keyframes fall {
    0% { transform: translateY(-100px) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(100vh) rotate(360deg); opacity: 0; }
}

.snowflake {
    position: fixed;
    top: -20px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1em;
    text-shadow: 0 0 5px white;
    user-select: none;
    z-index: 9998;
    pointer-events: none;
    animation: fall linear infinite;
}

    /* Анимации */
    @keyframes slideIn {
        from {
            transform: translateX(-100%);
        }
        to {
            transform: translateX(0);
        }
    }

    @keyframes slideOut {
        from {
            transform: translateX(0);
        }
        to {
            transform: translateX(-100%);
        }
    }

    .mobile-menu-open {
        animation: slideIn 0.3s ease-out forwards;
    }

    .mobile-menu-closed {
        animation: slideOut 0.3s ease-in forwards;
    }
    


        /* Кастомный скроллбар - упрощаем */
    ::-webkit-scrollbar {
        width: 8px;
    }

    ::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.05);
    }

    ::-webkit-scrollbar-thumb {
        background: linear-gradient(135deg, #667eea, #764ba2);
        border-radius: 4px;
    }    

