/* ==================================================
   منصة التوعية الطبية العربية - التصميم الأسطوري
   جميع الحقوق محفوظة © 2025
   ================================================== */

/* ========== المتغيرات الأساسية ========== */
:root {
    --primary-dark: #0b2b4f;
    --primary-medium: #1a4b8c;
    --primary-light: #2d7bc4;
    --accent-gold: #ffd700;
    --accent-gold-light: #ffaa00;
    --accent-gold-soft: #fff9e6;
    --success-green: #4CAF50;
    --danger-red: #f44336;
    --warning-orange: #ff9800;
    --text-dark: #1e2a3a;
    --text-medium: #4a5a6a;
    --text-light: #6c757d;
    --bg-light: #f5f7fa;
    --bg-soft: #e9edf5;
    --white: #ffffff;
    --shadow-sm: 0 5px 15px rgba(0,0,0,0.05);
    --shadow-md: 0 15px 35px rgba(0,0,0,0.1);
    --shadow-lg: 0 25px 50px rgba(0,0,0,0.15);
    --shadow-gold: 0 10px 30px rgba(255,215,0,0.2);
    --gradient-primary: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-medium) 50%, var(--primary-light) 100%);
    --gradient-gold: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-light) 100%);
    --gradient-soft: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-soft) 100%);
    --border-radius-sm: 12px;
    --border-radius-md: 20px;
    --border-radius-lg: 30px;
    --border-radius-xl: 50px;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ========== إعادة التعيين الأساسي ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Tajawal', 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.7;
    color: var(--text-medium);
    background: var(--gradient-soft);
    overflow-x: hidden;
    min-height: 100vh;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* ========== الهيدر الرئيسي ========== */
.master-header {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 12px 0;
    box-shadow: var(--shadow-lg);
    border-bottom: 3px solid var(--accent-gold);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 15px;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: var(--gradient-gold);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(5deg);
}

.logo-icon span {
    font-size: 24px;
    color: var(--primary-dark);
    transform: rotate(-5deg);
}

.logo-text h1 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white);
    margin: 0;
    line-height: 1.2;
    white-space: nowrap;
}

.logo-text p {
    font-size: 0.75rem;
    opacity: 0.9;
    margin: 0;
    color: var(--white);
    white-space: nowrap;
}

.master-nav {
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
    justify-content: center;
    flex: 1;
}

.master-nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 30px;
    transition: var(--transition-normal);
    font-size: 0.85rem;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 5px;
}

.master-nav a i {
    font-size: 0.8rem;
}

.master-nav a:hover {
    background: rgba(255,215,0,0.2);
    transform: translateY(-2px);
}

.master-nav a.active {
    background: rgba(255,215,0,0.3);
    border-bottom: 2px solid var(--accent-gold);
}

.header-phone {
    background: var(--gradient-gold);
    color: var(--primary-dark);
    padding: 6px 15px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: var(--transition-normal);
}

.header-phone:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

/* ========== هيدر الجوال ========== */
.mobile-header-new {
    display: none;
    background: var(--gradient-primary);
    padding: 12px 20px;
    color: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
}

.mobile-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-logo-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-gold);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(5deg);
}

.mobile-logo-icon span {
    font-size: 22px;
    color: var(--primary-dark);
    transform: rotate(-5deg);
}

.mobile-logo-text h3 {
    font-size: 1rem;
    font-weight: bold;
    margin: 0;
    line-height: 1.2;
}

.mobile-logo-text p {
    font-size: 0.7rem;
    opacity: 0.9;
    margin: 2px 0 0;
}

.hamburger-new {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.hamburger-new span {
    width: 22px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition-normal);
}

.mobile-nav-new {
    position: fixed;
    top: 64px;
    right: -100%;
    width: 85%;
    max-width: 300px;
    height: calc(100vh - 64px);
    background: var(--white);
    z-index: 999;
    padding: 20px;
    transition: var(--transition-normal);
    box-shadow: -5px 0 20px rgba(0,0,0,0.1);
    overflow-y: auto;
}

.mobile-nav-new.active {
    right: 0;
}

.mobile-nav-new ul {
    list-style: none;
}

.mobile-nav-new li {
    margin-bottom: 15px;
}

.mobile-nav-new a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    padding: 12px;
    border-radius: var(--border-radius-md);
    transition: var(--transition-normal);
    background: var(--bg-light);
}

.mobile-nav-new a i {
    width: 20px;
    color: var(--accent-gold);
}

.mobile-nav-new a:hover {
    background: var(--gradient-primary);
    color: var(--white);
    transform: translateX(-5px);
}

.mobile-nav-new a.active {
    background: var(--gradient-primary);
    color: var(--white);
}

/* ========== الفوتر ========== */
.footer-new {
    background: #0b1a2f;
    color: var(--white);
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-grid-new {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section-new h3 {
    color: var(--accent-gold);
    margin-bottom: 20px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-section-new p {
    color: #a0b8d0;
    line-height: 1.6;
    font-size: 0.9rem;
    margin: 0;
}

.footer-section-new ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section-new li {
    margin-bottom: 12px;
}

.footer-section-new a {
    color: #a0b8d0;
    text-decoration: none;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.footer-section-new a:hover {
    color: var(--accent-gold);
    transform: translateX(-5px);
}

.footer-bottom-new {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #a0b8d0;
    font-size: 0.85rem;
}

/* ========== زر الواتساب ========== */
.wa-float-new {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25d366, #128C7E);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    z-index: 999;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.wa-float-new:hover {
    transform: scale(1.15) rotate(5deg);
}

/* ========== استجابة الجوال ========== */
@media (max-width: 992px) {
    .master-header {
        display: none;
    }
    
    .mobile-header-new {
        display: block;
    }
}

@media (max-width: 768px) {
    .footer-grid-new {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-section-new a {
        justify-content: center;
    }
    
    .footer-section-new h3 {
        justify-content: center;
    }
    
    .wa-float-new {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 20px;
        left: 20px;
    }
}