/* Основные стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

/* Для заголовков */
h1, h2, h3, h4, h5, h6 {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Для кнопок */
button, .btn, .nav-btn, .page-btn {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Шапка */
.header {
    background: rgb(255 255 255 / 55%);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    flex-wrap: wrap;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #333;
    font-size: 1.5rem;
    font-weight: 700;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo i {
    color: #667eea;
    font-size: 2rem;
}

/* Логотип в шапке */
.logo-img {
    width: 53px;
    height: 45px;
    object-fit: contain;
    border-radius: 8px;
    // box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.logo:hover .logo-img {
    transform: scale(1.1) rotate(5deg);
}

/* Убираем иконку из логотипа */
.logo i {
    display: none;
}

/* Логотип в подвале */
.logo-img-footer {
    width: 53px;
    height: 45px;
    object-fit: contain;
    border-radius: 6px;
    filter: brightness(0.9);
}

/* Убираем иконку из подвала */
.footer-logo i {
    display: none;
}

/* Стили для email в футере */
.footer-email {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-email:hover {
    color: #5a67d8;
    transform: translateY(-2px);
}

.footer-email:active {
    color: #4c51bf;
    transform: translateY(0);
}

/* Адаптивность */
@media (max-width: 768px) {
    .footer-email {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }
    
    .footer-email::before {
        font-size: 0.8em;
        margin-right: 6px;
    }
}



/* Поиск */
.search-form {
    flex: 1;
    max-width: 500px;
}

.search-box {
    position: relative;
    display: flex;
}

.search-input {
    flex: 1;
    padding: 12px 50px 12px 20px;
    font-size: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    background: #f8f9fa;
    transition: all 0.3s ease;
    outline: none;
}

.search-input:focus {
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-btn {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 50px;
    background: #667eea;
    border: none;
    border-radius: 0 25px 25px 0;
    color: white;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-btn:hover {
    background: #5a67d8;
}

/* Основной контент */
.main {
    padding: 30px 0;
    min-height: calc(100vh - 140px);
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInDown 0.8s ease;
}

.search-info {
    background: rgba(255, 255, 255, 0.9);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 30px;
    animation: fadeIn 0.8s ease 0.2s both;
}

.search-info p {
    margin: 5px 0;
}

/* НОВЫЙ ДИЗАЙН КАРТОЧЕК */
.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.item-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 180px;
}

.item-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.item-card:nth-child(1) { animation-delay: 0.1s; }
.item-card:nth-child(2) { animation-delay: 0.2s; }
.item-card:nth-child(3) { animation-delay: 0.3s; }
.item-card:nth-child(4) { animation-delay: 0.4s; }
.item-card:nth-child(5) { animation-delay: 0.5s; }

/* Иконка и ID в одной строке */
.item-top-row {
    display: flex;
    align-items: center;
    padding: 15px 15px 0 15px;
    gap: 10px;
}

.item-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    display: flex;
    // align-items: center;
    justify-content: center;
    padding: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.item-card:hover .item-icon {
    transform: scale(1.1) rotate(5deg);
}

.item-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 6px; /* ← Добавьте скругление */
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.3));
}

.icon-placeholder {
    color: white;
    font-size: 1.5rem;
    opacity: 0.8;
}

.item-id {
    background: #f0f0f0;
    padding: 6px 12px;
    border-radius: 12px;
    font-family: 'SF Mono', Monaco, 'Cascadia Mono', 'Segoe UI Mono', 'Roboto Mono', 'Ubuntu Mono', monospace;
    font-weight: 600;
    color: #555;
    font-size: 0.9rem;
    margin-left: auto; /* Прижимаем ID к правому краю строки */
}

/* Информация о предмете */
.item-info {
    padding: 15px 15px 15px 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.item-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.3;
    transition: color 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    min-height: 2.6em;
}

/* Темный текст для common и неизвестных качеств */
.item-card[data-quality="common"] .item-name,
.item-card:not([data-quality="rare"]):not([data-quality="legend"]):not([data-quality="unique"]):not([data-quality="epic"]):not([data-quality="mythic"]) .item-name {
    color: #333333 !important;
    font-weight: 700;
}

/* Качество справа */
.item-meta {
    display: flex;
    justify-content: flex-end; /* Выравниваем по правому краю */
    align-items: center;
    margin-top: auto;
    font-size: 0.9rem;
    padding: 0 5px;
}

.item-quality {
    padding: 6px 12px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
    min-width: 80px;
}

/* Цвета качества */
.quality-common {
    background-color: #FFFFFF;
    color: #333333;
    border: 1px solid #e0e0e0;
}

.quality-rare {
    background-color: #1EFF00;
    color: white;
}

.quality-legend {
    background-color: #0070FF;
    color: white;
}

.quality-unique {
    background-color: #FFD700;
    color: #333333;
}

.quality-epic {
    background-color: #FF8000;
    color: white;
}

.quality-mythic {
    background-color: #A335EE;
    color: white;
}

.no-items {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    animation: fadeIn 0.8s ease;
}

.no-items i {
    color: #667eea;
    margin-bottom: 20px;
}

.no-items h3 {
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* Пагинация */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.page-btn {
    padding: 12px 24px;
    background: white;
    border: none;
    border-radius: 25px;
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-btn:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.page-numbers {
    display: flex;
    gap: 5px;
}

.page-number {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.page-number:hover {
    background: #667eea;
    color: white;
    transform: scale(1.1);
}

.page-number.active {
    background: #667eea;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

/* Страница предмета (остается как было) */
.breadcrumbs {
    margin-bottom: 30px;
    animation: fadeIn 0.8s ease;
}

.breadcrumbs a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.breadcrumbs a:hover {
    opacity: 1;
}

.item-page {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.8s ease;
}

.item-header {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 40px;
    background: linear-gradient(135deg, #2c3e50 0%, #4a6491 100%);
    color: white;
}
.item-icon-large {
    width: 140px; /* Золотая середина */
    height: 140px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.15) 0%, 
        rgba(255, 255, 255, 0.05) 100%);
    border-radius: 16px; /* Компромисс между 12px и 20px */
    border: 2px solid rgba(255, 255, 255, 0.2); /* Вернули 2px */
    padding: 16px;
    backdrop-filter: blur(10px); /* Вернули размытие */
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1); /* Добавили внутреннюю тень */
}

.item-icon-large img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px; /* Чуть меньше чем у контейнера (16px) */
    filter:
        drop-shadow(0 5px 15px rgba(0, 0, 0, 0.5))
        brightness(1.05)
        contrast(1.05);
    image-rendering: -webkit-optimize-contrast;
    overflow: hidden; /* На всякий случай */
}



.icon-placeholder-large {
    color: white;
    opacity: 0.7;
}
.item-title {
    flex: 1;
}
.item-name-main {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}
.item-meta-main {
    display: flex;
    gap: 20px;
    font-size: 1.1rem;
}
.item-id-main {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 15px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}
.item-quality-main {
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    padding: 5px 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}


.item-details {
    padding: 40px;
}

.item-details h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid #667eea;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.detail-row:hover {
    transform: translateX(10px);
    background: #e9ecef;
}

/* Для длинных labels делаем перенос */
.detail-label {
    font-weight: 600;
    color: #555;
    word-break: break-word;
    min-width: 120px;
    max-width: 50%;
}

.detail-value {
    font-weight: 500;
    text-align: right;
    min-width: 100px;
    flex-shrink: 0;
}


.detail-value.yes {
    color: #28a745;
}

.detail-value.no {
    color: #dc3545;
}

.kina-icon {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-right: 5px;
	border-radius: 4px; /* ← Добавьте скругление */
}

.item-description {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e9ecef;
}

.item-description h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 20px;
}

.description-content {
    line-height: 1.8;
    color: #555;
    font-size: 1.1rem;
}

.no-description {
    color: #999;
    font-style: italic;
}

.item-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e9ecef;
}

