/* إعدادات عامة */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.boardmembers-content {
    font-family: 'Tajawal', sans-serif;
    background: var(--light-gray);
}

/* العنوان الرئيسي */
.hero-section {
    background: linear-gradient(45deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    min-height: 400px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-overlay {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
}

.geometric-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.geometric-shape {
    position: absolute;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
}

.shape-1 {
    width: 100px;
    height: 100px;
    top: 10%;
    left: 10%;
    transform: rotate(45deg);
    animation: float 8s ease-in-out infinite;
}

.shape-2 {
    width: 60px;
    height: 60px;
    top: 20%;
    right: 20%;
    border-radius: 50%;
    animation: float 6s ease-in-out infinite reverse;
}

.shape-3 {
    width: 80px;
    height: 80px;
    bottom: 20%;
    left: 20%;
    transform: rotate(30deg);
    animation: float 10s ease-in-out infinite;
}

.shape-4 {
    width: 120px;
    height: 40px;
    top: 60%;
    right: 15%;
    transform: rotate(-45deg);
    animation: float 7s ease-in-out infinite reverse;
}

.shape-5 {
    width: 50px;
    height: 50px;
    bottom: 30%;
    right: 30%;
    border-radius: 50%;
    animation: float 9s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
        opacity: 0.6;
    }
    50% { 
        transform: translateY(-20px) rotate(180deg); 
        opacity: 1;
    }
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 900;
    margin-bottom: 15px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.4);
    color: var(--white);
}

.hero-subtitle {
    font-size: 1.5rem;
    opacity: 0.9;
    font-weight: 400;
    margin-bottom: 25px;
}

.term-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.term-status {
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
}

.term-status.active {
    background: var(--success-color);
    color: var(--white);
}

.term-status.ended {
    background: var(--error-color);
    color: var(--white);
}

.term-period {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

/* المحتوى الرئيسي */
.main-content {
    padding: 80px 0;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* إحصائيات الأعضاء */
.members-stats {
    margin-bottom: 60px;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.stat-box {
    background: var(--white);
    padding: 35px;
    border-radius: 25px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 25px;
    transition: all 0.3s ease;
    border: 1px solid var(--medium-gray);
    position: relative;
    overflow: hidden;
}

.stat-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
}

.stat-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

.stat-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: var(--white);
    flex-shrink: 0;
    position: relative;
}

.stat-icon.leadership {
    background: linear-gradient(135deg, #d4af37, #f6ad55);
}

.stat-icon::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: inherit;
    border-radius: 50%;
    opacity: 0.2;
    z-index: -1;
}

.stat-count {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.stat-label {
    color: var(--text-light);
    font-weight: 600;
}

/* شبكة الأعضاء */
.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

/* بطاقة العضو */
.member-card {
    perspective: 1000px;
    height: 450px;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    cursor: pointer;
}

.member-card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 25px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border: 1px solid var(--medium-gray);
}

.card-front {
    background: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.card-back {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 30px;
}

/* الوجه الأمامي */
.member-avatar {
    position: relative;
    margin-bottom: 30px;
}

.avatar-ring {
    width: 140px;
    height: 140px;
    border: 4px solid var(--primary-color);
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-ring::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border: 2px solid var(--primary-light);
    border-radius: 50%;
}

.avatar-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--white);
}

.leadership-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #d4af37, #f6ad55);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.member-info {
    text-align: center;
    margin-bottom: 25px;
}

.member-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.member-position {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 20px;
}

.member-details {
    display: flex;
    justify-content: center;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: var(--text-light);
}

.detail-item i {
    color: var(--primary-color);
}

.card-flip-indicator {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-light);
    opacity: 0.7;
}

/* الوجه الخلفي */
.back-header {
    text-align: center;
    margin-bottom: 30px;
}

.back-header h4 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.back-header p {
    font-size: 1rem;
    opacity: 0.9;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-item i {
    width: 20px;
    font-size: 1.1rem;
    opacity: 0.8;
}

.contact-item a {
    color: var(--white);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.contact-item a:hover {
    opacity: 0.7;
}

.member-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: auto;
}

.action-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.action-btn:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.1);
}

/* زر العودة */
.back-button {
    text-align: center;
    margin-top: 40px;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 15px 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.btn-back:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

/* لا توجد أعضاء */
.no-members {
    text-align: center;
    padding: 100px 20px;
    color: var(--text-light);
}

.no-members-icon {
    font-size: 6rem;
    margin-bottom: 30px;
    opacity: 0.4;
}

.no-members h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.no-members p {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

/* الاستجابة للشاشات الصغيرة */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .term-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
    }
    
    .stat-box {
        text-align: center;
        flex-direction: column;
        gap: 15px;
    }
    
    .members-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .member-card {
        height: 400px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .member-card {
        height: 350px;
    }
    
    .card-front,
    .card-back {
        padding: 20px;
    }
    
    .avatar-ring {
        width: 100px;
        height: 100px;
    }
    
    .avatar-image {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
    
    .member-name {
        font-size: 1.2rem;
    }
    
    .member-position {
        font-size: 1rem;
    }
}