/* Цветовые переменные для всех тем */

:root {
    /* Cyberpunk Neon (Админ-панель) */
    --neon-cyan: #00ffff;
    --neon-magenta: #ff00ff;
    --neon-green: #00ff00;
    --neon-yellow: #ffff00;
    --neon-pink: #ff1493;
    
    /* Более светлый фон для лучшей читаемости */
    --bg-dark: #1a1a2e;
    --bg-darker: #0f0f1e;
    --bg-grid: #16213e;
    --bg-card: rgba(26, 26, 46, 0.9);
    
    /* Улучшенные цвета текста для контраста */
    --text-primary: #e0e0e0;
    --text-secondary: #00ffff;
    --text-accent: #ff00ff;
    --text-muted: #b0b0b0;
    
    /* Synthwave Sunset (Публичная часть) */
    --sunset-pink: #ff006e;
    --sunset-orange: #ff6b35;
    --sunset-purple: #8338ec;
    --sunset-blue: #3a86ff;
    --sunset-cyan: #06ffa5;
    
    --gradient-sunset: linear-gradient(135deg, #ff006e, #8338ec, #3a86ff);
    --bg-sunset: #1a1a2e;
    --bg-sunset-darker: #0f0f1e;
    
    /* Retro Terminal (Личный кабинет) */
    --terminal-green: #00ff41;
    --terminal-dark-green: #00cc33;
    --bg-terminal: #0d1b0d;
    --bg-terminal-grid: #0f2a0f;
    
    --neon-blue: #00d9ff;
    --neon-orange: #ff6b00;
    
    /* Новые переменные для анимаций */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}


/* Базовый размер шрифта для всего сайта */
body {
    font-size: 18px !important;
    line-height: 1.6 !important;
    font-variant-numeric: normal;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Шрифты с едиными размерами и выравниванием */

.font-pixel {
    font-family: 'Press Start 2P', cursive;
    font-size: 18px !important;
    line-height: 1.5 !important;
    font-size-adjust: 0.5;
    letter-spacing: 0.05em;
    text-rendering: optimizeLegibility;
}

.font-terminal {
    font-family: 'VT323', monospace;
    font-size: 18px !important;
    line-height: 1.6 !important;
    font-size-adjust: 0.5;
    letter-spacing: 0.02em;
    text-rendering: optimizeLegibility;
}

.font-futuristic {
    font-family: 'Orbitron', sans-serif;
    font-size: 18px !important;
    line-height: 1.5 !important;
    font-size-adjust: 0.5;
    letter-spacing: 0.03em;
    text-rendering: optimizeLegibility;
}

/* Унификация размеров заголовков с выравниванием */
h1,
h1.font-pixel,
h1.text-neon-cyan,
h1.text-4xl {
    font-family: 'Press Start 2P', cursive !important;
    font-size: 28px !important;
    line-height: 1.4 !important;
    margin-bottom: 20px !important;
    font-size-adjust: 0.5 !important;
    letter-spacing: 0.05em !important;
    text-rendering: optimizeLegibility !important;
}

h2,
h2.font-pixel,
h2.font-futuristic,
h2.text-2xl,
h2.text-xl {
    font-family: 'Press Start 2P', cursive !important;
    font-size: 22px !important;
    line-height: 1.4 !important;
    margin-bottom: 16px !important;
    font-size-adjust: 0.5 !important;
    letter-spacing: 0.05em !important;
    text-rendering: optimizeLegibility !important;
}

h3,
h3.font-futuristic,
h3.font-pixel,
h3.text-xl {
    font-family: 'Orbitron', sans-serif !important;
    font-size: 20px !important;
    line-height: 1.4 !important;
    margin-bottom: 12px !important;
    font-size-adjust: 0.5 !important;
    letter-spacing: 0.03em !important;
    text-rendering: optimizeLegibility !important;
}

/* Унификация параграфов и текста с выравниванием */
p,
p.font-terminal,
p.text-lg,
li,
li.font-terminal,
a,
a.font-terminal,
span,
span.font-terminal {
    font-family: 'VT323', monospace !important;
    font-size: 18px !important;
    line-height: 1.6 !important;
    margin-bottom: 12px !important;
    font-size-adjust: 0.5 !important;
    letter-spacing: 0.02em !important;
    text-rendering: optimizeLegibility !important;
}

/* Переопределение всех Tailwind классов для единообразия */
.text-4xl,
.text-3xl,
.text-2xl,
.text-xl,
.text-lg,
.text-base,
.text-sm {
    font-size: 18px !important;
}

h1.text-4xl,
h1.text-3xl {
    font-size: 28px !important;
}

h2.text-2xl,
h2.text-xl {
    font-size: 22px !important;
}

h3.text-xl,
h3.text-lg {
    font-size: 20px !important;
}


/* Общие компоненты */

/* Улучшенные кнопки с пульсацией */
.btn-neon-cyan {
    background: transparent;
    border: 2px solid var(--neon-cyan);
    color: var(--neon-cyan);
    padding: 14px 28px;
    font-family: 'Press Start 2P', cursive;
    font-size: 12px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 0 15px var(--neon-cyan),
        inset 0 0 10px rgba(0, 255, 255, 0.1);
    transition: all var(--transition-normal);
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    border-radius: 2px;
}

.btn-neon-cyan::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--neon-cyan);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    opacity: 0.3;
    z-index: -1;
}

