/* ===== ГЛОБАЛЬНЫЕ СТИЛИ ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cinzel', 'Arial', sans-serif;
    background: #0a0a0f;
    background-image: 
        radial-gradient(ellipse at 20% 50%, rgba(30, 60, 120, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(30, 60, 120, 0.15) 0%, transparent 50%),
        linear-gradient(180deg, #0a0a0f 0%, #14141e 50%, #0a0a0f 100%);
    color: #c8c4b8;
    min-height: 100vh;
    line-height: 1.6;
}

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

/* ===== ШАПКА ===== */
.header {
    background: linear-gradient(180deg, rgba(20, 25, 40, 0.95) 0%, rgba(10, 12, 20, 0.9) 100%);
    border-bottom: 2px solid rgba(200, 180, 120, 0.3);
    padding: 20px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.7);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo h1 {
    font-size: 28px;
    color: #d4c8a0;
    text-shadow: 0 0 20px rgba(200, 180, 120, 0.3);
    letter-spacing: 2px;
}

.logo .subtitle {
    font-size: 12px;
    color: #8a8a8a;
    letter-spacing: 4px;
    display: block;
    margin-top: -5px;
}

.nav a {
    color: #a8a09a;
    text-decoration: none;
    margin-left: 30px;
    font-size: 14px;
    letter-spacing: 1px;
    transition: color 0.3s;
    border-bottom: 2px solid transparent;
    padding-bottom: 5px;
}

.nav a:hover {
    color: #d4c8a0;
    border-bottom-color: #d4c8a0;
}

/* ===== ОСНОВНОЙ КОНТЕНТ ===== */
.main {
    padding: 40px 0;
    min-height: 70vh;
}

