/* =============================================================================
   FLAVORCRAFT - PAGES CSS (About, Contact, Login, Saved Recipes)
   ============================================================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  min-height: 100vh;
  background-color: #f8f9fa;
  line-height: 1.6;
}

::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background-color: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background-color: #c1c1c1;
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #a8a8a8;
}

/* =============================================================================
   SHARED NAVBAR STYLES
   ============================================================================= */

nav {
  position: fixed;
  z-index: 1000;
  top: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  width: 100%;
  background: rgb(49, 46, 46);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo {
  height: 60px;
  line-height: 60px;
  color: #ff6b35;
  font-weight: 700;
  font-size: 2em;
  text-decoration: none;
  cursor: pointer;
  display: flex;
  padding-left: 20px;
  transition: color 0.3s ease;
}

.logo:hover {
  color: #ff8c55;
}

#toggle {
  position: absolute;
  top: 0;
  right: 0;
  width: 60px;
  height: 60px;
  background: rgb(221, 221, 221);
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background 0.3s ease;
}

#toggle:hover {
  background: rgb(200, 200, 200);
}

#toggle::before,
#toggle::after {
  content: "";
  position: absolute;
  width: 28px;
  height: 2px;
  background: rgb(49, 46, 46);
  transition: 0.3s;
}

#toggle::before {
  transform: translateY(-5px);
}

#toggle::after {
  transform: translateY(5px);
}

#toggle.active::before {
  transform: translateY(0px) rotate(45deg);
  background: rgb(221, 221, 221);
}

#toggle.active::after {
  transform: translateY(0px) rotate(-45deg);
  background: rgb(221, 221, 221);
}

#toggle.active {
  background: rgb(87, 81, 81);
}

#navbar {
  position: relative;
  height: 60px;
  right: 60px;
  background: rgb(49, 46, 46);
  transition: 0.5s;
  width: 0px;
  overflow: hidden;
}

#navbar.active {
  width: auto;
}

#navbar ul {
  position: relative;
  display: flex;
  flex-direction: row;
}

#navbar ul li {
  list-style: none;
}

#navbar ul li a {
  color: white;
  height: 60px;
  line-height: 60px;
  display: inline-block;
  text-decoration: none;
  font-size: 1.1em;
  padding: 0 20px;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  font-weight: 500;
}

#navbar ul li a:hover {
  color: rgb(49, 46, 46);
  background: #ff6b35;
}

@media (max-width: 991px) {
  #navbar.active {
    width: 100%;
    height: auto;
  }

  #navbar ul {
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
}

/* =============================================================================
   SHARED PAGE STYLES
   ============================================================================= */

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

