/* ============================================
   د. مينا مكرم جالس — نظام التصميم الموحّد
   الهوية: بنفسجي #6a1b9a + زيتي #6b8e23
   ============================================ */

:root{
    --main:#6a1b9a;
    --main-dark:#4f1374;
    --main-light:#8a3fc0;
    --olive:#6b8e23;
    --olive-dark:#566f1c;
    --cream:#faf8f5;
    --ink:#241f29;
    --ink-soft:#6b6470;
    --line:#e9e3ee;
    --white:#ffffff;
    --danger:#c0392b;
    --radius:16px;
    --radius-sm:10px;
    --shadow:0 8px 24px rgba(106,27,154,0.08);
    --shadow-lift:0 14px 32px rgba(106,27,154,0.16);
}

*{
    box-sizing:border-box;
    margin:0;
    padding:0;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Cairo',sans-serif;
    background:var(--cream);
    color:var(--ink);
    min-height:100vh;
    -webkit-font-smoothing:antialiased;
}

img{max-width:100%;display:block;}

button{font-family:inherit;}

a{color:inherit;text-decoration:none;}

/* ===== الهيدر ===== */

header{
    background:linear-gradient(135deg,var(--main) 0%,var(--main-dark) 100%);
    color:#fff;
    padding:16px 18px;
    position:sticky;
    top:0;
    z-index:1000;
    box-shadow:0 4px 18px rgba(79,19,116,0.25);
}

.header-content{
    display:flex;
    align-items:center;
    gap:12px;
    font-weight:700;
    font-size:18px;
    max-width:720px;
    margin:0 auto;
    position:relative;
}

.header-logo{
    width:42px;
    height:42px;
    aspect-ratio:1/1;
    object-fit:contain;
    border-radius:50%;
    background:#fff;
    border:2px solid rgba(255,255,255,0.6);
    flex-shrink:0;
}

.back-btn{
    position:absolute;
    left:0;
    background:rgba(255,255,255,0.16);
    border:none;
    color:#fff;
    width:36px;
    height:36px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    transition:.2s;
    padding:0;
}

.back-btn:active{
    background:rgba(255,255,255,0.3);
    transform:scale(0.93);
}

/* ===== الحاوية الرئيسية ===== */

.container{
    padding:22px 18px 40px;
    max-width:720px;
    margin:0 auto;
}

/* ===== شريط ترحيب الرئيسية ===== */

.hero{
    text-align:center;
    padding:8px 6px 26px;
}

.hero-ring{
    width:96px;
    height:96px;
    margin:0 auto 14px;
    border-radius:50%;
    background:#fff;
    border:3px solid var(--main);
    display:flex;
    align-items:center;
    justify-content:center;
    box-shadow:var(--shadow);
}

.hero-ring img{
    width:100%;
    height:100%;
    aspect-ratio:1/1;
    border-radius:50%;
    object-fit:cover;
}

.hero h1{
    font-size:22px;
    color:var(--main-dark);
    margin-bottom:6px;
}

.hero p{
    color:var(--ink-soft);
    font-size:14.5px;
}

/* ===== الأزرار الرئيسية (الرئيسية) ===== */

.menu-grid{
    display:flex;
    flex-direction:column;
    gap:14px;
}

.main-btn{
    width:100%;
    background:var(--white);
    color:var(--main-dark);
    padding:18px 20px;
    border:1.5px solid var(--line);
    border-radius:var(--radius);
    font-size:16.5px;
    font-weight:700;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    cursor:pointer;
    transition:.25s;
    box-shadow:var(--shadow);
    text-align:right;
}

.main-btn .icon{
    width:42px;
    height:42px;
    border-radius:12px;
    background:linear-gradient(135deg,var(--main) 0%,var(--main-light) 100%);
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:19px;
    flex-shrink:0;
}

.main-btn.olive .icon{
    background:linear-gradient(135deg,var(--olive) 0%,var(--olive-dark) 100%);
}

.main-btn:active{
    transform:scale(0.97);
    box-shadow:var(--shadow-lift);
}

.main-btn .chev{
    color:var(--ink-soft);
    font-size:14px;
}

/* ===== الكروت ===== */

.card{
    background:var(--white);
    padding:20px;
    border-radius:var(--radius);
    margin-bottom:18px;
    box-shadow:var(--shadow);
    animation:slideUp .5s ease both;
    border:1px solid var(--line);
}

