/* css/committees.css */

.committees-page {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* عنوان الصفحة */
.page-title-section {
    text-align: center;
    margin: -2rem -2rem 3rem -2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    padding: 4rem 2rem;
    width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
    position: relative;
    overflow: hidden;
}

.page-title-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="white" opacity="0.1"/></svg>') repeat;
    background-size: 50px 50px;
    animation: float 20s infinite linear;
}

.page-main-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}

.page-description {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 400;
    position: relative;
    z-index: 2;
}

/* عداد اللجان */
.committees-count {
    text-align: center;
    margin-bottom: 3rem;
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--medium-gray);
    display: inline-block;
    margin-left: 50%;
    transform: translateX(-50%);
}

.count-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.count-text {
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 500;
}

/* حاوية اللجان */
.committees-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}

/* بطاقة اللجنة */
.committee-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--medium-gray);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.committee-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
}

.committee-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(123, 33, 159, 0.15);
}

/* رأس بطاقة اللجنة */
.committee-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--light-gray);
}

.committee-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--white);
    font-size: 2.5rem;
    box-shadow: 0 8px 20px rgba(123, 33, 159, 0.3);
}

.committee-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.committee-period {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--text-light);
    background: var(--light-gray);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 500;
    display: inline-flex;
}

.committee-period i {
    color: var(--primary-color);
}

/* معلومات اللجنة */
.committee-info {
    display: flex;
    justify-content: space-around;
    margin-bottom: 2rem;
    padding: 1rem;
    background: rgba(123, 33, 159, 0.05);
    border-radius: 10px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
}

.info-item i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* أعضاء اللجنة */
.committee-members {
    margin-top: 1.5rem;
}

.members-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.members-title::before {
    content: '';
    width: 4px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 2px;
}

.members-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* عنصر العضو */
.member-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(248, 249, 252, 0.8);
    border-radius: 12px;
    border: 1px solid rgba(123, 33, 159, 0.1);
    transition: all 0.3s ease;
}

.member-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(123, 33, 159, 0.1);
    border-color: var(--primary-color);
}

.member-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.member-details {
    flex: 1;
}

.member-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.3rem;
}

.member-position {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
}

.member-contact {
    display: flex;
    gap: 0.5rem;
}

.contact-link {
    width: 35px;
    height: 35px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.contact-link:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* رسالة عدم وجود أعضاء */
.no-members {
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
    background: var(--light-gray);
    border-radius: 10px;
}

.no-members i {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
    color: var(--primary-color);
    opacity: 0.7;
}

/* رسالة عدم وجود لجان */
.no-committees {
    text-align: center;
    padding: 5rem 2rem;
    background: var(--light-gray);
    border-radius: 20px;
    margin: 2rem 0;
}

.empty-icon {
    font-size: 5rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    opacity: 0.6;
}

.no-committees h3 {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 600;
}

.no-committees p {
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* الرسوم المتحركة */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-10px) rotate(2deg);
    }
    50% {
        transform: translateY(0px) rotate(0deg);
    }
    75% {
        transform: translateY(-5px) rotate(-2deg);
    }
}

/* الاستجابة للشاشات الكبيرة */
@media (min-width: 1400px) {
    .committees-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem;
    }
}

@media (min-width: 1200px) and (max-width: 1399px) {
    .committees-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
}

/* الاستجابة للشاشات المتوسطة */
@media (min-width: 768px) and (max-width: 1199px) {
    .committees-page {
        padding: 1.5rem;
    }
    
    .page-title-section {
        padding: 3rem 1.5rem;
        margin: -1.5rem -1.5rem 2.5rem -1.5rem;
    }
    
    .page-main-title {
        font-size: 2.5rem;
    }
    
    .committees-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* الاستجابة للأجهزة المحمولة */
@media (max-width: 767px) {
    .committees-page {
        padding: 1rem;
    }
    
    .page-title-section {
        padding: 2.5rem 1rem;
        margin: -1rem -1rem 2rem -1rem;
    }
    
    .page-main-title {
        font-size: 2rem;
    }
    
    .page-description {
        font-size: 1rem;
    }
    
    .committees-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .committee-card {
        padding: 1.5rem;
    }
    
    .committee-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    
    .member-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .member-contact {
        justify-content: center;
    }
    
    .committee-info {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .committees-page {
        padding: 0.5rem;
    }
    
    .page-title-section {
        padding: 2rem 1rem;
        margin: -0.5rem -0.5rem 1.5rem -0.5rem;
    }
    
    .page-main-title {
        font-size: 1.8rem;
    }
    
    .committee-card {
        padding: 1rem;
    }
    
    .committees-count {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .count-number {
        font-size: 2.5rem;
    }
}