.btn-neon-cyan:hover::after {
    width: 300px;
    height: 300px;
}

.btn-neon-cyan:hover {
    background: var(--neon-cyan);
    color: var(--bg-dark);
    box-shadow: 
        0 0 25px var(--neon-cyan),
        0 0 50px var(--neon-cyan),
        0 0 75px var(--neon-cyan);
    transform: translateY(-3px) scale(1.05);
}

.btn-neon-cyan:active {
    transform: translateY(-1px) scale(1.02);
}

/* Карточки с анимацией появления */
.card-neon {
    background: var(--bg-card);
    border: 2px solid var(--neon-cyan);
    box-shadow: 
        0 0 15px rgba(0, 255, 255, 0.4),
        inset 0 0 15px rgba(0, 255, 255, 0.1),
        0 4px 20px rgba(0, 0, 0, 0.5);
    padding: 24px;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    transition: all var(--transition-normal);
    animation: fadeInUp 0.6s ease-out;
}

/* Анимация появления карточек */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Задержка анимации для каждой карточки */
.card-neon:nth-child(1) { animation-delay: 0.1s; }
.card-neon:nth-child(2) { animation-delay: 0.2s; }
.card-neon:nth-child(3) { animation-delay: 0.3s; }
.card-neon:nth-child(4) { animation-delay: 0.4s; }
.card-neon:nth-child(5) { animation-delay: 0.5s; }
.card-neon:nth-child(6) { animation-delay: 0.6s; }

.card-neon:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 0 25px rgba(0, 255, 255, 0.6),
        inset 0 0 20px rgba(0, 255, 255, 0.2),
        0 8px 30px rgba(0, 0, 0, 0.7);
    border-color: var(--neon-magenta);
}

/* Эффект свечения при наведении */
.card-neon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 255, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity var(--transition-normal);
    pointer-events: none;
}

.card-neon:hover::before {
    opacity: 1;
}

