/* ======================================
   CHALLENGES ACCORDION STYLES
   ====================================== */

/* Accordion Container */
.challenges-accordion {
    max-width: 1000px;
    margin: 0 auto;
}

/* Accordion Item */
.challenge-accordion-item {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.challenge-accordion-item:hover {
    border-color: #6366f1;
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.15);
    transform: translateY(-2px);
}

/* Accordion Header/Button */
.challenge-accordion-button {
    background: white;
    border: none;
    padding: 1.5rem 2rem;
    width: 100%;
    text-align: right;
    transition: all 0.3s ease;
    position: relative;
}

.challenge-accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
}

.challenge-accordion-button:focus {
    box-shadow: none;
    border: none;
}

.challenge-accordion-button::after {
    position: absolute;
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f078";
    font-size: 1.2rem;
    color: #6366f1;
    transition: all 0.3s ease;
}

.challenge-accordion-button:not(.collapsed)::after {
    transform: translateY(-50%) rotate(180deg);
    color: white;
}

/* Header Content */
.challenge-accordion-header-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Challenge Number Badge */
.challenge-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    transition: all 0.3s ease;
}

.challenge-accordion-button:not(.collapsed) .challenge-number {
    background: white;
    color: #6366f1;
}

/* Title Wrapper */
.challenge-title-wrapper {
    flex: 1;
    text-align: right;
}

.challenge-accordion-title {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e293b;
    transition: color 0.3s ease;
}

.challenge-accordion-button:not(.collapsed) .challenge-accordion-title {
    color: white;
}

.challenge-accordion-preview {
    margin: 0.5rem 0 0 0;
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.6;
    transition: color 0.3s ease;
}

.challenge-accordion-button:not(.collapsed) .challenge-accordion-preview {
    color: rgba(255, 255, 255, 0.9);
}

/* Accordion Body */
.challenge-accordion-body {
    padding: 2rem;
    background: #f8fafc;
}

/* Challenge Details Grid */
.challenge-details-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Detail Cards */
.detail-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.detail-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.detail-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f1f5f9;
}

.detail-card-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.detail-card-header h5 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
}

.detail-card p {
    margin: 0;
    color: #475569;
    line-height: 1.8;
    font-size: 0.95rem;
}

/* Challenge CTA Wrapper */
.challenge-cta-wrapper {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px dashed #e2e8f0;
}

.challenge-register-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
    transition: all 0.4s ease;
}

.challenge-register-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.4);
    color: white;
}

.challenge-register-btn i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.challenge-register-btn:hover i {
    transform: translateX(-5px);
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .challenge-accordion-button {
        padding: 1.25rem 1.5rem;
    }
    
    .challenge-accordion-header-content {
        gap: 1rem;
    }
    
    .challenge-number {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .challenge-accordion-title {
        font-size: 1.1rem;
    }
    
    .challenge-accordion-preview {
        font-size: 0.85rem;
    }
    
    .challenge-accordion-button::after {
        left: 1.5rem;
        font-size: 1rem;
    }
    
    .challenge-accordion-body {
        padding: 1.5rem;
    }
    
    .detail-card {
        padding: 1.25rem;
    }
    
    .detail-card-icon {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
    }
    
    .detail-card-header h5 {
        font-size: 1rem;
    }
    
    .detail-card p {
        font-size: 0.9rem;
    }
    
    .challenge-register-btn {
        padding: 0.9rem 2rem;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .challenge-accordion-item {
        margin-bottom: 1rem;
    }
    
    .challenge-accordion-button {
        padding: 1rem 1.25rem;
    }
    
    .challenge-accordion-header-content {
        gap: 0.75rem;
    }
    
    .challenge-number {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .challenge-accordion-title {
        font-size: 1rem;
    }
    
    .challenge-accordion-preview {
        font-size: 0.8rem;
    }
    
    .challenge-accordion-button::after {
        left: 1.25rem;
        font-size: 0.9rem;
    }
    
    .challenge-accordion-body {
        padding: 1.25rem;
    }
    
    .challenge-details-grid {
        gap: 1rem;
    }
    
    .detail-card {
        padding: 1rem;
    }
    
    .detail-card-header {
        gap: 0.75rem;
        margin-bottom: 0.75rem;
        padding-bottom: 0.75rem;
    }
    
    .detail-card-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .detail-card-header h5 {
        font-size: 0.95rem;
    }
    
    .detail-card p {
        font-size: 0.85rem;
        line-height: 1.6;
    }
    
    .challenge-register-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
        width: 100%;
    }
}
