/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "SF Pro Text", "SF Pro Icons", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

body {
  background-color: #f5f5f7;
  color: #1d1d1f;
  font-size: 17px;
  line-height: 1.47059;
  font-weight: 400;
  letter-spacing: -0.022em;
}

/* Navigation */
.nav-container {
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
}

.nav {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 22px;
  height: 44px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav a {
  color: #f5f5f7;
  text-decoration: none;
  font-size: 14px;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.nav a:hover {
  opacity: 1;
}

.nav-logo {
  background-size: 20px 44px;
  width: 20px;
  height: 44px;
  background-repeat: no-repeat;
  background-position: center center;
  background-image: url("assets/mango-logo.svg?v=2");
}

.nav-links {
  display: flex;
  list-style: none;
  margin-right: auto;
}

.nav-links li {
  margin: 0 15px;
}

/* User info and auth buttons */
.user-info {
  display: flex;
  align-items: center;
  margin-left: 20px;
}

#user-greeting {
  color: #f5f5f7;
  font-size: 14px;
  margin-right: 10px;
}

.auth-button {
  background-color: #0071e3;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 12px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.auth-button:hover {
  background-color: #0077ed;
}

/* Hero section */
.hero {
  padding-top: 44px;
  text-align: center;
  background-color: #fbfbfd;
}

.hero-title {
  font-size: 56px;
  line-height: 1.07143;
  font-weight: 600;
  letter-spacing: -0.005em;
  padding-top: 60px;
}

.hero-subtitle {
  font-size: 28px;
  line-height: 1.10722;
  font-weight: 400;
  letter-spacing: 0.004em;
  margin-top: 6px;
}

.hero-links {
  margin-top: 18px;
  font-size: 21px;
}

.hero-links a {
  color: #06c;
  text-decoration: none;
}

.hero-links a:hover {
  text-decoration: underline;
}

.hero-image {
  margin-top: 20px;
  width: 100%;
  max-width: 1068px;
  margin: 0 auto;
}

.hero-image img {
  width: 100%;
}

/* Product section */
.product-section {
  padding: 100px 0;
  text-align: center;
  background-color: #fff;
}

.product-title {
  font-size: 48px;
  line-height: 1.08349;
  font-weight: 600;
  letter-spacing: -0.003em;
}

.product-subtitle {
  font-size: 24px;
  line-height: 1.16667;
  font-weight: 400;
  letter-spacing: 0.009em;
  margin-top: 6px;
}

.product-price {
  font-size: 17px;
  line-height: 1.47059;
  font-weight: 400;
  letter-spacing: -0.022em;
  margin-top: 6px;
  color: #86868b;
}

.product-links {
  margin-top: 18px;
  font-size: 19px;
}

.product-links a {
  color: #06c;
  text-decoration: none;
}

.product-links a:hover {
  text-decoration: underline;
}

.product-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.product-item {
  flex: 0 0 calc(33.333% - 40px);
  margin: 20px;
  background-color: #fbfbfd;
  border-radius: 18px;
  padding: 30px;
  transition: transform 0.3s ease;
}

.product-item:hover {
  transform: scale(1.02);
}

.product-item img {
  max-width: 100%;
  height: auto;
}

/* Footer */
.footer {
  background-color: #f5f5f7;
  color: #6e6e73;
  font-size: 12px;
  line-height: 1.33337;
  font-weight: 400;
  letter-spacing: -0.01em;
  padding: 20px;
  text-align: center;
}

.footer p {
  max-width: 980px;
  margin: 0 auto;
  padding: 10px 0;
}

/* Chat widget container */
.chat-widget-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9998;
}

/* Placeholder for the chat widget */
.chat-widget-placeholder {
  width: 60px;
  height: 60px;
  background-color: #0071e3;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Login Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  overflow: auto;
}

.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 20px;
  border-radius: 8px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.modal h2 {
  margin-bottom: 20px;
  color: #1d1d1f;
  font-size: 24px;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover {
  color: #000;
}

/* Auth Form */
.auth-form {
  margin-top: 20px;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #1d1d1f;
}

.form-group input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
}

.error-message {
  color: #d9534f;
  font-size: 14px;
  margin-top: 5px;
}

.form-message {
  margin-top: 15px;
  padding: 10px;
  border-radius: 4px;
}

.form-message.error {
  background-color: #f8d7da;
  color: #721c24;
}

.form-message.success {
  background-color: #d4edda;
  color: #155724;
}

.help-text {
  margin-top: 15px;
  font-size: 14px;
  color: #6c757d;
}

.button {
  padding: 10px 15px;
  border: none;
  border-radius: 4px;
  background-color: #0071e3;
  color: white;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.button:hover {
  background-color: #0077ed;
}

.button:disabled {
  background-color: #6c757d;
  cursor: not-allowed;
}

/* Custom button styles */
.logout-button {
  background-color: #555555;
  color: white;
}

.logout-button:hover {
  background-color: #444444;
}

.verify-button {
  background-color: #333333;
  color: white;
}

.verify-button:hover {
  background-color: #222222;
}

/* Notification */
.notification {
  position: fixed;
  top: 60px;
  right: 20px;
  padding: 15px 20px;
  border-radius: 4px;
  color: white;
  z-index: 10001;
  animation: fadeIn 0.5s;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.notification.info {
  background-color: #17a2b8;
}

.notification.success {
  background-color: #28a745;
}

.notification.error {
  background-color: #dc3545;
}

.notification.fade-out {
  animation: fadeOut 0.5s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

/* Responsive styles */
@media (max-width: 768px) {
  .hero-title {
    font-size: 40px;
  }

  .hero-subtitle {
    font-size: 24px;
  }

  .product-item {
    flex: 0 0 calc(50% - 40px);
  }

  .user-info {
    margin-left: 10px;
  }

  #user-greeting {
    display: none;
  }
}

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

  .hero-subtitle {
    font-size: 20px;
  }

  .product-item {
    flex: 0 0 calc(100% - 40px);
  }

  .nav-links li {
    margin: 0 8px;
  }

  .modal-content {
    margin: 20% auto;
    width: 95%;
  }
}