/* ===== КАРТОЧКА ПЕРСОНАЖА ===== */
.character-card {
    background: linear-gradient(145deg, rgba(20, 25, 40, 0.8) 0%, rgba(10, 12, 20, 0.9) 100%);
    border: 1px solid rgba(200, 180, 120, 0.2);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.character-header {
    display: flex;
    align-items: center;
    gap: 30px;
    border-bottom: 1px solid rgba(200, 180, 120, 0.1);
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.character-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid rgba(200, 180, 120, 0.4);
    background: linear-gradient(145deg, #1a1a2e, #2a2a3e);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    flex-shrink: 0;
}

.character-info h2 {
    font-size: 32px;
    color: #d4c8a0;
    text-shadow: 0 0 20px rgba(200, 180, 120, 0.2);
}

.character-info .details {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 5px;
    font-size: 14px;
    color: #a8a09a;
}

.character-info .details span {
    background: rgba(200, 180, 120, 0.08);
    padding: 2px 12px;
    border-radius: 4px;
    border: 1px solid rgba(200, 180, 120, 0.1);
}

/* ===== ТАБЛИЦА ШМОТОК ===== */
.equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.equipment-item {
    background: rgba(20, 25, 40, 0.6);
    border: 1px solid rgba(200, 180, 120, 0.1);
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s;
    cursor: default;
}

.equipment-item:hover {
    background: rgba(30, 40, 60, 0.8);
    border-color: rgba(200, 180, 120, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.equipment-item .slot-icon {
    font-size: 24px;
    width: 36px;
    text-align: center;
}

.equipment-item .item-name {
    font-size: 13px;
    color: #c8c4b8;
}

.equipment-item .item-quality-0 { color: #9d9d9d; }  /* Серый */
.equipment-item .item-quality-1 { color: #ffffff; }  /* Белый */
.equipment-item .item-quality-2 { color: #1eff00; }  /* Зеленый */
.equipment-item .item-quality-3 { color: #0070dd; }  /* Синий */
.equipment-item .item-quality-4 { color: #a335ee; }  /* Фиолетовый */
.equipment-item .item-quality-5 { color: #ff8000; }  /* Оранжевый */
.equipment-item .item-quality-6 { color: #e6cc80; }  /* Легендарный */

/* ===== PvP СТАТИСТИКА ===== */
.pvp-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.pvp-stat {
    background: rgba(20, 25, 40, 0.6);
    border: 1px solid rgba(200, 180, 120, 0.1);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
}

.pvp-stat .label {
    font-size: 12px;
    color: #8a8a8a;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pvp-stat .value {
    font-size: 24px;
    color: #d4c8a0;
    font-weight: 700;
}

/* ===== ПОДВАЛ ===== */
.footer {
    background: rgba(10, 12, 20, 0.9);
    border-top: 1px solid rgba(200, 180, 120, 0.1);
    padding: 20px 0;
    text-align: center;
    font-size: 12px;
    color: #5a5a5a;
    letter-spacing: 1px;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 10px;
    }
    
    .nav a {
        margin: 0 10px;
    }
    
    .character-header {
        flex-direction: column;
        text-align: center;
    }
    
    .character-info .details {
        justify-content: center;
    }
    
    .equipment-grid {
        grid-template-columns: 1fr;
    }
}
/* ===== ПОИСК ===== */
.search-container {
    display: flex;
    align-items: center;
}

.search-form {
    display: flex;
    align-items: center;
    background: rgba(20, 25, 40, 0.6);
    border: 1px solid rgba(200, 180, 120, 0.2);
    border-radius: 8px;
    padding: 2px;
    transition: border-color 0.3s;
}

.search-form:focus-within {
    border-color: rgba(200, 180, 120, 0.5);
}

.search-input {
    background: transparent;
    border: none;
    padding: 8px 14px;
    color: #c8c4b8;
    font-size: 14px;
    width: 200px;
    outline: none;
}

.search-input::placeholder {
    color: #666;
    font-size: 13px;
}

.search-button {
    background: transparent;
    border: none;
    color: #a8a09a;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 16px;
    transition: color 0.3s;
}

.search-button:hover {
    color: #d4c8a0;
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .search-input {
        width: 120px;
        font-size: 12px;
    }
    
    .search-container {
        margin: 10px 0;
    }
}
/* ===== АДАПТИВНОСТЬ ДЛЯ ТЕЛЕФОНОВ И ПЛАНШЕТОВ ===== */

/* Планшеты (до 1024px) */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
    
    .character-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

/* Телефоны (до 768px) */
@media (max-width: 768px) {
    /* Шапка */
    .header .container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .logo h1 {
        font-size: 22px;
    }
    
    .nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
    }
    
    .nav a {
        margin: 0 8px;
        font-size: 12px;
    }
    
    /* Поиск */
    .search-container {
        width: 100%;
    }
    
    .search-form {
        width: 100%;
    }
    
    .search-input {
        width: 100%;
        font-size: 14px;
        padding: 10px;
    }
    
    .search-button {
        padding: 10px 14px;
    }
    
    /* Карточка персонажа */
    .character-card {
        padding: 15px;
    }
    
    .character-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .character-avatar {
        width: 80px;
        height: 80px;
        font-size: 36px;
    }
    
    .character-info h2 {
        font-size: 24px;
    }
    
    .character-info .details {
        justify-content: center;
        gap: 8px;
        font-size: 12px;
    }
    
    .character-info .details span {
        padding: 2px 8px;
    }
    
    /* Экипировка */
    .equipment-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .equipment-item {
        padding: 10px 14px;
    }
    
    .equipment-item .item-name {
        font-size: 13px;
    }
    
    .slot-icon {
        font-size: 20px;
        width: 30px;
    }
    
    /* PvP статистика */
    .pvp-stats {
        grid-template-columns: 1fr;
    }
    
    /* Список персонажей (главная) */
    .character-grid {
        grid-template-columns: 1fr;
    }
    
    /* Гильдии */
    .guild-grid {
        grid-template-columns: 1fr;
    }
    
    /* Топ */
    .top-rank {
        font-size: 18px;
        min-width: 30px;
    }
    
    .top-avatar {
        font-size: 28px;
        width: 40px;
    }
    
    .top-name {
        font-size: 16px;
    }
    
    .top-value {
        font-size: 20px;
    }
    
    /* Форма регистрации */
    .auth-card {
        padding: 20px;
        margin: 20px 10px;
    }
    
    .auth-card h1 {
        font-size: 22px;
    }
    
    .auth-card input {
        font-size: 14px;
        padding: 10px;
    }
    
    .auth-card button {
        font-size: 16px;
        padding: 12px;
    }
}

/* Маленькие телефоны (до 480px) */
@media (max-width: 480px) {
    .logo h1 {
        font-size: 18px;
    }
    
    .nav a {
        font-size: 11px;
        margin: 0 5px;
    }
    
    .character-info h2 {
        font-size: 20px;
    }
    
    .character-info .details {
        font-size: 11px;
        flex-direction: column;
        align-items: center;
    }
    
    .equipment-item {
        flex-direction: column;
        text-align: center;
        padding: 12px;
    }
    
    .equipment-item .slot-icon {
        font-size: 28px;
        width: auto;
    }
    
    .pvp-stat {
        padding: 10px;
    }
    
    .pvp-stat .value {
        font-size: 20px;
    }
}
/* ===== СТАТИСТИКА СЕРВЕРА ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(145deg, rgba(20, 25, 40, 0.8), rgba(10, 12, 20, 0.9));
    border: 1px solid rgba(200, 180, 120, 0.15);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s;
}

.stat-card:hover {
    border-color: rgba(200, 180, 120, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.stat-icon {
    font-size: 32px;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: #d4c8a0;
    line-height: 1.2;
}

.stat-label {
    font-size: 13px;
    color: #8a8a8a;
    letter-spacing: 1px;
    margin-top: 5px;
}

/* Адаптивность для статистики */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .stat-card {
        padding: 15px;
    }
    
    .stat-value {
        font-size: 24px;
    }
    
    .stat-icon {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    
    .stat-card {
        padding: 12px;
    }
    
    .stat-value {
        font-size: 20px;
    }
    
    .stat-label {
        font-size: 11px;
    }
}
/* ===== НОВОСТИ ===== */
.news-section {
    margin: 30px 0;
}

.news-item {
    background: linear-gradient(145deg, rgba(20, 25, 40, 0.8), rgba(10, 12, 20, 0.9));
    border: 1px solid rgba(200, 180, 120, 0.15);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s;
}

.news-item:hover {
    border-color: rgba(200, 180, 120, 0.3);
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.news-title {
    font-size: 18px;
    font-weight: 700;
    color: #d4c8a0;
}

.news-date {
    font-size: 12px;
    color: #666;
}

.news-content {
    color: #c8c4b8;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 10px;
}

.news-author {
    font-size: 12px;
    color: #666;
    text-align: right;
}

/* Адаптивность для новостей */
@media (max-width: 768px) {
    .news-item {
        padding: 15px;
    }
    
    .news-title {
        font-size: 16px;
    }
    
    .news-content {
        font-size: 13px;
    }
}
/* ===== СТАТУС СЕРВЕРА ===== */
.server-status {
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    animation: pulse 2s infinite;
}

.status-dot.online {
    background: #4caf50;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
}

.status-dot.offline {
    background: #ff6b6b;
    box-shadow: 0 0 10px rgba(255, 50, 50, 0.5);
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}