/* =====================================================
   Front Team - Military Theme Styles
   Дизайн в стиле военного арсенала Garry's Mod
===================================================== */

/* === Переменные цветов === */
:root {
    /* Основные цвета */
    --color-bg-dark: rgb(3, 5, 4);
    --color-bg-medium: rgb(8, 12, 10);
    --color-bg-light: rgb(12, 18, 14);
    --color-primary: rgb(27, 94, 32);
    --color-primary-dark: rgb(15, 60, 18);
    --color-accent: rgb(56, 102, 35);
    --color-text-primary: rgb(165, 214, 167);
    --color-text-secondary: rgb(102, 187, 106);
    --color-danger: rgb(136, 14, 14);
    --color-warning: rgb(191, 130, 0);
    --color-border: rgba(15, 60, 18, 0.6);
    
    /* Дополнительные */
    --color-discord: rgb(88, 101, 242);
    --color-success: rgb(46, 125, 50);
    
    /* Короткие алиасы для совместимости */
    --primary: var(--color-accent);
    --bg-dark: var(--color-bg-dark);
    --bg-secondary: var(--color-bg-light);
    --text-primary: var(--color-text-primary);
    --text-secondary: var(--color-text-secondary);
    
    /* Шрифты */
    --font-primary: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Russo One', sans-serif;
    
    /* Радиусы */
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    
    /* Тени */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.5);
}

/* === Базовые стили === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Базовые стили для ссылок */
a {
    color: rgb(102, 187, 106);
    transition: color 0.3s ease;
}

a:hover {
    color: rgb(165, 214, 167);
}

body {
    font-family: var(--font-primary);
    background: var(--color-bg-dark);
    color: var(--color-text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* === Header === */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--color-bg-medium);
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    gap: 40px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    font-size: 24px;
    color: var(--color-accent);
    text-transform: uppercase;
    flex-shrink: 0;
}

.logo-icon {
    font-size: 28px;
    color: var(--color-primary);
}

.nav {
    display: flex;
    gap: 30px;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.nav-link {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-text-primary);
    background: rgba(27, 94, 32, 0.2);
}

/* Steam Button */
.btn-steam {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: linear-gradient(135deg, rgb(30, 95, 35) 0%, rgb(40, 115, 45) 100%);
    color: var(--color-text-primary);
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 2px solid var(--color-primary);
    box-shadow: 0 4px 12px rgba(27, 94, 32, 0.3);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.btn-steam::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-steam:hover::before {
    left: 100%;
}

.btn-steam:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(27, 94, 32, 0.5);
    border-color: var(--color-accent);
    background: linear-gradient(135deg, rgb(40, 115, 45) 0%, rgb(56, 140, 60) 100%);
}

.btn-steam:active {
    transform: translateY(0);
}

.steam-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* User Profile Dropdown (для будущего использования) */
.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid var(--color-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(27, 94, 32, 0.3);
}

.user-avatar:hover {
    border-color: var(--color-accent);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(27, 94, 32, 0.5);
}

.user-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-action-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-light);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.user-action-btn:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-text-primary);
    transform: translateY(-2px);
}

.user-action-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Кнопка админ панели */
.user-action-btn.admin {
    border-color: var(--color-warning);
}

.user-action-btn.admin:hover {
    background: var(--color-warning);
    border-color: var(--color-warning);
}

/* Кнопка выхода */
.user-action-btn.logout {
    border-color: var(--color-danger);
}

.user-action-btn.logout:hover {
    background: var(--color-danger);
    border-color: var(--color-danger);
}

.nav-link-special {
    background: var(--color-primary);
    color: var(--color-text-primary) !important;
    padding: 10px 20px;
    border-radius: var(--radius-md);
}

.nav-link-special:hover {
    background: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.header-accent {
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent), var(--color-primary));
}

