/**
 * Progress CSS
 * Eternal Illusion - Guild Progress Styling  
 * 2025. október 26.
 * 
 * BOSS KÁRTYÁK DESIGN:
 * - Max 3 boss/sor responsive grid
 * - Boss képek, progress state-ek 
 * - Kill/no-kill indikátorok
 * - Sötét WoW téma, arany akcentekkel
 */

.main-content {
    padding-top: 100px;
    min-height: 100vh;
    background: linear-gradient(135deg, #0c1445 0%, #1a1a2e 50%, #16213e 100%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 0;
}

.page-header h1 {
    color: #ffffff;
    font-size: 2.5rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.page-header h1 i {
    color: #ffd700;
}

.page-subtitle {
    color: #b0b0b0;
    font-size: 1.1rem;
    font-weight: 300;
}

/* Loading és Error állapotok */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    min-height: 50vh;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #333;
    border-top: 4px solid #ffd700;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    color: #b0b0b0;
    font-size: 1.1rem;
}

.error-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    min-height: 50vh;
}

.error-card {
    background: rgba(42, 42, 42, 0.9);
    border: 1px solid rgba(255, 71, 87, 0.3);
    border-left: 4px solid #ff4757;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    max-width: 500px;
}

.error-card h3 {
    color: #ff4757;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.error-card p {
    color: #b0b0b0;
    margin-bottom: 20px;
    line-height: 1.6;
}

