/* Основные стили сайта Клановая Комуна */
:root {
    --bg: #121212;
    --card-bg: #1e1e1e;
    --accent: #4caf50;
    --accent-hover: #66bb6a;
    --text-main: #ffffff;
    --text-dim: #a0a0a0;
    --discord: #5865F2;
    --warning: #ff9800;
    --required: #f44336;
    --optional: #ff9800;
    --success: #4caf50;
    --error: #f44336;
}

* { 
    box-sizing: border-box; 
    transition: all 0.2s ease; 
}

body {
    background-color: var(--bg);
    color: var(--text-main);
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    min-height: 100vh;
    line-height: 1.6;
}

.container {
    max-width: 800px;
    width: 90%;
    margin: 0 auto;
    padding: 20px 0;
}

/* Шапка сайта */
.header {
    background: var(--card-bg);
    border-bottom: 1px solid #2a2a2a;
    padding: 15px 0;
    margin-bottom: 30px;
}

.header-content {
    max-width: 800px;
    width: 90%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text-main);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.nav {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav a {
    color: var(--text-dim);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 8px 12px;
    border-radius: 6px;
}

.nav a:hover {
    color: var(--text-main);
    background: #2a2a2a;
}

.nav .username {
    color: var(--accent);
    font-weight: 600;
}

/* Карточки */
.card {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 16px;
    border: 1px solid #2a2a2a;
    margin-bottom: 20px;
}

.card h2 {
    font-size: 1.3rem;
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--text-dim);
    font-weight: 400;
    text-align: center;
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    text-align: center;
    transition: all 0.2s ease;
}

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

.btn-primary {
    background: var(--accent);
    color: #000;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.btn-discord {
    background: var(--discord);
    color: white;
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.2);
}

.btn-discord:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

.btn-secondary {
    background: #2a2a2a;
    color: var(--text-main);
}

.btn-secondary:hover {
    background: #3a3a3a;
    transform: translateY(-1px);
}

/* Формы */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    background: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 10px;
    color: var(--text-main);
    font-size: 0.95rem;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

/* Сообщения */
.message {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.message-success {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid var(--success);
    color: #a5d6a7;
}

.message-error {
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid var(--error);
    color: #ef9a9a;
}

.message-warning {
    background: rgba(255, 152, 0, 0.1);
    border: 1px solid var(--warning);
    color: #ffcc80;
}

/* Сетки */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.feature-item {
    background: #2a2a2a;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    font-size: 0.9rem;
}

.feature-icon {
    font-size: 1.5rem;
    margin-bottom: 8px;
    display: block;
}

.feature-title {
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-main);
}

.feature-desc {
    color: var(--text-dim);
    font-size: 0.85rem;
    line-height: 1.4;
}

/* Шаги */
.step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    padding: 15px;
    background: #2a2a2a;
    border-radius: 10px;
}

.step-number {
    background: var(--accent);
    color: #000;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    margin-right: 15px;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content h3 {
    margin: 0 0 8px 0;
    color: var(--text-main);
    font-weight: 600;
    font-size: 1rem;
}

.step-content p {
    margin: 0;
    color: var(--text-dim);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Моды */
.mod-item {
    display: flex;
    align-items: center;
    padding: 12px;
    background: #2a2a2a;
    border-radius: 8px;
    margin-bottom: 10px;
}

.mod-icon {
    font-size: 1.2rem;
    margin-right: 12px;
    width: 24px;
    text-align: center;
}

.mod-badge {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-left: auto;
}

.badge-required {
    background: var(--required);
    color: white;
}

.badge-optional {
    background: var(--optional);
    color: #000;
}

/* Предупреждения */
.warning-box {
    background: rgba(255, 152, 0, 0.1);
    border: 1px solid var(--warning);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: var(--text-dim);
}

.warning-title {
    color: var(--warning);
    font-weight: 600;
    margin-bottom: 5px;
}

/* Футер */
.footer {
    margin-top: 40px;
    font-size: 0.8rem;
    color: #444;
    text-align: center;
}

.online-dot {
    height: 8px;
    width: 8px;
    background-color: var(--accent);
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
    box-shadow: 0 0 8px var(--accent);
}

/* Кнопки загрузки */
.dependencies-grid {
    display: grid;
    gap: 12px;
}

.btn-download {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #2a2a2a;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-main);
    border-left: 4px solid;
    transition: all 0.2s ease;
}

.btn-download:hover {
    background: #3a3a3a;
    transform: translateY(-2px);
}

.btn-download.btn-required {
    border-left-color: var(--required);
}

.btn-download.btn-optional {
    border-left-color: var(--optional);
}

.btn-icon {
    font-size: 1.5rem;
    margin-right: 15px;
}

.btn-content {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.btn-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 3px;
}

.btn-desc {
    font-size: 0.8rem;
    color: var(--text-dim);
}

/* Адаптивность */
@media (max-width: 600px) {
    .container {
        width: 95%;
        padding: 15px 0;
    }
    
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav {
        gap: 10px;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .step {
        flex-direction: column;
        text-align: center;
    }
    
    .step-number {
        margin-right: 0;
        margin-bottom: 10px;
    }
}

/* Утилиты */
.text-center {
    text-align: center;
}

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

.mb-0 { margin-bottom: 0; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mt-0 { margin-top: 0; }
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }