/* style.css - Общие стили для всех страниц Lumix */

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-card: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #888888;
    --accent: #c95f5b;
    --accent-hover: #e546bd;
    --accent-light: #818cf8;
    --border: #2a2a2a;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    background: linear-gradient(-45deg, #0a0a0a, #1a1a1a, #2d1a2d, #1a2d2d, #0a0a0a);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    min-height: 100vh;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Эффект частиц */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(201, 95, 91, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 90% 60%, rgba(129, 140, 248, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 50% 80%, rgba(201, 95, 91, 0.05) 0%, transparent 20%);
    z-index: -1;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(120deg); }
    66% { transform: translateY(20px) rotate(240deg); }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Улучшенная боковая навигация */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 300px;
    height: 100vh;
    background: linear-gradient(180deg, rgba(17, 17, 17, 0.98), rgba(26, 26, 26, 0.95));
    border-right: 1px solid var(--border);
    padding: 0;
    overflow-y: auto;
    z-index: 1000;
    backdrop-filter: blur(20px);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 25px 20px;
    border-bottom: 1px solid var(--border);
    background: rgba(10, 10, 10, 0.8);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 10;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    height: 45px;
    width: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.logo-text {
    font-size: 26px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.sidebar-theme-toggle {
    display: flex;
    align-items: center;
}

.theme-btn {
    background: rgba(42, 42, 42, 0.6);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.theme-btn:hover {
    background: var(--accent);
    color: white;
    transform: rotate(15deg);
}

.nav-main {
    flex: 1;
    padding: 20px 0;
    overflow-y: auto;
}

.nav-section {
    margin-bottom: 5px;
    position: relative;
}

.nav-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 25px;
    color: var(--accent-light);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    position: relative;
    overflow: hidden;
}

.nav-section-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(129, 140, 248, 0.1), transparent);
    transition: left 0.5s ease;
}

.nav-section-title:hover::before {
    left: 100%;
}

.nav-section-title:hover {
    background: rgba(42, 42, 42, 0.3);
    border-left: 4px solid var(--accent);
    padding-left: 30px;
}

.nav-section-title.active {
    background: rgba(42, 42, 42, 0.5);
    border-left: 4px solid var(--accent);
    padding-left: 30px;
}

.nav-section-title i:last-child {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    color: var(--text-muted);
}

.nav-section.active .nav-section-title i:last-child {
    transform: rotate(180deg);
}

.nav-subitems {
    list-style: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: rgba(10, 10, 10, 0.4);
    border-left: 4px solid var(--accent);
}

.nav-section.active .nav-subitems {
    max-height: 500px;
}

.nav-subitems li {
    margin-bottom: 0;
    position: relative;
}

.nav-subitems a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 12px 25px 12px 45px;
    transition: all 0.3s ease;
    position: relative;
    font-size: 0.92rem;
    border-left: 2px solid transparent;
}

.nav-subitems a:hover {
    background: rgba(42, 42, 42, 0.3);
    color: var(--accent-light);
    padding-left: 50px;
    border-left: 2px solid var(--accent-light);
}

.nav-subitems a.active {
    color: var(--accent-light);
    background: rgba(42, 42, 42, 0.6);
    border-left: 2px solid var(--accent);
}

.nav-subitems a.active::before {
    content: '';
    position: absolute;
    left: 25px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent);
}

.nav-subitems a i:first-child {
    width: 18px;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Быстрые ссылки */
.sidebar-quick-links {
    padding: 20px;
    border-top: 1px solid var(--border);
    background: rgba(10, 10, 10, 0.6);
    margin-top: auto;
}

.quick-links-title {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.quick-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.quick-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px 8px;
    background: rgba(42, 42, 42, 0.4);
    border: 1px solid var(--border);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    text-align: center;
    font-size: 0.8rem;
}

.quick-link:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-2px);
    border-color: var(--accent);
}

.quick-link i {
    font-size: 1.2rem;
}

/* Анимации */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.nav-subitems li {
    animation: slideIn 0.3s ease forwards;
    opacity: 0;
}

.nav-subitems li:nth-child(1) { animation-delay: 0.1s; }
.nav-subitems li:nth-child(2) { animation-delay: 0.15s; }
.nav-subitems li:nth-child(3) { animation-delay: 0.2s; }
.nav-subitems li:nth-child(4) { animation-delay: 0.25s; }
.nav-subitems li:nth-child(5) { animation-delay: 0.3s; }