.card h3{
    color:var(--main-dark);
    margin-bottom:14px;
    font-size:16.5px;
    display:flex;
    align-items:center;
    gap:8px;
}

.card h3::before{
    content:"";
    width:7px;
    height:18px;
    border-radius:4px;
    background:var(--olive);
    display:inline-block;
}

.optional{
    background:#f6f5fb;
}

.optional h3::before{
    background:var(--main);
}

/* ===== الفورم ===== */

label{
    display:block;
    font-size:13.5px;
    color:var(--ink-soft);
    margin-bottom:6px;
    font-weight:600;
}

.field{
    margin-bottom:16px;
}

input,select,textarea{
    width:100%;
    padding:13px 14px;
    border-radius:var(--radius-sm);
    border:1.5px solid var(--line);
    font-size:15.5px;
    font-family:inherit;
    background:var(--cream);
    color:var(--ink);
    transition:.2s;
}

input::placeholder,textarea::placeholder{
    color:#a79fb0;
}

input:focus,select:focus,textarea:focus{
    outline:none;
    border-color:var(--main);
    background:#fff;
    box-shadow:0 0 0 3px rgba(106,27,154,0.1);
}

textarea{
    min-height:90px;
    resize:vertical;
}

select{
    appearance:none;
    background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'><path d='M1 1l6 6 6-6' stroke='%236a1b9a' stroke-width='2' fill='none' stroke-linecap='round'/></svg>");
    background-repeat:no-repeat;
    background-position:left 14px center;
    padding-left:36px;
}

.submit-btn{
    width:100%;
    background:linear-gradient(135deg,var(--olive) 0%,var(--olive-dark) 100%);
    color:#fff;
    padding:17px;
    border:none;
    border-radius:var(--radius);
    font-size:17px;
    font-weight:700;
    margin-top:6px;
    cursor:pointer;
    transition:.25s;
    box-shadow:0 10px 24px rgba(107,142,35,0.3);
}

.submit-btn:active{
    transform:scale(0.97);
}

.submit-note{
    text-align:center;
    color:var(--ink-soft);
    font-size:12.5px;
    margin-top:12px;
}

/* ===== الفوتر ===== */

footer{
    background:var(--ink);
    color:#cfc6d8;
    text-align:center;
    padding:18px 14px 16px;
    font-size:12.5px;
    line-height:1.7;
}

footer .brand{
    color:#fff;
    font-weight:700;
    font-size:13.5px;
    display:block;
    margin-bottom:4px;
}

/* ===== شاشة التحميل ===== */

