/* =========================================== */
/* الصفحة الرئيسية - تصميم أنيق وفخم            */
/* =========================================== */

/* المتغيرات العامة */

:root {
    --primary-light: #fdf2f8;
    --primary-soft: #fce7f3;
    --primary-medium: #f9d7e8;
    --primary-dark: #f5c6db;
    --primary-deep: #db2777;
    --text-dark: #2d3748;
    --text-soft: #4a5568;
    --text-light: #718096;
    --white-soft: rgba(255,255,255,0.9);
    --white-medium: rgba(255,255,255,0.7);
    --border-light: #e2e8f0;
    --shadow-soft: 0 25px 50px -12px rgba(0,0,0,0.15);
    --shadow-medium: 0 20px 40px -15px rgba(219,39,119,0.15);

/* ===== الحاوية الرئيسية ===== */
.page-wrapper {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    direction: rtl;
    font-family: 'Tajawal', 'Cairo', sans-serif;
}

/* ===== الهيرو سكشن ===== */
.hero-section {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 3rem;
    padding: 2.5rem;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--primary-medium);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(249,215,232,0.3) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-container {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* ===== الجانب الأيمن ===== */
.hero-right {
    flex: 1.2;
}

.hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-deep));
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 3rem;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 15px rgba(219,39,119,0.2);
}

.hero-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.3;
    margin-bottom: 1rem;
}

.hero-title span {
    color: var(--primary-deep);
    position: relative;
    display: inline-block;
}

.hero-title span::after {
    content: '';
    position: absolute;
    bottom: 5px;
    right: 0;
    width: 100%;
    height: 8px;
    background: var(--primary-soft);
    z-index: -1;
    border-radius: 4px;
}

.hero-description {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-soft);
    margin-bottom: 1rem;
}

.hero-description strong {
    color: var(--primary-deep);
    font-weight: 600;
}

.hero-cta {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-deep));
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 3rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(219,39,119,0.25);
    border: 1px solid rgba(255,255,255,0.3);
    margin-top: 1rem;
}

.hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(219,39,119,0.35);
}

/* ===== الجانب الأيسر - بلوك البحث ===== */
.hero-left {
    flex: 0.8;
}

.search-block {
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 2.5rem;
    padding: 2rem;
    box-shadow: var(--shadow-medium);
    border: 1px solid rgba(255,255,255,0.6);
}

.search-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-medium);
}

.search-title-icon {
    font-size: 1.5rem;
}

.search-input-wrapper {
    position: relative;
    margin-bottom: 1.2rem;
}

.search-input-wrapper i {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-deep);
    font-size: 1rem;
}

.search-main-input {
    width: 100%;
    box-sizing: border-box;   /* ✅ هذا المهم */
    padding: 0.8rem 2.5rem 0.8rem 1rem;
    border: 2px solid var(--border-light);
    border-radius: 3rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: white;
}


.search-main-input:focus {
    outline: none;
    border-color: var(--primary-dark);
    box-shadow: 0 0 0 3px rgba(249,215,232,0.3);
}

.search-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.2rem;
    background: var(--white-medium);
    padding: 0.3rem;
    border-radius: 3rem;
}

.search-tab {
    flex: 1;
    padding: 0.5rem;
    border: none;
    border-radius: 3rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    background: transparent;
    color: var(--text-soft);
}

.search-tab.active {
    background: white;
    color: var(--primary-deep);
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.country-select, .age-range {
    margin-bottom: 1.2rem;
}

.country-select label, .age-range label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-soft);
    margin-bottom: 0.3rem;
}

.select-wrapper {
    position: relative;
}

.select-wrapper select {
    width: 100%;
    padding: 0.7rem 1rem 0.7rem 2rem;
    border: 2px solid var(--border-light);
    border-radius: 2rem;
    font-size: 0.85rem;
    background: white;
    appearance: none;
    cursor: pointer;
}

.select-wrapper i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-deep);
    font-size: 0.8rem;
    pointer-events: none;
}

