/**
 * Navigator Component - Server Styles
 * Цветовая схема: #244e85 (тёмно-синий)
 * Цена: #520101 (красный)
 */

/* ================================================
   ОСНОВНОЙ ЦВЕТ СЕРВЕРОВ
   ================================================ */
.server-primary-color {
    color: #244e85 !important;
}

.server-primary-bg {
    background-color: #244e85 !important;
}

/* ================================================
   ЗАГОЛОВКИ КАРТОЧЕК
   ================================================ */
.server-card-header {
    background-color: #244e85;
    color: #ffffff;
    padding: 1rem;
}

.server-card-header .card-title {
    margin-bottom: 0;
}

.server-card-header a {
    color: #ffffff;
    text-decoration: none;
}

.server-card-header a:hover {
    text-decoration: underline;
}

/* ================================================
   ЦЕНЫ
   ================================================ */
.server-price {
    color: #520101;
    font-weight: bold;
    font-size: 1.25rem;
}

.server-price-large {
    color: #520101;
    font-weight: bold;
    font-size: 3rem;
}

.server-price-card {
    color: #520101;
    font-weight: bold;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* ================================================
   КНОПКИ
   ================================================ */
.btn-server-primary {
    background-color: #244e85;
    border-color: #244e85;
    color: #ffffff;
}

.btn-server-primary:hover {
    background-color: #011f3d;
    border-color: #011f3d;
    color: #ffffff;
}

.btn-server-primary:focus,
.btn-server-primary:active {
    background-color: #01152b;
    border-color: #01152b;
    color: #ffffff;
    box-shadow: 0 0 0 0.25rem rgba(1, 41, 82, 0.25);
}

.btn-outline-server-primary {
    border-color: #244e85;
    color: #012952;
}

.btn-outline-server-primary:hover {
    background-color: #244e85;
    border-color: #244e85;
    color: #ffffff;
}

/* ================================================
   БЕЙДЖИ (АКТИВНЫЕ ФИЛЬТРЫ)
   ================================================ */
.badge-server-primary {
    background-color: #244e85;
    color: #ffffff;
}

.server-badge-qty {
    background-color: #6c757d;
    color: #ffffff;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    margin-left: 0.25rem;
}

/* ================================================
   КАРТОЧКИ МОДЕЛЕЙ
   ================================================ */
.server-model-card {
    height: 100%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.server-model-card:hover {
    box-shadow: 0 4px 12px rgba(1, 41, 82, 0.2);
}

.server-model-card .card-img-top {
    max-height: 250px;
    object-fit: contain;
    padding: 1rem;
}

.server-model-card .card-body {
    display: flex;
    flex-direction: column;
}

.server-model-card .card-body .mt-auto {
    margin-top: auto !important;
}

/* ================================================
   ИЗОБРАЖЕНИЕ-ЗАГЛУШКА
   ================================================ */
.server-image-placeholder {
    height: 250px;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.server-image-placeholder-large {
    height: 400px;
    background-color: #f8f9fa;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

/* ================================================
   СПЕЦИФИКАЦИЯ (ДЕТАЛЬНЫЙ ПРОСМОТР)
   ================================================ */
.server-spec-table {
    margin-bottom: 0;
}

.server-spec-table th {
    width: 35%;
    color: #6c757d;
    font-weight: 500;
}

.server-spec-table td {
    font-weight: normal;
}

.server-spec-image {
    max-height: 400px;
    object-fit: contain;
}

/* ================================================
   ПОХОЖИЕ МОДЕЛИ
   ================================================ */
.server-similar-models {
    margin-top: 3rem;
}

.server-similar-models h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* ================================================
   АДАПТИВНОСТЬ
   ================================================ */
@media (max-width: 768px) {
    .server-price-large {
        font-size: 2rem;
    }
    
    .server-model-card .card-img-top {
        max-height: 200px;
    }
    
    .server-spec-table th {
        width: 40%;
    }
}

@media (max-width: 576px) {
    .server-card-header {
        padding: 0.75rem;
    }
    
    .server-price-large {
        font-size: 1.75rem;
    }
}

/* ================================================
   УТИЛИТЫ
   ================================================ */
.server-text-muted {
    color: #6c757d;
}