/* === Hero Section === */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-dark);
    overflow: hidden;
    padding-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 400px;
    background: linear-gradient(180deg, 
        rgba(27, 94, 32, 0.15) 0%, 
        transparent 100%
    );
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(27, 94, 32, 0.03) 2px, rgba(27, 94, 32, 0.03) 4px);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(27, 94, 32, 0.3);
    border: 2px solid var(--color-primary);
    padding: 10px 24px;
    border-radius: 50px;
    margin-bottom: 30px;
    animation: fadeInDown 0.6s ease;
}

.hero-badge-icon {
    color: var(--color-accent);
    font-size: 20px;
}

.hero-badge-text {
    color: var(--color-text-primary);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 2px;
}

.hero-title {
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-title-main {
    display: block;
    font-family: var(--font-display);
    font-size: 72px;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 4px;
    text-shadow: 0 0 30px rgba(27, 94, 32, 0.5);
    margin-bottom: 12px;
}

.hero-title-sub {
    display: block;
    font-size: 32px;
    color: var(--color-text-secondary);
    font-weight: 300;
    letter-spacing: 2px;
}

.hero-description {
    font-size: 20px;
    color: var(--color-text-secondary);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.6s ease 0.4s both;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    animation: fadeInUp 0.6s ease 0.6s both;
}

.hero-decoration {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(0deg, var(--color-bg-medium) 0%, transparent 100%);
    pointer-events: none;
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-text-primary);
    border-color: var(--color-primary-dark);
}

.btn-primary:hover {
    background: var(--color-accent);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(27, 94, 32, 0.4);
}

.btn-secondary {
    background: var(--color-bg-light);
    color: var(--color-text-primary);
    border-color: var(--color-border);
}

.btn-secondary:hover {
    background: var(--color-bg-medium);
    border-color: var(--color-primary);
    transform: translateY(-3px);
}

.btn-discord {
    background: var(--color-discord);
    color: white;
}

.btn-discord:hover {
    background: rgb(71, 82, 196);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(88, 101, 242, 0.4);
}

.btn-icon {
    font-size: 18px;
}

/* === Sections === */
section {
    padding: 100px 0;
    position: relative;
}

/* === Stats Section === */
.stats {
    background: var(--color-bg-medium);
    padding: 80px 0;
    position: relative;
}

.stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--color-primary) 50%, 
        transparent 100%
    );
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.stat-card {
    background: var(--color-bg-light);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    display: flex;
    align-items: center;
    gap: 24px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: var(--color-accent);
    transition: width 0.4s ease;
}

.stat-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-lg);
}

.stat-card:hover::before {
    width: 100%;
    opacity: 0.05;
}

.stat-card-primary {
    border-color: var(--color-primary);
    background: linear-gradient(135deg, 
        var(--color-bg-light) 0%, 
        rgba(27, 94, 32, 0.1) 100%
    );
    position: relative;
}

.stat-card-primary::before {
    background: var(--color-primary);
}

.stat-icon {
    font-size: 56px;
    line-height: 1;
    flex-shrink: 0;
}

.stat-content {
    flex: 1;
    position: relative;
}

.stat-value {
    font-family: var(--font-display);
    font-size: 48px;
    color: var(--color-text-primary);
    font-weight: 700;
    line-height: 1;
    margin-bottom: 8px;
    text-shadow: 0 2px 8px rgba(27, 94, 32, 0.3);
}

.stat-card-primary .stat-value {
    color: var(--color-accent);
    font-size: 56px;
}

.stat-label {
    font-size: 16px;
    color: var(--color-text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-pulse {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 12px;
    height: 12px;
    background: var(--color-primary);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.stat-pulse::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: var(--color-primary);
    border-radius: 50%;
    animation: pulseRing 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

@keyframes pulseRing {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(3);
        opacity: 0;
    }
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    font-family: var(--font-display);
    font-size: 42px;
    color: var(--color-text-primary);
    margin-bottom: 16px;
    text-transform: uppercase;
}

.section-icon {
    font-size: 48px;
    color: var(--color-accent);
}

.section-subtitle {
    font-size: 18px;
    color: var(--color-text-secondary);
    font-weight: 300;
}

/* === Servers Section === */
.servers {
    background: var(--color-bg-medium);
}

.servers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.server-card {
    background: var(--color-bg-light);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.server-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: var(--color-primary);
}

.server-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-accent);
    box-shadow: var(--shadow-lg);
}

