/* ============================================================
   ডক্টরপাড়া — global.css
   Site-wide chrome only: design tokens, base resets, scrollbar,
   header (topbar + navbar + mobile-header + side-drawer),
   footer, and bottom-nav. Loaded BEFORE index.css so its
   :root variables are available to page-specific styles.
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
    --primary:      #0B5563;
    --primary-lt:   #0e6e80;
    --secondary:    #17A2B8;
    --accent:       #FF6B35;
    --accent-lt:    #ff824f;
    --success:      #27AE60;
    --danger:       #E74C3C;
    --warning:      #F39C12;
    --dark:         #1A2332;
    --text:         #3D4D5C;
    --text-muted:   #7A8FA6;
    --bg-light:     #F4F8FB;
    --white:        #FFFFFF;
    --border:       #E0ECF0;
    --shadow-sm:    0 2px 12px rgba(11,85,99,.08);
    --shadow-md:    0 6px 24px rgba(11,85,99,.13);
    --shadow-lg:    0 14px 40px rgba(11,85,99,.18);
    --radius-sm:    10px;
    --radius-md:    16px;
    --radius-lg:    24px;
    --transition:   all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Base ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Hind Siliguri', sans-serif;
    color: var(--text);
    background: var(--white);
    overflow-x: hidden;
    line-height: 1.6;
}

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

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

/* ── Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-light); }
::-webkit-scrollbar-thumb { background: var(--secondary); border-radius: 3px; }

/* ============================================================
   TOP CONTACT BAR (above Navbar)
   ============================================================ */
