/* assets/css/header.css */
:root { 
    --primary-green: #10b981; 
    --primary-hover: #059669; 
    --border-color: #e2e8f0; 
    --text-dark: #0f172a; 
    --text-muted: #64748b; 
    --bg-light: #f8fafc; 
    --transition-speed: 0.3s;
}

body { 
    font-family: 'Inter', sans-serif; 
    background-color: var(--bg-light); 
    margin: 0; padding: 0; 
    color: var(--text-dark); 
    overflow-x: hidden; 
}

/* --- Header Global --- */
header { 
    background: rgba(255, 255, 255, 0.98); 
    backdrop-filter: blur(10px);
    padding: 12px 5%; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    border-bottom: 1px solid var(--border-color); 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    box-shadow: 0 4px 20px -5px rgba(0,0,0,0.05); 
}

/* লোগো এবং টেক্সট যেন কোনোভাবেই না ভাঙে */
.logo-wrapper { 
    display: flex; 
    align-items: center; 
    text-decoration: none; 
    gap: 8px; 
    flex-wrap: nowrap; /* ভাঙতে দিবে না */
}

/* নতুন Favicon লোগোর ডিজাইন */
.header-logo {
    width: clamp(28px, 6vw, 36px); /* স্ক্রিন অনুযায়ী অটো ছোট/বড় হবে */
    height: auto;
    object-fit: contain;
    flex-shrink: 0;
}

/* ওয়েবসাইটের নাম ফিক্সড (কখনো ভাঙবে না) */
.logo-text { 
    font-size: clamp(14px, 4vw, 22px); /* মোবাইলে ছোট, ডেস্কটপে বড় হবে */
    font-weight: 700; 
    color: var(--text-dark); 
    white-space: nowrap !important; /* হাইফেন থাকলেও নিচে নামবে না */
    word-break: keep-all !important;
    letter-spacing: -0.5px;
}
.logo-text span { color: var(--primary-green); }

/* --- Desktop Navigation --- */
.desktop-nav { display: flex; align-items: center; gap: 25px; }
.desktop-nav a { text-decoration: none; color: var(--text-dark); font-size: 15px; font-weight: 500; transition: var(--transition-speed); display: flex; align-items: center; gap: 8px;}
.desktop-nav a:hover { color: var(--primary-green); }

.desktop-auth { display: flex; align-items: center; gap: 15px; border-left: 1px solid var(--border-color); padding-left: 20px; }
.btn-login { color: var(--text-dark) !important; font-weight: 600 !important; text-decoration: none; transition: 0.3s;}
.btn-login:hover { color: var(--primary-green) !important; }
.btn-signup { background: linear-gradient(135deg, var(--primary-green), var(--primary-hover)); color: white !important; padding: 10px 18px; border-radius: 6px; font-weight: 600 !important; box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25); text-decoration: none; transition: 0.3s;}
.btn-signup:hover { transform: translateY(-2px); box-shadow: 0 6px 15px rgba(16, 185, 129, 0.4); }

.user-dropdown { position: relative; cursor: pointer; display: flex; align-items: center; gap: 8px; font-weight: 600;}
.user-avatar-small { width: 32px; height: 32px; border-radius: 50%; background: var(--primary-green); color: white; display: flex; align-items: center; justify-content: center; font-weight: 700; }

/* --- Mobile Menu Button --- */
.menu-btn { font-size: 22px; color: var(--text-dark); cursor: pointer; padding: 6px 10px; border-radius: 6px; display: none; }

/* --- Mobile Sidebar --- */
.sidebar { position: fixed; top: 0; right: -300px; width: 75%; max-width: 280px; height: 100vh; background-color: #ffffff; display: flex; flex-direction: column; z-index: 1050; box-shadow: -5px 0 30px rgba(0,0,0,0.15); transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
.sidebar.active { right: 0; }
.sidebar-header { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; border-bottom: 1px solid var(--bg-light); }
.sidebar-header h3 { margin: 0; font-size: 14px; color: var(--text-muted); text-transform: uppercase; font-weight: 700; }
.close-btn { background: #f1f5f9; border: none; width: 30px; height: 30px; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 14px; color: var(--text-muted); cursor: pointer; transition: 0.3s; }
.close-btn:hover { background: #fee2e2; color: #ef4444; transform: rotate(90deg);}

.sidebar-links { padding: 15px; display: flex; flex-direction: column; gap: 5px; overflow-y: auto; }
.sidebar-links a { text-decoration: none; color: var(--text-dark); font-size: 15px; font-weight: 500; display: flex; align-items: center; gap: 12px; padding: 12px 15px; border-radius: 8px; transition: 0.3s;}
.sidebar-links a i { font-size: 16px; color: #94a3b8; width: 22px; text-align: center; }
.sidebar-links a:hover { background-color: #ecfdf5; color: var(--primary-hover); transform: translateX(5px);}
.sidebar-links a:hover i { color: var(--primary-green); }
.sidebar-links hr { border: none; border-top: 1px solid #e2e8f0; margin: 10px 0; }

.menu-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: rgba(15, 23, 42, 0.6); backdrop-filter: blur(4px); z-index: 1040; visibility: hidden; opacity: 0; transition: all 0.4s ease; }
.menu-overlay.active { visibility: visible; opacity: 1; }

@media (max-width: 1024px) {
    .desktop-nav { display: none; }
    .menu-btn { display: block; }
}
@media (min-width: 1025px) {
    .sidebar, .menu-overlay { display: none !important; }
}