/* style.css */

/* Color Palette and Typography Variables (מאולצים מההזמנה) */
:root {
  --primary-color: #7B4A2A;      /* חום עבה מהטקסט בשמלה */
  --secondary-color: #F9F3E9;    /* קרם-בהיר כרקע */
  --accent-color: #C47F2C;       /* כתום שמשי מהאלמנט הגרפי */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Assistant', sans-serif;
}

/* Global Styles */
body {
  margin: 0;
  padding: 0;
  background-color: var(--secondary-color);
  color: var(--primary-color);
  font-family: var(--font-body);
  direction: rtl;
  overflow-x: hidden;
}

a { color: var(--primary-color); text-decoration: none; }
/* Hero Section */
#hero {
  position: relative;
  height: 45vh;
  max-height: 400px;
  background-color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: height 0.3s ease;
  overflow: hidden;
}
#hero.scrolled {
  height: 80px;
}
.hero-content {
  text-align: center;
}
#hero-image {
  max-width: 70%;
  height: auto;
}
.hero-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  margin-top: 1rem;
  letter-spacing: 1px;
}

/* Chat Container */
#chat-container {
  position: relative;
  max-width: 600px;
  height: 60vh;
  max-height: 650px;
  margin: -120px auto 2rem;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
#chat-header {
  background-color: var(--primary-color);
  color: white;
  padding: 1rem;
  font-weight: bold;
  text-align: center;
  font-family: var(--font-body);
}
#chat-messages {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
}

/* Message Bubbles */
.message {
  display: inline-block;
  line-height: 1.4;
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  max-width: 80%;
  min-width: 45%;
  word-wrap: break-word;
}
.message.user {
  background-color: var(--accent-color);
  color: white;
  align-self: flex-end;
  border-radius: 15px 15px 0 15px;
}
.message.assistant {
  background-color: #EFEFEF;
  color: var(--primary-color);
  align-self: flex-start;
  border-radius: 15px 15px 15px 0;
}

/* Chat Input Area */
#chat-input {
  display: flex;
  border-top: 1px solid #DDD;
}
#message-input {
  flex: 1;
  border: none;
  padding: 1rem;
  font-size: 1rem;
  resize: none;
  font-family: var(--font-body);
}
#message-input:focus {
  outline: none;
}
#send-button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 0 1.5rem;
  cursor: pointer;
  font-size: 1rem;
  font-family: var(--font-body);
}
#send-button:hover {
  background-color: var(--accent-color);
}

/* Scrollbar Styling (WebKit) */
#chat-messages::-webkit-scrollbar {
  width: 6px;
}
#chat-messages::-webkit-scrollbar-thumb {
  background-color: #CCC;
  border-radius: 3px;
}
.reset-button {
    margin: 10px;
    padding: 8px 16px;
    background: #f4f4f4;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
}
.reset-button:hover {
    background: #e0e0e0;
}

/* Responsive */
@media (max-width: 600px) {
  .hero-title { font-size: 1.8rem; }
  #chat-container {
    margin: -100px 1rem 1.5rem;
    height: 55vh;
  }
  #send-button {
    padding: 0.75rem 1rem;
  }
}
