/**
 * RAID TACTICS - PHASE-BASED LAYOUT
 * Fázis-alapú megjelenítés CSS (Collapse, Color-coded phases)
 */

/* ═══════════════════════════════════════════════════════════════════════════════════
   🎨 BOSS INFO HEADER
   ═══════════════════════════════════════════════════════════════════════════════════ */

/* BETA WARNING BANNER */
.rt-beta-warning {
    margin: 1.5rem 0 2rem 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(245, 158, 11, 0.15));
    border: 2px solid rgba(251, 191, 36, 0.5);
    border-radius: 12px;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    animation: beta-pulse 3s ease-in-out infinite;
}

.rt-beta-warning-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
    animation: beta-shake 2s ease-in-out infinite;
}

.rt-beta-warning-content h3 {
    margin: 0 0 0.75rem 0;
    font-size: 1.3rem;
    color: #fbbf24;
    text-shadow: 0 2px 8px rgba(251, 191, 36, 0.5);
}

.rt-beta-warning-content p {
    margin: 0 0 0.75rem 0;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

.rt-beta-warning-content p:last-child {
    margin-bottom: 0;
}

.rt-beta-warning-content strong {
    color: #fbbf24;
    font-weight: 700;
}

@keyframes beta-pulse {
    0%, 100% {
        box-shadow: 0 0 10px rgba(251, 191, 36, 0.3);
    }
    50% {
        box-shadow: 0 0 25px rgba(251, 191, 36, 0.6);
    }
}

@keyframes beta-shake {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-5deg);
    }
    75% {
        transform: rotate(5deg);
    }
}

.rt-boss-info {
    margin-bottom: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(30, 30, 46, 0.9), rgba(24, 24, 37, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.rt-boss-info h1 {
    margin: 0 0 1rem 0;
    font-size: 2.5rem;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rt-boss-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
}

.rt-boss-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.rt-boss-image-full {
    margin-top: 1.5rem;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid rgba(251, 191, 36, 0.3);
}

.rt-boss-image-full img {
    width: 100%;
    height: auto;
    display: block;
}

/* ═══════════════════════════════════════════════════════════════════════════════════
   🎛️ COLLAPSE SYSTEM (Accordion)
   ═══════════════════════════════════════════════════════════════════════════════════ */

.rt-collapse-section {
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(24, 24, 37, 0.6);
}

.rt-collapse-header {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, rgba(30, 30, 46, 0.9), rgba(24, 24, 37, 0.9));
    border: none;
    color: #fff;
    cursor: pointer;
    transition: background 0.3s ease;
    text-align: left;
}

.rt-collapse-header:hover {
    background: linear-gradient(135deg, rgba(40, 40, 60, 0.9), rgba(34, 34, 50, 0.9));
}

.rt-collapse-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.rt-collapse-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.rt-collapse-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 1.5rem;
}

.rt-collapse-content.open {
    max-height: 5000px;
    padding: 1.5rem;
}

/* ═══════════════════════════════════════════════════════════════════════════════════
   🎴 FÁZIS KÁRTYÁK (Color-coded)
   ═══════════════════════════════════════════════════════════════════════════════════ */

.rt-phase-card {
    margin-bottom: 2rem;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.rt-phase-title {
    margin: 0 0 1.5rem 0;
    font-size: 1.8rem;
    color: #fbbf24;
    text-shadow: 0 2px 8px rgba(251, 191, 36, 0.4);
}

.rt-no-spells {
    font-style: italic;
    color: rgba(255, 255, 255, 0.5);
    padding: 1rem;
}

/* ═══════════════════════════════════════════════════════════════════════════════════
   ✨ SPELL COLLAPSE
   ═══════════════════════════════════════════════════════════════════════════════════ */

.rt-spell-collapse {
    margin-bottom: 0.75rem;
}

.rt-spell-collapse-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(24, 24, 37, 0.8);
}

.rt-spell-collapse-header:hover {
    background: rgba(34, 34, 50, 0.8);
}

.rt-spell-icon-mini {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.rt-spell-name {
    font-size: 1.1rem;
    font-weight: 600;
    flex: 1;
    color: #fbbf24;
}

.rt-spell-meta-mini {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.rt-flag-mini {
    font-size: 0.8rem;
    padding: 0.2rem 0.5rem;
    background: rgba(251, 191, 36, 0.2);
    border-radius: 4px;
    color: #fbbf24;
}

/* ═══════════════════════════════════════════════════════════════════════════════════
   🎯 SPELL DETAIL WRAPPER
   ═══════════════════════════════════════════════════════════════════════════════════ */

.rt-spell-detail-wrapper {
    padding: 1rem;
    background: rgba(18, 18, 28, 0.6);
    border-radius: 6px;
}

/* ═══════════════════════════════════════════════════════════════════════════════════
   👹 ADD-OK MINI GRID
   ═══════════════════════════════════════════════════════════════════════════════════ */

.rt-phase-adds {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.rt-phase-adds h3 {
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
    color: #fbbf24;
}

.rt-adds-mini-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}

.rt-add-mini {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: rgba(24, 24, 37, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    text-align: center;
    font-size: 0.9rem;
}

.rt-add-mini-img {
    width: 56px;
    height: 56px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ═══════════════════════════════════════════════════════════════════════════════════
   📖 OVERVIEW BLOCKS
   ═══════════════════════════════════════════════════════════════════════════════════ */

.rt-overview-block {
    margin-bottom: 1.5rem;
}

.rt-overview-block h3 {
    margin: 0 0 0.75rem 0;
    font-size: 1.2rem;
    color: #fbbf24;
}

.rt-overview-block p {
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
}

/* ═══════════════════════════════════════════════════════════════════════════════════
   📱 RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .rt-boss-info h1 {
        font-size: 1.8rem;
    }

    .rt-phase-title {
        font-size: 1.4rem;
    }

    .rt-boss-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .rt-adds-mini-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }

    .rt-collapse-header {
        padding: 0.75rem 1rem;
    }

    .rt-spell-collapse-header {
        flex-wrap: wrap;
    }

    .rt-spell-meta-mini {
        width: 100%;
        justify-content: flex-start;
    }
}