.age-inputs {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.age-input {
    flex: 1;
    padding: 0.7rem;
    border: 2px solid var(--border-light);
    border-radius: 2rem;
    font-size: 0.85rem;
    text-align: center;
}

.age-input:focus {
    outline: none;
    border-color: var(--primary-dark);
}

.age-inputs span {
    color: var(--primary-deep);
    font-weight: 600;
}

.search-button {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 3rem;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-deep));
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(219,39,119,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.search-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(219,39,119,0.3);
}

.search-button i {
    font-size: 1.1rem;
}

/* ===== قسم العنوان ===== */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-medium), var(--primary-deep), var(--primary-medium));
    border-radius: 3px;
}

/* ===== شبكة الصور ===== */
.images-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
    margin-bottom: 3rem;
}

/* ===== بطاقة العضو ===== */
.member-card {
    background: white;
    border-radius: 2rem;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    border: 1px solid var(--primary-medium);
    position: relative;
}

.member-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 35px rgba(219,39,119,0.15);
}

.card-image-wrapper {
    position: relative;
    padding-top: 120%;
    overflow: hidden;
}

.card-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.member-card:hover .card-image-wrapper img {
    transform: scale(1.1);
}

/* ===== شارات ===== */
.featured-badge {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    background: linear-gradient(135deg, #fed7aa, #fbbf24);
    color: #92400e;
    padding: 0.3rem 0.8rem;
    border-radius: 2rem;
    font-size: 0.7rem;
    font-weight: 600;
    z-index: 3;
    box-shadow: 0 3px 10px rgba(251,191,36,0.2);
    backdrop-filter: blur(4px);
}

.online-badge {
    position: absolute;
    bottom: 0.8rem;
    left: 0.8rem;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(5px);
    padding: 0.2rem 0.8rem;
    border-radius: 2rem;
    font-size: 0.65rem;
    font-weight: 600;
    color: #059669;
    border: 1px solid rgba(5,150,105,0.2);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.online-dot {
    width: 0.4rem;
    height: 0.4rem;
    background: #059669;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(5,150,105,0.3); }
    70% { box-shadow: 0 0 0 6px rgba(5,150,105,0); }
    100% { box-shadow: 0 0 0 0 rgba(5,150,105,0); }
}

/* ===== محتوى البطاقة ===== */
.card-info {
    padding: 1rem;
    text-align: center;
}

.member-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.2rem;
}

.member-details {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 0.8rem;
}

.contact-link {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-medium), var(--primary-dark));
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 3rem;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(219,39,119,0.15);
}

.contact-link:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(219,39,119,0.25);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-deep));
}

/* ===== البلوك النصي ===== */
.info-block {
    background: white;
    border-radius: 3rem;
    padding: 3rem;
    margin-top: 2rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--primary-medium);
    position: relative;
    overflow: hidden;
}

.info-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--primary-medium), var(--primary-deep), var(--primary-medium));
    opacity: 0.5;
}

.info-block::after {
    content: '💌';
    position: absolute;
    bottom: 1rem;
    right: 2rem;
    font-size: 8rem;
    opacity: 0.03;
    pointer-events: none;
    transform: rotate(-10deg);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.info-card {
    background: var(--primary-light);
    border-radius: 2rem;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--primary-medium);
}

.info-card:hover {
    transform: translateY(-8px);
    background: white;
    box-shadow: 0 15px 30px rgba(219,39,119,0.1);
}

.info-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-medium), var(--primary-deep));
    width: 70px;
    height: 70px;
    line-height: 70px;
    border-radius: 50%;
    color: white;
    text-align: center;
    box-shadow: 0 8px 20px rgba(219,39,119,0.2);
}

.info-card-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.8rem;
}

.info-card-text {
    color: var(--text-soft);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ===== التجاوب ===== */
@media (max-width: 1024px) {
    .hero-container {
        flex-direction: column;
    }
    
    .hero-right, .hero-left {
        width: 100%;
    }
    
    .images-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .page-wrapper {
        padding: 1rem;
    }
    
    .hero-section {
        padding: 1.5rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .images-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .info-block {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .images-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .search-block {
        padding: 1.5rem;
    }
    
    .info-footer > div {
        padding: 1.5rem !important;
    }
}
