/* www/css/main.css */

/* Базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0f1520;
    color: #ffffff;
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Навигация */
.navbar {
    background: linear-gradient(135deg, #2a3b5c 0%, #4a6fa5 100%);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
}

.logo i {
    color: #ff6b35;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: #b0b7c3;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s;
    font-weight: 500;
}

.nav-links a:hover, .nav-links a.active {
    color: white;
}

/* Кнопки */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    font-size: 14px;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8e53 100%);
    color: white;
}

.btn-outline {
    background: transparent;
    border: 2px solid #ff6b35;
    color: #ff6b35;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
}

/* Фильтры */
.filters-section {
    background: #1a2332;
    padding: 1.5rem 0;
    margin-bottom: 2rem;
    border-bottom: 1px solid #2a3b5c;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.filter-group label {
    display: block;
    margin-bottom: 10px;
    color: #b0b7c3;
    font-weight: 600;
    font-size: 14px;
}

.filter-group select {
    width: 100%;
    padding: 10px;
    background: #0f1520;
    border: 1px solid #2a3b5c;
    border-radius: 6px;
    color: white;
    font-size: 14px;
}

.tag-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    padding: 8px 16px;
    background: #0f1520;
    border: 1px solid #2a3b5c;
    border-radius: 20px;
    color: #b0b7c3;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    font-weight: 500;
}

.tag:hover, .tag.active {
    background: #ff6b35;
    color: white;
    border-color: #ff6b35;
}

/* Заголовок страницы */
.page-header {
    text-align: center;
    margin: 3rem 0;
    padding: 2rem;
    background: #1a2332;
    border-radius: 12px;
    border-left: 4px solid #ff6b35;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
}

.page-header .subtitle {
    color: #8a94a6;
    font-size: 1.1rem;
}

/* Список серверов */
.servers-list {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.server-card {
    background: #1a2332;
    border-radius: 12px;
    padding: 1.5rem;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1.5rem;
    align-items: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border-left: 4px solid #ff6b35;
}

.server-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    background: #252f40;
}

.server-rank {
    font-size: 2rem;
    font-weight: bold;
    color: #ff6b35;
    min-width: 50px;
    text-align: center;
}

.server-info h3 {
    color: white;
    margin-bottom: 8px;
    font-size: 1.3rem;
}

.server-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.meta-tag {
    background: rgba(74, 111, 165, 0.2);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.9rem;
    color: #b0b7c3;
}

.server-desc {
    color: #8a94a6;
    margin-bottom: 15px;
    font-size: 14px;
}

.server-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

.server-stats {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.player-count {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ff6b35;
}

.online-indicator {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #4caf50;
    font-size: 14px;
}

.online-indicator::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #4caf50;
    border-radius: 50%;
    display: inline-block;
}

.server-rating {
    color: #ff9800;
}

/* Пагинация */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.page-btn {
    padding: 10px 15px;
    background: #1a2332;
    border: 1px solid #2a3b5c;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.page-btn.active {
    background: #ff6b35;
    border-color: #ff6b35;
}

.page-btn:hover:not(.active) {
    background: #252f40;
}

.next {
    background: #2a3b5c;
}

/* Футер */
footer {
    background: #1a2332;
    padding: 3rem 0 1rem;
    margin-top: 3rem;
    border-top: 1px solid #2a3b5c;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section p {
    color: #b0b7c3;
    margin-bottom: 0.5rem;
    font-size: 14px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #2a3b5c;
    color: #8a94a6;
    font-size: 14px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .server-card {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .server-stats {
        align-items: center;
    }
    
    .nav-links {
        display: none; /* Будет мобильное меню */
    }
    
    .filters-grid {
        grid-template-columns: 1fr;
    }
    
    .page-header h1 {
        font-size: 1.8rem;
    }
}