.loading-body{
    display:flex;
    justify-content:center;
    align-items:center;
    height:100vh;
    background:linear-gradient(160deg,#fff 0%,#f5effa 100%);
    text-align:center;
}

.loading-container{
    padding:20px;
}

.loading-logo{
    width:120px;
    aspect-ratio:1/1;
    object-fit:contain;
    animation:fadeIn 1.1s ease;
    filter:drop-shadow(0 10px 25px rgba(106,27,154,0.25));
}

.doctor-name{
    margin-top:18px;
    color:var(--main-dark);
    font-size:21px;
    animation:fadeIn 1.4s ease;
}

.doctor-spec{
    color:var(--ink-soft);
    font-size:14px;
    margin-top:6px;
    animation:fadeIn 1.7s ease;
}

.loader{
    border:5px solid #ecdff5;
    border-top:5px solid var(--main);
    border-radius:50%;
    width:42px;
    height:42px;
    margin:28px auto 0;
    animation:spin .9s linear infinite;
}

/* ===== صفحة نبذة عن الطبيب ===== */

.profile{
    text-align:center;
    margin-bottom:22px;
}

.profile img{
    width:140px;
    height:140px;
    border-radius:50%;
    border:4px solid var(--main);
    margin:0 auto 14px;
    object-fit:cover;
    box-shadow:var(--shadow-lift);
}

.profile h2{
    color:var(--main-dark);
    font-size:19px;
    margin-bottom:4px;
}

.profile .spec-line{
    color:var(--olive-dark);
    font-size:14px;
    font-weight:600;
    margin-top:2px;
}

.card ul{
    list-style:none;
}

.card ul li{
    background:var(--cream);
    padding:12px 14px;
    margin-bottom:8px;
    border-radius:var(--radius-sm);
    font-size:14px;
    line-height:1.6;
    border-right:3px solid var(--olive);
}

.card ul li:last-child{
    margin-bottom:0;
}

/* ===== صفحة التواصل ===== */

.contact-list{
    display:flex;
    flex-direction:column;
    gap:12px;
}

.contact-btn{
    display:flex;
    align-items:center;
    gap:14px;
    width:100%;
    padding:16px 18px;
    border:none;
    border-radius:var(--radius);
    background:var(--white);
    border:1.5px solid var(--line);
    color:var(--ink);
    font-size:15.5px;
    font-weight:700;
    cursor:pointer;
    transition:.2s;
    box-shadow:var(--shadow);
}

.contact-btn .c-icon{
    width:40px;
    height:40px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:18px;
    color:#fff;
    flex-shrink:0;
}

.contact-btn:active{
    transform:scale(0.97);
}

.c-whatsapp{background:#25d366;}
.c-youtube{background:#ff0000;}
.c-tiktok{background:#000;}
.c-instagram{background:radial-gradient(circle at 30% 110%,#fdf497,#fd5949,#d6249f,#285AEB);}
.c-facebook{background:#1877f2;}
.c-phone{background:var(--main);}
.c-location{background:var(--olive);}

/* ===== صفحة الآراء ===== */

.review{
    background:var(--white);
    padding:18px;
    border-radius:var(--radius);
    margin-bottom:14px;
    box-shadow:var(--shadow);
    animation:fadeUp .6s ease both;
    border:1px solid var(--line);
}

.review-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-bottom:6px;
}

.review h4{
    color:var(--main-dark);
    font-size:15px;
}

.stars{
    color:#f2b300;
    font-size:14px;
    letter-spacing:1px;
}

.review p{
    color:var(--ink-soft);
    font-size:14px;
    line-height:1.7;
}

/* ===== رسالة فارغة / مساحة فاضية ===== */

.empty-space{height:6px;}

/* ===== صفحة أماكن العيادات ===== */

.clinic-card{
    background:var(--white);
    padding:18px;
    border-radius:var(--radius);
    margin-bottom:18px;
    box-shadow:var(--shadow);
    animation:fadeUp .6s ease both;
    border:1px solid var(--line);
}

.clinic-card h3{
    color:var(--main-dark);
    font-size:16.5px;
    margin-bottom:6px;
    display:flex;
    align-items:center;
    gap:8px;
}

.clinic-card h3::before{
    content:"";
    width:7px;
    height:18px;
    border-radius:4px;
    background:var(--olive);
    display:inline-block;
}

.clinic-address{
    font-size:13.5px;
    color:var(--ink-soft);
    margin-bottom:14px;
}

.map-box{
    width:100%;
    height:230px;
    border-radius:var(--radius-sm);
    overflow:hidden;
    cursor:pointer;
    border:1.5px solid var(--line);
    transition:.25s;
}

.map-box:active{
    transform:scale(0.99);
}

.map-link{
    display:block;
}

.map-cta{
    display:block;
    text-align:center;
    color:var(--main);
    font-weight:700;
    font-size:14px;
    margin-top:12px;
    cursor:pointer;
}

/* ===== الأنيميشن ===== */

@keyframes spin{
    0%{transform:rotate(0)}
    100%{transform:rotate(360deg)}
}

@keyframes fadeIn{
    from{opacity:0}
    to{opacity:1}
}

@keyframes slideUp{
    from{transform:translateY(18px);opacity:0}
    to{transform:translateY(0);opacity:1}
}

@keyframes fadeUp{
    from{transform:translateY(14px);opacity:0}
    to{transform:translateY(0);opacity:1}
}

.fade-in{
    animation:fadeIn .6s ease;
}

/* ===== استجابة للشاشات الكبيرة ===== */

@media (min-width:600px){
    .container{padding-top:30px;}
    .menu-grid{gap:16px;}
}

/* ===== تقليل الحركة لمن يفضل ذلك ===== */

@media (prefers-reduced-motion:reduce){
    *{animation-duration:0.01ms !important;animation-iteration-count:1 !important;}
    html{scroll-behavior:auto;}
}
