/**
 * Affix Calendar CSS
 * Eternal Illusion - Affix Naptár styling
 * 2025. október 28.
 */

/* ===== MAIN CONTAINER ===== */
.affix-calendar-container {
    padding: 20px;
    background: linear-gradient(135deg, #0f1419 0%, #1a1a2e 100%);
    border-radius: 12px;
    color: #e0e0e0;
}

/* ===== CURRENT WEEK SECTION ===== */
.current-week-section {
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #2d1b69 0%, #11998e 100%);
    border-radius: 12px;
    border: 1px solid rgba(26, 26, 46, 0.3);
}

.current-week-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
}

.current-week-header h3 {
    color: #ffd700;
    font-size: 1.4rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.reset-timer {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #4CAF50;
    font-weight: 600;
    font-size: 0.95rem;
    background: rgba(76, 175, 80, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.reset-timer.expired {
    color: #ff6b35;
    background: rgba(255, 107, 53, 0.1);
    border-color: rgba(255, 107, 53, 0.3);
}

/* ===== CURRENT AFFIXES ===== */
.current-affixes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
}

.current-affix-card {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 12px;
    padding: 20px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}

.current-affix-card:hover {
    border-color: #ffd700;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.2);
    transform: translateY(-5px) scale(1.02);
}

.current-affix-card .affix-icon {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
    border: 2px solid #ffd700;
}

.current-affix-card .affix-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.affix-info h4 {
    color: #ffd700;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.affix-description {
    color: #b0b0b0;
    line-height: 1.5;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.affix-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.affix-level {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-weight: 600;
    font-size: 0.9rem;
}

.affix-type {
    color: #4CAF50;
    font-size: 0.85rem;
    font-weight: 500;
}

.affix-actions {
    display: flex;
    gap: 10px;
}

.btn-strategy {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-strategy:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* ===== AFFIX ROTATION SECTION ===== */
.affix-rotation-section {
    margin-bottom: 30px;
}

.affix-rotation-section h3 {
    color: #ffd700;
    font-size: 1.3rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.rotation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.rotation-card {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 12px;
    padding: 20px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.rotation-card.active {
    border-color: #4CAF50;
    background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 100%);
}

.rotation-card:not(.active) {
    border-color: #666;
    opacity: 0.7;
}

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

.rotation-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rotation-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 2px solid #ffd700;
}

.rotation-header h4 {
    color: #ffd700;
    margin: 0;
    font-size: 1.2rem;
}

.active-badge {
    background: #4CAF50;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.inactive-badge {
    background: #666;
    color: #ccc;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.rotation-description {
    color: #b0b0b0;
    line-height: 1.5;
    font-size: 0.95rem;
}

/* ===== XAL'ATATH SECTION ===== */
.xalatath-section {
    margin-bottom: 30px;
}

.xalatath-section h3 {
    color: #9c27b0;
    font-size: 1.3rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.bargain-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.bargain-card {
    background: linear-gradient(135deg, #4a148c 0%, #6a1b9a 100%);
    border-radius: 12px;
    padding: 20px;
    border: 2px solid rgba(156, 39, 176, 0.3);
    transition: all 0.3s ease;
}

.bargain-card:hover {
    border-color: #9c27b0;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(156, 39, 176, 0.3);
}

.bargain-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.bargain-header i {
    color: #e1bee7;
    font-size: 1.2rem;
}

.bargain-header h4 {
    color: #e1bee7;
    margin: 0;
    font-size: 1.1rem;
}

.bargain-description {
    color: #f3e5f5;
    line-height: 1.5;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.bargain-level {
    text-align: right;
}

.bargain-level span {
    background: rgba(233, 30, 99, 0.3);
    color: #f8bbd9;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* ===== STRATEGY SECTION ===== */
.strategy-section h3 {
    color: #ffd700;
    font-size: 1.3rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.strategy-tips {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
}

.strategy-tip {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 12px;
    padding: 20px;
    border: 2px solid rgba(255, 215, 0, 0.2);
    display: flex;
    gap: 15px;
    align-items: flex-start;
    transition: all 0.3s ease;
}

.strategy-tip:hover {
    border-color: #ffd700;
    transform: translateY(-2px);
}

.tip-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tip-icon i {
    color: white;
    font-size: 1.2rem;
}

.tip-content h4 {
    color: #ffd700;
    margin: 0 0 10px 0;
    font-size: 1.1rem;
}

.tip-main {
    color: #e0e0e0;
    margin: 0 0 8px 0;
    font-weight: 500;
    line-height: 1.4;
}

.tip-details {
    color: #b0b0b0;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* ===== NO DATA STATES ===== */
.no-affixes,
.no-bargains {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-style: italic;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .affix-calendar-container {
        padding: 15px;
    }
    
    .current-week-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .current-affixes {
        grid-template-columns: 1fr;
    }
    
    .rotation-grid,
    .bargain-grid,
    .strategy-tips {
        grid-template-columns: 1fr;
    }
    
    .strategy-tip {
        flex-direction: column;
        text-align: center;
    }
    
    .tip-icon {
        align-self: center;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes affixGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 215, 0, 0.3); }
    50% { box-shadow: 0 0 30px rgba(255, 215, 0, 0.6); }
}

.current-affix-card.featured {
    animation: affixGlow 2s infinite;
}

/* ===== LOADING STATES ===== */
.affix-calendar-container .loading-spinner {
    text-align: center;
    padding: 60px 20px;
}

.affix-calendar-container .spinner {
    margin: 0 auto 20px;
}

/* ===== ACCESSIBILITY ===== */
.btn-strategy:focus,
.current-affix-card:focus {
    outline: 2px solid #ffd700;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .current-affix-card,
    .rotation-card,
    .bargain-card,
    .strategy-tip,
    .btn-strategy {
        transition: none;
    }
    
    .current-affix-card:hover,
    .bargain-card:hover,
    .strategy-tip:hover,
    .btn-strategy:hover {
        transform: none;
    }
}