/* =============== ОСНОВНЫЕ СТИЛИ (Mobile First) =============== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #1a2b3e;
    font-family: 'Inter', sans-serif;
    color: #ffffff;
    line-height: 1.4;
    overflow-x: hidden;
}

/* =============== БУРГЕР-МЕНЮ =============== */
.burger-menu {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 1001;
    background: #0f1a24;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 1px solid #2a3a48;
}

.burger-icon {
    width: 22px;
    height: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.burger-icon span {
    width: 100%;
    height: 2.5px;
    background: #E0AC4A;
    border-radius: 3px;
}

/* =============== МОБИЛЬНЫЙ САЙДБАР =============== */
.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 85%;
    max-width: 300px;
    height: 100%;
    background: #0f1a24;
    z-index: 1000;
    transition: left 0.3s ease;
    padding: 1rem;
    overflow-y: auto;
    border-right: 1px solid #2a3a48;
}

.mobile-sidebar.active {
    left: 0;
}

.mobile-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #2a3a48;
}

.close-sidebar {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #E0AC4A;
}

/* =============== ОСНОВНОЙ LAYOUT =============== */
.app-layout {
    display: flex;
    flex-direction: column;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.75rem;
    gap: 1rem;
}

.sidebar-left {
    display: none;
}

/* =============== ГЕРОЙ =============== */
.hero {
    text-align: center;
    margin-bottom: 1rem;
}

.l2-badge {
    background: #0f1a24;
    border-radius: 40px;
    padding: 0.2rem 1rem;
    display: inline-block;
    margin-bottom: 0.8rem;
    font-size: 0.7rem;
    color: #E0AC4A;
    border: 1px solid #2a3a48;
}

h1 {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    color: #E0AC4A;
}

.sub {
    font-size: 0.8rem;
    color: #a0b4c8;
    margin-top: 0.3rem;
}

/* =============== ПОИСК =============== */
.search-bar {
    background: #0f1a24;
    border-radius: 60px;
    padding: 0.4rem 1rem;
    margin-bottom: 1rem;
    border: 1px solid #2a3a48;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-box input {
    background: transparent;
    border: none;
    padding: 0.5rem;
    width: 100%;
    outline: none;
    color: #ffffff;
    font-size: 0.9rem;
}

.search-box input::placeholder {
    color: #6a7a8a;
}

/* =============== КАРТОЧКИ СЕРВЕРОВ =============== */
.servers-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.server-card {
    background: #0f1a24;
    border-radius: 20px;
    border: 1px solid #2a3a48;
    position: relative;
    transition: border-color 0.2s;
    display: flex;
    overflow: hidden;
    min-height: 280px;
}

.server-card:hover {
    border-color: #E0AC4A;
}

/* Левая колонка с изображением */
.server-image-side {
    flex: 0 0 30%;
    background: #0f1a24;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.server-card-img-full {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.server-image-placeholder-full {
    width: 100%;
    height: 100%;
    background: #1e2e3a;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid #2a3a48;
}

.server-image-placeholder-full i {
    font-size: 3rem;
    color: #6a7a8a;
}

