/* Dungeon Styles */
.dungeon-selection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.dungeon-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.dungeon-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255, 215, 0, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.dungeon-card:hover::before {
    opacity: 1;
}

.dungeon-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 215, 0, 0.5);
}

.dungeon-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.dungeon-icon {
    font-size: 3rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.dungeon-info h3 {
    font-size: 1.5rem;
    color: #ffd700;
    margin-bottom: 0.25rem;
}

.dungeon-difficulty {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.difficulty-easy {
    background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
    color: white;
}

.difficulty-medium {
    background: linear-gradient(135deg, #ff9800 0%, #ffb74d 100%);
    color: white;
}

.difficulty-hard {
    background: linear-gradient(135deg, #f44336 0%, #ef5350 100%);
    color: white;
}

.difficulty-nightmare {
    background: linear-gradient(135deg, #9c27b0 0%, #ba68c8 100%);
    color: white;
}

.dungeon-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

.dungeon-stat {
    text-align: center;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffd700;
    display: block;
}

.stat-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dungeon-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.dungeon-rewards {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.rewards-title {
    font-size: 0.9rem;
    color: #ffd700;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.reward-items {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.reward-tag {
    padding: 0.25rem 0.5rem;
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
    border-radius: 12px;
    font-size: 0.75rem;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

/* Dungeon Combat Interface */
.dungeon-combat {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.combat-arena {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.combat-arena::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(255, 0, 0, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.combat-participants {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    align-items: center;
    margin-bottom: 2rem;
}

.participant {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.participant.player {
    border-color: rgba(76, 175, 80, 0.5);
}

.participant.enemy {
    border-color: rgba(244, 67, 54, 0.5);
}

.participant-avatar {
    font-size: 4rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.participant-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffd700;
    margin-bottom: 0.5rem;
}

.participant-level {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
}

.health-bar {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 0.5rem;
    position: relative;
}

.health-fill {
    height: 100%;
    background: linear-gradient(90deg, #f44336 0%, #4caf50 100%);
    border-radius: 6px;
    transition: width 0.5s ease;
}

.health-text {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
}

.vs-indicator {
    font-size: 2rem;
    color: #ffd700;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.combat-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.combat-btn {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    min-width: 120px;
}

.combat-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.combat-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.combat-btn.attack {
    background: linear-gradient(135deg, #f44336 0%, #ef5350 100%);
    box-shadow: 0 4px 15px rgba(244, 67, 54, 0.3);
}

.combat-btn.attack:hover {
    box-shadow: 0 6px 20px rgba(244, 67, 54, 0.4);
}

.combat-btn.defend {
    background: linear-gradient(135deg, #2196f3 0%, #42a5f5 100%);
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
}

.combat-btn.defend:hover {
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.4);
}

.combat-btn.skill {
    background: linear-gradient(135deg, #9c27b0 0%, #ba68c8 100%);
    box-shadow: 0 4px 15px rgba(156, 39, 176, 0.3);
}

.combat-btn.skill:hover {
    box-shadow: 0 6px 20px rgba(156, 39, 176, 0.4);
}

/* Combat Log */
.combat-log {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    padding: 1.5rem;
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.log-title {
    font-size: 1rem;
    font-weight: 600;
    color: #ffd700;
    margin-bottom: 1rem;
    text-align: center;
}

.log-entry {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    line-height: 1.4;
    animation: fadeInUp 0.3s ease-out;
}

.log-entry:last-child {
    border-bottom: none;
}

.log-entry.damage {
    color: #f44336;
}

.log-entry.heal {
    color: #4caf50;
}

.log-entry.info {
    color: rgba(255, 255, 255, 0.8);
}

.log-entry.victory {
    color: #ffd700;
    font-weight: 600;
}

/* Dungeon Progress */
.dungeon-progress {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.progress-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffd700;
}

.room-indicator {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.room-tracker {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.room-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.room-dot.completed {
    background: #4caf50;
}

.room-dot.current {
    background: #ffd700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* Responsive Design */
@media (max-width: 768px) {
    .dungeon-selection {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .dungeon-card {
        padding: 1.5rem;
    }
    
    .combat-participants {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .vs-indicator {
        order: 2;
        font-size: 1.5rem;
    }
    
    .combat-actions {
        gap: 0.5rem;
    }
    
    .combat-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
        min-width: 100px;
    }
    
    .participant-avatar {
        font-size: 3rem;
    }
}