/**
 * Static Pages Styles - أنماط الصفحات الثابتة
 * ملف موحد للصفحات: about, contact, privacy, terms, faq
 * يدعم الوضع الليلي والنهاري بالكامل
 * يعتمد على المتغيرات من main.css
 */

/* ========================================
   Hero Section - قسم البطل
======================================== */
.page-hero {
    min-height: 45vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 5rem 2rem;
    transition: background 0.3s ease;
    /* الخلفية الافتراضية */
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

/* الوضع النهاري - Hero بألوان زاهية */
html[data-theme="light"] .page-hero,
[data-theme="light"] .page-hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
}

/* الوضع الليلي - Hero بألوان داكنة */
html[data-theme="dark"] .page-hero,
[data-theme="dark"] .page-hero {
    background: linear-gradient(135deg, 
        var(--dark-body-color, #111827),
        var(--dark-footer-color, #0a0a0a)) !important;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-icon {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    animation: heroFloat 3s ease-in-out infinite;
}

.hero-icon i {
    font-size: 2.5rem;
    color: white;
}

.hero-icon.large {
    width: 120px;
    height: 120px;
}

.hero-icon.large i {
    font-size: 3.5rem;
}

@keyframes heroFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.4rem);
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
}

/* ========================================
   Page Content - محتوى الصفحة
======================================== */
.page-content {
    padding: 4rem 2rem;
    min-height: 50vh;
}

.page-content .container {
    max-width: 1200px;
    margin: 0 auto;
}

/* ========================================
   Section Headers - عناوين الأقسام
======================================== */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

/* ========================================
   Story Section - قسم القصة (من نحن)
======================================== */
.story-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 5rem;
}

.story-image {
    position: relative;
}

.story-image-wrapper {
    position: relative;
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
}

.story-image-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0.8;
}

/* الوضع الليلي - Story Image Wrapper */
html[data-theme="dark"] .story-image-wrapper::before {
    background: linear-gradient(135deg, #2d1f3d, #1a2744) !important;
    opacity: 0.95 !important;
}

.story-image-wrapper i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 8rem;
    color: white;
    opacity: 0.9;
}

.story-image-wrapper .placeholder {
    width: 100%;
    height: 400px;
}

/* الوضع الليلي - Story Placeholder */
[data-theme="dark"] .story-image-wrapper .placeholder {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.95));
}

/* الوضع النهاري - Story Placeholder */
[data-theme="light"] .story-image-wrapper .placeholder {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
}

.floating-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    color: white;
    padding: 1.5rem 2rem;
    border-radius: 1rem;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

/* الوضع الليلي - Floating Badge */
html[data-theme="dark"] .floating-badge {
    background: linear-gradient(135deg, #4a3f5f, #2d3a4f) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5) !important;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.story-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.story-text p {
    font-size: 1.15rem;
    line-height: 2;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

/* ========================================
   Features Grid - شبكة الميزات
======================================== */
.features-section {
    margin-bottom: 5rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    border-radius: 1.5rem;
    padding: 2.5rem;
    text-align: center;
    border: 1px solid var(--border-light);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

/* الوضع الليلي - Feature Cards */
[data-theme="dark"] .feature-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.9));
}

/* الوضع النهاري - Feature Cards */
[data-theme="light"] .feature-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.1));
    border-color: rgba(255, 255, 255, 0.2);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.feature-icon i {
    font-size: 2rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-card p {
    line-height: 1.8;
    color: var(--text-secondary);
}

/* ========================================
   Stats Section - قسم الإحصائيات
======================================== */
.stats-section {
    border-radius: 2rem;
    padding: 4rem;
    margin-bottom: 5rem;
    border: 1px solid var(--border-light);
}

/* الوضع الليلي - Stats Section */
[data-theme="dark"] .stats-section {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.6), rgba(15, 23, 42, 0.8));
}

/* الوضع النهاري - Stats Section */
[data-theme="light"] .stats-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.1));
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    text-align: center;
}

.stat-item {
    position: relative;
}

.stat-item::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 60%;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.stat-item:first-child::after {
    display: none;
}

.stat-number {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    display: block;
}

.stat-label {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

/* ========================================
   CTA Section - قسم الدعوة للعمل
======================================== */
.cta-section {
    text-align: center;
    padding: 4rem;
    border-radius: 2rem;
    position: relative;
    overflow: hidden;
    transition: background 0.3s ease;
}

/* الوضع النهاري - CTA بألوان زاهية */
html[data-theme="light"] .cta-section,
[data-theme="light"] .cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
}

/* الوضع الليلي - CTA بألوان داكنة */
html[data-theme="dark"] .cta-section,
[data-theme="dark"] .cta-section {
    background: linear-gradient(135deg, 
        var(--dark-body-color, #111827),
        var(--dark-footer-color, #0a0a0a)) !important;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M20 20c0-5.5-4.5-10-10-10S0 14.5 0 20s4.5 10 10 10 10-4.5 10-10zm10 0c0-5.5-4.5-10-10-10v20c5.5 0 10-4.5 10-10z'/%3E%3C/g%3E%3C/svg%3E");
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-section h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: white;
    color: var(--primary-color);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
}

/* ========================================
   Contact Grid - شبكة الاتصال
======================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-card {
    border-radius: 1.5rem;
    padding: 2rem;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

/* الوضع الليلي - Contact Cards */
[data-theme="dark"] .contact-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.9));
}