/* Правая колонка с информацией */
.server-info-side {
    flex: 1;
    padding: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

/* Имя сервера */
.server-name-wrapper {
    margin-bottom: 0.25rem;
}

.server-name-link {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.server-name {
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #E0AC4A;
}

.link-arrow {
    color: #51D28C;
    font-size: 0.8rem;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.server-name-link:hover .server-name {
    color: #51D28C;
}

.server-name-link:hover .link-arrow {
    opacity: 1;
}

/* Мета-информация */
.server-meta {
    display: flex;
    gap: 0.4rem;
    margin: 0.2rem 0;
    flex-wrap: wrap;
}

.server-type {
    padding: 0.15rem 0.7rem;
    border-radius: 30px;
    font-size: 0.6rem;
    font-weight: 700;
    color: white;
}

.type-low {
    background: #3a6b4a;
}

.type-mid {
    background: #6b5a3a;
}

.type-high {
    background: #c63209;
}

.type-pvp {
    background: #6c5ce7;
}

.chronicle-badge {
    background: #1e2e3a;
    padding: 0.15rem 0.7rem;
    border-radius: 30px;
    font-size: 0.6rem;
    font-weight: 600;
    color: #a0b4c8;
}

.chronicle-badge i {
    color: #E0AC4A;
    margin-right: 0.3rem;
}

/* Разноцветные слова и иконки */
.info-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0.3rem 0;
}

.info-item {
    background: #1e2e3a;
    padding: 0.15rem 0.6rem;
    border-radius: 30px;
    font-size: 0.65rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: #ffffff;
}

.info-item .exp-icon,
.fa-charging-station.exp-icon {
    color: #51D28C;
}

.info-item .drop-icon,
.fa-gem.drop-icon {
    color: #E0AC4A;
}

.info-item .adena-icon,
.fa-coins.adena-icon {
    color: #6c5ce7;
}

.info-item .spoil-icon,
.fa-treasure-chest.spoil-icon {
    color: #c63209;
}

.exp-text {
    color: #51D28C;
    font-weight: 600;
}

.drop-text {
    color: #E0AC4A;
    font-weight: 600;
}

.adena-text {
    color: #6c5ce7;
    font-weight: 600;
}

.spoil-text {
    color: #c63209;
    font-weight: 600;
}

.rate-value {
    color: #ffffff;
    font-weight: 700;
}

/* Описание */
.desc {
    font-size: 0.7rem;
    border-left: 3px solid #E0AC4A;
    padding-left: 0.6rem;
    margin: 0.2rem 0;
    color: #c0d0e0;
    line-height: 1.4;
}

/* Бейджи */
.card-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 0.12rem 0.6rem;
    border-radius: 30px;
    font-size: 0.55rem;
    font-weight: 700;
    z-index: 10;
}

.new-badge {
    background: #51D28C;
    color: #1a2b3e;
}

.coming-soon {
    background: #E0AC4A;
    color: #1a2b3e;
}

.today-open {
    background: #c63209;
    color: white;
}

.opened {
    background: #3a6b4a;
    color: white;
}

/* =============== КНОПКА НАВЕРХ =============== */
.go-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #c63209;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    z-index: 100;
    border: none;
}

.go-to-top.show {
    opacity: 1;
    visibility: visible;
}

.go-to-top i {
    color: white;
    font-size: 1.2rem;
}

.go-to-top:hover {
    background: #E0AC4A;
}

/* =============== ФУТЕР =============== */
.footer {
    margin-top: 2rem;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #E0AC4A;
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 500;
}

.footer-links a:hover {
    text-decoration: underline;
    color: #51D28C;
}

/* SEO-текст */
.seo-text {
    font-size: 0.7rem;
    color: #6a7a8a;
    line-height: 1.5;
    max-width: 900px;
    margin: 1rem auto 1.5rem;
    text-align: center;
}

.seo-text strong {
    color: #E0AC4A;
}

.footer-note {
    font-size: 0.65rem;
    color: #6a7a8a;
    border-top: 1px solid #2a3a48;
    padding-top: 0.8rem;
}

/* Пустое состояние */
.empty-state {
    text-align: center;
    padding: 2rem;
    background: #0f1a24;
    border-radius: 20px;
    color: #a0b4c8;
    border: 1px solid #2a3a48;
}

/* =============== ВИДЖЕТЫ =============== */
.widget {
    margin-bottom: 1.5rem;
}

.widget-title {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    font-weight: 700;
    color: #E0AC4A;
    border-left: 3px solid #E0AC4A;
    padding-left: 0.6rem;
    margin-bottom: 1rem;
}

.widget-title i {
    margin-right: 0.5rem;
    color: #51D28C;
}

/* =============== СЛАЙДЕР =============== */
.slider-container {
    margin: 0.8rem 0;
}

.slider-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.8rem;
    color: #a0b4c8;
}

.slider-value {
    background: #c63209;
    padding: 0.2rem 0.7rem;
    border-radius: 30px;
    color: white;
    font-size: 0.7rem;
}

input[type="range"] {
    width: 100%;
    height: 5px;
    background: #2a3a48;
    border-radius: 10px;
    -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: #E0AC4A;
    border-radius: 50%;
    cursor: pointer;
}

.rate-range-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.6rem;
    margin-top: 0.3rem;
    color: #6a7a8a;
}

/* =============== ВЫПАДАЮЩИЙ СПИСОК =============== */
.chronicle-select {
    width: 100%;
    background: #1e2e3a;
    border: 1px solid #2a3a48;
    border-radius: 40px;
    padding: 0.6rem;
    color: #ffffff;
    font-size: 0.8rem;
    cursor: pointer;
}

.chronicle-select option {
    background: #0f1a24;
}

/* =============== КНОПКА СБРОСА =============== */
.reset-filters-side {
    width: 100%;
    background: #1e2e3a;
    border: 1px solid #2a3a48;
    border-radius: 40px;
    padding: 0.5rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.8rem;
    color: #E0AC4A;
    transition: background 0.2s;
}

.reset-filters-side:hover {
    background: #2a3a48;
}

