/* Base Navigation Styles - Minimalist Fixed */

:root {
  --nav-height: 56px;
  --nav-bg: rgba(255, 255, 255, 0.9);
  --nav-border: rgba(0, 0, 0, 0.06);
  --primary: #3964ff;
  --primary-hover: #2d50d6;
  --text-main: #111827;
  --text-muted: #6b7280;
  --header-spacing: 2.5rem; /* Spacing between header and content */
}

/* Ensure content starts below the fixed header */
body {
  padding-top: calc(var(--nav-height) + var(--header-spacing));
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main-content {
  flex: 1;
}

.app-header {
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--nav-border);
  position: fixed; /* Changed from sticky to fixed */
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.logo {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  text-decoration: none;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: opacity 0.2s ease;
}

.logo:hover {
  opacity: 0.75;
}

.logo img {
  width: auto;
  height: 24px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 0.5rem 0.85rem;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.nav-link:hover {
  color: var(--text-main);
  background: rgba(0, 0, 0, 0.04);
}

.nav-link.active {
  color: var(--primary);
  background: rgba(57, 100, 255, 0.06);
  font-weight: 600;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-sign-in {
  background: #111827;
  color: white;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.btn-sign-in:hover {
  background: #000;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.btn-sign-in svg {
  flex-shrink: 0;
}

/* User Menu */
.user-menu {
  position: relative;
}

.user-menu-trigger {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 2px;
  display: flex;
  align-items: center;
  border-radius: 50%;
  transition: opacity 0.2s ease;
}

.user-menu-trigger:hover {
  opacity: 0.8;
}

.header-avatar,
.header-avatar-placeholder {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(0,0,0,0.08);
}

.header-avatar-placeholder {
  background: linear-gradient(135deg, #3964ff 0%, #1b3fcf 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 13px;
}

.user-menu-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  box-shadow: 
    0 4px 6px -1px rgba(0, 0, 0, 0.05),
    0 10px 15px -3px rgba(0, 0, 0, 0.08);
  padding: 6px;
  z-index: 1001;
  transform-origin: top right;
  animation: menuFade 0.15s ease-out;
}

@keyframes menuFade {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.user-menu-header {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  margin-bottom: 4px;
}

.user-menu-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 2px;
}

.user-menu-email {
  font-size: 11px;
  color: var(--text-muted);
}

.user-menu-divider {
  height: 1px;
  background: rgba(0, 0, 0, 0.04);
  margin: 4px 0;
}

.user-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  color: #4b5563;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.user-menu-item:hover {
  background: rgba(0, 0, 0, 0.04);
  color: var(--text-main);
}

.user-menu-item svg {
  color: #9ca3af;
  flex-shrink: 0;
  width: 14px;
  height: 14px;
}

/* Footer */
.site-footer {
  background: #0a0a0a;
  padding: 3rem 2rem 1.5rem 2rem;
  margin-top: auto;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-main {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 2.5rem;
}

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

.footer-section h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: white;
  margin: 0 0 1rem 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-link {
  font-size: 0.875rem;
  color: #999;
  text-decoration: none;
  transition: all 0.2s ease;
  display: block;
}

.footer-link:hover {
  color: var(--primary);
  transform: translateX(4px);
}

.footer-social {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-top: 0.5rem;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: #999;
  text-decoration: none;
  border-radius: 50%;
  transition: all 0.2s ease;
  background: rgba(57, 100, 255, 0.05);
  border: 1px solid rgba(57, 100, 255, 0.1);
}

.social-icon:hover {
  background: rgba(57, 100, 255, 0.15);
  color: var(--primary);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.social-icon svg {
  width: 18px;
  height: 18px;
}

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 1.5rem;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8125rem;
  color: #666;
  margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
  :root {
    --nav-height: 52px;
    --header-spacing: 1.5rem;
  }
  
  .header-container {
    padding: 0 1rem;
    height: var(--nav-height);
  }
  
  .main-nav {
    display: none;
  }
  
  .logo {
    font-size: 17px;
  }
  
  .logo img {
    height: 22px;
  }
  
  .btn-sign-in {
    padding: 0.4rem 0.9rem;
    font-size: 12px;
  }
  
  .user-menu-dropdown {
    right: -4px;
    min-width: 180px;
  }
  
  .site-footer {
    padding: 2rem 1.5rem 1.5rem 1.5rem;
  }
  
  .footer-main {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
  }
  
  .footer-section h4 {
    margin-bottom: 0.75rem;
  }
  
  .footer-social {
    justify-content: flex-start;
    gap: 0.75rem;
  }
  
  .social-icon {
    width: 36px;
    height: 36px;
  }
  
  .social-icon svg {
    width: 16px;
    height: 16px;
  }
}

/* Page Templates (About, Contact, Privacy) */
.page-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

.page-content {
  padding: 3rem 0;
}

.page-header {
  margin-bottom: 3rem;
  text-align: center;
}

.page-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 0.75rem 0;
  letter-spacing: -0.02em;
}

.page-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin: 0;
}

.content-section {
  margin-bottom: 2.5rem;
}

.content-section h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-main);
  margin: 0 0 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.content-section h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-main);
  margin: 1.5rem 0 0.75rem 0;
}

.content-section p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-main);
  margin: 0 0 1rem 0;
}

.content-section a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.content-section a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

.feature-list,
.policy-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.feature-list li,
.policy-list li {
  padding: 0.75rem 0;
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.7;
  color: var(--text-main);
}

.feature-list li::before,
.policy-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
  font-size: 1.25rem;
}

.page-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.primary-btn,
.secondary-btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s ease;
  text-align: center;
}

.primary-btn {
  background: var(--primary);
  color: white;
}

.primary-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(57, 100, 255, 0.3);
}

.secondary-btn {
  background: transparent;
  color: var(--text-main);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.secondary-btn:hover {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.2);
}

/* Contact Page Styles */
.contact-info {
  display: grid;
  gap: 2rem;
  margin-top: 1.5rem;
}

.contact-item {
  padding: 1.5rem;
  background: rgba(57, 100, 255, 0.02);
  border: 1px solid rgba(57, 100, 255, 0.1);
  border-radius: 12px;
}

.contact-item h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-main);
  margin: 0 0 0.5rem 0;
}

.contact-item p {
  margin: 0.5rem 0;
  color: var(--text-main);
  line-height: 1.6;
}

.contact-note {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.5rem !important;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: rgba(57, 100, 255, 0.05);
  border: 1px solid rgba(57, 100, 255, 0.1);
  border-radius: 8px;
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.social-link:hover {
  background: rgba(57, 100, 255, 0.1);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

.social-link svg {
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .page-header h1 {
    font-size: 2rem;
  }
  
  .page-subtitle {
    font-size: 1rem;
  }
  
  .content-section {
    margin-bottom: 2rem;
  }
  
  .content-section h2 {
    font-size: 1.25rem;
  }
  
  .page-cta {
    flex-direction: column;
  }
  
  .primary-btn,
  .secondary-btn {
    width: 100%;
  }
  
  .contact-info {
    gap: 1.5rem;
  }
  
  .contact-item {
    padding: 1.25rem;
  }
  
  .social-links {
    flex-direction: column;
  }
  
  .social-link {
    width: 100%;
    justify-content: center;
  }
}