/* Weekly Raids CSS - Aether Chronicles */

.raids-container {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    padding: 20px;
    font-family: 'Roboto', sans-serif;
    color: #ffffff;
}

.raids-header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.raids-title {
    font-size: 3rem;
    font-weight: bold;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
    margin-bottom: 10px;
}

.raids-subtitle {
    font-size: 1.2rem;
    color: #a0a0a0;
    margin-bottom: 20px;
}

.current-raid-timer {
    background: rgba(255, 107, 107, 0.2);
    border: 2px solid #ff6b6b;
    border-radius: 10px;
    padding: 15px;
    display: inline-block;
    font-size: 1.1rem;
    font-weight: bold;
}

.timer-label {
    color: #ff6b6b;
    margin-right: 10px;
}

.timer-value {
    color: #ffffff;
    font-family: 'Courier New', monospace;
}

/* Current Raid Section */
.current-raid-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.current-raid-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    pointer-events: none;
}

.raid-info {
    position: relative;
    z-index: 1;
}

.raid-name {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: #4ecdc4;
    text-shadow: 0 0 20px rgba(78, 205, 196, 0.5);
}

.raid-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 25px;
    color: #e0e0e0;
}

.raid-theme-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.theme-void_corruption {
    background: linear-gradient(45deg, #6a0572, #ab83a1);
    border: 2px solid #ab83a1;
}

.theme-fire_elemental {
    background: linear-gradient(45deg, #ff6b6b, #ff8e53);
    border: 2px solid #ff8e53;
}

.theme-water_abyss {
    background: linear-gradient(45deg, #74b9ff, #0984e3);
    border: 2px solid #0984e3;
}

/* Difficulty Tiers */
.difficulty-tiers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.difficulty-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.difficulty-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

.difficulty-card.normal {
    border-left: 4px solid #27ae60;
}

.difficulty-card.hard {
    border-left: 4px solid #f39c12;
}

.difficulty-card.mythic {
    border-left: 4px solid #e74c3c;
}

.difficulty-name {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.difficulty-card.normal .difficulty-name {
    color: #27ae60;
}

.difficulty-card.hard .difficulty-name {
    color: #f39c12;
}

.difficulty-card.mythic .difficulty-name {
    color: #e74c3c;
}

.difficulty-stats {
    margin-bottom: 15px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.stat-label {
    color: #a0a0a0;
}

.stat-value {
    color: #ffffff;
    font-weight: bold;
}

.difficulty-mechanics {
    margin-bottom: 20px;
}

.mechanics-title {
    font-size: 1rem;
    color: #4ecdc4;
    margin-bottom: 10px;
    font-weight: bold;
}

.mechanic-item {
    font-size: 0.85rem;
    color: #d0d0d0;
    margin-bottom: 5px;
    padding-left: 15px;
    position: relative;
}

.mechanic-item::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: #4ecdc4;
}

.difficulty-rewards {
    margin-bottom: 20px;
}

.rewards-title {
    font-size: 1rem;
    color: #ff6b6b;
    margin-bottom: 10px;
    font-weight: bold;
}

.reward-item {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 5px 10px;
    margin: 3px;
    font-size: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.create-raid-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.create-raid-btn:hover {
    background: linear-gradient(45deg, #44a08d, #4ecdc4);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(78, 205, 196, 0.4);
}

.create-raid-btn:disabled {
    background: rgba(128, 128, 128, 0.5);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Guild Raids Section */
.guild-raids-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
}

.section-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: #4ecdc4;
    text-align: center;
}

.active-raids-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 20px;
}

.raid-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.raid-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.raid-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.raid-title {
    font-size: 1.3rem;
    font-weight: bold;
    color: #ffffff;
}

.raid-status {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

.status-waiting {
    background: rgba(241, 196, 15, 0.8);
    color: #ffffff;
}

.status-progress {
    background: rgba(46, 204, 113, 0.8);
    color: #ffffff;
}

.status-completed {
    background: rgba(52, 152, 219, 0.8);
    color: #ffffff;
}

.raid-boss-health {
    margin-bottom: 15px;
}

.boss-health-label {
    font-size: 0.9rem;
    color: #a0a0a0;
    margin-bottom: 5px;
}

.boss-health-bar {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    height: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.boss-health-fill {
    height: 100%;
    background: linear-gradient(90deg, #e74c3c, #c0392b);
    transition: width 0.5s ease;
    border-radius: 9px;
}

.boss-health-text {
    position: absolute;
    width: 100%;
    text-align: center;
    line-height: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.raid-participants {
    margin-bottom: 15px;
}

.participants-label {
    font-size: 0.9rem;
    color: #a0a0a0;
    margin-bottom: 8px;
}

.participants-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.participant-tag {
    background: rgba(78, 205, 196, 0.2);
    border: 1px solid #4ecdc4;
    border-radius: 12px;
    padding: 4px 8px;
    font-size: 0.8rem;
    color: #4ecdc4;
}

.participant-tag.leader {
    background: rgba(241, 196, 15, 0.2);
    border-color: #f1c40f;
    color: #f1c40f;
}

.raid-actions {
    display: flex;
    gap: 10px;
}

.raid-action-btn {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.btn-join {
    background: linear-gradient(45deg, #27ae60, #2ecc71);
    color: white;
}

.btn-join:hover {
    background: linear-gradient(45deg, #2ecc71, #27ae60);
}

.btn-start {
    background: linear-gradient(45deg, #e67e22, #f39c12);
    color: white;
}

.btn-start:hover {
    background: linear-gradient(45deg, #f39c12, #e67e22);
}

.btn-enter {
    background: linear-gradient(45deg, #8e44ad, #9b59b6);
    color: white;
}

.btn-enter:hover {
    background: linear-gradient(45deg, #9b59b6, #8e44ad);
}

.btn-view {
    background: linear-gradient(45deg, #34495e, #2c3e50);
    color: white;
}

.btn-view:hover {
    background: linear-gradient(45deg, #2c3e50, #34495e);
}

/* Leaderboard Section */
.leaderboard-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    padding: 30px;
}

.leaderboard-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.filter-select {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 8px 12px;
    color: #ffffff;
    font-size: 0.9rem;
}

.filter-select:focus {
    outline: none;
    border-color: #4ecdc4;
}

.leaderboard-table {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.leaderboard-header {
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    color: white;
    font-weight: bold;
    display: grid;
    grid-template-columns: 60px 1fr 120px 1fr;
    padding: 15px;
    gap: 15px;
}

.leaderboard-row {
    display: grid;
    grid-template-columns: 60px 1fr 120px 1fr;
    padding: 12px 15px;
    gap: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
}

.leaderboard-row:hover {
    background: rgba(255, 255, 255, 0.05);
}

.leaderboard-row:last-child {
    border-bottom: none;
}

.rank-badge {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
}

.rank-1 {
    background: linear-gradient(45deg, #f1c40f, #f39c12);
    color: #ffffff;
    box-shadow: 0 0 15px rgba(241, 196, 15, 0.5);
}

.rank-2 {
    background: linear-gradient(45deg, #95a5a6, #bdc3c7);
    color: #ffffff;
}

.rank-3 {
    background: linear-gradient(45deg, #d35400, #e67e22);
    color: #ffffff;
}

.rank-other {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.player-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.player-name {
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 2px;
}

.guild-name {
    font-size: 0.8rem;
    color: #a0a0a0;
}

.damage-value {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #ff6b6b;
}

.damage-number {
    font-size: 1.1rem;
}

.damage-label {
    font-size: 0.7rem;
    color: #a0a0a0;
    text-transform: uppercase;
}

/* Responsive Design */
@media (max-width: 768px) {
    .raids-title {
        font-size: 2rem;
    }
    
    .difficulty-tiers {
        grid-template-columns: 1fr;
    }
    
    .active-raids-grid {
        grid-template-columns: 1fr;
    }
    
    .leaderboard-header,
    .leaderboard-row {
        grid-template-columns: 50px 1fr 100px;
        gap: 10px;
    }
    
    .guild-name {
        display: none;
    }
}

/* Loading States */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #4ecdc4;
    animation: spin 1s ease-in-out infinite;
    margin-right: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.no-raids-message {
    text-align: center;
    padding: 60px 20px;
    color: #a0a0a0;
    font-size: 1.1rem;
}

.no-raids-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.difficulty-card,
.raid-card {
    animation: fadeInUp 0.5s ease forwards;
}

.difficulty-card:nth-child(2) {
    animation-delay: 0.1s;
}

.difficulty-card:nth-child(3) {
    animation-delay: 0.2s;
}

/* Tooltips */
.tooltip {
    position: relative;
    cursor: help;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.tooltip:hover::after {
    opacity: 1;
}