.topbar {
    background: #0F2730;
    color: rgba(255,255,255,0.92);
    font-size: 0.82rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.topbar-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 18px;
    padding: 7px 1.5rem;
}
.topbar-left, .topbar-right {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 18px;
}
.topbar-item {
    color: rgba(255,255,255,0.92) !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: color .2s ease;
}
.topbar-item i { color: #7FECF7; }
.topbar-item:hover { color: #7FECF7 !important; }

/* ============================================================
   NAVBAR (Desktop)
   ============================================================ */
.navbar {
    background: #fff;
    /* background: rgba(11, 85, 99, 0.97); */
    backdrop-filter: blur(12px);
    padding: 0;
    box-shadow: 0 2px 20px rgba(11,85,99,.25);
    position: sticky;
    top: 0;
    z-index: 999;
    transition: var(--transition);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    height: 68px;
}

.navbar-brand {
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--white) !important;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.3px;
}

.navbar-brand i {
    color: #7FECF7;
    font-size: 1.8rem;
    animation: pulse-icon 2.5s ease-in-out infinite;
}

@keyframes pulse-icon {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

.navbar-nav {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 0.25rem;
}

.navbar-nav .nav-link {
    color: #333!important;
    font-weight: 500;
    font-size: 15px;
    text-transform: uppercase;
    padding: 0.45rem 0.85rem !important;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.navbar-nav .nav-link:hover {
    color: #333 !important;
    background: rgba(255,255,255,0.12);
}

/* ── Auth buttons (Login + Register) ───────────────────────── */
.nav-auth-btns { align-items: center; }
.nav-btn {
    display: inline-flex; align-items: center; gap: 6px;
    height: 38px; padding: 0 16px;
    border-radius: 50px; font-size: .85rem; font-weight: 600;
    text-decoration: none; white-space: nowrap;
    line-height: 1; transition: all .2s ease;
    font-family: 'Hind Siliguri', sans-serif;
}
.nav-btn i { font-size: .95rem; }
.nav-btn-login {
    background: #0d6d7e;
    color: #ffffff !important;
    border: 2px solid rgba(255,255,255,.6);
}
.nav-btn-login:hover {
    background: #ffffff;
    color: var(--primary, #0B5563) !important;
    border-color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255,255,255,.25);
}
.nav-btn-register {
    background: linear-gradient(135deg, #FF6B35, #F7931E);
    color: #ffffff !important;
    border: 2px solid transparent;
    box-shadow: 0 4px 12px rgba(255,107,53,.35);
}
.nav-btn-register:hover {
    background: linear-gradient(135deg, #F7931E, #FF6B35);
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(255,107,53,.5);
}

.navbar-nav .btn-nav-login {
    background: var(--accent);
    color: var(--white) !important;
    padding: 0.45rem 1.2rem !important;
    border-radius: 50px;
    font-weight: 600;
    margin-left: 0.5rem;
    transition: var(--transition);
}

.navbar-nav .btn-nav-login:hover {
    background: var(--accent-lt);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(255,107,53,.4);
}

/* ── Navbar Toggler ──────────────────────────────────────────── */
.navbar-toggler {
    background: rgba(255,255,255,0.15) !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 0.4rem 0.6rem !important;
}

.navbar-toggler:focus { box-shadow: none !important; }

/* ============================================================
   MOBILE HEADER
   ============================================================ */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    padding: 0 1rem;
    height: 58px;
    z-index: 1000;
    box-shadow: 0 2px 14px rgba(11,85,99,.25);
    align-items: center;
    justify-content: space-between;
}

.mobile-logo {
    font-size: 1.35rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mobile-logo i { font-size: 1.6rem; color: #7FECF7; }

.mobile-actions { display: flex; align-items: center; gap: 8px; }

.mobile-icon-btn {
    background: rgba(255,255,255,.18);
    border: none;
    color: var(--white);
    width: 38px;
    height: 38px;
    border-radius: 10px;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.mobile-icon-btn:hover { background: rgba(255,255,255,.28); }

/* ============================================================
   SIDE DRAWER
   ============================================================ */
.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.52);
    z-index: 1999;
    display: none;
    backdrop-filter: blur(3px);
}

.drawer-overlay.active { display: block; }

.side-drawer {
    position: fixed;
    top: 0;
    right: -110%;
    width: 82%;
    max-width: 340px;
    height: 100vh;
    background: var(--white);
    z-index: 2000;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.side-drawer.active { right: 0; }

.drawer-header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.drawer-header-logo {
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.drawer-close {
    background: rgba(255,255,255,.2);
    border: none;
    color: var(--white);
    width: 34px;
    height: 34px;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.drawer-close:hover { background: rgba(255,255,255,.3); }

.drawer-body { flex: 1; overflow-y: auto; padding: 8px 0; }

.drawer-section { padding: 8px 20px 4px; }

.drawer-section-title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    padding: 8px 0 6px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 4px;
}

.drawer-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    color: var(--text);
    font-size: 0.93rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    margin-bottom: 2px;
}

.drawer-link i {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--primary);
    flex-shrink: 0;
    transition: var(--transition);
}

.drawer-link:hover {
    background: var(--bg-light);
    color: var(--primary);
    padding-left: 16px;
}

.drawer-link:hover i {
    background: var(--primary);
    color: var(--white);
}

.drawer-link.emergency i { color: var(--danger); }
.drawer-link.emergency:hover i { background: var(--danger); color: var(--white); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: var(--dark);
    color: rgba(255,255,255,.8);
    padding: 60px 0 0;
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.footer-brand i { color: #7FECF7; }

.footer-desc {
    font-size: 0.9rem;
    color: rgba(255,255,255,.55);
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-social { display: flex; gap: 10px; }

.social-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255,255,255,.1);
    color: rgba(255,255,255,.7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: var(--transition);
    text-decoration: none;
}

.social-btn:hover {
    background: var(--secondary);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-heading {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 18px;
}

.footer-links { list-style: none; padding: 0; }

.footer-links li { margin-bottom: 10px; }

.footer-links a {
    color: rgba(255,255,255,.55);
    font-size: 0.9rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a i { font-size: 0.75rem; }

.footer-links a:hover {
    color: var(--secondary);
    padding-left: 4px;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.footer-contact-icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: rgba(255,255,255,.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    color: var(--secondary);
    flex-shrink: 0;
}

.footer-contact-text {
    font-size: 0.88rem;
    color: rgba(255,255,255,.6);
}

.footer-divider {
    border-color: rgba(255,255,255,.1);
    margin: 40px 0 0;
}

.footer-bottom {
    padding: 18px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-copyright {
    font-size: 0.85rem;
    color: rgba(255,255,255,.45);
}

.footer-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,.07);
    border-radius: 50px;
    padding: 5px 14px;
    font-size: 0.8rem;
    color: rgba(255,255,255,.5);
}

/* ============================================================
   BOTTOM NAV (Mobile)
   ============================================================ */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 -4px 20px rgba(0,0,0,.1);
    z-index: 998;
    padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--border);
}

.bottom-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.bottom-nav-item {
    flex: 1;
    text-align: center;
    padding: 6px 4px;
    text-decoration: none;
    color: var(--text-muted);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    font-size: 0.7rem;
    font-weight: 500;
    position: relative;
}

.bottom-nav-item i {
    font-size: 1.35rem;
    transition: var(--transition);
}

.bottom-nav-item.active {
    color: var(--primary);
}

.bottom-nav-item.active i {
    transform: scale(1.1);
}

.bottom-nav-item.active::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 3px;
    background: var(--primary);
    border-radius: 0 0 4px 4px;
}

.bottom-nav-item:hover { color: var(--primary); }

.bottom-nav-center {
    position: relative;
}

.bottom-nav-fab {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 4px 14px rgba(11,85,99,.35);
    margin-bottom: 3px;
    margin-top: -10px;
    transition: var(--transition);
    text-decoration: none;
}

.bottom-nav-fab:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(11,85,99,.45);
    color: var(--white);
}

/* ============================================================
   RESPONSIVE — chrome only (header/footer/bottom-nav swap)
   ============================================================ */
@media (max-width: 768px) {
    .navbar { display: none !important; }
    .mobile-header { display: flex !important; }
    .footer { display: none !important; }
    .bottom-nav { display: block !important; }

    body {
        padding-top: 58px;
        padding-bottom: calc(68px + env(safe-area-inset-bottom));
    }
}