/* =============== AIR DATEPICKER СТИЛИ (КАЛЕНДАРЬ) =============== */
.air-datepicker {
    background: #0f1a24;
    border: 1px solid #2a3a48;
    border-radius: 16px;
    color: #ffffff;
    width: 100%;
}

.air-datepicker-nav {
    background: #0f1a24;
    border-bottom: 1px solid #2a3a48;
}

.air-datepicker-nav--title {
    color: #E0AC4A;
}

.air-datepicker-nav--action {
    background: transparent;
    color: #E0AC4A;
}

.air-datepicker-nav--action:hover {
    background: #2a3a48;
    color: #c63209;
}

.air-datepicker-nav--action svg {
    fill: #E0AC4A;
}

.air-datepicker-nav--action:hover svg {
    fill: #c63209;
}

.air-datepicker-cell.-day- {
    color: #c0d0e0;
    border-radius: 50%;
}

.air-datepicker-cell.-day-:hover {
    background: #2a3a48;
    color: white;
}

.air-datepicker-cell.-selected- {
    background: #c63209;
    color: white;
}

.air-datepicker-cell.-current- {
    border: 2px solid #E0AC4A;
    color: #E0AC4A;
}

.air-datepicker-cell.has-event {
    background: #51D28C;
    color: #1a2b3e;
}

.air-datepicker-cell.today-event {
    border: 2px solid #E0AC4A;
}

/* Легенда календаря */
.calendar-legend {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 0.8rem;
    font-size: 0.65rem;
    flex-wrap: wrap;
    color: #a0b4c8;
}

.calendar-legend span {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

/* =============== МОБИЛЬНАЯ АДАПТАЦИЯ =============== */
@media (max-width: 550px) {
    .server-card {
        flex-direction: column;
        min-height: auto;
    }
    
    .server-image-side {
        flex: 0 0 auto;
        height: 180px;
        width: 100%;
    }
    
    .server-card-img-full {
        position: relative;
        width: 100%;
        height: 180px;
        object-fit: cover;
    }
    
    .server-image-placeholder-full {
        height: 180px;
    }
    
    .server-info-side {
        padding: 0.8rem;
    }
}

/* =============== ПЛАНШЕТЫ И ДЕСКТОПЫ (768px и выше) =============== */
@media (min-width: 768px) {
    .burger-menu {
        display: none;
    }
    
    .sidebar-left {
        display: block;
    }
    
    .app-layout {
        flex-direction: row;
        padding: 1rem;
        gap: 1.5rem;
    }
    
    .hero {
        margin-bottom: 1.5rem;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    .sub {
        font-size: 0.9rem;
    }
    
    .search-bar {
        margin-bottom: 1.5rem;
    }
    
    .server-card {
        border-radius: 24px;
        min-height: 320px;
    }
    
    .server-info-side {
        padding: 1rem;
        gap: 0.5rem;
    }
    
    .server-name {
        font-size: 1.4rem;
    }
    
    .link-arrow {
        font-size: 0.9rem;
    }
    
    .server-meta {
        gap: 0.5rem;
    }
    
    .server-type {
        font-size: 0.7rem;
        padding: 0.2rem 0.9rem;
    }
    
    .chronicle-badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.9rem;
    }
    
    .info-grid {
        gap: 0.5rem;
        margin: 0.5rem 0;
    }
    
    .info-item {
        font-size: 0.75rem;
        padding: 0.2rem 0.9rem;
        gap: 0.4rem;
    }
    
    .desc {
        font-size: 0.8rem;
        padding-left: 0.8rem;
    }
    
    .card-badge {
        top: 12px;
        right: 12px;
        padding: 0.2rem 0.8rem;
        font-size: 0.65rem;
    }
    
    .go-to-top {
        width: 48px;
        height: 48px;
        bottom: 25px;
        right: 25px;
    }
    
    .go-to-top i {
        font-size: 1.3rem;
    }
    
    .footer {
        margin-top: 3rem;
    }
    
    .footer-links a {
        font-size: 0.75rem;
    }
    
    .seo-text {
        font-size: 0.75rem;
    }
    
    .sidebar-left {
        flex: 0 0 300px;
        position: sticky;
        top: 1rem;
        padding: 1.2rem;
    }
    
    .widget-title {
        font-size: 1rem;
    }
}

/* =============== БОЛЬШИЕ ДЕСКТОПЫ (1024px и выше) =============== */
@media (min-width: 1024px) {
    .sidebar-left {
        flex: 0 0 320px;
        padding: 1.5rem;
    }
    
    .server-info-side {
        padding: 1.2rem;
    }
    
    .server-name {
        font-size: 1.6rem;
    }
    
    .widget-title {
        font-size: 1.1rem;
    }
}