/* Home page styles */

/* Body overrides */
.home-body {
  margin: 0;
  padding: 0;
  background: linear-gradient(to bottom, #1a1f2e 0%, #0f1419 100%);
}

/* Navbar */
.home-navbar {
  background-color: rgba(44, 62, 80, 0.8);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 0;
}

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

.home-navbar-brand {
  display: flex;
  align-items: center;
}

.brand-text {
  font-family: "AudioWide", sans-serif;
  font-size: 1.8rem;
  font-weight: 400;
  color: white;
}

.brand-accent {
  color: #3498db;
}

.home-navbar-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.home-navbar-link {
  color: white;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.home-navbar-link:hover {
  opacity: 0.8;
  color: white;
}

.home-navbar-cta {
  background-color: var(--main-a-color);
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 0.375rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.home-navbar-cta:hover {
  background-color: var(--main-hover-color);
  color: white;
  transform: translateY(-1px);
}

/* Hero Section */
.hero-section {
  min-height: 400px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(to bottom, #1a1f2e 0%, #2d3748 100%);
  padding: 4rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-grid-background {
  position: absolute;
  inset: 0;
  opacity: 0.1;
}

.grid-svg {
  width: 100%;
  height: 100%;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 900px;
  padding: 0 1rem;
}

.hero-logo {
  font-family: "AudioWide", sans-serif;
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: white;
  line-height: 1.2;
}

.hero-tagline {
  font-size: 2rem;
  font-weight: 600;
  color: white;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.hero-description {
  font-size: 1.125rem;
  color: white;
  margin-bottom: 2rem;
  opacity: 0.7;
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.hero-cta {
  display: inline-block;
  background-color: var(--main-a-color);
  color: white;
  font-weight: 600;
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1.125rem;
}

.hero-cta:hover {
  background-color: var(--main-hover-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Features Section */
.features-section {
  padding: 4rem 2rem;
  background: linear-gradient(to bottom, #2d3748 0%, #1a1f2e 100%);
}

.features-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Nested styles for home page features section */
#home-features-container {
  max-width: 1200px;
  margin: 0 auto;

  & .section-header {
    text-align: center;
    margin-bottom: 3rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  & .section-title {
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin-bottom: 1rem;
    text-align: center !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    display: inline-block;
    width: auto;
    position: relative;
    padding-bottom: 1rem;
  }

  & .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3498db 0%, #5dade2 100%);
    border-radius: 2px;
  }

  & .section-subtitle {
    font-size: 1.25rem !important;
    color: rgba(255, 255, 255, 0.85) !important;
    text-align: center !important;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    display: block;
  }
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.feature-card {
  background-color: rgba(52, 73, 94, 0.3);
  border: 1px solid rgba(52, 152, 219, 0.2);
  border-radius: 0.75rem;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(52, 152, 219, 0.3);
  border-color: rgba(52, 152, 219, 0.4);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.feature-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.75rem;
}

.feature-text {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

/* Signup Card */
.signup-card {
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.15) 0%, rgba(52, 73, 94, 0.3) 100%);
  border-radius: 1rem;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(52, 152, 219, 0.4);
  overflow: hidden;
}

.signup-content {
  padding: 3rem 2rem;
  text-align: center;
}

.signup-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
}

.signup-text {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.signup-form {
  max-width: 500px;
  margin: 0 auto;
}

.signup-form-group {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.signup-input {
  flex: 1;
  min-width: 250px;
  padding: 1rem 1.5rem;
  border: 1px solid var(--border-color-input);
  border-radius: 0.5rem;
  font-size: 1.125rem;
  transition: all 0.3s ease;
}

.signup-input:focus {
  outline: none;
  border-color: var(--main-a-color);
  box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.1);
}

.signup-button {
  background-color: var(--main-a-color);
  color: white;
  padding: 1rem 2.5rem;
  border: none;
  border-radius: 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.signup-button:hover {
  background-color: var(--main-hover-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Footer */
.home-footer {
  background: linear-gradient(to bottom, #1a1f2e 0%, #0f1419 100%);
  padding: 3rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer-brand {
  font-family: "AudioWide", sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: white;
  margin-bottom: 0.5rem;
}

.footer-tagline {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.75rem;
}

.footer-copyright {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Flash Messages for Home Page */
.home-body .flash-messages-container {
  position: fixed;
  top: 100px;
  right: 20px;
  z-index: 1050;
  max-width: 400px;
}

.home-body .alert {
  margin-bottom: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  border-radius: 0.5rem;
  backdrop-filter: blur(10px);
}

/* Success alert with blue theme instead of green */
.home-body .alert-success {
  color: white;
  background-color: rgba(52, 152, 219, 0.9);
  border-color: rgba(52, 152, 219, 1);
}

.home-body .alert-success .alert-link {
  color: rgba(255, 255, 255, 0.9);
}

/* Danger alert styled for dark theme */
.home-body .alert-danger {
  color: white;
  background-color: rgba(231, 76, 60, 0.9);
  border-color: rgba(231, 76, 60, 1);
}

.home-body .alert-danger .alert-link {
  color: rgba(255, 255, 255, 0.9);
}

.home-body .alert-dismissible .btn-close {
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

.home-body .alert-dismissible .btn-close:hover {
  opacity: 1;
}

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

  .brand-text {
    font-size: 1.5rem;
  }

  .home-navbar-links {
    gap: 1rem;
  }

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

  .hero-tagline {
    font-size: 1.5rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .section-title {
    font-size: 2rem;
  }

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

  .features-grid {
    grid-template-columns: 1fr;
  }

  .signup-form-group {
    flex-direction: column;
  }

  .signup-input {
    min-width: 100%;
  }

  .signup-button {
    width: 100%;
  }
}

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

  .hero-tagline {
    font-size: 1.25rem;
  }

  .hero-cta {
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
  }

  .signup-title {
    font-size: 1.75rem;
  }

  .signup-content {
    padding: 2rem 1rem;
  }

  .home-body .flash-messages-container {
    left: 20px;
    right: 20px;
    max-width: none;
    top: 80px;
  }
}