.retry-button {
    background: linear-gradient(45deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.retry-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* Guild Info Section */
.guild-info-section {
    margin-bottom: 30px;
}

.guild-card {
    background: rgba(42, 42, 42, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
}

.guild-header h2 {
    color: #ffd700;
    margin-bottom: 10px;
    font-size: 1.8rem;
}

.guild-details {
    color: #b0b0b0;
    font-size: 1rem;
}

/* Raid Progress Section */
.raid-progress-section {
    margin-bottom: 30px;
}

.raid-progress-section h2 {
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.raid-progress-section h2 i {
    color: #ffd700;
}

.raid-instances {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.raid-instance-card {
    background: rgba(42, 42, 42, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 25px;
}

.raid-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.raid-header h3 {
    color: #ffffff;
    font-size: 1.3rem;
}

.raid-summary {
    background: linear-gradient(45deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
}

.difficulty-progress {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.difficulty-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.difficulty-name {
    min-width: 80px;
    font-weight: bold;
    color: #ffffff;
}

/* Egységes fehér szín minden difficulty névnek */
.difficulty-name { color: #ffffff; }

.progress-bar {
    flex: 1;
    height: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 0.8s ease;
}

.progress-fill.normal {
    background: linear-gradient(90deg, #00ff00 0%, #00cc00 100%);
}

.progress-fill.heroic {
    background: linear-gradient(90deg, #ff8800 0%, #cc6600 100%);
}

.progress-fill.mythic {
    background: linear-gradient(90deg, #ff0080 0%, #cc0066 100%);
}

.progress-text {
    min-width: 60px;
    text-align: right;
    color: #ffffff;
    font-weight: bold;
}

/* Guild Info Header */
.guild-info-header {
    background: rgba(42, 42, 42, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 4px solid #ffd700;
}

.guild-main-info h2 {
    color: #ffd700;
    font-size: 1.8rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.guild-main-info h2 i {
    color: #667eea;
}

.guild-details {
    color: #b0b0b0;
    font-size: 1rem;
}

.guild-faction {
    color: #667eea;
    font-weight: bold;
}

.guild-realm {
    color: #ffffff;
    font-weight: bold;
}

.guild-members {
    color: #ffd700;
    font-weight: bold;
}

.last-update {
    color: #888;
    font-size: 0.9rem;
    text-align: right;
}

/* Progress Sections */
.raid-progress-section,
.guild-info-section {
    background: rgba(42, 42, 42, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
}

.raid-progress-section h2,
.guild-info-section h2 {
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 2px solid rgba(102, 126, 234, 0.3);
    padding-bottom: 15px;
}

.raid-progress-section h2 i,
.guild-info-section h2 i {
    color: #667eea;
}

.raid-progress-content,
.guild-info-content {
    color: #b0b0b0;
    line-height: 1.6;
}

/* Progress specifikus stílusok */
.raid-progress-container {
    margin-bottom: 30px;
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #ffd700;
}

.current-tier h3 {
    color: #ffd700;
    margin-bottom: 10px;
}

.tier-summary {
    color: #667eea;
    font-weight: bold;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.difficulty-progress {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.difficulty-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.difficulty-name {
    min-width: 80px;
    font-weight: bold;
    color: #ffffff;
}

.progress-bar {
    flex: 1;
    height: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.progress-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 0.8s ease;
}

.normal-fill {
    background: linear-gradient(90deg, #28a745 0%, #20c997 100%);
}

.heroic-fill {
    background: linear-gradient(90deg, #fd7e14 0%, #e63946 100%);
}

.mythic-fill {
    background: linear-gradient(90deg, #6f42c1 0%, #e83e8c 100%);
}

.progress-text {
    min-width: 60px;
    text-align: right;
    color: #b0b0b0;
    font-weight: bold;
}

.guild-info-container {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 10px;
}

.guild-info-container h4 {
    color: #ffd700;
    margin-bottom: 15px;
}

.guild-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.guild-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-label {
    color: #b0b0b0;
}

.stat-value {
    color: #ffffff;
    font-weight: bold;
}

.profile-link {
    color: #667eea;
    text-decoration: none;
    font-weight: bold;
}

.profile-link:hover {
    color: #ffd700;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .page-header h1 {
        font-size: 2rem;
        flex-direction: column;
        gap: 10px;
    }
    
    .notice-card {
        padding: 30px 20px;
        margin: 0 10px;
    }
    
    .notice-icon {
        font-size: 3rem;
    }
    
    .notice-content h2 {
        font-size: 1.5rem;
    }
    
    .notice-content p {
        font-size: 1rem;
    }
    
    .difficulty-item {
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
    }
    
    .difficulty-name {
        min-width: auto;
        text-align: center;
    }
    
    .progress-text {
        text-align: center;
    }
    
    .guild-stat {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .guild-info-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 20px;
    }
    
    .guild-main-info h2 {
        font-size: 1.5rem;
    }
    
    .last-update {
        text-align: center;
    }
    
    .raid-progress-section,
    .guild-info-section {
        padding: 20px;
    }
    
    .raid-progress-section h2,
    .guild-info-section h2 {
        font-size: 1.3rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* Loading és Error állapotok */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #333;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    color: #b0b0b0;
    font-size: 1.1rem;
}

.error-container {
    display: flex;
    justify-content: center;
    padding: 40px 20px;
}

.error-card {
    background: rgba(42, 42, 42, 0.9);
    border: 1px solid rgba(255, 71, 87, 0.3);
    border-left: 4px solid #ff4757;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    max-width: 500px;
}

.error-card h3 {
    color: #ff4757;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.error-card p {
    color: #b0b0b0;
    margin-bottom: 20px;
    line-height: 1.6;
}

.retry-button {
    background: linear-gradient(45deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.retry-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.progress-section:nth-child(2) { animation-delay: 0.2s; }
.progress-section:nth-child(3) { animation-delay: 0.4s; }

/* ========================================
   BOSS KÁRTYÁK RENDSZER - ÚJ DESIGN
   ======================================== */

.boss-cards-container {
    margin: 40px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 215, 0, 0.2);
}

/* Raid Progress Summary */
.raid-progress-summary {
    margin-bottom: 30px;
    text-align: center;
}

.raid-progress-summary h3 {
    color: #ffd700;
    font-size: 1.8rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.progress-overview {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.difficulty-summary {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 120px;
}

.diff-name {
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Egységes fehér szín minden difficulty-nek */
.difficulty-summary .diff-name { color: #ffffff; }

.diff-progress {
    font-size: 1.1rem;
    font-weight: bold;
    color: white;
    margin-bottom: 8px;
}

.diff-bar {
    width: 100px;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    overflow: hidden;
}

.diff-fill {
    height: 100%;
    transition: width 0.6s ease;
    border-radius: 3px;
}

/* Egységes arany progress bar minden difficulty-nek */
.difficulty-summary .diff-fill { 
    background: linear-gradient(90deg, #ffd700, #ffed4e);
}

/* Boss Kártyák Grid - MAX 3/sor */
.boss-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    max-width: 1200px; /* Max 3 kártya * 400px */
    margin: 0 auto;
    gap: 20px;
    padding: 20px 0;
}

/* Responsive: Max 3 boss per row */
@media (min-width: 1200px) {
    .boss-cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1199px) and (min-width: 800px) {
    .boss-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 799px) {
    .boss-cards-grid {
        grid-template-columns: 1fr;
    }
}

/* Boss Kártya Design */
.boss-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 15px;
    padding: 20px;
    position: relative;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    backdrop-filter: blur(5px);
    cursor: pointer;
    overflow: hidden;
}

.boss-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Boss State Colors */
.boss-card.boss-not-attempted {
    border-color: rgba(128, 128, 128, 0.5);
    background: linear-gradient(145deg, rgba(128, 128, 128, 0.1), rgba(128, 128, 128, 0.05));
}

/* Egységes dark-gold téma minden boss kártyának */
.boss-card.boss-normal,
.boss-card.boss-heroic,
.boss-card.boss-mythic {
    border-color: rgba(255, 215, 0, 0.3);
    background: linear-gradient(145deg, rgba(30, 30, 50, 0.8), rgba(20, 20, 35, 0.9));
}

/* Boss kép container */
.boss-image-container {
    position: relative;
    text-align: center;
    margin-bottom: 15px;
}

.boss-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid rgba(255, 215, 0, 0.3);
    object-fit: cover;
    transition: all 0.3s ease;
}

.boss-card:hover .boss-image {
    border-color: rgba(255, 215, 0, 0.8);
    transform: scale(1.1);
}

/* Optional boss badge */
.optional-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Boss információk */
.boss-info {
    text-align: center;
}

.boss-name {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: bold;
    margin: 0 0 5px 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.boss-order {
    color: #b0b0b0;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

/* Boss progress section */
.boss-progress {
    margin-bottom: 15px;
}

.difficulty-status {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.difficulty-status.boss-not-attempted {
    background: rgba(128, 128, 128, 0.3);
    color: #cccccc;
}

/* Egységes arany status minden nehézségnek */
.difficulty-status.boss-normal,
.difficulty-status.boss-heroic,
.difficulty-status.boss-mythic {
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
}

/* Progress indicators (N/H/M) */
.progress-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.difficulty-indicator {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

.difficulty-indicator.killed {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #1a1a2e;
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.4);
    font-weight: bold;
}

.difficulty-indicator.not-killed {
    background: rgba(128, 128, 128, 0.3);
    color: #888888;
    border: 1px solid rgba(128, 128, 128, 0.5);
}

/* Kill dates */
.boss-kill-dates {
    font-size: 0.8rem;
    color: #b0b0b0;
}

.kill-date {
    margin: 2px 0;
}

/* Responsive design */
@media (max-width: 768px) {
    .boss-cards-container {
        margin: 20px 0;
        padding: 15px;
    }
    
    .progress-overview {
        gap: 20px;
    }
    
    .boss-card {
        padding: 15px;
    }
    
    .boss-image {
        width: 60px;
        height: 60px;
    }
    
    .boss-name {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .progress-overview {
        flex-direction: column;
        gap: 15px;
    }
    
    .difficulty-summary {
        min-width: auto;
    }
    
    .diff-bar {
        width: 150px;
    }
}