.server-card-header {
    padding: 24px;
    border-bottom: 2px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.server-card-title {
    font-size: 22px;
    color: var(--color-text-primary);
    font-weight: 600;
}

.server-card-badge {
    background: var(--color-primary);
    color: var(--color-text-primary);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.server-card-body {
    padding: 24px;
}

.server-info-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
}

.server-info-label {
    color: var(--color-text-secondary);
    font-weight: 500;
}

.server-info-value {
    color: var(--color-text-primary);
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

.server-card-footer {
    padding: 20px 24px;
    background: rgba(27, 94, 32, 0.1);
}

.server-connect-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 14px 20px;
    background: var(--color-primary);
    color: var(--color-text-primary);
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: all 0.3s ease;
}

.server-connect-btn:hover {
    background: var(--color-accent);
    transform: translateX(5px);
}

/* === Features Section === */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--color-bg-light);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.feature-title {
    font-size: 22px;
    color: var(--color-text-primary);
    margin-bottom: 12px;
    font-weight: 600;
}

.feature-description {
    color: var(--color-text-secondary);
    font-size: 15px;
    line-height: 1.8;
}

/* === Discord CTA === */
.discord-cta {
    background: linear-gradient(135deg, var(--color-bg-medium) 0%, var(--color-bg-dark) 100%);
    border-top: 3px solid var(--color-primary);
    border-bottom: 3px solid var(--color-primary);
}

.discord-cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 60px;
    background: var(--color-bg-light);
    border-radius: var(--radius-lg);
    border: 2px solid var(--color-border);
}

.discord-cta-icon {
    font-size: 80px;
}

.discord-cta-text {
    flex: 1;
}

.discord-cta-title {
    font-size: 32px;
    color: var(--color-text-primary);
    margin-bottom: 12px;
    font-weight: 700;
}

.discord-cta-description {
    font-size: 18px;
    color: var(--color-text-secondary);
}

/* === Footer === */
.footer {
    background: var(--color-bg-dark);
    border-top: 3px solid var(--color-primary);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-title {
    color: var(--color-accent);
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-text {
    color: var(--color-text-secondary);
    font-size: 14px;
    line-height: 1.8;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--color-text-primary);
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--color-border);
    color: var(--color-text-secondary);
    font-size: 14px;
}

/* === Animations === */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === Responsive === */
@media (max-width: 1024px) {
    .hero-title-main {
        font-size: 56px;
    }
    
    .hero-title-sub {
        font-size: 28px;
    }
    
    .discord-cta-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .header-content {
        flex-direction: column;
        height: auto;
        padding: 20px 0;
        gap: 20px;
    }
    
    .logo {
        width: 100%;
        justify-content: center;
    }
    
    .nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        width: 100%;
    }
    
    .btn-steam {
        width: 100%;
        justify-content: center;
    }
    
    .hero {
        min-height: 80vh;
    }
    
    .hero-title-main {
        font-size: 42px;
    }
    
    .hero-title-sub {
        font-size: 22px;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .stat-card {
        padding: 30px 20px;
    }
    
    .stat-icon {
        font-size: 48px;
    }
    
    .stat-value {
        font-size: 36px;
    }
    
    .stat-card-primary .stat-value {
        font-size: 42px;
    }
    
    .servers-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    section {
        padding: 60px 0;
    }
    
    .stats {
        padding: 60px 0;
    }
}

/* === Wiki специфичные стили === */
.category-name,
.page-card-title,
.page-card-category {
    color: rgb(102, 187, 106) !important;
}

.category-card:hover .category-name,
.page-card:hover .page-card-title {
    color: rgb(165, 214, 167) !important;
}