.nav-btn {
    padding: 12px 24px;
    background: #667eea;
    border: none;
    border-radius: 25px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: #5a67d8;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.nav-btn.home {
    background: #6c757d;
}

.nav-btn.home:hover {
    background: #5a6268;
}

/* Подвал */
.footer {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 0;
    backdrop-filter: blur(10px);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 600;
}

.footer-logo i {
    color: #667eea;
}

.footer-info {
    color: #aaa;
    font-size: 0.9rem;
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
		gap: 1px;
		padding: 1px 0 10px;
    }
    .search-form {
        width: 100%;
        max-width: 100%;
    }
    .page-title {
        font-size: 2rem;
    }
    .items-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 15px;
    }
    .item-icon {
        width: 50px;
        height: 50px;
    }
    .item-id {
        padding: 5px 10px;
        font-size: 0.8rem;
    }
    .item-quality {
        padding: 5px 10px;
        font-size: 0.8rem;
        min-width: 70px;
    }
    .item-header {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }
    .item-icon-large {
        width: 120px;
        height: 120px;
    }
    .item-name-main {
        font-size: 2rem;
    }
    .details-grid {
        grid-template-columns: 1fr;
    }
    .item-navigation {
        flex-direction: column;
        gap: 15px;
    }
    .nav-btn {
        justify-content: center;
    }
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
	.item-title {
		width: 100%;
	}	
	
}