.page-hero {
  background: linear-gradient(135deg, #ff6b35, #ff8c55);
  padding: 120px 0 80px;
  text-align: center;
  color: white;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.hero-content p {
  font-size: 1.2rem;
  opacity: 0.9;
}

.page-content {
  padding: 60px 0;
}

.btn-primary,
.btn-secondary {
  padding: 15px 30px;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  display: inline-block;
  text-align: center;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: #ff6b35;
  color: white;
}

.btn-primary:hover {
  background: #ff5722;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 107, 53, 0.3);
}

.btn-secondary {
  background: transparent;
  color: #ff6b35;
  border: 2px solid #ff6b35;
}

.btn-secondary:hover {
  background: #ff6b35;
  color: white;
  transform: translateY(-2px);
}

.full-width {
  width: 100%;
}

/* =============================================================================
   ABOUT PAGE STYLES
   ============================================================================= */

.content-section {
  margin-bottom: 80px;
}

.section-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.content-section.alternate .section-content {
  grid-template-columns: 1fr 1fr;
}

.text-content h2 {
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 30px;
  font-weight: 600;
}

.text-content p {
  color: #666;
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

.image-content img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.values-section {
  background: white;
  padding: 80px 0;
  border-radius: 20px;
  margin: 60px 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.values-section h2 {
  text-align: center;
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 50px;
  font-weight: 600;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  padding: 0 40px;
}

.value-card {
  text-align: center;
  padding: 30px 20px;
}

.value-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.value-card h3 {
  font-size: 1.4rem;
  color: #333;
  margin-bottom: 15px;
  font-weight: 600;
}

.value-card p {
  color: #666;
  line-height: 1.6;
}

.team-section {
  margin: 80px 0;
}

.team-section h2 {
  text-align: center;
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 50px;
  font-weight: 600;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.team-member {
  background: white;
  padding: 40px 30px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.team-member:hover {
  transform: translateY(-5px);
}

.member-photo {
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-placeholder {
  font-size: 3rem;
}

.team-member h3 {
  font-size: 1.3rem;
  color: #333;
  margin-bottom: 5px;
  font-weight: 600;
}

.role {
  color: #ff6b35;
  font-weight: 500;
  margin-bottom: 15px;
}

.team-member p:not(.role) {
  color: #666;
  line-height: 1.6;
}

.cta-section {
  background: linear-gradient(135deg, #ff6b35, #ff8c55);
  color: white;
  padding: 60px 40px;
  border-radius: 20px;
  text-align: center;
  margin: 60px 0;
}

.cta-section h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
  font-weight: 600;
}

.cta-section p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* =============================================================================
   CONTACT PAGE STYLES
   ============================================================================= */

.contact-section {
  margin-bottom: 80px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
}

.contact-form-container {
  background: white;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.contact-form-container h2 {
  font-size: 2rem;
  color: #333;
  margin-bottom: 30px;
  font-weight: 600;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.form-group label {
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 15px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #ff6b35;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact-info h2 {
  font-size: 2rem;
  color: #333;
  margin-bottom: 20px;
  font-weight: 600;
}

.contact-item {
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.contact-icon {
  font-size: 1.5rem;
  margin-top: 5px;
}

.contact-details h3 {
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 8px;
  font-weight: 600;
}

.contact-details p,
.contact-details a {
  color: #666;
  text-decoration: none;
  line-height: 1.5;
}

.contact-details a:hover {
  color: #ff6b35;
}

.faq-section {
  background: white;
  padding: 60px 40px;
  border-radius: 20px;
  margin: 60px 0;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.faq-section h2 {
  text-align: center;
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 50px;
  font-weight: 600;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.faq-item {
  padding: 25px;
  background: #f8f9fa;
  border-radius: 12px;
  border-left: 4px solid #ff6b35;
}

.faq-item h3 {
  font-size: 1.2rem;
  color: #333;
  margin-bottom: 12px;
  font-weight: 600;
}

.faq-item p {
  color: #666;
  line-height: 1.6;
}

.social-section {
  text-align: center;
  margin: 60px 0;
}

.social-section h2 {
  font-size: 2.2rem;
  color: #333;
  margin-bottom: 20px;
  font-weight: 600;
}

.social-section p {
  color: #666;
  font-size: 1.1rem;
  margin-bottom: 30px;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 25px;
  background: white;
  border-radius: 50px;
  text-decoration: none;
  color: #333;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.social-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* =============================================================================
   LOGIN PAGE STYLES
   ============================================================================= */

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 80px 0 40px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.auth-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.auth-card {
  background: white;
  padding: 50px;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.auth-header {
  text-align: center;
  margin-bottom: 40px;
}

.auth-header h1 {
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 15px;
  font-weight: 700;
}

.auth-header p {
  color: #666;
  font-size: 1.1rem;
}

.auth-form {
  display: none;
}

.auth-form.active {
  display: block;
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 20px 0;
}

.checkbox-container {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.9rem;
  color: #666;
}

.checkbox-container input {
  margin: 0;
}

.forgot-password {
  color: #ff6b35;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.forgot-password:hover {
  text-decoration: underline;
}

.auth-divider {
  text-align: center;
  margin: 30px 0;
  position: relative;
  color: #999;
}

.auth-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #e9ecef;
}

.auth-divider span {
  background: white;
  padding: 0 20px;
  position: relative;
}

.social-auth {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.btn-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  border: 2px solid #e9ecef;
  background: white;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  color: #333;
}

.btn-social:hover {
  border-color: #ccc;
  transform: translateY(-1px);
}

.auth-switch {
  text-align: center;
  margin-top: 30px;
  color: #666;
}

.auth-switch a {
  color: #ff6b35;
  text-decoration: none;
  font-weight: 600;
}

.auth-switch a:hover {
  text-decoration: underline;
}

.features-sidebar {
  background: linear-gradient(135deg, #ff6b35, #ff8c55);
  color: white;
  padding: 50px 40px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.features-sidebar h2 {
  font-size: 2.2rem;
  margin-bottom: 40px;
  font-weight: 600;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.feature-list li {
  display: flex;
  gap: 20px;
}

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

.feature-text h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
  font-weight: 600;
}

.feature-text p {
  opacity: 0.9;
  line-height: 1.5;
}

.terms-link,
.privacy-link {
  color: #ff6b35;
  text-decoration: none;
}

.terms-link:hover,
.privacy-link:hover {
  text-decoration: underline;
}

/* =============================================================================
   SAVED RECIPES PAGE STYLES
   ============================================================================= */

.user-info-section {
  margin-bottom: 40px;
}

.user-card {
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 25px;
}

.user-avatar {
  font-size: 3rem;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-details {
  flex: 1;
}

.user-details h2 {
  font-size: 1.8rem;
  color: #333;
  margin-bottom: 5px;
  font-weight: 600;
}

.user-details p {
  color: #666;
  margin-bottom: 5px;
}

.recipe-count {
  color: #ff6b35;
  font-weight: 600;
}

.user-actions {
  display: flex;
  gap: 15px;
}

.empty-state {
  text-align: center;
  padding: 80px 20px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.empty-icon {
  font-size: 4rem;
  margin-bottom: 20px;
}

.empty-state h2 {
  font-size: 2rem;
  color: #333;
  margin-bottom: 15px;
  font-weight: 600;
}

.empty-state p {
  color: #666;
  font-size: 1.1rem;
  margin-bottom: 30px;
  line-height: 1.6;
}

.recipe-stats {
  background: white;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  margin-top: 40px;
}

.recipe-stats h2 {
  text-align: center;
  font-size: 2rem;
  color: #333;
  margin-bottom: 30px;
  font-weight: 600;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.stat-card {
  text-align: center;
  padding: 25px;
  background: #f8f9fa;
  border-radius: 12px;
  border-top: 4px solid #ff6b35;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #ff6b35;
  margin-bottom: 8px;
}

.stat-label {
  color: #666;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

/* =============================================================================
   RESPONSIVE DESIGN
   ============================================================================= */

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2rem;
  }

  .section-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .values-grid,
  .team-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .auth-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .auth-card {
    padding: 30px;
  }

  .features-sidebar {
    padding: 30px 25px;
  }

  .user-card {
    flex-direction: column;
    text-align: center;
  }

  .user-actions {
    flex-direction: column;
    width: 100%;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .social-links {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .page-hero {
    padding: 100px 0 60px;
  }

  .hero-content h1 {
    font-size: 1.8rem;
  }

  .auth-card {
    padding: 20px;
  }

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

/* =============================================================================
   FOOTER STYLES
   ============================================================================= */

footer {
  background-color: rgb(49, 46, 46);
  position: relative;
  width: 100%;
  height: auto;
  padding: 50px 0 30px;
}

footer .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  flex-direction: row;
  gap: 40px;
}

.about-us {
  flex: 2;
  max-width: 500px;
}

.quick-links {
  flex: 1;
  min-width: 250px;
}

footer h2 {
  position: relative;
  color: white;
  font-weight: 600;
  margin-bottom: 20px;
  font-size: 1.3rem;
}

footer h2::before {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 50px;
  height: 3px;
  background: #ff6b35;
}

.about-us p {
  color: #ccc;
  line-height: 1.7;
  margin-bottom: 20px;
}

.smlinks {
  display: flex;
  gap: 15px;
}

.smlinks li {
  list-style: none;
}

.smlinks li a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.smlinks li a:hover {
  transform: scale(1.1);
}

.info {
  list-style: none;
}

.info li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
  color: #ccc;
}

.info li span:first-child {
  margin-right: 15px;
  margin-top: 3px;
}

.info li a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.info li a:hover {
  color: #ff6b35;
}

@media (max-width: 768px) {
  footer .container {
    flex-direction: column;
    text-align: center;
  }

  .about-us,
  .quick-links {
    max-width: 100%;
  }

  .smlinks {
    justify-content: center;
  }
}
