/* ==========================================================================
   Layout and Navigation Styles - Novaplex Docs
   Based on store.novaplex.xyz design
   ========================================================================== */

/* Main Layout */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
  background-attachment: fixed;
  color: #f8f9fa;
  font-family: 'Inter', sans-serif;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 40px;
  width: auto;
  margin-right: 0.75rem;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #00b4d8 0%, #4361ee 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-right: 0.25rem;
}

.logo-badge {
  font-size: 0.875rem;
  font-weight: 600;
  background: rgba(247, 37, 133, 0.9);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  text-shadow: 0 0 10px rgba(247, 37, 133, 0.7);
}

/* Navigation */
.main-nav {
  display: flex;
  align-items: center;
}

.main-nav a {
  text-decoration: none;
}

.nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  margin-right: 1.5rem;
}

.nav-link {
  color: #e2e8f0;
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
  transition: all 0.3s ease;
}

.nav-link:hover, 
.nav-link.active {
  color: #00b4d8;
  text-shadow: 0 0 8px rgba(0, 180, 216, 0.5);
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background: linear-gradient(90deg, #00b4d8, #4361ee);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* User Section */
.user-section {
  display: flex;
  align-items: center;
  margin-left: 1.5rem;
}

.user-dropdown {
  position: relative;
}

.user-btn {
  display: flex;
  align-items: center;
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 2rem;
  padding: 0.5rem 1rem;
  color: #f8f9fa;
  cursor: pointer;
  transition: all 0.3s ease;
}

.user-btn:hover {
  background: rgba(30, 41, 59, 0.8);
  box-shadow: 0 0 15px rgba(0, 180, 216, 0.3);
}

.user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  margin-right: 0.75rem;
  border: 2px solid rgba(0, 180, 216, 0.5);
}

.username {
  margin-right: 0.75rem;
  font-weight: 500;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  min-width: 200px;
  z-index: 10;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.user-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  color: #e2e8f0;
  text-decoration: none;
  transition: all 0.2s ease;
}

.dropdown-item:hover {
  background: rgba(30, 41, 59, 0.8);
  color: #00b4d8;
}

.dropdown-item i {
  margin-right: 0.75rem;
  width: 20px;
  text-align: center;
}

.dropdown-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 0.5rem 0;
}

/* Theme Toggle */
.theme-toggle {
  background: none;
  border: none;
  color: #e2e8f0;
  cursor: pointer;
  font-size: 1.25rem;
  margin-left: 1rem;
  display: none; /* Hide theme toggle since we're using dark mode only */
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-icon {
  display: block;
  position: relative;
  width: 24px;
  height: 2px;
  background-color: #f8f9fa;
  transition: all 0.3s ease;
}

.menu-icon::before,
.menu-icon::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background-color: #f8f9fa;
  transition: all 0.3s ease;
}

.menu-icon::before {
  transform: translateY(-8px);
}

.menu-icon::after {
  transform: translateY(8px);
}

/* Footer */
.footer {
  margin-top: auto;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4rem 0 1.5rem;
  position: relative;
  overflow: hidden;
}

/* Welleneffekt im Footer */
.footer-waves {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100px;
  overflow: hidden;
}

.wave {
  position: absolute;
  top: -25px;
  left: 0;
  width: 100%;
  height: 100px;
  background-size: 1000px 100px;
}

.wave1 {
  opacity: 0.3;
  animation: wave 30s linear infinite;
  z-index: 1;
  animation-delay: 0s;
  bottom: 0;
}

.wave2 {
  opacity: 0.2;
  animation: wave2 15s linear infinite;
  z-index: 0;
  animation-delay: -5s;
  bottom: 10px;
}

@keyframes wave {
  0% { background-position-x: 0; }
  100% { background-position-x: 1000px; }
}

@keyframes wave2 {
  0% { background-position-x: 0; }
  100% { background-position-x: -1000px; }
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  position: relative;
  z-index: 2;
}

.footer-section {
  margin-bottom: 2rem;
}

.about-section {
  grid-column: span 1;
}

.links-section {
  grid-column: span 1;
}

.newsletter-section {
  grid-column: span 1;
}

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.footer-logo-img {
  height: 40px;
  width: auto;
  margin-right: 0.75rem;
}

.footer-logo-text {
  font-size: 1.5rem;
  font-weight: 700;
}

.footer-text {
  color: #cbd5e1;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.footer-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  color: #f8f9fa;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background: linear-gradient(90deg, #00b4d8, #4361ee);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-link {
  margin-bottom: 0.75rem;
}

.footer-link a {
  color: #cbd5e1;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
}

.footer-link a:hover {
  color: #00b4d8;
  transform: translateX(5px);
  text-shadow: 0 0 8px rgba(0, 180, 216, 0.5);
}

.link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: rgba(0, 180, 216, 0.2);
  border-radius: 50%;
  margin-right: 0.75rem;
  transition: all 0.3s ease;
}

.footer-link a:hover .link-icon {
  background: rgba(0, 180, 216, 0.5);
  transform: scale(1.1);
  box-shadow: 0 0 10px rgba(0, 180, 216, 0.3);
}

.glass-input-group {
  display: flex;
  margin-top: 1rem;
  border-radius: 2rem;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.25rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.glass-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #f8f9fa;
  padding: 0.75rem 1rem;
  outline: none;
}

.glass-input::placeholder {
  color: #94a3b8;
}

.submit-btn {
  border-radius: 2rem;
  padding: 0.5rem 1rem;
  margin-left: 0.25rem;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-size: 0.875rem;
}

.copyright-text {
  margin-bottom: 1rem;
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.footer-bottom-links a {
  color: #94a3b8;
  text-decoration: none;
  transition: all 0.3s ease;
  margin: 0 0.5rem;
}

.footer-bottom-links a:hover {
  color: #00b4d8;
  text-shadow: 0 0 8px rgba(0, 180, 216, 0.5);
}

.separator {
  color: rgba(255, 255, 255, 0.2);
}

.social-links {
  display: flex;
  margin-top: 1.5rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #f8f9fa;
  margin-right: 0.75rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.glass-icon {
  background: rgba(30, 41, 59, 0.5);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.social-link:hover {
  transform: translateY(-5px);
  color: #ffffff;
  box-shadow: 0 5px 15px rgba(0, 180, 216, 0.4);
}

.social-link.glass-icon:hover {
  background: linear-gradient(135deg, #00b4d8 0%, #4361ee 100%);
  border-color: rgba(0, 180, 216, 0.5);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .nav-item {
    margin-right: 1rem;
  }
}

@media (max-width: 768px) {
  .header-container {
    padding: 0.75rem 1rem;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .main-nav {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem 1.5rem;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
  }
  
  .main-nav.active {
    transform: translateX(0);
  }
  
  .nav-list {
    flex-direction: column;
    width: 100%;
    margin-bottom: 2rem;
  }
  
  .nav-item {
    margin-right: 0;
    margin-bottom: 1rem;
    width: 100%;
  }
  
  .nav-link {
    display: block;
    padding: 0.75rem 0;
    font-size: 1.125rem;
  }
  
  .user-section {
    margin-left: 0;
    width: 100%;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
  }
}