@media (max-width: 480px) {
	.detail-row {
		width: 100%;
	}	
	
	.container {
		padding: 0 10px;
	}	
	.item-details {
		padding: 15px;
	}
    .items-grid {
        grid-template-columns: 1fr;
    }
    .item-name-main {
        font-size: 1.5rem;
    }
    .item-meta-main {
        flex-direction: column;
        gap: 10px;
    }
    .pagination {
        flex-direction: column;
    }
    .page-numbers {
        order: -1;
    }
}

/* Фильтры */
.filters-container {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.8s ease 0.1s both;
    text-align: center;
}
.filters-form {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}
.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    align-items: end;
    margin-bottom: 20px;
}
.filter-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
}
.filter-label {
    font-weight: 600;
    color: #555;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}
.filter-label i {
    color: #667eea;
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}
.filter-select {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    background: white;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.95rem;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    width: 100%;
    height: 48px;
}
.filter-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}
.filter-select:hover {
    border-color: #5a67d8;
}
/* Стили для объединенного фильтра с группами */
.filter-select optgroup {
    font-weight: 600;
    color: #555;
    padding: 5px 0;
    background: #f8f9fa;
}
.filter-select optgroup[label*="🎽"] {
    color: #4169E1;
}
.filter-select optgroup[label*="⚔"] {
    color: #DC3545;
}
.filter-select option {
    padding: 10px 15px;
}
/* Иконка для типа предмета */
.filter-label i.fa-tshirt {
    color: #9370DB;
}
/* Кнопки фильтра - отдельная строка */
.filter-buttons-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}
.filter-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    width: 100%;
    max-width: 505px;
}
.filter-btn {
    padding: 4px 15px 10px;
    border: none;
    border-radius: 10px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    min-width: 140px;
    height: 48px;
}
.filter-btn.apply {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    flex: 1;
}
.filter-btn.apply:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46a1 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}
.filter-btn.reset {
    background: #f8f9fa;
    color: #666;
    border: 2px solid #e0e0e0;
    flex: 1;
}
.filter-btn.reset:hover {
    background: #e9ecef;
    color: #333;
    border-color: #ccc;
    transform: translateY(-2px);
}

/* ===== КОМПАКТНЫЕ ЦВЕТА В ФИЛЬТРАХ ===== */

