/**
 * Main Styles - NB Media Theme
 */

/* ============================================
   Reset & Base Styles
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --neon-blue: #00f0ff;
    --neon-pink: #ff006e;
    --neon-purple: #8b5cf6;
    --neon-green: #00ff88;
    
    --bg-dark: #0a0a0f;
    --bg-darker: #050508;
    --bg-card: #1a1a2e;
    
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --text-muted: #6b7280;
    
    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Spacing */
    --container-width: 1280px;
    --container-padding: 24px;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    font-family: var(--font-sans);
    background: #000000;
    color: #cbd5e1;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    max-width: 100vw;
}

/* ============================================
   Кастомный скроллбар для всего сайта
   ============================================ */
* {
    scrollbar-width: thin;
    scrollbar-color: #8B5CF6 rgba(15, 15, 30, 0.5);
}

*::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

*::-webkit-scrollbar-track {
    background: rgba(15, 15, 30, 0.5);
    border-radius: 6px;
}

*::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #8B5CF6, #EC4899);
    border-radius: 6px;
    border: 2px solid rgba(26, 26, 46, 0.95);
}

*::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #9F7AEA, #F472B6);
}

/* ============================================
   Container
   ============================================ */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* ============================================
   Header
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.site-header.scrolled {
    background: rgba(0, 0, 0, 0.95);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.8);
    border-bottom-color: rgba(139, 92, 246, 0.2);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    gap: 40px;
}

.header-logo {
    flex-shrink: 0;
}

.header-logo .logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.header-logo .logo-link:hover {
    transform: translateY(-2px);
}

.header-logo .logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 16px;
    background: linear-gradient(to bottom right, var(--violet-500), var(--fuchsia-500));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.header-logo .logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

/* Новые стили для логотипов-изображений */
.header-logo .logo-icon-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.header-logo .logo-text-img {
    height: 30px;
    width: auto;
    object-fit: contain;
}

.header-logo .custom-logo-link {
    display: block;
}

.header-logo .custom-logo {
    height: 40px;
    width: auto;
}

.header-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.header-menu {
    display: flex;
    list-style: none;
    gap: 32px;
    margin: 0;
}

.header-menu li {
    margin: 0;
}

.header-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
}

.header-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--neon-blue);
    transition: width 0.3s ease;
}

.header-menu a:hover {
    color: var(--text-primary);
}

.header-menu a:hover::after {
    width: 100%;
}

.header-menu .current-menu-item a {
    color: var(--text-primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Специальный стиль для кнопки продвижения */
.header-actions .btn-primary {
    background: linear-gradient(135deg, #8B5CF6 0%, #EC4899 100%);
    border: none;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
    transition: all 0.3s ease;
}

.header-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.6);
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.875rem;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

/* ============================================
   Mobile Menu
   ============================================ */
.mobile-menu {
    position: fixed;
    top: 73px;
    left: 0;
    width: 100%;
    height: calc(100vh - 73px);
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(20px);
    z-index: 999999;
    padding: 40px 24px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu-list li {
    margin-bottom: 24px;
}

.mobile-menu-list a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 600;
    display: block;
}

.mobile-menu-actions {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Специальный стиль для кнопки продвижения в мобильном меню */
.mobile-menu-actions .btn-primary {
    background: linear-gradient(135deg, #8B5CF6 0%, #EC4899 100%);
    border: none;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}

.mobile-menu-actions .btn-primary:hover {
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.6);
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
    position: relative;
    background: #000000;
    padding: 48px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 10;
}

.footer-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    gap: 40px;
    flex-wrap: wrap;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 12px;
    background: linear-gradient(to bottom right, var(--violet-500), var(--fuchsia-500));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.footer-logo-text {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Стили для логотипов-изображений в футере */
.footer-logo-icon-img {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.footer-logo-text-img {
    height: 24px;
    width: auto;
    object-fit: contain;
}

.footer-links-group {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-links-group a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.footer-links-group a:hover {
    color: var(--text-primary);
}

.footer-copy {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-copy p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.footer-contact {
    margin-top: 16px !important;
    font-size: 0.875rem !important;
    color: var(--text-secondary) !important;
    opacity: 1 !important;
}

.telegram-link--contact {
    color: #00e676 !important;
    background: rgba(0, 230, 118, 0.05) !important;
}

.telegram-link--contact:hover {
    color: #ffffff !important;
    background: rgba(0, 230, 118, 0.15) !important;
    box-shadow: 0 4px 12px rgba(0, 230, 118, 0.3) !important;
}

.footer-developer {
    margin-top: 8px !important;
    font-size: 0.875rem !important;
    color: var(--text-secondary) !important;
    opacity: 1 !important;
}

.telegram-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--neon-blue);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(0, 240, 255, 0.05);
}

.telegram-link:hover {
    color: #ffffff;
    background: rgba(0, 240, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 240, 255, 0.3);
}

.telegram-icon {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.telegram-link:hover .telegram-icon {
    transform: scale(1.1) rotate(5deg);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-family: inherit;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    color: white;
    border-color: transparent;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 240, 255, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-outline {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

.btn-outline:hover {
    border-color: var(--neon-blue);
    background: rgba(0, 240, 255, 0.1);
}

.btn-white {
    background: white;
    color: #000000;
    border: none;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    transition: color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-white::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, var(--violet-500), var(--fuchsia-500));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-white:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.btn-white:hover::before {
    opacity: 1;
}

.btn-white span {
    position: relative;
    z-index: 1;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .header-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
}

@media (max-width: 992px) {
    .header-actions {
        display: none;
    }
}

@media (max-width: 768px) {
    .header-content {
        gap: 16px;
    }
    
    /* Адаптация логотипов для планшетов */
    .header-logo .logo-icon-img {
        height: 32px;
    }
    
    .header-logo .logo-text-img {
        height: 24px;
    }
    
    .header-logo .logo-link {
        gap: 8px;
    }
    
    .footer-main {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }
    
    .footer-links-group {
        justify-content: center;
    }
    
    .footer-logo-icon-img {
        height: 28px;
    }
    
    .footer-logo-text-img {
        height: 20px;
    }
    
    .footer-logo {
        gap: 8px;
    }
}

@media (max-width: 480px) {
    :root {
        --container-padding: 16px;
    }
    
    .header-content {
        gap: 12px;
    }
    
    /* Адаптация логотипов для мобильных */
    .header-logo .logo-icon-img {
        height: 28px;
    }
    
    .header-logo .logo-text-img {
        height: 20px;
    }
    
    .header-logo .logo-link {
        gap: 6px;
    }
    
    .footer-logo-icon-img {
        height: 24px;
    }
    
    .footer-logo-text-img {
        height: 18px;
    }
    
    .footer-logo {
        gap: 6px;
    }
}

/* ============================================
   Utility Classes
   ============================================ */
.text-center {
    text-align: center;
}

.text-primary {
    color: var(--text-primary);
}

.text-secondary {
    color: var(--text-secondary);
}

.text-muted {
    color: var(--text-muted);
}

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-5 { margin-top: 40px; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mb-5 { margin-bottom: 40px; }
