/* Global resets */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Nunito', sans-serif;
  background-color: #f7f5f3;
  color: #333;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Header */
.header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background-color: #ffffff;
  border-bottom: 1px solid #ddd;
  position: relative;
  z-index: 1000;
}

.menu-bars {
  background: none;
  border: none;
  cursor: pointer;
}

.sign-in-row {
  display: flex;
  align-items: center;
}

.sign-in-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #d6cfc7;
  color: #000;
  border: none;
  padding: 0.4rem 1rem;
  border-radius: 25px;
  font-weight: bold;
  cursor: pointer;
}

.sign-in-icon {
  fill: #000;
}

/* Tooltip */
.tooltip {
  position: absolute;
  top: 58px;
  left: 1.5rem;
  background-color: #fff;
  color: #000;
  padding: 1rem;
  border: 1px solid #ccc;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  z-index: 999;
  display: none;
}

.tooltip-close {
  position: absolute;
  top: 4px;
  right: 8px;
  font-weight: bold;
  cursor: pointer;
}

/* Hero */
.main-content {
  padding: 2rem 1.5rem;
  max-width: 700px;
  margin: auto;
}

.hero h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.hero h1 span {
  color: #6d5d4d;
  font-weight: 700;
}

.hero p {
  margin: 1rem 0;
}

/* Input bar */
.input-wrapper {
  display: flex;
  align-items: center;
  border: 2px solid #d6cfc7;
  border-radius: 40px;
  padding: 0.25rem 0.75rem;
  background-color: white;
  max-width: 100%;
  margin-top: 1.5rem;
}

.input-wrapper input {
  border: none;
  outline: none;
  flex: 1;
  font-size: 1rem;
  padding: 0.5rem;
  background: transparent;
}

.send-button {
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: #6d5d4d;
}

/* Assistant modal */
.assistant-modal {
  display: none;
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 300px;
  max-height: 300px;
  background-color: rgba(255,255,255,0.97);
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  padding: 1rem;
  z-index: 9999;
  overflow-y: auto;
  animation: fadeIn 0.3s ease-in-out;
}

.modal-close {
  position: absolute;
  top: 6px;
  right: 12px;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
}

.assistant-response {
  margin-top: 1.5rem;
  font-size: 1rem;
  line-height: 1.4;
}

/* Cookie banner */
.cookie-banner-slide {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 320px;
  background-color: #fff;
  border: 1px solid #d6cfc7;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  padding: 1rem;
  z-index: 10000;
  animation: slideUp 0.5s ease-in-out;
}

.cookie-banner-title {
  font-weight: bold;
  display: block;
  margin-bottom: 0.5rem;
}

.cookie-banner-close {
  position: absolute;
  top: 6px;
  right: 12px;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
}

.cookie-buttons {
  margin-top: 1rem;
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

.cookie-buttons button {
  flex: 1;
  padding: 0.4rem;
  font-size: 0.9rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  background-color: #d6cfc7;
  color: #000;
}

/* Footer */
.footer {
  margin-top: 3rem;
  text-align: center;
  background-color: #f1eee8;
  padding: 1rem 0;
}

.footer img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.footer-legal {
  font-size: 0.85rem;
  color: #555;
  margin-top: 1rem;
}

.footer-legal a {
  color: #555;
  text-decoration: underline;
}

.footer-legal a:hover {
  text-decoration: none;
}

/* Animations */
@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0%);
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
