/* ═══════════════════════════════════════════════════════════
   NAVIGATION LAYOUT FIXES - Prevent Text Cutting & Overlapping
   ═══════════════════════════════════════════════════════════ */

/* Fix nav-brand to display properly without overlapping */
.nav-brand {
  flex-shrink: 0;
  min-width: 0;
  max-width: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-brand > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-brand-name {
  white-space: nowrap;
  display: block;
  line-height: 1.2;
  font-size: 0.85rem !important;
}

.nav-brand-sub {
  white-space: nowrap;
  display: block;
  line-height: 1.2;
  font-size: 0.5rem !important;
}

/* Ensure nav-inner has proper spacing and doesn't allow overlap */
.nav-inner {
  gap: 16px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Make nav-links flexible but don't let it shrink too much */
.nav-links {
  flex: 0 1 auto;
  min-width: 0;
  justify-content: center;
  flex-wrap: nowrap;
}

.nav-links a {
  flex-shrink: 0;
  white-space: nowrap;
}

/* Ensure nav-actions doesn't shrink */
.nav-actions {
  flex-shrink: 0;
  display: flex;
  gap: 10px;
}

/* Ensure nav-social doesn't shrink */
.nav-social {
  flex-shrink: 0;
  display: flex;
  gap: 8px;
}

/* ═══ RESPONSIVE FIXES ═══ */

@media (max-width: 1400px) {
  .nav-brand {
    max-width: none;
  }
  
  .nav-brand-name {
    font-size: 0.8rem !important;
  }
  
  .nav-brand-sub {
    font-size: 0.48rem !important;
  }
  
  .nav-links a {
    padding: 8px 8px;
    font-size: 0.75rem;
  }
  
  .nav-inner {
    gap: 10px;
  }
}

@media (max-width: 1200px) {
  .nav-brand {
    max-width: none;
  }
  
  .nav-brand-name {
    font-size: 0.75rem !important;
  }
  
  .nav-brand-sub {
    font-size: 0.45rem !important;
  }
  
  .nav-links a {
    padding: 8px 6px;
    font-size: 0.7rem;
  }
  
  .nav-inner {
    gap: 8px;
  }
}

@media (max-width: 1024px) {
  .nav-brand {
    max-width: none;
  }
  
  .nav-brand-name {
    font-size: 0.7rem !important;
  }
  
  .nav-brand-sub {
    font-size: 0.42rem !important;
  }
  
  /* Hide social icons on tablets to save space */
  .nav-social {
    display: none !important;
  }
  
  .nav-actions {
    gap: 8px;
  }
  
  .nav-actions .btn {
    padding: 8px 12px !important;
    font-size: 0.75rem !important;
  }
  
  .nav-links a {
    padding: 6px 5px;
    font-size: 0.68rem;
  }
}

@media (max-width: 768px) {
  .nav-inner {
    padding: 0 12px;
    gap: 8px;
  }
  
  .nav-brand {
    max-width: none;
    flex: 1;
  }
  
  .nav-brand img {
    height: 38px !important;
    width: 38px !important;
    flex-shrink: 0;
  }
  
  .nav-brand > div {
    flex: 1;
    min-width: 0;
  }
  
  .nav-brand-name {
    font-size: 0.75rem !important;
    line-height: 1.1;
  }
  
  .nav-brand-sub {
    font-size: 0.48rem !important;
    line-height: 1.1;
  }
  
  /* Hide nav-links on mobile (use hamburger menu) */
  .nav-links {
    display: none;
  }
  
  /* Hide nav-actions on mobile (use hamburger menu) */
  .nav-actions {
    display: none;
  }
  
  /* Hide nav-social on mobile */
  .nav-social {
    display: none !important;
  }
  
  /* Show hamburger menu */
  .nav-toggle {
    display: block !important;
    flex-shrink: 0;
  }
}

@media (max-width: 480px) {
  .nav-inner {
    padding: 0 10px;
    gap: 6px;
  }
  
  .nav-brand {
    max-width: none;
    flex: 1;
  }
  
  .nav-brand img {
    height: 35px !important;
    width: 35px !important;
  }
  
  .nav-brand-name {
    font-size: 0.7rem !important;
  }
  
  .nav-brand-sub {
    font-size: 0.45rem !important;
  }
}

@media (max-width: 380px) {
  .nav-brand-name {
    font-size: 0.65rem !important;
  }
  
  .nav-brand-sub {
    font-size: 0.42rem !important;
  }
}

/* ═══ PREVENT OVERFLOW ═══ */
.nav {
  overflow-x: hidden;
}

.nav-inner {
  overflow: visible;
}

/* Ensure container doesn't cause overflow */
.nav .container {
  overflow: visible;
}

/* Force proper layout - prevent overlapping */
.nav-inner > * {
  flex-shrink: 0;
}

.nav-links {
  flex-shrink: 1;
  min-width: 0;
}

