/* ========================================
   VelocityRP FORUM STYLE
   Ñòðóêòóðà CSS ôàéëà
======================================== */

/* 1. RESET & BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: #0A0A0F;
    color: #EDEDED;
    line-height: 1.5;
}

/* 2. ÏÅÐÅÌÅÍÍÛÅ (ÖÂÅÒÀ) */
:root {
    --primary: #8B5CF6;
    --primary-dark: #6D28D9;
    --primary-light: #A78BFA;
    --secondary: #3B82F6;
    --secondary-dark: #2563EB;
    --accent: #06B6D4;
    --bg-dark: #0A0A0F;
    --bg-card: #111114;
    --bg-hover: #1A1A1F;
    --border: #2A2A2E;
    --text: #EDEDED;
    --text-muted: #9CA3AF;
    --text-dark: #6B7280;
    --success: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;
    --info: #3B82F6;
}

/* 3. ÊÎÍÒÅÉÍÅÐÛ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 4. ØÀÏÊÀ */
.header {
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, #fff, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-decoration: none;
}

.nav {
    display: flex;
    gap: 28px;
    align-items: center;
}

.nav a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.nav a:hover {
    color: var(--primary-light);
}

/* 5. ÊÍÎÏÊÈ */
.btn {
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -5px rgba(139, 92, 246, 0.4);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: rgba(139, 92, 246, 0.1);
}

/* 6. ÑÒÀÒÈÑÒÈÊÀ */
.stats-bar {
    display: flex;
    justify-content: center;
    gap: 48px;
    background: var(--bg-card);
    border-radius: 40px;
    padding: 24px 40px;
    margin: 30px 0;
    border: 1px solid var(--border);
}

.stat-number {
    font-size: 36px;
    font-weight: 800;
    background: linear-gradient(135deg, #fff, var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
}

/* 7. ÊÀÒÅÃÎÐÈÈ */
.category {
    background: var(--bg-card);
    border-radius: 28px;
    margin-bottom: 24px;
    border: 1px solid var(--border);
    overflow: hidden;
}

.category-header {
    background: rgba(139, 92, 246, 0.05);
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
}

.category-header h2 {
    font-size: 20px;
    font-weight: 600;
    background: linear-gradient(135deg, #fff, var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* 8. ÒÅÌÛ */
.topics-list {
    padding: 0 20px;
}

.topic-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.topic-row:hover {
    background: var(--bg-hover);
}

.topic-title {
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
}

.topic-title:hover {
    color: var(--primary-light);
}

.topic-meta {
    display: flex;
    gap: 20px;
    font-size: 12px;
    color: var(--text-dark);
}

.pinned {
    color: var(--warning);
}

.closed {
    color: var(--error);
}

/* 9. ÑÎÎÁÙÅÍÈß */
.post {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid var(--border);
}

.post-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.post-author {
    font-weight: 600;
    color: var(--primary-light);
}

/* 10. ÔÎÐÌÛ */
.form-container {
    max-width: 500px;
    margin: 40px auto;
    background: var(--bg-card);
    padding: 32px;
    border-radius: 24px;
    border: 1px solid var(--border);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-hover);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

/* 11. ÏÐÎÔÈËÜ */
.profile-header {
    display: flex;
    align-items: center;
    gap: 32px;
    background: var(--bg-card);
    padding: 32px;
    border-radius: 24px;
    margin-bottom: 32px;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    font-weight: 700;
}

/* 12. ÑÎÎÁÙÅÍÈß */
.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--error);
    color: var(--error);
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--success);
    color: var(--success);
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 20px;
}

/* 13. ÔÓÒÅÐ */
.footer {
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid var(--border);
    color: var(--text-dark);
    font-size: 13px;
    margin-top: 40px;
}

/* 14. ÀÄÀÏÒÈÂ */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .stats-bar {
        gap: 24px;
        padding: 16px 24px;
    }
    
    .stat-number {
        font-size: 24px;
    }
    
    .category-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .topic-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
}