/* === תוספות מותאמות אישית === */


/* כאן אמור להיות כל ה-CSS שבנינו קודם (style.css עם העיצוב האישי שלך) */

/* Reset בסיסי */
body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', sans-serif;
    direction: rtl;
    background: #f9f9f9;
    color: #333;
}

/* ===== HEADER ===== */
.site-header {
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    padding: 1rem 2rem;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-title h1 {
    font-size: 1.4rem;
    margin: 0;
}

.logo-title a {
    color: #000;
    text-decoration: none;
    font-weight: bold;
}

.main-nav a {
    margin-right: 1.5rem;
    color: #333;
    text-decoration: none;
    font-weight: 500;
}

.main-nav a:hover {
    text-decoration: underline;
}

/* ===== HERO AREA ===== */
.hero {
    text-align: center;
    padding: 3rem 1rem;
    background-color: #f5f9ff;
}

.main-btn {
    font-size: 1.4rem;
    background: #ff7a00;
    color: white;
    padding: 0.8rem 1.6rem;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    margin-bottom: 1rem;
}

.subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
}

.search-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.search-bar input {
    width: 60%;
    padding: 1rem;
    font-size: 1rem;
    border-radius: 25px;
    border: 1px solid #ccc;
}

.search-bar button {
    font-size: 1.2rem;
    padding: 0.9rem 1.2rem;
    background: #00bfa5;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
}

/*---------------------------------------*/

.search-wrapper {
  position: relative;
  max-width: 700px;
  margin: 2rem auto;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid #c9e0ff;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  padding: 0.5rem 1.25rem;
}

.search-wrapper {
  position: relative;
  max-width: 700px;
  margin: 2rem auto;
  border-radius: 999px;
  border: 1px solid #c9e0ff;
  background-color: #fff;
  display: flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  direction: rtl;
}

.search-input {
  flex-grow: 1;
  border: none;
  outline: none;
  font-size: 1.1rem;
  background: transparent;
  color: #333;
  direction: rtl;
}

.search-input::placeholder {
  color: #aaa;
}

.search-icon {
  width: 20px;
  height: 20px;
  color: #60a5fa;
  margin-left: 10px;
  pointer-events: none;
}


.autocomplete-list {
  position: absolute;
  top: 105%;
  right: 0;
  left: 0;
  z-index: 1000;
  background: white;
  border-radius: 0 0 1rem 1rem;
  border: 1px solid #e0e0e0;
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 250px;
  overflow-y: auto;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.autocomplete-list li {
  padding: 0.75rem 1rem;
  cursor: pointer;
  text-align: right;
}

.autocomplete-list li:hover {
  background-color: #f3f4f6;
}


/* ===== RECOMMENDATION BOX ===== */
.recommendation-box {
  background: linear-gradient(to right, #fffbe6, #fffdf4);
  padding: 2rem;
  margin: 3rem auto;
  border-radius: 12px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
  max-width: 900px;
  direction: rtl;
  text-align: right;
}

.recommendation-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: #333;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.icon-heading {
  width: 22px;
  height: 22px;
  color: #f97316;
  flex-shrink: 0;
}

.recommendation-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
  font-size: 1.1rem;
  color: #444;
}

.indented-list li {
  padding-right: 2em; /* ההזחה של כל השורה */
  text-indent: -1em;  /* כדי שהאייקון לא יזוז שמאלה מדי */
  margin-bottom: 0.5em;
}

.recommendation-note {
  color: #777;
  font-size: 0.85rem;
}

/* ===== AI RESULT BOX ===== */
.ai-result {
    max-width: 800px;
    margin: 2rem auto;
    background: #f0f0f0;
    padding: 1.5rem;
    border-right: 5px solid #00bfa5;
    border-radius: 6px;
    font-size: 1.1rem;
}

/* ===== CONTACT FORM ===== */
.contact-form {
    max-width: 600px;
    margin: auto;
    background: #ffffff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.contact-form label {
    display: block;
    margin: 1rem 0 0.3rem;
    font-weight: bold;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
}

/* ===== POST PAGE ===== */
.post-full {
    background: #ffffff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    max-width: 800px;
    margin: 2rem auto;
}

