/* יום מס״ע חקלאות - עיצוב מרכזי */
:root {
  --soil: #3d2c1e;
  --earth: #5c4a3a;
  --leaf: #2d5a27;
  --leaf-light: #4a7c43;
  --wheat: #c9a227;
  --cream: #f5f0e8;
  --white: #fefdfb;
  --shadow: rgba(61, 44, 30, 0.15);
  --radius: 12px;
  --radius-sm: 8px;
}

* {
  box-sizing: border-box;
}

html {
  direction: rtl;
  scroll-behavior: smooth;
}

body {
  font-family: 'Heebo', 'Assistant', -apple-system, sans-serif;
  margin: 0;
  background: var(--cream);
  color: var(--soil);
  line-height: 1.6;
  min-height: 100vh;
}

/* ניווט */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(254, 253, 251, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--shadow);
  padding: 0.75rem 1.5rem;
}

nav .nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

nav .logo {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--leaf);
  text-decoration: none;
}

nav .links {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

nav .links a {
  color: var(--earth);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  transition: background 0.2s, color 0.2s;
}

nav .links a:hover,
nav .links a.active {
  background: var(--leaf);
  color: var(--white);
}

/* תוכן מרכזי */
main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  min-height: 60vh;
}

/* כותרות */
h1 {
  color: var(--soil);
  font-size: 2rem;
  margin: 0 0 1rem;
  font-weight: 700;
}

h2 {
  color: var(--leaf);
  font-size: 1.35rem;
  margin: 1.5rem 0 0.75rem;
}

/* כפתורים */
.btn {
  display: inline-block;
  padding: 0.65rem 1.25rem;
  background: var(--leaf);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font: inherit;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.btn:hover {
  background: var(--leaf-light);
}

.btn:active {
  transform: scale(0.98);
}

/* כרטיסים */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 4px 20px var(--shadow);
  padding: 1.5rem;
  margin-bottom: 1rem;
}

/* ========== עמוד בית ========== */
.hero {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 2rem;
  min-height: 320px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.hero-bg .hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(61,44,30,0.4) 0%, rgba(61,44,30,0.7) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.hero-overlay h1 {
  color: var(--white);
  font-size: 2.5rem;
  text-align: center;
  margin: 0;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-overlay p {
  color: rgba(255,255,255,0.95);
  font-size: 1.15rem;
  text-align: center;
  margin: 0.5rem 0 0;
  max-width: 500px;
}

.home-intro {
  text-align: center;
  margin: 2rem 0;
  font-size: 1.1rem;
  color: var(--earth);
}

/* ========== Links hub (כפתור מעדר + כל הקישורים) ========== */
.links-hub {
  margin: 2.5rem 0;
}

.hub-main-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 2rem 2.5rem;
  background: linear-gradient(145deg, var(--leaf) 0%, #234a1f 100%);
  color: var(--white);
  border-radius: var(--radius);
  text-decoration: none;
  box-shadow: 0 8px 32px rgba(45, 90, 39, 0.35);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  border: 2px solid rgba(255,255,255,0.15);
  margin-bottom: 2rem;
}

.hub-main-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(45, 90, 39, 0.45);
  background: linear-gradient(145deg, var(--leaf-light) 0%, var(--leaf) 100%);
}

.hub-main-btn:active {
  transform: translateY(-2px);
}

.hub-main-icon {
  width: 64px;
  height: 64px;
  display: block;
  color: var(--white);
}

.hub-main-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.hub-main-text {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hub-main-desc {
  font-size: 0.95rem;
  opacity: 0.9;
}

.hub-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
}

.hub-link-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem 1.25rem;
  background: var(--white);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 20px var(--shadow);
  border: 1px solid rgba(61, 44, 30, 0.08);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.hub-link-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px var(--shadow);
  border-color: var(--leaf);
}

.hub-link-icon {
  width: 44px;
  height: 44px;
  color: var(--leaf);
  margin-bottom: 0.75rem;
  flex-shrink: 0;
}

.hub-link-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.hub-link-title {
  font-weight: 600;
  color: var(--soil);
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.hub-link-desc {
  font-size: 0.85rem;
  color: var(--earth);
  line-height: 1.4;
}

/* שמירה על feature-card לדפים אחרים אם נדרש */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 4px 20px var(--shadow);
  border-top: 4px solid var(--leaf);
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--shadow);
}

.feature-card h3 {
  color: var(--leaf);
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
}

.feature-card p {
  margin: 0;
  color: var(--earth);
  font-size: 0.95rem;
}

/* ========== צ'אט ========== */
.chat-section {
  max-width: 700px;
  margin: 0 auto 2rem;
}

.chat-title {
  margin-bottom: 1rem;
  color: var(--soil);
}

