/* Asosiy o'zgaruvchilar */
:root {
    --primary-color: #3b82f6;
    --primary-light: #60a5fa;
    --primary-dark: #2563eb;
    --secondary-color: #06b6d4;
    --accent-color: #8b5cf6;
    --light-color: #f8fafc;
    --dark-color: #1e293b;
    --gray-light: #e2e8f0;
    --gray: #94a3b8;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.15);
    --radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Umumiy stillar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    color: var(--dark-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid var(--gray-light);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px; /* mobilde sıkışmayı azaltır */
}

/* PC görünüm: tagline logonun altına insin, küçük dursun */
.nav-brand{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  line-height:1.05;
  min-width: 0;
    padding-right: 20px;
  border-right: 2px solid var(--gray-light);
}

.nav-brand .logo{
  display:flex;
  align-items:center;
  gap:10px;
}

.tagline-under-logo{
  margin-top:4px;
  font-size:12px;
  opacity:.75;
  font-weight:400;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark-color);
}

.logo i {
    color: var(--primary-color);
    font-size: 2rem;
}

.logo .hub {
    color: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    font-size: 0.700rem;
    color: var(--gray);
    font-weight: 500;
    padding-top: 10px;
}

/* Hamburger button (header.php'deki #navToggle) */
.nav-toggle{
  display:none; /* desktop hidden */
  width:44px;
  height:44px;
  border-radius: 12px;
  border: 1px solid var(--gray-light);
  background:#fff;
  cursor:pointer;
  align-items:center;
  justify-content:center;
  gap:5px;
  padding: 10px;
  transition: var(--transition);
}
.nav-toggle:hover{
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}
.nav-toggle span{
  display:block;
  height:2px;
  width: 18px;
  background: var(--dark-color);
  border-radius: 2px;
}

/* Menu */
.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    transition: var(--transition);
}

.nav-link:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    color: white;
    transform: translateY(-2px);
}

.nav-link.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    min-width: 0;
}

.notification {
    position: relative;
    cursor: pointer;
    font-size: 1.25rem;
    color: var(--dark-color);
    transition: var(--transition);
}

.notification:hover {
    color: var(--primary-color);
}

.notification-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, var(--danger), #ff6b6b);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* user-profile içindeki button reset */
.user-profile-btn{
  appearance: none;
  border: 0;
  background: transparent;
  padding: 8px 10px;
  border-radius: var(--radius);
  cursor: pointer;
  display:flex;
  align-items:center;
  gap: 10px;
  width: 100%;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--gray-light);
    cursor: pointer;
    transition: var(--transition);
}

.user-profile:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.user-profile img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-light);
}

.user-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.username {
    font-weight: 600;
    font-size: 0.875rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
}

.user-status {
    font-size: 0.75rem;
    color: var(--success);
    font-weight: 500;
}

/* Main Content */
.main-content {
    flex: 1;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--dark-color), #0f172a);
    color: white;
    padding: 4rem 0 2rem;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col ul li a {
    color: var(--gray-light);
    text-decoration: none;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: white;
    padding-left: 5px;
}

