/* ======================================= */
/* ========== ТАБЛИЦА ДАНЖЕЙ (СПИСОК) ========== */
/* ======================================= */

.dungeons-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}

.dungeons-table th,
.dungeons-table td {
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.dungeons-table th {
    background: #4a4a8a;
    font-weight: 700;
    color: white;
}

.dungeons-table td {
    color: #000000;
    font-weight: 500;
}

.dungeons-table .icon {
    width: 50px;
    text-align: center;
}

.dungeons-table .icon img {
    max-width: 40px;
    max-height: 40px;
    object-fit: contain;
}

.dungeons-table .name-cell {
    text-align: left;
    font-weight: 600;
}

.dungeons-table .price-cell {
    font-weight: 700;
    color: #2c3e50;
}

.dungeons-table .price-value {
    color: #27ae60;
    font-size: 1.1em;
}

.dungeons-table .price-free {
    color: #95a5a6;
    font-style: italic;
}

.dungeons-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.dungeons-table tbody tr:hover {
    background-color: #e8e8ff;
    cursor: pointer;
}
/* ======================================= */
/* ========== ТОЧКИ РЕСПАВНА ========== */
/* ======================================= */

.mission-respawns {
    margin: 15px 0;
    padding: 12px;
    background: #f5f5f5;
    border-radius: 8px;
}

.respawn-title {
    font-weight: 600;
    color: #4a4a8a;
    margin-bottom: 10px;
    font-size: 0.9em;
}

.respawn-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.respawn-item {
    background: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.respawn-monster {
    font-weight: 600;
    color: #333;
}

.respawn-count {
    color: #4a4a8a;
    font-weight: 500;
}

.time-plus {
    color: #28a745;
    font-weight: 500;
}

.time-minus {
    color: #dc3545;
    font-weight: 500;
}

/* ======================================= */
/* ========== АДАПТИВ ДЛЯ РЕСПАВНОВ ========== */
/* ======================================= */

@media (max-width: 768px) {
    .respawn-grid {
        flex-direction: column;
        gap: 6px;
    }
    
    .respawn-item {
        justify-content: space-between;
    }
}
/* ======================================= */
/* ========== БЕЙДЖИКИ ========== */
/* ======================================= */

.type-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
}

.type-badge.solo {
    background: #e8f5e9;
    color: #2e7d32;
}

.type-badge.group {
    background: #e3f2fd;
    color: #1565c0;
}

/* ======================================= */
/* ========== ФИЛЬТРЫ ========== */
/* ======================================= */

.filters-section {
    background: rgba(26, 26, 46, 0.8);
    border: 1px solid #4a4a8a;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
}

.filters-form {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.filters-form .search-box {
    flex: 2;
    min-width: 250px;
}

.filters-form input {
    width: 100%;
    padding: 10px 15px;
    background: #1a1a2e;
    border: 2px solid #4a4a8a;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
}

.filters-form button {
    padding: 10px 25px;
    background: #4a4a8a;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.clear-btn {
    padding: 10px 25px;
    background: #6c757d;
    color: white;
    text-decoration: none;
    border-radius: 8px;
}

/* ======================================= */
/* ========== ПАГИНАЦИЯ ========== */
/* ======================================= */

.results-info {
    margin: 15px 0;
    padding: 10px 15px;
    background: rgba(74, 74, 138, 0.2);
    border-left: 4px solid #4a4a8a;
    color: #ffffff;
    font-weight: 600;
    border-radius: 0 5px 5px 0;
}

.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;
}

.pagination a:hover {
    background: #4a4a8a;
    color: white;
}

.pagination a.active {
    background: #4a4a8a;
    color: white;
    font-weight: bold;
}

/* ======================================= */
/* ========== ХЛЕБНЫЕ КРОШКИ ========== */
/* ======================================= */

.breadcrumbs {
    margin: 15px 0 20px;
}

.breadcrumbs a {
    display: inline-block;
    padding: 8px 16px;
    background: #4a4a8a;
    color: white !important;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: 600;
    border-radius: 30px;
}

/* ======================================= */
/* ========== ДЕТАЛЬНАЯ СТРАНИЦА ========== */
/* ======================================= */

.dungeon-header {
    margin: 20px 0;
    padding: 25px;
    background: linear-gradient(135deg, #4a4a8a 0%, #2c3e50 100%);
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.dungeon-icon-large {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dungeon-icon-large img {
    max-width: 64px;
    max-height: 64px;
    object-fit: contain;
}

.dungeon-title {
    flex: 1;
}

.dungeon-title h1 {
    margin: 0 0 5px 0;
    font-size: 2em;
}

/* ======================================= */
/* ========== ТРЕБОВАНИЯ ВХОДА ========== */
/* ======================================= */

.dungeon-requirements {
    margin: 20px 0;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
}

.stat-card h3 {
    margin: 0 0 15px 0;
    color: #4a4a8a;
    font-size: 1.2em;
    border-bottom: 2px solid #4a4a8a;
    padding-bottom: 8px;
}

.stat-card.compact {
    padding: 15px;
}

.compact-stats {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.compact-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    border-bottom: 1px solid #f0f0f0;
}

.compact-row:last-child {
    border-bottom: none;
}

.compact-label {
    color: #555;
    font-weight: 500;
    font-size: 0.95em;
}

.stat-value {
    font-weight: 700;
    color: #2c3e50;
}

/* ======================================= */
/* ========== ОБЩИЕ НАГРАДЫ ========== */
/* ======================================= */

.dungeon-rewards {
    margin: 20px 0;
}

.reward-grid {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.reward-column {
    flex: 1;
    background: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
}

.reward-column-title {
    background: #4a4a8a;
    color: white;
    padding: 8px 12px;
    font-weight: 600;
    text-align: center;
    font-size: 0.9em;
}

.reward-cell {
    padding: 8px 12px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 0.85em;
    color: #000;
}

.reward-cell:last-child {
    border-bottom: none;
}

.reward-cell div {
    line-height: 1.4;
}

.reward-chance {
    color: #090;
    font-size: 1.0em;
    margin-left: 4px;
    font-weight: 700;
}
/* ======================================= */
/* ========== ИКОНКИ В НАГРАДАХ ========== */
/* ======================================= */

.reward-item-display {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.reward-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    vertical-align: middle;
}
/* ======================================= */
/* ========== СТАТЫ В НАГРАДАХ ========== */
/* ======================================= */

.stats-rewards {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #e0e0e0;
}

.reward-grid-small {
    display: flex;
    gap: 20px;
}

.reward-column-small {
    flex: 1;
    background: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
}

.reward-column-small .reward-column-title {
    background: #4a4a8a;
    color: white;
    padding: 6px 12px;
    font-weight: 600;
    text-align: center;
    font-size: 0.85em;
}

.stats-cell {
    padding: 10px 12px;
    color: #099;
}

.stats-cell div {
    padding: 4px 0;
    font-size: 0.9em;
    font-weight: 500;
    color: #099;
}

.no-rewards {
    text-align: center;
    padding: 20px;
    color: #999;
}

/* Адаптив */
@media (max-width: 768px) {
    .reward-grid-small {
        flex-direction: column;
        gap: 10px;
    }
}
/* ======================================= */
/* ========== ЗАДАНИЯ (МИССИИ) ========== */
/* ======================================= */

.missions-section {
    margin: 30px 0;
}

.missions-section h2 {
    color: #4a4a8a;
    font-size: 1.3em;
    margin-bottom: 20px;
    border-bottom: 2px solid #4a4a8a;
    padding-bottom: 8px;
}

.mission-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    overflow: hidden;
}

.mission-header {
    background: linear-gradient(135deg, #4a4a8a, #5a5aaa);
    color: white;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.mission-number {
    background: rgba(255,255,255,0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
}

.mission-name {
    font-size: 1.1em;
    font-weight: 600;
    flex: 1;
}

.start-badge {
    background: #28a745;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75em;
    font-weight: 600;
}

.mission-content {
    padding: 20px;
}

.mission-time {
    background: #e8f5e9;
    padding: 8px 12px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-weight: 600;
    color: #2e7d32;
}

.mission-goals,
.mission-loot {
    margin-bottom: 15px;
}

.goal-title {
    font-weight: 600;
    color: #4a4a8a;
    margin-bottom: 8px;
}

.goal-list {
    margin: 0;
    padding-left: 20px;
}

.goal-list li {
    margin-bottom: 5px;
    color: #333;
}

.time-plus {
    color: #28a745;
    margin-left: 8px;
    font-size: 0.85em;
}

.time-minus {
    color: #dc3545;
    margin-left: 8px;
    font-size: 0.85em;
}

.mission-next,
.mission-portal,
.mission-complete {
    margin-top: 15px;
    padding: 8px 12px;
    border-radius: 6px;
    background: #e3f2fd;
    color: #1565c0;
    font-weight: 500;
}

.mission-complete {
    background: #e8f5e9;
    color: #2e7d32;
}

.no-missions {
    background: white;
    padding: 40px;
    text-align: center;
    border-radius: 8px;
    color: #999;
}

/* ======================================= */
/* ========== АДАПТИВНОСТЬ ========== */
/* ======================================= */

@media (max-width: 768px) {
    .dungeons-table {
        font-size: 0.85em;
    }
    
    .dungeons-table th,
    .dungeons-table td {
        padding: 8px;
    }
    
    .filters-form {
        flex-direction: column;
    }
    
    .filters-form .search-box {
        width: 100%;
    }
    
    .dungeon-header {
        flex-direction: column;
        text-align: center;
    }
    
    .mission-header {
        flex-direction: column;
        text-align: center;
    }
    
    .reward-grid {
        flex-direction: column;
        gap: 10px;
    }
}