/* =========================================================================
   USER COMPONENTS - Navbar & Footer
   Scoped styling to prevent conflicts with admin and other pages
   Use .user-navbar and .user-footer as root classes
   ========================================================================= */

/* ========== USER NAVBAR ========== */

.user-navbar {
  width: 100%;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 900;
  border-bottom: 1px solid #e5e7eb;
}

.user-navbar-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.user-navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: #1e293b;
  text-decoration: none;
  transition: color 0.2s ease;
}

.user-navbar-brand i {
  color: #3b82f6;
  font-size: 1.5rem;
}

.user-navbar-brand:hover {
  color: #3b82f6;
}

.user-navbar-center {
  flex: 1;
  display: flex;
  justify-content: center;
}

.user-navbar-nav {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
  align-items: center;
  flex-wrap: nowrap;
}

.user-navbar-nav li {
  margin: 0;
  padding: 0;
}

.user-navbar-nav a {
  color: #64748b;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
  padding: 0.5rem 0;
  position: relative;
  white-space: nowrap;
}

.user-navbar-nav a:hover {
  color: #3b82f6;
}

.user-navbar-nav a.active {
  color: #3b82f6;
}

.user-navbar-nav a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: #3b82f6;
  border-radius: 1px;
}

.user-navbar-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

/* Burger Menu Toggle */
.user-navbar-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 10;
}

.user-navbar-toggle span {
  width: 30px;
  height: 3px;
  background: #1e293b;
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.user-navbar-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.user-navbar-toggle.active span:nth-child(2) {
  opacity: 0;
}

.user-navbar-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Navigation Menu Wrapper */
.user-navbar-menu {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 2rem;
}

.user-navbar-auth-buttons {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.user-btn-login {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  color: #3b82f6;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}

.user-btn-login:hover {
  background: #eff6ff;
  border-color: #dbeafe;
}

.user-btn-signup {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(59, 130, 246, 0.3);
  white-space: nowrap;
}

.user-btn-signup:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.user-navbar-user-section {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.user-navbar-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.user-navbar-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
  cursor: pointer;
  transition: all 0.2s ease;
}

.user-navbar-avatar:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.user-navbar-user-name {
  font-size: 0.9rem;
  color: #334155;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 260px;
}

.user-navbar-logout {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.25rem;
  color: #64748b;
  padding: 0.25rem;
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
}

.user-navbar-logout:hover {
  color: #ef4444;
}

/* ========== USER FOOTER ========== */

.user-footer {
  width: 100%;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #e2e8f0;
  padding: 3rem 0 1.5rem;
  margin-top: auto;
}

.user-footer-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.user-footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.user-footer-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.user-footer-section h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #f1f5f9;
  margin: 0 0 0.5rem 0;
}

.user-footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.4rem;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 0.75rem;
}

.user-footer-brand i {
  color: #3b82f6;
  font-size: 1.5rem;
}

.user-footer-description {
  color: #cbd5e1;
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

.user-footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.user-footer-social a {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 0.5rem;
  color: #60a5fa;
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 1.1rem;
}

.user-footer-social a:hover {
  background: rgba(59, 130, 246, 0.2);
  color: #3b82f6;
  transform: translateY(-2px);
}

.user-footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.user-footer-links a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.user-footer-links a:hover {
  color: #60a5fa;
}

.user-footer-links a i {
  font-size: 0.7rem;
  opacity: 0.7;
}

.user-footer-contact {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.user-contact-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.user-contact-item i {
  color: #3b82f6;
  font-size: 1.1rem;
  margin-top: 0.2rem;
}

.user-contact-item > div {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.user-contact-item > div > div:first-child {
  color: #94a3b8;
  font-size: 0.85rem;
  font-weight: 500;
}

.user-contact-item a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.user-contact-item a:hover {
  color: #60a5fa;
}

.user-contact-item span {
  color: #cbd5e1;
  font-size: 0.9rem;
}

.user-footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.user-footer-copyright {
  color: #94a3b8;
  font-size: 0.85rem;
  margin: 0;
}

.user-gradient-text {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
}

.user-footer-links-bottom {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.user-footer-links-bottom a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s ease;
}

.user-footer-links-bottom a:hover {
  color: #60a5fa;
}

/* ========== RESPONSIVE ========== */

/* Tablet screens - show burger menu at 942px */
@media (max-width: 1024px) {
  .user-navbar-toggle {
    display: flex;
    position: relative;
    z-index: 1001;
  }

  .user-navbar-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: #ffffff;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 5rem 2rem 2rem;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    overflow-y: auto;
    visibility: visible;
  }

  .user-navbar-menu.active {
    right: 0;
    visibility: visible;
  }

  .user-navbar-container {
    padding: 1rem 1.5rem;
    flex-wrap: nowrap;
    justify-content: space-between;
  }

  .user-navbar-center {
    width: 100%;
    justify-content: flex-start;
    margin-top: 0;
  }

  .user-navbar-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: 100%;
  }

  .user-navbar-nav li {
    width: 100%;
    border-bottom: 1px solid #e5e7eb;
  }

  .user-navbar-nav a {
    display: block;
    padding: 1rem 0;
    font-size: 1rem;
  }

  .user-navbar-actions {
    width: 100%;
    flex-direction: column;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
  }

  .user-navbar-auth-buttons {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }

  .user-btn-login,
  .user-btn-signup {
    width: 100%;
    justify-content: center;
    padding: 0.75rem 1rem;
  }

  .user-navbar-user-section {
    flex-direction: column;
    width: 100%;
    gap: 1rem;
  }

  .user-navbar-user {
    width: 100%;
    justify-content: space-between;
  }

  .user-footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .user-footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 768px) {
  /* Mobile specific adjustments if needed */
}