.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-top: 1rem;
}

/* ===== BLOG PAGE ===== */
.section-title {
    text-align: center;
    font-size: 2rem;
    margin: 2rem 0;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.post-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    transition: transform 0.2s ease;
}

.post-card:hover {
    transform: translateY(-5px);
}

.post-date {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 0.8rem;
}

.post-excerpt {
    font-size: 1rem;
    line-height: 1.6;
}

.read-more {
    display: inline-block;
    margin-top: 1rem;
    color: #00bfa5;
    text-decoration: none;
    font-weight: bold;
}

.read-more:hover {
    text-decoration: underline;
}

/* ===== ADMIN CONTACTS TABLE ===== */
.admin-table {
    overflow-x: auto;
    margin-top: 2rem;
}

.admin-table table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.admin-table th,
.admin-table td {
    padding: 1rem;
    text-align: right;
    border-bottom: 1px solid #eee;
}

.admin-table th {
    background-color: #f9f9f9;
    font-weight: bold;
}

.admin-table tr:hover {
    background-color: #fafafa;
}

.mark-btn {
    background: #00bfa5;
    color: white;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9rem;
}

.mark-btn:hover {
    background: #009e8c;
}

/* ===== ADS PAGE ===== */
.ads-box {
    background: #f4faff;
    padding: 2rem;
    border-radius: 12px;
    max-width: 700px;
    margin: 2rem auto;
    box-shadow: 0 1px 6px rgba(0,0,0,0.05);
    text-align: center;
}

.ads-box ul {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}

.ads-box li {
    padding: 0.5rem 0;
    font-size: 1.1rem;
}

.ads-cta {
    margin-top: 2rem;
}

.cta-btn {
    display: inline-block;
    background: #ff7a00;
    color: white;
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
}

.cta-btn:hover {
    background: #e96d00;
}

/* ===== FLOATING BUTTON ===== */
.floating-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 999;
}

.floating-btn button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #6200ee;
    color: white;
    font-size: 1.2rem;
    border: none;
    cursor: pointer;
}

.fab-menu {
    display: none;
    flex-direction: column;
    background: white;
    border-radius: 8px;
    margin-top: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.fab-menu a {
    padding: 0.8rem 1rem;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #eee;
}

.fab-menu a:last-child {
    border-bottom: none;
}

.floating-btn.open .fab-menu {
    display: flex;
}

/* ===== כללי ===== */
.error {
    color: #c00;
    font-weight: bold;
    text-align: center;
    margin-top: 1rem;
}

.loading {
    text-align: center;
    margin-top: 1.5rem;
    font-style: italic;
}

footer {
    text-align: center;
    padding: 1.5rem;
    margin-top: 3rem;
    font-size: 0.9rem;
    color: #666;
    background-color: #eee;
}

.main-cta-btn {
  background: linear-gradient(90deg, #fb923c, #f97316);
  color: white;
  border: none;
  border-radius: 999px;
  padding: 0.75rem 1.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
  transition: all 0.3s ease;
  direction: rtl;
}

.main-cta-btn:hover {
  background: linear-gradient(90deg, #f97316, #fb923c);
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(249, 115, 22, 0.4);
}

.lucide-icon {
  width: 24px;
  height: 24px;
  stroke-width: 2;
}

/* Login */

.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80vh;
  direction: rtl;
}

.login-box {
  background: #fff;
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.07);
  width: 100%;
  max-width: 400px;
  text-align: center;
}

.lock-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #3b82f6;
}

.login-title {
  margin-bottom: 1.5rem;
  font-size: 1.4rem;
  font-weight: bold;
  color: #111827;
}

.login-box label {
  display: block;
  text-align: right;
  margin: 1rem 0 0.4rem;
  font-size: 0.95rem;
  color: #374151;
}

.login-box input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.login-box input:focus {
  border-color: #3b82f6;
  outline: none;
}

.login-button {
  margin-top: 1.5rem;
  background-color: #3b82f6;
  color: #fff;
  border: none;
  padding: 0.8rem;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  width: 100%;
  transition: background-color 0.3s ease;
}

.login-button:hover {
  background-color: #2563eb;
}