/* Расы */
.filter-select option[value="pc_dark"] { color: #4169E1; font-weight: 600; }
.filter-select option[value="pc_dark"]:hover { background: rgba(65, 105, 225, 0.15); }
.filter-select option[value="pc_dark"]:checked,
.filter-select option[value="pc_dark"]:selected { background: rgba(65, 105, 225, 0.25); font-weight: 700; }

.filter-select option[value="pc_light"] { color: #32CD32; font-weight: 600; }
.filter-select option[value="pc_light"]:hover { background: rgba(50, 205, 50, 0.15); }
.filter-select option[value="pc_light"]:checked,
.filter-select option[value="pc_light"]:selected { background: rgba(50, 205, 50, 0.25); font-weight: 700; }

/* Качества */
.filter-select option[value="common"] { color: #000000; font-weight: 600; }
.filter-select option[value="common"]:hover { background: rgba(0, 0, 0, 0.1); }
.filter-select option[value="common"]:checked,
.filter-select option[value="common"]:selected { background: rgba(0, 0, 0, 0.15); font-weight: 700; }

.filter-select option[value="rare"] { color: #1EFF00; font-weight: 600; }
.filter-select option[value="rare"]:hover { background: rgba(30, 255, 0, 0.15); }
.filter-select option[value="rare"]:checked,
.filter-select option[value="rare"]:selected { background: rgba(30, 255, 0, 0.25); font-weight: 700; }

.filter-select option[value="legend"] { color: #0070FF; font-weight: 600; }
.filter-select option[value="legend"]:hover { background: rgba(0, 112, 255, 0.15); }
.filter-select option[value="legend"]:checked,
.filter-select option[value="legend"]:selected { background: rgba(0, 112, 255, 0.25); font-weight: 700; }

.filter-select option[value="unique"] { color: #FFD700; font-weight: 600; }
.filter-select option[value="unique"]:hover { background: rgba(255, 215, 0, 0.15); }
.filter-select option[value="unique"]:checked,
.filter-select option[value="unique"]:selected { background: rgba(255, 215, 0, 0.25); font-weight: 700; }

.filter-select option[value="epic"] { color: #FF8000; font-weight: 600; }
.filter-select option[value="epic"]:hover { background: rgba(255, 128, 0, 0.15); }
.filter-select option[value="epic"]:checked,
.filter-select option[value="epic"]:selected { background: rgba(255, 128, 0, 0.25); font-weight: 700; }

.filter-select option[value="mythic"] { color: #A335EE; font-weight: 600; }
.filter-select option[value="mythic"]:hover { background: rgba(163, 53, 238, 0.15); }
.filter-select option[value="mythic"]:checked,
.filter-select option[value="mythic"]:selected { background: rgba(163, 53, 238, 0.25); font-weight: 700; }

/* Общая анимация */
.filter-select option { padding: 10px 15px; transition: all 0.2s ease; }
.filter-select option:hover { transform: translateX(3px); }




/* Адаптивность фильтров */
@media (max-width: 768px) {
    .filters-container {
        padding: 20px 15px;
    }
    .filters-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .filter-buttons-container {
        flex-direction: column;
        align-items: center;
    }
    .filter-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }
    .filter-btn {
        width: 100%;
        min-width: auto;
    }
    .filter-select {
        height: 45px;
        font-size: 0.9rem;
    }
}
@media (max-width: 480px) {
    .filters-container {
        padding: 15px 10px;
    }
    .filter-label {
        font-size: 0.9rem;
    }
    .filter-select {
        padding: 10px 12px;
        height: 42px;
    }
    .filter-btn {
        padding: 10px 20px;
        font-size: 0.95rem;
        height: 44px;
    }
}


/* ============================================
   ОБНОВЛЕННЫЕ СТИЛИ ДЛЯ ЕДИНОГО БЛОКА ПАРАМЕТРОВ
   ============================================ */

/* Основной контейнер параметров */
.params-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e9ecef;
}

.params-block {
    margin-bottom: 30px;
    background: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.params-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.params-block h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
    display: flex;
    align-items: center;
    gap: 10px;
}

.params-block h3::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #667eea;
    border-radius: 50%;
    display: inline-block;
}

/* Сетка для всех параметров */
.all-params-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}

.param-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: white;
    border-radius: 10px;
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
    position: relative;
}

.param-row:hover {
    background: #e9ecef;
    transform: translateX(5px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

/* Строки с бонусами */
.param-row.has-bonus {
    border-left-color: #006400; /* Темно-зеленый */
    background: linear-gradient(135deg, #ffffff 0%, #f0f8f0 100%);
}

.param-row.has-bonus:hover {
    background: linear-gradient(135deg, #f8f8f8 0%, #e8f0e8 100%);
}

/* Строки только с бонусными параметрами */
.param-row.bonus-only {
    border-left-color: #228B22; /* Лесной зеленый */
    background: linear-gradient(135deg, #f8fff8 0%, #e8f8e8 100%);
}

.param-row.bonus-only:hover {
    background: linear-gradient(135deg, #f0fff0 0%, #e0f0e0 100%);
}

/* Названия параметров (всегда черные) */
.param-label {
    font-weight: 600;
    color: #000000; /* Черный */
    font-size: 0.95rem;
    flex: 1;
    min-width: 140px;
}

/* Значения параметров */
.param-value {
    font-weight: 700;
    text-align: right;
    flex-shrink: 0;
    min-width: 100px;
    font-family: 'SF Mono', Monaco, 'Cascadia Mono', 'Segoe UI Mono', monospace;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

/* Основные значения (черные) */
.main-value {
    color: #000000; /* Черный */
    font-size: 1rem;
}

/* Бонусные значения (темно-зеленые) */
.bonus-plus {
    color: #006400; /* Темно-зеленый */
    font-weight: 700;
    font-size: 0.95rem;
    padding: 2px 6px;
    background: rgba(0, 100, 0, 0.1);
    border-radius: 4px;
    border: 1px solid rgba(0, 100, 0, 0.2);
}

/* Только бонусные параметры (темно-зеленые) */
.bonus-only-value {
    color: #006400; /* Темно-зеленый */
    font-size: 1rem;
    font-weight: 700;
}

/* Стили для зачарования */
.enchantment-container {
    background: rgba(163, 53, 238, 0.05);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(163, 53, 238, 0.1);
}

.enchantment-type {
    font-size: 1.1rem;
    font-weight: 700;
    color: #A335EE;
    margin-bottom: 20px;
    text-align: center;
    padding: 10px;
    background: rgba(163, 53, 238, 0.1);
    border-radius: 8px;
}

/* Десктопная версия зачарования (два уровня рядом) */
.enchantment-levels-desktop {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.enchantment-level {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.enchantment-level:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
}

.enchantment-level-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #A335EE;
    margin-bottom: 15px;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(163, 53, 238, 0.3);
}

.enchantment-params {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.enchantment-param-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: rgba(163, 53, 238, 0.05);
    border-radius: 6px;
    transition: background 0.3s ease;
}

.enchantment-param-row:hover {
    background: rgba(163, 53, 238, 0.1);
}

.enchantment-param-label {
    font-weight: 600;
    color: #000000; /* Черный */
    font-size: 0.9rem;
    flex: 1;
}

.enchantment-param-value {
    font-weight: 700;
    color: #006400; /* Темно-зеленый */
    font-size: 0.9rem;
    text-align: right;
    flex-shrink: 0;
    min-width: 60px;
    font-family: 'SF Mono', Monaco, 'Cascadia Mono', 'Segoe UI Mono', monospace;
}

/* Мобильная версия зачарования (вертикально) */
.enchantment-levels-mobile {
    display: none;
}

/* Сообщение об отсутствии параметров */
.no-params {
    text-align: center;
    padding: 30px;
    color: #999;
    font-style: italic;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    border: 2px dashed #e0e0e0;
}

/* Анимация появления */
.params-block {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.params-block:nth-child(1) { animation-delay: 0.1s; }
.params-block:nth-child(2) { animation-delay: 0.2s; }

/* Адаптивность */
@media (max-width: 768px) {
    .params-block {
        padding: 20px 15px;
        margin-bottom: 20px;
    }
    
    .all-params-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .param-row {
        padding: 10px 12px;
    }
    
    .param-label {
        font-size: 0.9rem;
        min-width: 120px;
    }
    
    .param-value {
        font-size: 0.9rem;
        min-width: 90px;
    }
    
    /* На мобильных скрываем десктопную версию зачарования */
    .enchantment-levels-desktop {
        display: none;
    }
    
    /* Показываем мобильную версию зачарования */
    .enchantment-levels-mobile {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    
    .enchantment-level {
        padding: 15px;
    }
    
    .enchantment-level-title {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }
    
    .enchantment-param-row {
        padding: 6px 10px;
    }
    
    .enchantment-param-label,
    .enchantment-param-value {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .params-block h3 {
        font-size: 1.3rem;
    }
    
    /* .param-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .param-value {
        text-align: left;
        width: 100%;
        justify-content: flex-start;
    } */
    
    .enchantment-type {
        font-size: 1rem;
        padding: 8px;
    }
}