/* الوضع النهاري - Contact Cards */
[data-theme="light"] .contact-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.1));
    border-color: rgba(255, 255, 255, 0.2);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.contact-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 1.3rem;
    color: white;
}

.contact-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
}

.contact-card p,
.contact-card a {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.contact-card a:hover {
    color: var(--primary-color);
}

/* Contact Form */
.contact-form-wrapper {
    border-radius: 2rem;
    padding: 3rem;
    border: 1px solid var(--border-light);
}

/* الوضع الليلي - Contact Form */
[data-theme="dark"] .contact-form-wrapper {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.9));
}

/* الوضع النهاري - Contact Form */
[data-theme="light"] .contact-form-wrapper {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.1));
    border-color: rgba(255, 255, 255, 0.2);
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-header h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.form-header p {
    color: var(--text-secondary);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

/* الوضع الليلي - Form Inputs */
[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea,
[data-theme="dark"] .form-group select {
    background: rgba(15, 23, 42, 0.8);
}

/* الوضع النهاري - Form Inputs */
[data-theme="light"] .form-group input,
[data-theme="light"] .form-group textarea,
[data-theme="light"] .form-group select {
    background: rgba(255, 255, 255, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.submit-btn {
    width: 100%;
    padding: 1.2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* ========================================
   Text Content - محتوى نصي (Privacy, Terms)
======================================== */
.text-content {
    border-radius: 2rem;
    padding: 3rem;
    margin-bottom: 3rem;
    border: 1px solid var(--border-light);
}

/* الوضع الليلي - Text Content */
[data-theme="dark"] .text-content {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.6), rgba(15, 23, 42, 0.8));
}

/* الوضع النهاري - Text Content */
[data-theme="light"] .text-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.1));
}

.text-content h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
    color: var(--text-primary);
}

.text-content p {
    font-size: 1.1rem;
    line-height: 1.9;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.text-content ul,
.text-content ol {
    margin-bottom: 1.5rem;
    padding-right: 2rem;
}

.text-content li {
    font-size: 1.1rem;
    line-height: 1.9;
    margin-bottom: 0.75rem;
    position: relative;
    color: var(--text-secondary);
}

.text-content ul li::before {
    content: '';
    position: absolute;
    right: -1.5rem;
    top: 0.6rem;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
}

/* ========================================
   FAQ Section - الأسئلة الشائعة
======================================== */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.faq-item {
    border-radius: 1.5rem;
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

/* الوضع الليلي - FAQ Items */
[data-theme="dark"] .faq-item {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.9));
}

/* الوضع النهاري - FAQ Items */
[data-theme="light"] .faq-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.1));
    border-color: rgba(255, 255, 255, 0.2);
}

.faq-item:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.faq-question {
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.05);
}

.faq-question h3 {
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-primary);
}

.faq-question .question-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.faq-question .question-icon i {
    color: white;
    font-size: 1rem;
}

.faq-question .toggle-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

/* الوضع الليلي - Toggle Icon */
[data-theme="dark"] .faq-question .toggle-icon {
    background: rgba(255, 255, 255, 0.1);
}

/* الوضع النهاري - Toggle Icon */
[data-theme="light"] .faq-question .toggle-icon {
    background: rgba(255, 255, 255, 0.2);
}

.faq-item.active .toggle-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 2rem 1.5rem;
}

.faq-answer p {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-secondary);
}

/* ========================================
   Social Links - روابط التواصل
======================================== */
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

/* الوضع الليلي - Social Links */
[data-theme="dark"] .social-link {
    background: rgba(255, 255, 255, 0.1);
}

/* الوضع النهاري - Social Links */
[data-theme="light"] .social-link {
    background: rgba(255, 255, 255, 0.2);
}

.social-link:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transform: translateY(-3px);
}

.social-link i {
    font-size: 1.3rem;
}

/* ========================================
   Responsive - التجاوب
======================================== */
@media (max-width: 968px) {
    .story-section,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .stat-item::after {
        display: none;
    }
}

@media (max-width: 768px) {
    .page-hero {
        padding: 4rem 1.5rem;
        min-height: 35vh;
    }

    .page-content {
        padding: 3rem 1.5rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .stats-section,
    .text-content,
    .contact-form-wrapper {
        padding: 2rem;
    }

    .cta-section {
        padding: 3rem 2rem;
    }
}

@media (max-width: 480px) {
    .hero-icon {
        width: 80px;
        height: 80px;
    }

    .hero-icon i {
        font-size: 2rem;
    }

    .hero-icon.large {
        width: 100px;
        height: 100px;
    }

    .hero-icon.large i {
        font-size: 2.5rem;
    }

    .feature-card,
    .contact-card {
        padding: 1.5rem;
    }

    .faq-question {
        padding: 1rem 1.5rem;
    }
}
