/* ============================================
   FILE: /CSS/committees.css
   Specific styles for Committees page
   (Hero, committee cards, signup forms, members list)
   Fully responsive, matches FBLA theme
   ============================================ */

/* Hero Section */
.committees-hero {
    background: linear-gradient(135deg, var(--fbla-navy) 0%, var(--fbla-deep-blue) 100%);
    border-radius: 1.5rem;
    padding: 3rem 2rem;
    margin: 2rem 0 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.committees-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(244, 169, 0, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.committees-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(244, 169, 0, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.committees-hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    letter-spacing: -0.02em;
}

.committees-hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    line-height: 1.5;
}

/* Message Containers */
.success-message, .error-message {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    display: none;
    align-items: center;
    gap: 0.75rem;
}

.success-message {
    background: #D1FAE5;
    color: #065F46;
    border-left: 4px solid #10B981;
}

.error-message {
    background: #FEE2E2;
    color: #991B1B;
    border-left: 4px solid #EF4444;
}

/* Committees Grid */
.committees-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 2rem;
    margin: 2rem 0 3rem;
}

/* Loading Spinner */
.loading-spinner {
    text-align: center;
    padding: 3rem;
    grid-column: 1 / -1;
}

.loading-spinner p {
    margin-top: 1rem;
    color: var(--text-muted);
}

/* Committee Card */
.committee-card {
    background: var(--white);
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.committee-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--fbla-gold-light);
}

.committee-header {
    background: linear-gradient(135deg, var(--fbla-gold) 0%, var(--fbla-gold-dark) 100%);
    padding: 1.5rem;
    text-align: center;
}

.committee-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.committee-header h3 {
    color: var(--fbla-navy);
    margin: 0;
    font-size: 1.5rem;
}

.committee-body {
    padding: 1.5rem;
}

.committee-desc {
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.committee-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #E5E7EB;
    font-size: 0.85rem;
}

.committee-stats span:first-child {
    color: var(--fbla-gold);
    font-weight: 600;
}

/* Buttons */
.join-btn, .view-members-btn, .submit-signup-btn, .cancel-btn {
    width: 100%;
    padding: 0.75rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    margin-bottom: 0.5rem;
}

.join-btn {
    background: var(--fbla-gold);
    color: var(--fbla-navy);
}

.join-btn:hover {
    background: var(--fbla-gold-dark);
    transform: translateY(-1px);
}

.join-btn.full {
    background: #9CA3AF;
    cursor: not-allowed;
    transform: none;
}

.view-members-btn {
    background: #E5E7EB;
    color: #374151;
}

.view-members-btn:hover {
    background: #D1D5DB;
}

.submit-signup-btn {
    background: #10B981;
    color: white;
    margin-top: 0.5rem;
}

.submit-signup-btn:hover {
    background: #059669;
}

.cancel-btn {
    background: #EF4444;
    color: white;
}

.cancel-btn:hover {
    background: #DC2626;
}

/* Signup Form */
.signup-form {
    display: none;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #E5E7EB;
}

.signup-form.active {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.signup-form input, .signup-form select {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    border: 1px solid #D1D5DB;
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: 0.9rem;
}

.signup-form input:focus, .signup-form select:focus {
    outline: none;
    border-color: var(--fbla-gold);
    box-shadow: 0 0 0 3px rgba(244, 169, 0, 0.1);
}

/* Members List */
.members-list {
    margin-top: 1rem;
    display: none;
    max-height: 200px;
    overflow-y: auto;
}

.members-list.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.members-list::-webkit-scrollbar {
    width: 4px;
}

.members-list::-webkit-scrollbar-track {
    background: #E5E7EB;
    border-radius: 4px;
}

.members-list::-webkit-scrollbar-thumb {
    background: var(--fbla-gold);
    border-radius: 4px;
}

.member-item {
    background: #F8FAFE;
    padding: 0.6rem 0.75rem;
    margin-bottom: 0.5rem;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.member-info {
    flex: 1;
}

.member-name {
    font-weight: 600;
    color: var(--fbla-navy);
}

.member-details {
    font-size: 0.7rem;
    color: #6B7280;
    margin-top: 0.2rem;
}

/* Why Join Committees Section */
.why-committees-section {
    margin: 3rem 0 4rem;
}

.why-committees-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.why-committee-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 1rem;
    text-align: center;
    transition: all 0.25s ease;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.why-committee-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--fbla-gold-light);
}

.why-committee-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.why-committee-card h3 {
    font-size: 1.1rem;
    color: var(--fbla-navy);
    margin-bottom: 0.5rem;
}

.why-committee-card p {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.5;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    color: var(--fbla-navy);
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .committees-hero {
        padding: 2rem 1.5rem;
        margin: 1rem 0 1.5rem;
        border-radius: 1rem;
    }

    .committees-hero-title {
        font-size: 1.75rem;
    }

    .committees-hero-subtitle {
        font-size: 0.95rem;
    }

    .committees-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 1.5rem 0 2rem;
    }

    .committee-card {
        margin: 0;
    }

    .committee-header h3 {
        font-size: 1.3rem;
    }

    .committee-body {
        padding: 1.25rem;
    }

    .why-committees-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .why-committee-card {
        padding: 1.25rem;
    }
}

@media (max-width: 480px) {
    .committees-hero {
        padding: 1.5rem 1rem;
    }

    .committees-hero-title {
        font-size: 1.5rem;
    }

    .committee-header {
        padding: 1.25rem;
    }

    .committee-icon {
        font-size: 2rem;
    }

    .committee-header h3 {
        font-size: 1.2rem;
    }

    .committee-body {
        padding: 1rem;
    }

    .committee-desc {
        font-size: 0.85rem;
    }

    .committee-stats {
        font-size: 0.75rem;
    }

    .join-btn, .view-members-btn {
        padding: 0.6rem;
        font-size: 0.85rem;
    }

    .signup-form input, .signup-form select {
        padding: 0.6rem;
        font-size: 0.85rem;
    }

    .why-committee-icon {
        font-size: 2rem;
    }

    .why-committee-card h3 {
        font-size: 1rem;
    }

    .why-committee-card p {
        font-size: 0.8rem;
    }
}

/* Tablet adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    .committees-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .why-committees-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* Animation for cards */
.committee-card {
    animation: fadeInUp 0.3s ease-out forwards;
    opacity: 0;
}

.committee-card:nth-child(1) { animation-delay: 0.05s; }
.committee-card:nth-child(2) { animation-delay: 0.1s; }
.committee-card:nth-child(3) { animation-delay: 0.15s; }
.committee-card:nth-child(4) { animation-delay: 0.2s; }
.committee-card:nth-child(5) { animation-delay: 0.25s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}