.footer-col ul li i {
    margin-right: 0.5rem;
    color: var(--primary-light);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    font-size: 1.25rem;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.newsletter {
    margin-top: 1.5rem;
}

.newsletter input {
    width: 100%;
    padding: 0.75rem;
    border: none;
    border-radius: var(--radius);
    margin-bottom: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.newsletter input::placeholder {
    color: var(--gray);
}

.btn-subscribe {
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-subscribe:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--gray-light);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
}

/* Responsive */
@media (max-width: 1024px) {
    .nav-menu {
        gap: 1rem;
    }
}

/* =========================================================
   ✅ MOBİL NAV (BOZMADAN)
   - ÜST SATIR: [toggle] [logo ortada] [actions]
   - Menü: hamburger ile açılır, altta kart gibi görünür
   - Overlap / taşma bitiyor
========================================================= */
@media (max-width: 768px) {
  .navbar{
    padding: 12px 0;
  }

  .navbar .container{
    /* flex yerine grid: overlap bitirir */
    display: grid;
    grid-template-columns: 44px 1fr auto;
    grid-template-areas:
      "toggle brand actions"
      "menu   menu  menu";
    align-items: center;
    gap: 10px;
    position: relative; /* dropdown menü bunun içinde konumlansın */
  }

  .nav-brand{
    grid-area: brand;
    align-items: center;
    text-align: center;
    min-width: 0;
  }

  /* logo ortada + taşma önle */
  .logo{
    justify-content: center;
    font-size: 1.45rem;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .logo i{ font-size: 1.7rem; }

  .tagline{
    padding-top: 4px;
    font-size: 0.68rem;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav-toggle{
    grid-area: toggle;
    display: inline-flex;
    justify-self: start;
  }

  .nav-actions{
    grid-area: actions;
    justify-self: end;
    gap: 10px;
    min-width: 0;
  }

  .notification{ font-size: 1.15rem; }

  /* username mobilde daha kısa */
  .username{ max-width: 140px; }

  /* Menü varsayılan kapalı */
  .nav-menu{
    grid-area: menu;
    display: none;
  }

  /* Açılınca: altta panel */
  body.nav-open .nav-menu{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;

    margin-top: 6px;
    padding: 12px;

    background: rgba(255,255,255,0.98);
    border: 1px solid var(--gray-light);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
  }

  body.nav-open .nav-link{
    justify-content: center;
    padding: 10px 10px;
    border-radius: 14px;
    border: 1px solid rgba(0,0,0,0.06);
    min-width: 0;
    transform: none;
  }
  body.nav-open .nav-link:hover{ transform: none; }

  body.nav-open .nav-link span{
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
  }
}

/* Çok küçük ekran: menü 1 kolon + profil yazısını daha kompakt yap */
@media (max-width: 420px) {
  body.nav-open .nav-menu{
    grid-template-columns: 1fr;
  }
  .username{ max-width: 110px; }
}

/* Navbar auth buttons */
.auth-actions{
  display:flex;
  gap:10px;
  align-items:center;
}

.btn-login,
.btn-register{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 14px;
  border-radius:10px;
  font-weight:600;
  text-decoration:none;
  border:1px solid var(--gray-light);
  color:var(--dark-color);
  background:#fff;
  transition: var(--transition);
}

.btn-login:hover{
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-1px);
}

.btn-register{
  border:none;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color:#fff;
}

.btn-register:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(59,130,246,0.25);
}

/* Feed */
.post-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.post-actions button {
  background: transparent;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
}

.post-actions button:hover {
  background: rgba(0,0,0,0.04);
}

.like-btn{
    border:none;
    background:none;
    cursor:pointer;
    font-size:15px;
}

.like-btn i{
    color:#999;
    transition:.2s;
}

.like-btn.liked i{
    color:#e53935;
}

/* Auth (Login/Register/Profile) */
.auth-wrap{
  max-width: 520px;
  padding: 30px 0;
}

.auth-card{
  padding: 28px;
}

.auth-title{
  margin: 0 0 8px;
  text-align: center;
}

.auth-subtitle{
  margin: 0 0 18px;
  opacity: .8;
  text-align: center;
}

.auth-alert{
  border: 1px solid rgba(231, 76, 60, .35);
  background: rgba(231, 76, 60, .06);
  border-radius: 14px;
  padding: 12px 14px;
  margin: 12px 0 16px;
}

.auth-alert ul{
  margin: 0;
  padding-left: 18px;
}

.auth-field{
  margin-bottom: 14px;
}

.auth-label{
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

.auth-input{
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.12);
  outline: none;
  background: #fff;
  transition: box-shadow .15s ease, border-color .15s ease;
}

.auth-input:focus{
  border-color: rgba(52, 152, 219, .55);
  box-shadow: 0 0 0 4px rgba(52, 152, 219, .12);
}

.auth-input-wrap{
  position: relative;
}

.auth-input--with-icon{
  padding-right: 44px;
}

.auth-icon-btn{
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(0,0,0,.02);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .15s ease, transform .15s ease;
}

.auth-icon-btn:hover{
  background: rgba(0,0,0,.05);
}

.auth-icon-btn:active{
  transform: translateY(-50%) scale(.98);
}

.auth-links{
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  opacity: .9;
}

/* Modern login submit button */
.auth-submit{
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 0;
  background: linear-gradient(135deg, #2f80ed, #56ccf2);
  color: #fff;
  font-weight: 700;
  letter-spacing: .2px;
  box-shadow: 0 12px 26px rgba(47, 128, 237, .28);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.auth-submit:hover{
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(47, 128, 237, .34);
  filter: brightness(1.02);
}

.auth-submit:active{
  transform: translateY(0);
  box-shadow: 0 10px 22px rgba(47, 128, 237, .26);
  filter: brightness(.98);
}

.auth-submit:disabled{
  opacity: .7;
  cursor: not-allowed;
  transform: none;
  filter: grayscale(.15);
  box-shadow: 0 10px 22px rgba(47, 128, 237, .18);
}

/* Profile top */
.profile-top{
  display:flex;
  gap:14px;
  align-items:center;
  margin: 10px 0 18px;
}

.profile-avatar img{
  width:64px;
  height:64px;
  border-radius: 18px;
  border: 1px solid rgba(0,0,0,.08);
  background: #fff;
}

.profile-name{
  font-weight: 700;
  font-size: 16px;
}

.profile-hint{
  opacity: .75;
  font-size: 13px;
  margin-top: 2px;
}

.auth-help{
  margin-top: 6px;
  font-size: 12px;
  opacity: .75;
}

/* Profile actions */
.profile-actions{
  display:flex;
  gap:10px;
  align-items:center;
  margin-top: 14px;
}

.profile-cancel{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 12px 14px;
  border-radius: 14px;
  text-decoration:none;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(0,0,0,.02);
  white-space: nowrap;
}

.profile-cancel:hover{
  background: rgba(0,0,0,.05);
}

/* Mobile fix: alt alta */
@media (max-width: 520px){
  .profile-actions{
    flex-direction: column;
    align-items: stretch;
  }
  .profile-actions .auth-submit,
  .profile-actions .profile-cancel{
    width: 100%;
  }
  .profile-actions .profile-cancel{
    text-align: center;
  }
}

/* USER MENU DROPDOWN */
.user-menu{
  position: relative;
}

.user-dropdown{
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 220px;
  z-index: 9999;
  display: none;

  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0,0,0,.14);
  padding: 8px;
}

.user-menu.is-open .user-dropdown{
  display: block;
}

.user-dd-sep{
  height: 1px;
  background: rgba(0,0,0,.08);
  margin: 8px 6px;
}

.user-dd-item{
  display:flex;
  align-items:center;
  gap:10px;
  width:100%;
  text-decoration:none;
  padding:10px 12px;
  border-radius:12px;
  color: var(--dark-color);
  font-weight: 600;
}

.user-dd-item i{
  width: 18px;
  text-align: center;
  opacity: .9;
}

.user-dd-item:hover{
  background: rgba(0,0,0,.04);
}

.user-dd-item.danger{
  color: var(--danger);
}

.user-dd-item.danger:hover{
  background: rgba(239,68,68,.10);
}

.user-dd-form{
  margin: 0;
}

.user-dd-form .user-dd-item{
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font: inherit;
  width: 100%;
  padding: 10px 12px;
}

/* Round friend request button */
.btn-icon-action.btn-icon-connect{
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #2563eb;
  color: #fff;
  cursor: pointer;
  transition: transform .15s ease, opacity .15s ease;
}
.btn-icon-action.btn-icon-connect:hover{ transform: translateY(-1px); }
.btn-icon-action.btn-icon-connect:disabled{ opacity: .55; cursor: not-allowed; }

/* RIGHTBAR - MESSAGES (PRO) */
.messages-list{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top:12px;
}

.message-item{
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 12px;
  border:1px solid rgba(16,24,40,.08);
  border-radius:14px;
  background:#fff;
  text-decoration:none !important;
  transition:transform .12s ease, box-shadow .12s ease, border-color .12s ease;
  position:relative;
  min-height:64px;
}

.message-item:hover{
  transform:translateY(-1px);
  border-color:rgba(59,130,246,.25);
  box-shadow:0 10px 24px rgba(16,24,40,.08);
}

.message-item img{
  width:40px;
  height:40px;
  border-radius:12px;
  flex:0 0 40px;
  border:1px solid rgba(16,24,40,.08);
  background:#f8fafc;
}

.message-item .msg-arrow{
  margin-left:auto;
  width:32px;
  height:32px;
  border-radius:10px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#64748b;
  background:rgba(2,6,23,.04);
  flex:0 0 32px;
}

.message-info{
  min-width:0;
  flex:1;
  display:flex;
  flex-direction:column;
  gap:4px;
}

.message-top{
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
}

.message-info h4{
  margin:0;
  font-size:14px;
  font-weight:700;
  color:#0f172a !important;
  line-height:1.15;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.message-preview{
  margin:0;
  font-size:12.5px;
  color:#64748b;
  line-height:1.2;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.message-time{
  font-size:11.5px;
  color:#94a3b8;
}

.message-item.unread{
  border-color:rgba(59,130,246,.28);
  background:linear-gradient(0deg, rgba(59,130,246,.06), rgba(59,130,246,.02));
}

.message-item.unread .message-preview{
  color:#1d4ed8;
  font-weight:600;
}

.msg-badge{
  margin-left:auto;
  font-size:11px;
  font-weight:700;
  padding:3px 8px;
  border-radius:999px;
  background:#3b82f6;
  color:#fff;
  line-height:1;
}

.messages-cta-btn{
  margin-top:12px;
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 12px;
  border-radius:14px;
  background:#0f172a;
  color:#fff !important;
  text-decoration:none !important;
  font-weight:700;
  box-shadow:0 12px 26px rgba(15,23,42,.18);
  transition:transform .12s ease, box-shadow .12s ease, opacity .12s ease;
}

.messages-cta-btn:hover{
  transform:translateY(-1px);
  box-shadow:0 16px 34px rgba(15,23,42,.22);
  opacity:.96;
}

.messages-cta-btn .right{
  margin-left:auto;
  opacity:.9;
}

.networking-rightbar .sidebar-card .section-header{
  margin-bottom:10px;
}

.networking-rightbar .message-count{
  color:#64748b;
  font-weight:600;
}
/* =========================
   NAVBAR MOBILE - OVERLAP FIX
   ========================= */

/* Küçük ekranlarda sağ tarafı daralt, logo taşmasın */
@media (max-width: 768px){
  .navbar .container{
    grid-template-columns: 44px minmax(0, 1fr) auto; /* brand shrink edebilsin */
  }

  .nav-actions{
    min-width: 0;
    max-width: 170px;            /* ✅ sağ alanı sınırla */
    justify-self: end;
  }

  .nav-brand{
    min-width: 0;
  }

  .logo, .tagline{
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* Daha küçük ekran: profil yazılarını kapat, sadece avatar kalsın */
@media (max-width: 520px){
  .nav-actions{
    max-width: 120px;            /* ✅ daha da dar */
    gap: 8px;
  }

  .user-profile-btn{
    padding: 6px 8px;
    gap: 8px;
  }

  .user-profile .user-info{
    display: none;               /* ✅ username + online gizle */
  }

  .user-profile-btn i.fa-chevron-down{
    margin-left: 2px;
  }

  .user-profile img{
    width: 34px;
    height: 34px;
  }

  .notification{
    font-size: 1.05rem;
  }
}

/* En küçük ekran: ok ikonunu da gizle (daha kompakt) */
@media (max-width: 380px){
  .user-profile-btn i.fa-chevron-down{
    display: none;
  }
}

/* =========================
   MOBILE NAV POLISH
   ========================= */

/* 1) "..." yerine hamburger 3 çizgi görünümü */
.nav-toggle{
  display: inline-flex;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.08);
  background: #fff;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  align-items: center;
  justify-content: center;
  padding: 0;
  gap: 0;
}

.nav-toggle span{
  display:block;
  width: 18px;
  height: 2px;
  background: #0f172a;
  border-radius: 999px;
  margin: 2.5px 0;
  transition: transform .2s ease, opacity .2s ease;
}

/* Menü açıkken X’e dönüşsün (isteğe bağlı ama daha modern) */
body.nav-open .nav-toggle span:nth-child(1){
  transform: translateY(4.5px) rotate(45deg);
}
body.nav-open .nav-toggle span:nth-child(2){
  opacity: 0;
}
body.nav-open .nav-toggle span:nth-child(3){
  transform: translateY(-4.5px) rotate(-45deg);
}

/* 2) Mobil menü kart gibi dursun + butonlar düzgün */
@media (max-width: 768px){

  /* Navbar daha ince ve düzenli */
  .navbar{
    padding: 10px 0;
  }

  /* Menü alanı (grid) daha “kaba” durmasın */
  .nav-menu{
    gap: 10px;
    padding: 10px;
    border-radius: 16px;
    background: rgba(255,255,255,0.85);
    border: 1px solid rgba(15,23,42,0.06);
    box-shadow: 0 18px 45px rgba(0,0,0,0.10);
  }

  /* Default (inactive) butonlar BEYAZ */
  .nav-link{
    background: #fff;
    border: 1px solid rgba(15,23,42,0.08);
    box-shadow: 0 6px 16px rgba(15,23,42,0.06);
    color: #0f172a;
  }

  .nav-link:hover{
    transform: none;
    background: #fff;
  }

  /* Active = MAVİ */
  .nav-link.active{
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 10px 24px rgba(59,130,246,0.28);
  }

  .nav-link.active i,
  .nav-link.active span{
    color: #fff;
  }
}

/* 3) Eğer mobilde 1 tane buton boş/beyaz kutu çıkıyorsa:
      Bu genelde eski .nav-link min-height/padding çakışmasıdır */
@media (max-width: 520px){
  .nav-link{
    min-height: 44px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap: 10px;
  }
}

/* =========================
   NAVBAR FIX (Desktop + Mobile)
   ========================= */

/* Genel navbar hizalama */
.navbar .container{
  display:flex;
  align-items:center;
  gap:16px;
}

/* Desktop: hamburger gizli, menü yatay */
.nav-toggle{ display:none; }

.nav-menu{
  display:flex;
  align-items:center;
  gap:10px;
  flex: 1;
}

.nav-actions{
  margin-left:auto;
  display:flex;
  align-items:center;
  gap:12px;
}

/* Hamburger görünümü: 3 çizgi üst üste */
.nav-toggle{
  width:44px;
  height:44px;
  border:1px solid #e5e7eb;
  background:#fff;
  border-radius:12px;
  cursor:pointer;
  padding:10px;
}

.nav-toggle span{
  display:block;            /* ✅ en kritik satır */
  width:22px;
  height:2px;
  margin:4px 0;             /* ✅ üst üste dursun */
  background:#0f172a;
  border-radius:2px;
}

/* Mobil düzen */
@media (max-width: 900px){
  /* Mobilde hamburger görünsün */
  .nav-toggle{ display:flex; flex-direction:column; justify-content:center; align-items:center; }

  /* Mobilde order: sol hamburger, orta logo, sağ profil */
  .nav-brand{ order:2; flex:1; }
  .nav-toggle{ order:1; }
  .nav-actions{ order:3; margin-left:0; }

  /* Mobilde normal menü gizli (body.nav-open ile açılacak) */
  .nav-menu{
    position: absolute;
    top: 72px;              /* navbar yüksekliğine göre ayarla */
    left: 12px;
    right: 12px;
    flex-direction: column;
    align-items: stretch;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 10px;
    box-shadow: 0 12px 30px rgba(2,6,23,.12);

    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    z-index: 999;
  }

  body.nav-open .nav-menu{
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  /* Mobilde linkler full genişlik */
  .nav-link{
    width:100%;
    justify-content:flex-start;
    padding:12px 14px;
    border-radius:12px;
  }

  /* Navbar container relative olmalı ki menu doğru yerde açılsın */
  .navbar{ position:relative; }
}

/* Hamburger icon image */
.nav-toggle img{
  width:22px;
  height:22px;
  display:block;
  pointer-events:none;
}
/* Calendar dot fix */
.calendar-section .calendar-day.has-deadline {
  position: relative;
}

.calendar-section .calendar-day .deadline-dot{
  position: absolute;
  left: 50%;
  bottom: 6px;
  transform: translateX(-50%);
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(59,130,246,.15);
  display: inline-block;
  pointer-events: none;
}

/* Eğer bazı stiller span'ı gizliyorsa bunu da ekle */
.calendar-section .calendar-day.has-deadline .deadline-dot{
  opacity: 1 !important;
  visibility: visible !important;
}