/* css/header.css - Полностью на ScalingSystem */

/* ============================================
   ШРИФТ BOURBONROUGH
   ============================================ */

@font-face {
    font-family: 'BourbonRough';
    src: url('../assets/founts/BourbonRough.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Применяем шрифт ко всем элементам header */
.header,
.header * {
    font-family: 'BourbonRough', 'Impact', 'Arial Black', sans-serif !important;
}

/* ============================================
   БАЗОВЫЕ СТИЛИ КНОПОК
   ============================================ */

.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: var(--button-gap);
    padding: var(--button-padding-y) var(--button-padding-x);
    border-radius: var(--button-radius);
    font-weight: 600;
    font-size: var(--button-font-size);
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    letter-spacing: var(--button-letter-spacing);
}

.btn-primary {
    background: linear-gradient(135deg, #f7931a, #ff9500);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(247, 147, 26, 0.3);
}

.btn-primary:hover {
    transform: translateY(0px);
    box-shadow: 0 8px 30px rgba(247, 147, 26, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-large {
    padding: var(--button-large-padding-y) var(--button-large-padding-x);
    font-size: var(--button-large-font-size);
    border-radius: var(--button-large-radius);
}

.btn-icon {
    font-size: var(--button-icon-size);
}

/* ============================================
   HEADER - ОСНОВНЫЕ СТИЛИ
   ============================================ */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    z-index: 1000;
    
    /* Glass effect */
    background: rgba(10, 15, 28, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: var(--header-border-width) solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    
    transition: all 0.3s ease;
    font-size: var(--header-font-size);
}

/* Состояние при скролле */
.header.scrolled {
    background: rgba(10, 15, 28, 0.7);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.45);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 var(--header-padding);
    max-width: 100%;
    margin: 0;
}

/* ============================================
   LOGO
   ============================================ */

.logo {
    display: flex;
    align-items: center;
    gap: var(--header-logo-gap);
    font-weight: 800;
    font-size: var(--header-font-size);
    color: #ffffff;
    text-decoration: none;
    position: relative;
    z-index: 1;
    margin-right: auto;
    letter-spacing: var(--header-logo-letter-spacing);
}

.logo-icon {
    width: var(--header-logo-size);
    height: var(--header-logo-size);
    border-radius: var(--header-logo-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Стили для изображения логотипа */
.logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

/* Красный текст для KOMBAT */
.logo-kombat {
    color: #ff0000;
}

/* ============================================
   НАВИГАЦИЯ
   ============================================ */

.nav {
    display: flex;
    gap: var(--header-nav-gap);
}

.nav-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-weight: var(--header-nav-link-weight);
    font-size: var(--header-nav-font-size);
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #f7931a;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: var(--header-active-line-bottom);
    left: 0;
    right: 0;
    height: var(--header-active-line-height);
    background: linear-gradient(135deg, #f7931a, #ff9500);
    border-radius: calc(var(--header-active-line-height) * 0.5);
}

/* ============================================
   КНОПКИ В HEADER
   ============================================ */

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--header-gap);
    margin-left: auto;
}

/* Фиксируем порядок элементов */
.sound-toggle { order: 1; }
.twitter-button { order: 2; }
.network-indicator { order: 3; }
#connectWalletBtn { order: 4; }

.header-actions .btn-primary,
.header-actions .btn-secondary {
    height: var(--header-button-height);
    padding: 0 var(--header-button-padding);
    font-size: var(--header-button-font-size);
    border-radius: var(--header-button-radius);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    letter-spacing: var(--header-button-letter-spacing);
}

/* Sound Toggle Button */
.sound-toggle {
    min-width: var(--sound-button-size);
    width: var(--sound-button-size);
    height: var(--header-button-height);
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sound-icon {
    font-size: var(--sound-icon-size);
    display: block;
    line-height: 1;
    width: var(--sound-icon-size);
    height: var(--sound-icon-size);
    position: relative;
}

.sound-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.3s ease;
}

.sound-toggle.disabled {
    opacity: 0.5;
}

.sound-toggle.disabled .sound-on {
    display: none;
}

.sound-toggle.disabled .sound-off {
    display: block !important;
}

.sound-toggle.disabled .sound-icon {
    position: relative;
}

.sound-toggle.disabled .sound-icon::after {
    display: none;
}

/* ============================================
   TWITTER BUTTON
   ============================================ */

.twitter-button {
    min-width: calc(var(--header-button-height) * 2.7);
    height: var(--header-button-height);
    background: rgba(29, 161, 242, 0.1);
    color: #1da1f2;
    border: 1px solid rgba(29, 161, 242, 0.3);
    backdrop-filter: blur(10px);
    border-radius: var(--header-button-radius);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--button-gap);
    padding: 0 var(--header-button-padding);
    font-size: var(--header-button-font-size);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    letter-spacing: var(--header-button-letter-spacing);
}

.twitter-button:hover {
    background: rgba(29, 161, 242, 0.2);
    border-color: rgba(29, 161, 242, 0.5);
    color: #1991db;
    box-shadow: 0 4px 20px rgba(29, 161, 242, 0.2);
    transform: translateY(0px);
}

.twitter-button:active {
    transform: translateY(1px);
}

.twitter-icon {
    font-size: var(--sound-icon-size);
    line-height: 1;
}

/* Twitter X icon (нативная иконка) */
.twitter-button::before {
    content: "𝕏";
    font-size: var(--sound-icon-size);
    font-weight: bold;
    line-height: 1;
    margin-right: calc(var(--button-gap) * 0.5);
}

/* Network Indicator */
.network-indicator {
    min-width: calc(var(--header-button-height) * 2.7);
}

.network-dot {
    width: var(--network-dot-size);
    height: var(--network-dot-size);
    background: #10b981;
    border-radius: 50%;
    margin-right: var(--network-dot-size);
    animation: blink 2s infinite;
}

/* Wallet Connected State */
.btn-primary.wallet-connected {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
    box-shadow: none;
    position: relative;
    overflow: hidden;
}

.btn-primary.wallet-connected:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #dc2626;
    border-color: rgba(239, 68, 68, 0.5);
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.2);
    transform: translateY(0px);
}

/* ============================================
   АНИМАЦИИ
   ============================================ */

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ============================================
   АДАПТИВНОСТЬ ЧЕРЕЗ SCALING SYSTEM
   ============================================ */

/* ScalingSystem автоматически масштабирует все размеры */
/* Дополнительные медиа запросы не требуются */

/* Скрываем навигацию на маленьких экранах если нужно */
@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    /* На мобильных можем скрыть текст в Twitter кнопке */
    .twitter-button {
        min-width: var(--header-button-height);
        padding: 0;
    }
    
    .twitter-button .twitter-text {
        display: none;
    }
}

.header-actions a[href*="x.com"] {
    height: var(--header-button-height);
    padding: 0 var(--header-button-padding);
    font-size: var(--header-button-font-size);
    order: 2;
}