/* ======================================= */
/* ========== ТАБЛИЦА СЕТОВ ========== */
/* ======================================= */

.seteffects-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}

.seteffects-table th,
.seteffects-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.seteffects-table th {
    background: #4a4a8a;
    font-weight: 700;
    color: white;
}

.seteffects-table td {
    color: #333;
}

.seteffects-table tbody tr {
    cursor: pointer;
    transition: background 0.2s;
}

.seteffects-table tbody tr:hover {
    background-color: #e8e8ff;
}

.items-row {
    width: 50%;
}

.set-items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.set-item {
    width: 40px;
    height: 40px;
    background: #f5f5f5;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.set-item img {
    max-width: 32px;
    max-height: 32px;
    object-fit: contain;
}

.rule-cell {
    font-weight: 600;
    color: #4a4a8a;
}

.effects-cell {
    color: #27ae60;
    font-weight: 500;
}

.no-items {
    color: #999;
    font-style: italic;
}

/* ======================================= */
/* ========== ПАГИНАЦИЯ ========== */
/* ======================================= */

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.pagination a {
    display: inline-block;
    padding: 10px 15px;
    background: #1a1a2e;
    border: 1px solid #4a4a8a;
    color: #e0e0e0;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: #4a4a8a;
    color: white;
}

.pagination a.active {
    background: #4a4a8a;
    color: white;
    font-weight: bold;
}

.results-info {
    margin: 15px 0;
    padding: 10px 15px;
    background: rgba(74, 74, 138, 0.2);
    border-left: 4px solid #4a4a8a;
    color: #ffffff;
    font-size: 1em;
    font-weight: 600;
    border-radius: 0 5px 5px 0;
}

.wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}
/* ======================================= */
/* ========== ДЕТАЛЬНАЯ СТРАНИЦА СЕТА ========== */
/* ======================================= */

.set-header {
    margin: 20px 0;
    padding: 25px;
    background: linear-gradient(135deg, #4a4a8a 0%, #2c3e50 100%);
    color: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.set-header h1 {
    margin: 0 0 5px 0;
    font-size: 1.8em;
}

.set-code {
    color: rgba(255,255,255,0.7);
    font-size: 0.9em;
}

/* ======================================= */
/* ========== СОСТАВ КОМПЛЕКТА ========== */
/* ======================================= */

.set-items-section,
.set-effects-section {
    margin: 30px 0;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.set-items-section h2,
.set-effects-section h2 {
    color: #4a4a8a;
    font-size: 1.3em;
    margin-bottom: 20px;
    border-bottom: 2px solid #4a4a8a;
    padding-bottom: 8px;
}

.set-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
}

.set-item-card {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    border: 1px solid #e0e0e0;
    transition: transform 0.2s, box-shadow 0.2s;
}

.set-item-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.set-item-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 8px;
    background: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e0e0e0;
}

.set-item-icon img {
    max-width: 48px;
    max-height: 48px;
    object-fit: contain;
}

.set-item-slot {
    font-size: 0.75em;
    color: #000000;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.set-item-name {
    white-space: normal;
    font-size: 0.75em;
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    line-height: 1.3;
    color: #000000;
}

.set-item-code {
    font-size: 0.7em;
    color: #999;
    font-family: monospace;
}

/* ======================================= */
/* ========== ЭФФЕКТЫ ПО ТИРАМ ========== */
/* ======================================= */

.set-tiers {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tier-card {
    background: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid #4a4a8a;
    overflow: hidden;
}

.tier-requirement {
    background: #4a4a8a;
    padding: 8px 15px;
}

.tier-badge {
    color: white;
    font-weight: 600;
    font-size: 0.9em;
}

.tier-badge.total {
    background: #27ae60;
    padding: 4px 12px;
    border-radius: 20px;
}

.tier-effects {
    padding: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tier-effect {
    background: white;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    font-size: 0.85em;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.total-card {
    border-left-color: #27ae60;
    background: #f0f9f0;
    margin-top: 5px;
}

.total-card .tier-requirement {
    background: #27ae60;
}

.total-effect {
    background: #e8f5e9;
    border-color: #27ae60;
}

.effect-icon {
    font-weight: 500;
    color: #000000;
}

.effect-value {
    color: #333;
    font-weight: 600;
}

.effect-positive {
    color: #28a745;
    font-weight: 700;
}

/* ======================================= */
/* ========== ХЛЕБНЫЕ КРОШКИ ========== */
/* ======================================= */

.breadcrumbs {
    margin: 15px 0 20px;
}

.breadcrumbs a {
    display: inline-block;
    padding: 8px 16px;
    background: #4a4a8a;
    color: white !important;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 600;
    border-radius: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.breadcrumbs a:hover {
    background: #2c2c5a;
    transform: translateX(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* ======================================= */
/* ========== АДАПТИВНОСТЬ ========== */
/* ======================================= */

@media (max-width: 768px) {
    .set-items-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
    
    .tier-effects {
        flex-direction: column;
        gap: 8px;
    }
    
    .tier-effect {
        width: 100%;
    }
    
    .set-item-name {
        white-space: normal;
        font-size: 0.75em;
        color: #000000;
    }
    
    .set-header h1 {
        font-size: 1.3em;
    }
}