/* Component Styles */

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 14, 23, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}

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

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  flex-shrink: 0;
}

.navbar-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

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

.navbar-nav a {
  color: var(--text-dim);
  font-weight: 500;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.navbar-nav a:hover {
  color: var(--text);
}

.navbar-nav a.active {
  color: var(--primary);
}

/* Search Bar */
.search-container {
  position: relative;
  width: 100%;
  max-width: 600px;
}

.search-input {
  width: 100%;
  padding: 0.875rem 3rem 0.875rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
}

.search-icon {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
}

/* Module Cards */
.module-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.module-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary);
}

.module-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: inline-block;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.module-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.module-description {
  color: var(--text-dim);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.module-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.module-category {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  background: rgba(233, 30, 99, 0.1);
  color: var(--primary);
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
}

/* Sidebar */
.sidebar {
  position: fixed;
  left: 0;
  top: 73px;
  width: 280px;
  height: calc(100vh - 73px);
  background: rgba(10, 14, 23, 0.95);
  border-right: 1px solid var(--border);
  overflow-y: auto;
  padding: 2rem 0;
  z-index: 100;
}

.sidebar-section {
  margin-bottom: 2rem;
  padding: 0 1.5rem;
}

.sidebar-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-dimmer);
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

.sidebar-list {
  list-style: none;
}

.sidebar-item {
  margin-bottom: 0.5rem;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--text-dim);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.sidebar-link:hover {
  background: rgba(233, 30, 99, 0.1);
  color: var(--primary);
}

.sidebar-link.active {
  background: rgba(233, 30, 99, 0.2);
  color: var(--primary);
  font-weight: 600;
}

/* Hero Section */
.hero {
  padding: 6rem 2rem;
  text-align: center;
  background: radial-gradient(circle at top, rgba(233, 30, 99, 0.1) 0%, transparent 50%);
}

.hero-title {
  font-size: 4rem;
  font-weight: 900;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--text-dim);
  margin-bottom: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 4rem 0;
}

.feature-item {
  text-align: center;
  padding: 2rem;
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.feature-description {
  color: var(--text-dim);
}

/* Footer */
.footer {
  background: var(--bg-darker);
  border-top: 1px solid var(--border);
  padding: 3rem 2rem;
  margin-top: 4rem;
  text-align: center;
}

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

.footer-links {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.footer-copyright {
  color: var(--text-dimmer);
  font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .module-card {
    padding: 1.5rem;
  }

  .hero-title {
    font-size: 3rem;
  }
  
  .navbar-nav {
    gap: 1rem;
  }
  
  .navbar-container {
    padding: 0 1rem;
  }
}

@media (max-width: 768px) {
  .navbar-container {
    padding: 0 1rem;
  }

  .navbar-nav {
    gap: 1rem;
    font-size: 0.9rem;
  }
  
  .navbar-brand {
    font-size: 1.25rem;
  }
  
  .navbar-icon {
    font-size: 1.5rem;
  }

  .hero {
    padding: 4rem 1rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.125rem;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }
  
  .module-card {
    padding: 1.25rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .module-card {
    padding: 1rem;
  }
  
  .navbar-nav {
    gap: 0.75rem;
    font-size: 0.85rem;
  }
  
  .navbar-brand {
    font-size: 1.1rem;
  }
  
  .navbar-nav a {
    padding: 0.25rem 0.5rem;
  }
}
