/* General Styles */
.home-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  line-height: 1.6;
  background-color: #f9f9f9;
}

/* Loading Spinner */
.loading-spinner {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  font-size: 1.2rem;
  color: #666;
}

/* Header Styles */
.home-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.server-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.status-indicator {
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.status-indicator.loading {
  background-color: #ffc107;
  color: #333;
}

.status-indicator.online {
  background-color: #28a745;
  color: white;
}

.status-indicator.offline {
  background-color: #dc3545;
  color: white;
}

.auth-nav {
  display: flex;
  align-items: center;
}

.auth-links {
  display: flex;
  gap: 1rem;
}

.auth-link {
  padding: 0.5rem 1rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.auth-link.login {
  color: #007bff;
  border: 1px solid #007bff;
}

.auth-link.login:hover {
  background-color: #007bff;
  color: white;
}

.auth-link.register {
  background-color: #007bff;
  color: white;
  border: 1px solid #007bff;
}

.auth-link.register:hover {
  background-color: #0056b3;
  border-color: #0056b3;
}

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

.welcome-text {
  color: #333;
  font-weight: 500;
}

.logout-button {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  background-color: #dc3545;
  color: white;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
}

.logout-button:hover {
  background-color: #c82333;
  transform: translateY(-1px);
}

/* Main Content Styles */
.home-main {
  flex: 1;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.hero-section {
  text-align: center;
  padding: 3rem 1rem;
  margin-bottom: 2rem;
}

.hero-section h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #222;
}

.hero-section p {
  font-size: 1.2rem;
  color: #555;
  max-width: 700px;
  margin: 0 auto;
}

/* Features Section */
.features-section {
  margin: 4rem 0;
}

.features-section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #222;
}

.feature-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  background-color: white;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #007bff;
}

.feature-card p {
  margin-bottom: 1.5rem;
  color: #555;
}

.feature-link {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: #007bff;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.feature-link:hover {
  background-color: #0056b3;
}

.feature-link.login-required {
  background-color: #ffc107;
  color: #333;
}

.feature-link.login-required:hover {
  background-color: #e0a800;
}

/* CTA Section */
.cta-section {
  text-align: center;
  padding: 3rem 1rem;
  margin-top: 3rem;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.cta-section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.cta-section p {
  color: #666;
  margin-bottom: 1.5rem;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.cta-button {
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.cta-button.primary {
  background-color: #007bff;
  color: white;
}

.cta-button.primary:hover {
  background-color: #0056b3;
}

.cta-button.secondary {
  background-color: white;
  color: #007bff;
  border: 1px solid #007bff;
}

.cta-button.secondary:hover {
  background-color: #f0f7ff;
}

/* Footer Styles */
.home-footer {
  text-align: center;
  padding: 1.5rem;
  background-color: #fff;
  border-top: 1px solid #eee;
  color: #666;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .home-header {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }

  .hero-section h1 {
    font-size: 2rem;
  }

  .hero-section p {
    font-size: 1rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-button {
    width: 100%;
    max-width: 250px;
  }

  .auth-links {
    flex-direction: column;
    gap: 0.5rem;
  }

  .user-section {
    flex-direction: column;
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  .feature-cards {
    grid-template-columns: 1fr;
  }

  .home-main {
    padding: 1rem;
  }
}
