/* Events Section Styles */

.events-section {
    padding: 80px 0;
    background-color: #232323;
}

.events-filters {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-group label {
    color: var(--rust-primary, #cd412b);
    font-weight: 600;
    font-size: 1rem;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.filter-btn {
    padding: 8px 16px;
    border: 2px solid var(--rust-primary, #cd412b);
    background: transparent;
    color: #e0e0e0;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.9rem;
}

.filter-btn:hover {
    background: rgba(205, 65, 43, 0.2);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--rust-primary, #cd412b);
    color: #fff;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.event-card {
    background: rgba(35, 35, 35, 0.8);
    border: 2px solid rgba(205, 65, 43, 0.3);
    border-radius: 10px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--rust-primary, #cd412b), var(--rust-accent, #738d45));
}

.event-card:hover {
    transform: translateY(-5px);
    border-color: var(--rust-primary, #cd412b);
    box-shadow: 0 10px 30px rgba(205, 65, 43, 0.3);
}

.event-icon {
    font-size: 3rem;
    color: var(--rust-primary, #cd412b);
    margin-bottom: 15px;
}

.event-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 10px;
}

.event-type-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.event-type-raid {
    background: rgba(205, 65, 43, 0.2);
    color: #cd412b;
    border: 1px solid #cd412b;
}

.event-type-boss {
    background: rgba(138, 43, 226, 0.2);
    color: #8a2be2;
    border: 1px solid #8a2be2;
}

.event-type-horde {
    background: rgba(220, 20, 60, 0.2);
    color: #dc143c;
    border: 1px solid #dc143c;
}

.event-type-air {
    background: rgba(30, 144, 255, 0.2);
    color: #1e90ff;
    border: 1px solid #1e90ff;
}

.event-type-pve {
    background: rgba(115, 141, 69, 0.2);
    color: #738d45;
    border: 1px solid #738d45;
}

.event-description {
    color: #e0e0e0;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.event-difficulties {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.difficulty-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.difficulty-easy {
    background: rgba(34, 139, 34, 0.2);
    color: #228b22;
    border: 1px solid #228b22;
}

.difficulty-medium {
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
    border: 1px solid #ffd700;
}

.difficulty-hard {
    background: rgba(255, 140, 0, 0.2);
    color: #ff8c00;
    border: 1px solid #ff8c00;
}

.difficulty-expert {
    background: rgba(220, 20, 60, 0.2);
    color: #dc143c;
    border: 1px solid #dc143c;
}

.difficulty-nightmare {
    background: rgba(138, 43, 226, 0.2);
    color: #8a2be2;
    border: 1px solid #8a2be2;
}

.event-schedule {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(197, 187, 180, 0.2);
}

.event-frequency {
    color: var(--rust-accent, #738d45);
    font-size: 0.9rem;
    font-weight: 500;
}

.event-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 10px;
}

.event-status.active {
    background: rgba(34, 139, 34, 0.2);
    color: #228b22;
    border: 1px solid #228b22;
}

.event-status.upcoming {
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
    border: 1px solid #ffd700;
}

.event-status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Event Modal */
.event-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    overflow-y: auto;
    padding: 20px;
}

.event-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-modal-content {
    background: #232323;
    border: 2px solid var(--rust-primary, #cd412b);
    border-radius: 15px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.event-modal-header {
    padding: 30px;
    border-bottom: 2px solid rgba(205, 65, 43, 0.3);
    position: relative;
}

.event-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--rust-text, #c5bbb4);
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-modal-close:hover {
    color: var(--rust-primary, #cd412b);
    transform: rotate(90deg);
}

.event-modal-title {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
}

.event-modal-body {
    padding: 30px;
}

.event-objectives {
    margin: 25px 0;
}

.event-objectives h3 {
    color: var(--rust-primary, #cd412b);
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.event-objectives ol {
    padding-left: 25px;
}

.event-objectives li {
    color: #e0e0e0;
    margin-bottom: 10px;
    line-height: 1.6;
}

.event-rewards {
    margin: 25px 0;
}

.event-rewards h3 {
    color: var(--rust-primary, #cd412b);
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.rewards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
}

.reward-item {
    background: rgba(35, 35, 35, 0.6);
    border: 1px solid rgba(205, 65, 43, 0.3);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.reward-item:hover {
    border-color: var(--rust-primary, #cd412b);
    transform: translateY(-3px);
}

.reward-image {
    width: 64px;
    height: 64px;
    margin: 0 auto 10px;
    background: rgba(26, 26, 26, 0.8);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reward-image img {
    max-width: 100%;
    max-height: 100%;
}

.reward-quantity {
    color: var(--rust-accent, #738d45);
    font-weight: 600;
    font-size: 1.1rem;
}

.reward-name {
    color: #e0e0e0;
    font-size: 0.85rem;
    margin-top: 5px;
}

.event-stats {
    margin: 25px 0;
    padding: 20px;
    background: rgba(35, 35, 35, 0.6);
    border-radius: 8px;
    border: 1px solid rgba(205, 65, 43, 0.3);
}

.event-stats h3 {
    color: var(--rust-primary, #cd412b);
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--rust-accent, #738d45);
}

.stat-label {
    color: #e0e0e0;
    font-size: 0.9rem;
    margin-top: 5px;
}

/* No Results */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #e0e0e0;
}

.no-results i {
    font-size: 4rem;
    color: var(--rust-primary, #cd412b);
    margin-bottom: 20px;
}

.no-results h3 {
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.no-results p {
    color: #c5bbb4;
    font-size: 1rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .events-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-buttons {
        justify-content: flex-start;
    }
    
    .filter-btn {
        font-size: 0.85rem;
        padding: 6px 12px;
    }
    
    .event-modal-content {
        max-height: 95vh;
        margin: 10px;
    }
    
    .event-modal-header,
    .event-modal-body {
        padding: 20px;
    }
    
    .event-modal-title {
        font-size: 1.5rem;
    }
    
    .rewards-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}


/* Compact Event Cards */
.events-grid.compact {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.event-card.compact {
    padding: 15px;
    cursor: pointer;
}

.event-card.compact .event-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.event-card.compact .event-name {
    font-size: 1.2rem;
}

.event-card.compact .event-description {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.85rem;
}

.event-card.compact .event-details {
    display: none;
}

.event-card.compact.expanded .event-description {
    -webkit-line-clamp: unset;
}

.event-card.compact.expanded .event-details {
    display: block;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(205, 65, 43, 0.3);
}

.event-expand-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
    padding: 5px 12px;
    background: transparent;
    border: 1px solid var(--rust-primary, #cd412b);
    color: var(--rust-primary, #cd412b);
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.event-expand-btn:hover {
    background: var(--rust-primary, #cd412b);
    color: #fff;
}

.event-expand-btn i {
    transition: transform 0.3s ease;
}

.event-card.expanded .event-expand-btn i {
    transform: rotate(180deg);
}

/* View Toggle */
.view-toggle {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

.view-toggle-btn {
    padding: 8px 16px;
    border: 2px solid var(--rust-primary, #cd412b);
    background: transparent;
    color: #e0e0e0;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.view-toggle-btn:hover {
    background: rgba(205, 65, 43, 0.2);
}

.view-toggle-btn.active {
    background: var(--rust-primary, #cd412b);
    color: #fff;
}

/* Guides Section */
.guides-section {
    margin-top: 40px;
    padding: 30px;
    background: rgba(35, 35, 35, 0.6);
    border-radius: 10px;
    border: 2px solid rgba(205, 65, 43, 0.3);
}

.guides-section h3 {
    color: #ffffff;
    font-size: 1.8rem;
    margin-bottom: 20px;
    text-align: center;
}

.guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.guide-card {
    background: rgba(26, 26, 26, 0.8);
    border: 2px solid rgba(205, 65, 43, 0.3);
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.guide-card:hover {
    border-color: var(--rust-primary, #cd412b);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(205, 65, 43, 0.2);
}

.guide-icon {
    font-size: 2.5rem;
    color: var(--rust-primary, #cd412b);
    margin-bottom: 15px;
}

.guide-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 10px;
}

.guide-description {
    color: #e0e0e0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.guide-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 15px;
    color: var(--rust-accent, #738d45);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.guide-link:hover {
    color: var(--rust-primary, #cd412b);
    gap: 8px;
}

@media (max-width: 768px) {
    .events-grid.compact {
        grid-template-columns: 1fr;
    }
    
    .guides-grid {
        grid-template-columns: 1fr;
    }
}