/* Улучшенный фоновый grid с анимацией */
.bg-grid-neon {
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
    background-image: 
        linear-gradient(rgba(0, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 30px 30px;
    position: relative;
    min-height: 100vh;
}

/* Анимация пульсации для grid */
@keyframes gridPulse {
    0%, 100% { opacity: 0.08; }
    50% { opacity: 0.15; }
}

.bg-grid-neon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(0, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    animation: gridPulse 4s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

.bg-grid-neon > * {
    position: relative;
    z-index: 1;
}

/* Улучшенное меню */
.menu-neon {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--neon-cyan);
    box-shadow: 0 4px 30px rgba(0, 255, 255, 0.3);
    padding: 18px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.menu-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    text-decoration: none;
    color: var(--neon-magenta);
    font-family: 'Press Start 2P', cursive;
    font-size: 18px !important;
    font-size-adjust: 0.5 !important;
    letter-spacing: 0.05em !important;
    text-shadow: 0 0 4px var(--neon-magenta);
    border-bottom: 2px solid var(--neon-magenta);
    padding-bottom: 5px;
    transition: all 0.3s;
    text-rendering: optimizeLegibility !important;
}

.logo:hover {
    color: var(--neon-cyan);
    border-bottom-color: var(--neon-cyan);
    text-shadow: 0 0 4px var(--neon-cyan);
}

.menu-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    height: 100%;
}

.menu-list li {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

.menu-item-neon {
    color: var(--neon-cyan);
    padding: 15px 20px;
    text-decoration: none;
    font-family: 'Press Start 2P', cursive;
    font-size: 14px !important;
    font-size-adjust: 0.5 !important;
    letter-spacing: 0.05em !important;
    position: relative;
    transition: all 0.3s;
    display: block;
    text-shadow: 0 0 2px var(--neon-cyan);
    text-rendering: optimizeLegibility !important;
    line-height: 1.2 !important;
    white-space: nowrap;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.menu-item-neon::before {
    content: '>';
    opacity: 0;
    margin-right: 10px;
    transition: opacity 0.3s;
}

.menu-item-neon:hover::before {
    opacity: 1;
}

.menu-item-neon:hover {
    color: var(--neon-magenta);
    text-shadow: 0 0 3px var(--neon-magenta);
}

/* Форма в меню (для кнопки выхода) */
.inline-form {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    height: 100%;
    line-height: 0;
}

.inline-form button.menu-item-neon {
    background: none;
    border: none;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 15px 20px;
    cursor: pointer;
    line-height: 1;
    height: auto;
    cursor: pointer;
    padding: 15px 20px;
    font-family: 'Press Start 2P', cursive;
    font-size: 10px;
    color: var(--neon-cyan);
    transition: all 0.3s;
    position: relative;
    vertical-align: baseline;
    line-height: 1.5;
    text-shadow: 0 0 2px var(--neon-cyan);
}

.inline-form button.menu-item-neon::before {
    content: '>';
    opacity: 0;
    margin-right: 10px;
    transition: opacity 0.3s;
}

.inline-form button.menu-item-neon:hover::before {
    opacity: 1;
}

         .inline-form button.menu-item-neon:hover {
             color: var(--neon-magenta);
             text-shadow: 0 0 3px var(--neon-magenta);
         }

         /* Подменю */
         .menu-list li {
             position: relative;
         }

         .menu-list .submenu {
             list-style: none;
             display: none;
             position: absolute;
             top: 100%;
             left: 0;
             background: rgba(0, 0, 0, 0.95);
             border: 2px solid var(--neon-cyan);
             box-shadow: 0 4px 20px rgba(0, 255, 255, 0.3);
             padding: 10px 0;
             margin-top: 5px;
             min-width: 200px;
             z-index: 1000;
         }

         .menu-list li:hover > .submenu {
             display: block;
         }

         .menu-list .submenu li {
             display: block;
             margin: 0;
         }

         .menu-list .submenu .menu-item-neon {
             display: block;
             padding: 10px 20px;
             border-bottom: 1px solid rgba(0, 255, 255, 0.2);
             white-space: nowrap;
         }

         .menu-list .submenu .menu-item-neon:last-child {
             border-bottom: none;
         }

         /* Улучшенные формы */
.input-neon {
    background: rgba(26, 26, 46, 0.7);
    border: 2px solid var(--neon-cyan);
    color: var(--text-primary);
    padding: 14px;
    font-family: 'VT323', monospace;
    font-size: 20px;
    outline: none;
    box-shadow: 
        0 0 8px rgba(0, 255, 255, 0.3),
        inset 0 0 8px rgba(0, 255, 255, 0.1);
    transition: all var(--transition-normal);
    width: 100%;
    border-radius: 2px;
}

.input-neon:focus {
    border-color: var(--neon-magenta);
    box-shadow: 
        0 0 20px rgba(255, 0, 255, 0.5),
        inset 0 0 15px rgba(255, 0, 255, 0.2);
    color: var(--neon-magenta);
    background: rgba(26, 26, 46, 0.9);
}

.input-neon::placeholder {
    color: rgba(0, 255, 255, 0.5);
}

/* Textarea */
textarea.input-neon {
    resize: vertical;
    min-height: 100px;
}

/* Select */
select.input-neon {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2300ffff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

select.input-neon option {
    background: var(--bg-dark);
    color: var(--neon-cyan);
    padding: 10px;
}

/* Терминальный стиль (личный кабинет) */
.bg-terminal {
    background: var(--bg-terminal);
    background-image: 
        linear-gradient(rgba(0, 255, 65, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 65, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
}

.card-terminal {
    background: rgba(13, 27, 13, 0.8);
    border: 1px solid var(--terminal-green);
    box-shadow: 
        0 0 10px rgba(0, 255, 65, 0.3),
        inset 0 0 10px rgba(0, 255, 65, 0.1);
    padding: 20px;
}

.btn-terminal {
    background: transparent;
    border: 2px solid var(--terminal-green);
    color: var(--terminal-green);
    padding: 12px 24px;
    font-family: 'Press Start 2P', cursive;
    font-size: 12px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 0 10px var(--terminal-green),
        inset 0 0 10px var(--terminal-green);
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.btn-terminal:hover {
    background: var(--terminal-green);
    color: var(--bg-terminal);
    box-shadow: 
        0 0 20px var(--terminal-green),
        0 0 40px var(--terminal-green);
    transform: translateY(-2px);
}

.text-terminal-green {
    color: var(--terminal-green);
}

/* Улучшенный глитч эффект (менее агрессивный) */
.glitch {
    position: relative;
    color: var(--neon-cyan);
    animation: glitch 2s infinite;
}

@keyframes glitch {
    0%, 90%, 100% { 
        transform: translate(0);
        text-shadow: 0 0 3px var(--neon-cyan);
    }
    91% { transform: translate(-1px, 1px); }
    92% { transform: translate(1px, -1px); }
    93% { transform: translate(-1px, -1px); }
    94% { transform: translate(1px, 1px); }
}

/* Убрана пульсация для текста - она размывает буквы */
.text-neon-cyan,
.text-neon-magenta {
    text-shadow: 0 0 2px currentColor;
}

/* Базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'VT323', monospace;
    font-size: 20px;
    line-height: 1.8;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Улучшенные отступы для секций */
main > div {
    padding: 40px 0;
}

/* Анимация для текста при загрузке */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

main {
    animation: fadeIn 0.5s ease-out;
}

/* Улучшенные заголовки с уменьшенным свечением */
h1, h2, h3 {
    text-shadow: 
        0 0 3px currentColor,
        0 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 1px;
}

/* Улучшенные параграфы */
p {
    color: var(--text-primary);
    line-height: 1.8;
    margin-bottom: 16px;
}

/* Улучшенные ссылки */
a {
    transition: all var(--transition-fast);
    position: relative;
}

a.text-neon-cyan:hover {
    color: var(--neon-magenta);
    text-shadow: 0 0 3px var(--neon-magenta);
}

/* Плавная анимация для изображений */
img {
    transition: transform var(--transition-normal);
}

.card-neon img:hover {
    transform: scale(1.05);
}

/* Плавная прокрутка */
html {
    scroll-behavior: smooth;
}

/* Утилиты */
.text-neon-cyan {
    color: var(--neon-cyan);
}

.text-neon-magenta {
    color: var(--neon-magenta);
}

.text-neon-green {
    color: var(--neon-green);
}

/* Улучшенный футер */
.footer-neon {
    background: rgba(15, 15, 30, 0.95);
    backdrop-filter: blur(10px);
    border-top: 2px solid var(--neon-cyan);
    box-shadow: 0 -4px 30px rgba(0, 255, 255, 0.3);
    padding: 24px 0;
    margin-top: 60px;
}

.footer-content {
    text-align: center;
}

.footer-content p {
    font-family: 'VT323', monospace;
    font-size: 16px !important;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    text-shadow: none;
}

.footer-content .font-pixel {
    font-size: 16px !important;
    color: rgba(255, 255, 255, 0.5) !important;
    line-height: 1.4 !important;
}

/* Адаптивность с улучшенными отступами */
@media (max-width: 768px) {
    body {
        font-size: 18px;
    }
    
    .container {
        padding: 0 16px;
    }
    
    .card-neon {
        padding: 20px;
    }
    
    main > div {
        padding: 24px 0;
    }
    
    .btn-neon-cyan {
        font-size: 10px;
        padding: 10px 20px;
    }
    
    body {
        font-size: 16px !important;
    }
    
    .font-pixel,
    .font-terminal,
    .font-futuristic {
        font-size: 16px !important;
    }
    
    h1 {
        font-size: 24px !important;
    }
    
    h2 {
        font-size: 20px !important;
    }
    
    h3 {
        font-size: 18px !important;
    }
    
    .menu-item-neon {
        font-size: 12px !important;
    }
}

/* Стили для карточек админ-панели */
.admin-card-link {
    display: block;
    text-decoration: none;
    background: var(--bg-card);
    border: 2px solid var(--neon-cyan);
    box-shadow: 
        0 0 10px rgba(0, 255, 255, 0.3),
        inset 0 0 10px rgba(0, 255, 255, 0.05);
    padding: 24px;
    border-radius: 4px;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.admin-card-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.admin-card-link:hover {
    transform: translateY(-3px);
    border-color: var(--neon-magenta);
    box-shadow: 
        0 0 15px rgba(255, 0, 255, 0.4),
        inset 0 0 15px rgba(255, 0, 255, 0.1);
}

.admin-card-link:hover::before {
    left: 100%;
}

.admin-card-icon {
    font-size: 32px;
    margin-bottom: 12px;
    text-align: center;
}

.admin-card-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 18px !important;
    font-weight: 700;
    color: var(--neon-cyan);
    margin-bottom: 8px;
    text-shadow: 0 0 2px var(--neon-cyan);
}

.admin-card-link:hover .admin-card-title {
    color: var(--neon-magenta);
    text-shadow: 0 0 3px var(--neon-magenta);
}

.admin-card-desc {
    font-family: 'VT323', monospace;
    font-size: 18px !important;
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.5;
}

.admin-card-button {
    font-family: 'Press Start 2P', cursive;
    font-size: 10px;
    color: var(--neon-cyan);
    border: 1px solid var(--neon-cyan);
    padding: 8px 16px;
    text-align: center;
    display: inline-block;
    transition: all var(--transition-normal);
    text-shadow: none;
}

.admin-card-link:hover .admin-card-button {
    background: var(--neon-cyan);
    color: var(--bg-dark);
    border-color: var(--neon-cyan);
}

/* Хлебные крошки */
.breadcrumbs-neon {
    background: rgba(15, 15, 30, 0.8);
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
    padding: 12px 0;
    margin-bottom: 20px;
}

.breadcrumbs-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    font-family: 'VT323', monospace;
    font-size: 16px;
}

.breadcrumb-link {
    color: var(--neon-cyan);
    text-decoration: none;
    transition: all var(--transition-fast);
    text-shadow: 0 0 2px var(--neon-cyan);
}

.breadcrumb-link:hover {
    color: var(--neon-magenta);
    text-shadow: 0 0 3px var(--neon-magenta);
}

.breadcrumb-separator {
    color: var(--text-muted);
    margin: 0 8px;
    font-size: 14px;
}

.breadcrumb-current {
    color: var(--text-primary);
    font-weight: normal;
}

/* Поддержка prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
