/* ============================================================
   HEADER COMPONENTS – Kazuma Ali Portfolio
   ============================================================ */

.header .log-btns {
    display: flex;
    align-items: center;
    gap: 0.8rem 1.2rem;
    flex-wrap: wrap;
}

.header .log-btns a {
    font-weight: 600;
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    background: var(--gradient-btn);
    color: #fff;
    font-size: 0.85rem;
    letter-spacing: 0.3px;
    transition: all var(--transition);
    box-shadow: 0 4px 16px rgba(78, 205, 196, 0.25);
}

.header .log-btns a:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 28px rgba(78, 205, 196, 0.40);
    background: var(--gradient-btn-hover);
}

/* ---------- LANGUAGE SWITCHER ---------- */
.language-switcher {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(78, 205, 196, 0.20);
    border-radius: 50px;
    padding: 0.3rem 1rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    backdrop-filter: blur(4px);
}
.language-switcher:hover,
.language-switcher:focus {
    border-color: #4ecdc4;
    background: rgba(78, 205, 196, 0.10);
    outline: none;
}
.language-switcher option {
    background: #0a1e28;
    color: #eaf4f0;
}
.lang-dropdown {
  position: relative;
}

.lang-current {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 1rem;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(78, 205, 196, 0.20);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  backdrop-filter: blur(4px);
  transition: all var(--transition);
}
.lang-current::-webkit-details-marker { display: none; }
.lang-current::marker { content: ""; }
.lang-current:hover {
  border-color: #4ecdc4;
  background: rgba(78, 205, 196, 0.10);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 140px;
  padding: 0.5rem;
  background: #0a1e28;
  border: 1px solid rgba(78, 205, 196, 0.20);
  border-radius: 12px;
}
[dir="rtl"] .lang-menu {
  left: auto;
  right: 0;
}

/* ---------- NOTIFICATIONS BELL ---------- */
.notifications-bell {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(78, 205, 196, 0.15);
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
}

.notifications-bell .badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #e74c3c;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    box-shadow: 0 2px 12px rgba(231, 76, 60, 0.4);
}

.notifications-dropdown {
    position: absolute;
    top: 58px;
    right: 0;
    width: 380px;
    max-height: 460px;
    overflow-y: auto;
    background: var(--bg-card);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    border: 1px solid rgba(78, 205, 196, 0.15);
    border-radius: var(--radius-md);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
    padding: 0.5rem 0;
    z-index: 2000;
}
[dir="rtl"] .notifications-dropdown {
    right: auto;
    left: 0;
}

.notifications-dropdown .notifications-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1.2rem;
    border-bottom: 1px solid rgba(78, 205, 196, 0.08);
    font-weight: 600;
    color: var(--text-primary);
}
.notifications-dropdown .notifications-header .mark-read-btn {
    background: var(--gradient-btn);
    border: none;
    padding: 0.25rem 1rem;
    border-radius: 50px;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}
.notifications-dropdown .notifications-header .mark-read-btn:hover {
    background: var(--gradient-btn-hover);
    transform: scale(1.03);
}

.notifications-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.notifications-list li {
    padding: 0.7rem 1.2rem;
    border-bottom: 1px solid rgba(78, 205, 196, 0.05);
    transition: background var(--transition);
    cursor: pointer;
}
.notifications-list li:hover {
    background: rgba(78, 205, 196, 0.06);
}
.notifications-list li.unread {
    border-left: 3px solid #4ecdc4;
}
[dir="rtl"] .notifications-list li.unread {
    border-left: none;
    border-right: 3px solid #4ecdc4;
}

.notifications-footer {
    padding: 0.7rem 1.2rem;
    text-align: center;
    border-top: 1px solid rgba(78, 205, 196, 0.08);
}
.notifications-footer a {
    font-weight: 600;
    font-size: 0.85rem;
}

#notificationsBell i {
    color: #ffffff !important;
}

#notificationsDropdown {
    display: none;
}

#notificationsBell svg,
.notifications-bell svg {
    width: 1.2rem;        /* match Font Awesome size */
    height: 1.2rem;
    display: inline-block;
    flex-shrink: 0;       /* prevent shrinking in flex */
}

/* Additional language switcher styles (from end of file) */
.language-switcher {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.lang-link {
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(78, 205, 196, 0.20);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--transition);
  backdrop-filter: blur(4px);
}
.lang-link:hover {
  border-color: #4ecdc4;
  background: rgba(78, 205, 196, 0.10);
  transform: translateY(-2px);
}