/* css/filter.css - Стили для страниц фильтров */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
    overflow-x: hidden;
}

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

/* Хлебные крошки */
.breadcrumbs {
    background: white;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    font-size: 0.9rem;
}

.breadcrumbs a {
    color: #3498db;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

/* Заголовок фильтра */
.filter-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px 0;
}

.filter-hero {
    display: flex;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
}

.filter-icon {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    flex-shrink: 0;
}

.filter-info h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.filter-description {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 15px;
    max-width: 600px;
}

.filter-stats {
    background: rgba(255,255,255,0.2);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.95rem;
    display: inline-block;
}

/* Основной контент */
.main-content {
    padding: 30px 0;
}

/* Сетка казино */
.casinos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 20px;
}

/* Карточка казино */
.casino-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
    position: relative;
    transition: all 0.3s ease;
}

.casino-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

/* Позиция в рейтинге */
.casino-position {
    position: absolute;
    top: -10px;
    left: 20px;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}

/* Заголовок казино */
.casino-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    margin-top: 10px;
}

.casino-logo {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.casino-name {
    font-size: 1.3rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 5px;
}

.casino-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rating-stars {
    font-size: 0.9rem;
}

.rating-number {
    background: #f8f9fa;
    color: #2c3e50;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: bold;
}

/* Информация о казино */
.casino-info {
    margin-bottom: 20px;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid #f1f3f4;
}

.info-label {
    color: #6c757d;
    font-size: 0.85rem;
}

.info-value {
    font-weight: 500;
    color: #2c3e50;
    font-size: 0.85rem;
}

/* Топ промокод */
.top-promo {
    background: linear-gradient(45deg, #fff9e6, #fef7e6);
    border: 1px solid #f39c12;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
}

.promo-title {
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.promo-details {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.promo-bonus, .promo-spins {
    background: #f39c12;
    color: white;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: bold;
}

.promo-spins {
    background: #27ae60;
}

/* Секция промокода */
.promo-code-section {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.promo-code {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: #2c3e50;
    background: white;
    padding: 6px 12px;
    border-radius: 6px;
    border: 2px dashed #3498db;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.copy-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: #2980b9;
    transform: scale(1.05);
}

.copy-btn.copied {
    background: #27ae60;
}

/* Кнопки действий */
.casino-actions {
    display: flex;
    gap: 10px;
}

.btn {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    text-align: center;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-info {
    background: #17a2b8;
    color: white;
}

.btn-info:hover {
    background: #138496;
    color: white;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5a6fd8, #6a4190);
    color: white;
    transform: translateY(-1px);
}

/* Нет результатов */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.no-results h3 {
    color: #495057;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.no-results p {
    margin-bottom: 25px;
}

/* ========== АДАПТИВНОСТЬ ========== */

/* Планшеты */
@media (max-width: 992px) {
    .casinos-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 15px;
    }

    .filter-hero {
        text-align: center;
        flex-direction: column;
        gap: 20px;
    }

    .filter-info h1 {
        font-size: 1.8rem;
    }
}

/* Мобильные устройства */
@media (max-width: 767px) {
    .container {
        padding: 0 10px;
    }

    .filter-header {
        padding: 20px 0;
    }

    .filter-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }

    .filter-info h1 {
        font-size: 1.6rem;
    }

    .filter-description {
        font-size: 1rem;
    }

    .main-content {
        padding: 20px 0;
    }

    .casinos-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .casino-card {
        padding: 15px;
    }

    .casino-header {
        gap: 12px;
    }

    .casino-logo {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }

    .casino-name {
        font-size: 1.2rem;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .info-item {
        padding: 4px 0;
    }

    .top-promo {
        padding: 12px;
    }

    .promo-code-section {
        flex-direction: column;
        align-items: stretch;
    }

    .copy-btn {
        width: 100%;
    }

    .casino-actions {
        flex-direction: column;
        gap: 8px;
    }
}

/* Очень маленькие экраны */
@media (max-width: 480px) {
    .filter-info h1 {
        font-size: 1.4rem;
    }

    .casino-card {
        padding: 12px;
    }

    .casino-position {
        width: 25px;
        height: 25px;
        font-size: 0.8rem;
    }
}