.chat-box {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 4px 20px var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 380px;
}

.chat-messages {
  flex: 1;
  padding: 1.25rem;
  overflow-y: auto;
  min-height: 220px;
  max-height: 400px;
}

.chat-msg {
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.chat-msg.user {
  align-items: flex-end;
}

.chat-msg .bubble {
  max-width: 85%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  line-height: 1.5;
}

.chat-msg.user .bubble {
  background: var(--leaf);
  color: var(--white);
  border-bottom-left-radius: 4px;
}

.chat-msg.bot .bubble {
  background: var(--cream);
  color: var(--soil);
  border: 1px solid var(--shadow);
  border-bottom-right-radius: 4px;
}

.chat-msg .time {
  font-size: 0.75rem;
  color: var(--earth);
  margin-top: 0.25rem;
  opacity: 0.8;
}

.chat-input-row {
  display: flex;
  gap: 0.5rem;
  padding: 1rem;
  border-top: 1px solid var(--shadow);
  background: var(--cream);
}

.chat-input-row input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid var(--shadow);
  border-radius: var(--radius-sm);
  font: inherit;
  direction: rtl;
}

.chat-input-row input:focus {
  outline: none;
  border-color: var(--leaf);
  box-shadow: 0 0 0 2px rgba(45,90,39,0.2);
}

.chat-input-row button {
  padding: 0.75rem 1.25rem;
  white-space: nowrap;
}

/* דוגמאות מתחת לצ'אט */
.examples-title {
  font-size: 0.95rem;
  color: var(--earth);
  margin: 1rem 0 0.5rem;
}

.examples {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.example-btn {
  padding: 0.5rem 1rem;
  background: var(--white);
  border: 1px solid var(--shadow);
  border-radius: var(--radius-sm);
  color: var(--earth);
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.example-btn:hover {
  background: var(--cream);
  border-color: var(--leaf);
  color: var(--leaf);
}

/* רשימת טיפים (מדריך) */
.tips-list {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
}

.tips-list li {
  padding: 0.5rem 0 0.5rem 1.5rem;
  position: relative;
  color: var(--soil);
}

.tips-list li::before {
  content: "✓";
  position: absolute;
  right: 0;
  color: var(--leaf);
  font-weight: bold;
}

/* ביקורות (תקציב) */
.reviews-list {
  margin: 0.75rem 0 0;
}

.review-item {
  background: var(--white);
  border: 1px solid var(--shadow);
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin-bottom: 0.75rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.review-item img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.review-item .stars {
  color: var(--wheat);
  font-size: 1rem;
  letter-spacing: 0.05em;
}

.review-item .author {
  font-weight: 600;
  color: var(--soil);
  font-size: 0.9rem;
}

.review-item .text {
  color: var(--earth);
  font-size: 0.9rem;
  margin: 0.25rem 0 0;
}

.review-item .review-meta {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
}

.review-item .review-price {
  color: var(--soil);
  font-weight: 600;
}

.review-item .review-live {
  color: var(--leaf);
  font-weight: 700;
}

.review-item .review-live .live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--leaf);
  border-radius: 50%;
  margin-left: 4px;
  animation: pulse-dot 1.5s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.review-item .review-store {
  color: var(--leaf);
  text-decoration: none;
  border-bottom: 1px solid var(--leaf);
}

.review-item .review-store:hover {
  opacity: 0.85;
}

.review-item .review-store.disabled {
  pointer-events: none;
  cursor: default;
  color: var(--earth);
  border-bottom-color: var(--earth);
}

/* אנימציית הקלדה של ה-AI */
.typing-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--leaf);
  margin-right: 2px;
  vertical-align: text-bottom;
  animation: blink 0.7s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* מחירון */
.price-list {
  margin: 0.75rem 0 0;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--shadow);
  font-size: 0.95rem;
}

.price-row:last-child {
  border-bottom: none;
}

.price-row .name {
  color: var(--soil);
}

.price-row .price {
  font-weight: 600;
  color: var(--leaf);
}

/* אודות */
.about-content {
  max-width: 720px;
}

.about-content p {
  margin: 0 0 1rem;
  color: var(--earth);
  font-size: 1.05rem;
}

/* רספונסיב */
@media (max-width: 700px) {
  .hero-bg {
    grid-template-columns: 1fr;
  }

  .hero-overlay h1 {
    font-size: 1.75rem;
  }

  .hub-main-btn {
    padding: 1.5rem 1.25rem;
  }

  .hub-main-text {
    font-size: 1.15rem;
  }

  .hub-links {
    grid-template-columns: 1fr;
  }

  .chat-msg .bubble {
    max-width: 95%;
  }

  .review-item {
    flex-direction: column;
  }

  .review-item img {
    width: 100%;
    height: 120px;
  }
}
