/* ====================================
   جود | Joud - Layout Styles (Minimal Redesign)
   ==================================== */

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-sticky);
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(9, 59, 112, 0.1);
    transition: all var(--transition-base);
}

.header.scrolled {
    background: var(--bg-glass);
    box-shadow: var(--shadow-md);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 88px;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    text-decoration: none;
    transition: transform var(--transition-base), filter var(--transition-base);
    padding: var(--space-1) 0;
}

.logo:hover {
    transform: scale(1.03);
    filter: brightness(1.1);
}

.logo-image {
    height: 48px;
    /* Slightly larger logo */
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-family: var(--font-arabic);
    font-size: 2.25rem;
    /* Large, prominent size */
    font-weight: 900;
    /* Extra black weight for logo effect */
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    line-height: 1;
    letter-spacing: -0.01em;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.05));
    display: flex;
    align-items: center;
    gap: 0.1em;
}

.logo-text::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--secondary);
    border-radius: 50%;
    margin-top: 0.2em;
}

@media (max-width: 768px) {
    .logo-text {
        font-size: 1.75rem;
    }

    .logo-image {
        height: 36px;
    }
}

.logo-text span {
    color: var(--primary);
}

.nav {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.nav-link {
    padding: var(--space-2) 0;
    color: var(--text-secondary);
    font-weight: var(--font-weight-medium);
    transition: all var(--transition-fast);
    font-size: var(--font-size-sm);
    white-space: nowrap;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--secondary);
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

.nav-link.active {
    color: var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.theme-toggle,
.lang-toggle {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    border-radius: var(--border-radius-full);
}

.theme-toggle:hover,
.lang-toggle:hover {
    color: var(--primary);
    background: var(--bg-section-alt);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: var(--space-2);
    border: none;
    background: none;
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: flex;
    }

    .nav {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--bg-card);
        flex-direction: column;
        padding: var(--space-6);
        border-bottom: 1px solid var(--border-color);
        box-shadow: var(--shadow-lg);
        gap: var(--space-4);
        align-items: flex-start;
    }

    .nav.open {
        display: flex;
    }

    .nav-link {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
        padding-bottom: var(--space-3);
    }

    .nav-link::after {
        display: none;
    }
}

/* Minimal Hero Section */
.hero {
    background: var(--bg-body);
    padding: calc(80px + var(--space-20)) 0 var(--space-20);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease;
}

.hero-stats-mini {
    display: flex;
    gap: var(--space-3);
    justify-content: center;
    margin-bottom: var(--space-8);
}

.stat-indicator {
    padding: var(--space-3) var(--space-6);
    background: var(--bg-section-alt);
    border: 2px solid var(--border-color);
    /* Thicker border */
    border-radius: var(--border-radius-full);
    font-size: var(--font-size-sm);
    /* Larger font */
    color: var(--primary);
    font-weight: var(--font-weight-extrabold);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.stat-indicator:hover {
    border-color: var(--primary);
    background: var(--bg-card);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: var(--secondary-50);
    color: var(--secondary-dark);
    border-radius: var(--border-radius-full);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: var(--font-weight-extrabold);
    color: var(--text-primary);
    margin-bottom: var(--space-6);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hero h1 .highlight {
    color: var(--primary);
}

.hero p {
    font-size: var(--font-size-xl);
    color: var(--text-secondary);
    margin-bottom: var(--space-10);
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: var(--space-6);
    justify-content: center;
    flex-wrap: wrap;
    margin-top: var(--space-4);
}

.btn-hero-browse {
    background: var(--bg-card);
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: var(--space-4) var(--space-8);
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    box-shadow: var(--shadow-md);
}

.btn-hero-donate {
    background: var(--primary);
    color: #fff;
    padding: var(--space-4) var(--space-10);
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    box-shadow: 0 10px 20px -10px var(--primary);
    position: relative;
    overflow: hidden;
}

.btn-hero-donate::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-hero-donate:hover::after {
    opacity: 1;
}

.hero-visual {
    display: none;
    /* Removed the complex illustration graphic for minimalism */
}

@media (max-width: 768px) {
    .hero {
        padding-top: calc(80px + var(--space-12));
        padding-bottom: var(--space-12);
    }

    .hero h1 {
        font-size: var(--font-size-4xl);
    }

    .hero p {
        font-size: var(--font-size-lg);
    }
}

/* Removed stats-bar in favor of hero indicators */

/* Simple Footer */
.footer {
    padding: var(--space-8) 0 0;
    background: var(--bg-body);
}

.credits-flex-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    flex-wrap: nowrap;
}

.credit-pill {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-5);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-xl);
    transition: all var(--transition-base);
    flex-shrink: 1;
    min-width: 0;
}

.credit-pill:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.credit-icon {
    font-size: 1.5rem;
    padding: var(--space-3);
    background: var(--primary-50);
    border-radius: var(--border-radius-lg);
}

.credit-info h3 {
    font-size: var(--font-size-sm);
    color: var(--text-primary);
    margin-bottom: var(--space-1);
    white-space: nowrap;
}

.credit-info p {
    font-size: 0.65rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

.credits-divider {
    width: 2px;
    height: 40px;
    background: var(--border-color);
    flex-shrink: 0;
}

@media (max-width: 900px) {
    .credits-flex-container {
        flex-wrap: wrap;
        gap: var(--space-4);
    }
    .credits-divider {
        display: none;
    }
}

.footer-bottom-mini {
    margin-top: var(--space-12);
    text-align: center;
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    opacity: 0.6;
}

@media (max-width: 1024px) {
    .credits-divider {
        display: none;
    }
}

/* Minimal WhatsApp FAB */
.whatsapp-fab {
    position: fixed;
    bottom: var(--space-6);
    inset-inline-end: var(--space-6);
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border-radius: var(--border-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    z-index: var(--z-sticky);
    transition: transform var(--transition-base);
    text-decoration: none;
    font-size: 1.75rem;
}

.credit-photo {
    width: 64px;
    height: 64px;
    background: var(--bg-section-alt);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 3px solid var(--primary-100);
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.credit-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.whatsapp-fab:hover {
    transform: translateY(-5px);
    color: white;
}