/* Адаптивность */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
        width: 280px;
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .mobile-menu-btn {
        display: block;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 100%;
    }
    
    .quick-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Стили для темы */
body.light-theme {
    --bg-primary: #f8fafc;
    --bg-secondary: #f1f5f9;
    --bg-card: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --border: #e2e8f0;
}

.theme-btn .fa-sun {
    display: none;
}

body.light-theme .theme-btn .fa-moon {
    display: none;
}

body.light-theme .theme-btn .fa-sun {
    display: block;
}

/* Основной контент */
.main-content {
    margin-left: 280px;
    padding: 20px;
    transition: margin-left 0.3s ease;
}

/* Секции */
.section {
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.section-dark {
    background: rgba(17, 17, 17, 0.7);
    backdrop-filter: blur(5px);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-align: center;
    font-weight: 700;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    border-radius: 2px;
}

/* Герой секция */
.hero {
    margin-top: 20px;
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.server-dates {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
}

.date-card {
    background: rgba(26, 26, 26, 0.7);
    padding: 15px 20px;
    border-radius: 8px;
    border: 1px solid var(--border);
    text-align: center;
    backdrop-filter: blur(10px);
}

.date-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.date-value {
    color: var(--accent-light);
    font-weight: 600;
}

.hero-image {
    background: var(--bg-card);
    border-radius: 10px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.8), rgba(42, 42, 42, 0.4));
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-placeholder {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* IP блок */
.ip-section {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.8), rgba(42, 42, 42, 0.4));
    padding: 40px;
    border-radius: 10px;
    border: 1px solid var(--border);
    margin: 40px 0;
    text-align: center;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.ip-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
}

.ip-label {
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.server-ip {
    font-family: monospace;
    font-size: 2rem;
    background: rgba(10, 10, 10, 0.5);
    padding: 15px 30px;
    border-radius: 8px;
    border: 1px solid var(--border);
    margin: 20px 0;
    display: inline-block;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--accent-light);
    backdrop-filter: blur(10px);
}

.server-ip:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4);
}

.copy-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.9);
    color: var(--success);
    padding: 15px 30px;
    border-radius: 8px;
    border: 1px solid var(--success);
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s;
    backdrop-filter: blur(10px);
}

.copy-notification.show {
    opacity: 1;
}

/* Как зайти */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.step-card {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.8), rgba(42, 42, 42, 0.4));
    padding: 30px;
    border-radius: 10px;
    border: 1px solid var(--border);
    transition: transform 0.3s;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
}

.step-card:hover {
    transform: translateY(-5px);
}

.step-number {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 20px;
}

/* Команды */
.commands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.command-category {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.8), rgba(42, 42, 42, 0.4));
    padding: 30px;
    border-radius: 10px;
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
    transition: transform 0.3s;
}

.command-category:hover {
    transform: translateY(-5px);
}

.command-category h3 {
    color: var(--accent-light);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent);
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.command-item {
    margin-bottom: 15px;
    padding: 12px;
    background: rgba(42, 42, 42, 0.4);
    border-radius: 6px;
    border-left: 3px solid var(--accent);
}

.command-syntax {
    font-family: monospace;
    color: var(--accent-light);
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 1rem;
}

.command-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.donat-commands {
    background: linear-gradient(135deg, rgba(201, 95, 91, 0.1), rgba(129, 140, 248, 0.1));
    border: 1px solid var(--accent);
}

.donat-commands h3 {
    color: var(--accent);
}

/* Кнопка мобильного меню */
.mobile-menu-btn {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1100;
    background: var(--accent);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Футер */
footer {
    background: linear-gradient(135deg, rgba(17, 17, 17, 0.9), rgba(42, 42, 42, 0.7));
    padding: 50px 0 30px;
    border-top: 1px solid var(--border);
    margin-top: 80px;
    backdrop-filter: blur(10px);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent-light);
}

.footer-copyright {
    text-align: center;
    color: var(--text-muted);
    padding-top: 30px;
    border-top: 1px solid var(--border);
}

/* Адаптивность */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .main-content {
        padding: 10px;
    }
    
    .server-ip {
        font-size: 1.5rem;
        padding: 12px 20px;
    }
    
    .hero-text h1 {
        font-size: 2.2rem;
    }
    
    .server-dates {
        flex-direction: column;
        gap: 15px;
    }
    
    .commands-grid {
        grid-template-columns: 1fr;
    }
    
    .command-category {
        padding: 20px;
    }
}