/*
 Theme Name:   Lobbyrh Pets Child
 Theme URI:    pets.lobbyrh.org
 Description:  A child theme for Lobbyrh Pets
 Author:       yosittt
 Author URI:   
 Template:     lobbyrh-pets
 Version:      1.0.1
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  lobbyrh-pets-child
*/

/* --- הגדרות גלובליות ומשתנים --- */
:root {
  --color-primary: #d8493c;
  --color-primary-hover: #ff5f00;
  --color-dark: #052545;
  --color-gray: #949494;
  --color-background: #fff7ee;
  --color-white: #ffffff;
  --color-border: rgba(216, 73, 60, 0.2);
  
  /* משתנה לגובה ההדר - יעודכן אוטומטית ע"י ה-JS */
  --header-original-height: 110px; 
}

/* --- הגדרות גופנים --- */
@font-face {
  font-display: swap;
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/rubik-v28-hebrew-regular.woff2') format('woff2');
}

@font-face {
  font-display: swap;
  font-family: 'Rubik';
  font-style: italic;
  font-weight: 400;
  src: url('fonts/rubik-v28-hebrew-italic.woff2') format('woff2');
}

@font-face {
  font-display: swap;
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 600;
  src: url('fonts/rubik-v28-hebrew-600.woff2') format('woff2');
}

@font-face {
  font-display: swap;
  font-family: 'Rubik';
  font-style: italic;
  font-weight: 600;
  src: url('fonts/rubik-v28-hebrew-600italic.woff2') format('woff2');
}

@font-face {
  font-display: swap;
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 800;
  src: url('fonts/rubik-v28-hebrew-800.woff2') format('woff2');
}

/* --- הגדרות בסיסיות --- */
body {
  font-family: 'Rubik', sans-serif;
  font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Rubik', sans-serif;
  font-weight: 600;
  color: var(--color-primary);
}

a {
  color: var(--color-dark);
}

a:visited {
  color: var(--color-gray);
}

a:hover, a:focus, a:active {
  color: #cf2e2e;
}

.post, .page {
    margin-bottom: 0;
}

/* --- הידר --- */
.site-header {
  background-color: rgb(255 255 255 / 66%);
  background-image: linear-gradient(178deg, #ffffff7a 80%, rgb(255 247 238) 100%), linear-gradient(188deg, #ffffff7a 30%, rgb(255 247 238) 100%);
  border-bottom: solid 4px;
  padding: 0.5em 6.67em;
  box-shadow: 2px 0px 10px 2px rgba(0, 0, 0, 0.1);
  border-image: linear-gradient(195deg, #cf2e2e 0%, rgb(249 165 107) 100%);
  border-image-slice: 2;
  min-height: auto;
}

.wbn-header-area {
  margin: 0 auto;
  max-width: 1400px;
}

.header-widget-area {
  display: flex;
  justify-content: center;
}

.header-widget-area .widget {
  margin: 0;
}

.branding-and-nav-header {
  display: flex;
  justify-content: space-between;
  flex-direction: row;
  align-items: center;
}

.site-branding {
  max-width: 150px;
  padding-left: 20px;
}

.nav-menu {
  padding: 20px;
}

.widget-and-nav-header {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: flex-end;
  justify-content: flex-start;
}

/* --- תוכן ראשי --- */
main {
  
  margin: 0px auto;  
  background-color: var(--color-background);
  min-height: 650px;
}

.container{
  padding: 60px 20px;
  max-width: 1400px;
  margin: 0 auto;
}

/* --- תגובות --- */
textarea {
  background-color: rgb(255 250 245);
}

/* --- עמוד ארכיון --- */
.li-article {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
}

.li-article .entry-thumbnail {
  border: solid 1px;
  padding: 4px;
  margin: 1.5em;
}

/* --- פוטר --- */
.site-footer {
  background-color: rgb(255 255 255 / 66%);
  background-image: linear-gradient(180deg, #fff3f373 0%, rgb(255 247 238) 100%);
  border-top: solid 1px #cf2e2e;
  padding: 40px 6.67em;
  box-shadow: 1px 0px 12px 2px rgba(0, 0, 0, 0.1);
}

.site-info {
  text-align: center;
}

.site-info a {
  margin: 0 auto;
  font-size: 20px;
  text-decoration: none;
  color: #cf2e2e;
}

/* --- שיפור עיצוב לינק "המשך קריאה" --- */
.read-more-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: var(--color-dark);
    color: var(--color-white);
    padding: 8px 16px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--color-dark);
    margin-top: 1em;
}

.read-more-link::before {
    content: "📖"; /* אייקון ספר פתוח */
}

.read-more-link:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* התאמה לעיצוב הלינק הקיים בארכיון */
.li-article .entry-read-more {
  text-align: right;
  margin-top: 1em;
}

/* ==========================================================================
   התאמות למובייל (מתחת ל-800px)
   ========================================================================== */
@media (max-width: 800px) {
  
  /* --- 1. הדר ותפריט --- */
  .site-header {
    padding: 0.5em 15px; /* שינוי לריווח צר יותר */
  }

  
  
  /* --- 4. עמודי ארכיון למובייל --- */
  .li-article {
    /* שינוי כיוון הפריטים לטור (תמונה מלמעלה, תוכן מתחתיה) */
    flex-direction: column;
    align-items: center; /* מרכוז התמונה והבלוק השמאלי */    
  }

  /* הוספת קו הפרדה וריווח לכל פוסט (article) */
  #primary article { 
      padding-bottom: 25px; /* הוספת ריווח לפני קו ההפרדה */
      margin-bottom: 25px; /* הוספת ריווח אחרי קו ההפרדה */
      border-bottom: 2px solid var(--color-border); /* קו הפרדה בין פוסטים */
  }

  /* הסרת קו הפרדה מהפוסט האחרון */
  #primary article:last-of-type { 
      border-bottom: none;
      margin-bottom: 0;
      padding-bottom: 0;
  }
  .li-article .entry-thumbnail {
    /* התאמת התמונה לרוחב המובייל */
    max-width: 100%; /* רוחב מלא של הבלוק */
    margin: 1.5em 0; /* ריווח אנכי מעל ומתחת לתמונה */
    border: 2px solid var(--color-primary); /* שיפור הנראות עם צבע ראשי */
    border-radius: 8px; /* הוספת פינות מעוגלות */
    padding: 8px;
  }

  .li-article .entry-thumbnail img {
    height: auto;
    width: 100%;
    display: block;
    border-radius: 4px;
  }

  .left-li-article {
    width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
    text-align: right; /* יישור הטקסט (כמו בשאר העיצוב בעברית) */
  }

  .left-li-article .entry-title {
    font-size: 1.6rem;
    margin-top: 0.5em;
  }

  /* --- 5. מטא, תגובות וסיידבר במובייל --- */
  .entry-meta {
    flex-direction: column;
    gap: 10px;
  }

  .nav-links {
    flex-direction: column;
  }

  .nav-previous,
  .nav-next {
    min-width: 100%;
  }

  .children {
    padding-right: 15px;
  }

  .comment-form {
    grid-template-columns: 1fr;
  }
}

.site-footer {
  padding: 40px 1.67em;
}
/* --- התאמות לדסקטופ (מעל 800px) --- */
@media (min-width: 801px) {
  .header-widget-area-mobile {
    display: none;
  }
}

/* ========================================
   מטא-דאטה, תגובות, סיידבר - עיצוב כללי
======================================== */

/* --- מטא-דאטה של פוסט (תאריך, מחבר, קטגוריות) --- */
.entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 1.5em;
  padding-bottom: 1em;
  border-bottom: 2px solid var(--color-border);
  font-size: 0.95rem;
  color: var(--color-gray);
}

.entry-meta > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.entry-meta a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.entry-meta a:hover {
  color: var(--color-primary-hover);
}

.posted-on,
.byline,
.cat-links,
.tags-links,
.comments-link {
  position: relative;
  padding-right: 20px;
}

.posted-on::before {
  content: "📅";
  margin-left: 5px;
}

.byline::before {
  content: "✍️";
  margin-left: 5px;
}

.cat-links::before {
  content: "📁";
  margin-left: 5px;
}

.tags-links::before {
  content: "🏷️";
  margin-left: 5px;
}

.comments-link::before {
  content: "💬";
  margin-left: 5px;
}

/* עיצוב כפתור התגובות */
.comments-link {
  margin-right: 20px;
}

.comments-link a {
  display: inline-flex;
  align-items: center;
  background-color: var(--color-background);
  color: var(--color-primary);
  padding: 6px 15px;
  border-radius: 5px;
  border: 1px solid var(--color-primary);
  font-weight: 600;
  transition: all 0.3s ease;
}

.comments-link a:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

/* --- תגיות וקטגוריות --- */
.cat-links a,
.tags-links a {
  display: inline-block;
  background-color: var(--color-background);
  padding: 4px 12px;
  border-radius: 15px;
  margin: 2px;
  border: 1px solid var(--color-border);
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.cat-links a:hover,
.tags-links a:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

/* --- כפתורי עריכה למנהלים --- */
.edit-link {
  margin-top: 1em;
  display: inline-block;
}

.edit-link a,
.post-edit-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--color-dark);
  color: var(--color-white);
  padding: 8px 16px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid var(--color-dark);
}

.edit-link a::before,
.post-edit-link::before {
  content: "✏️";
}

.edit-link a:hover,
.post-edit-link:hover {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* --- ניווט בין פוסטים --- */
.post-navigation,
.posts-navigation {
  margin: 2em 0;
  padding: 1.5em 0;
  border-top: 2px solid var(--color-border);
  border-bottom: 2px solid var(--color-border);
}

.nav-links {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.nav-previous,
.nav-next {
  flex: 1;
  min-width: 200px;
}

.nav-previous a,
.nav-next a {
  display: block;
  padding: 15px 20px;
  background-color: var(--color-background);
  border: 2px solid var(--color-primary);
  border-radius: 8px;
  text-decoration: none;
  color: var(--color-primary);
  font-weight: 600;
  transition: all 0.3s ease;
}

.nav-previous a:hover,
.nav-next a:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
  transform: translateX(-3px);
}

.nav-next a:hover {
  transform: translateX(3px);
}

.nav-previous a::before {
  content: "→ ";
  margin-left: 5px;
}

.nav-next a::after {
  content: " ←";
  margin-right: 5px;
}

/* --- מערכת תגובות --- */
.comments-area {
  margin-top: 3em;
  padding-top: 2em;
  border-top: 3px solid var(--color-primary);
}

.comments-title,
.comment-reply-title {
  color: var(--color-primary);
  font-size: 1.8rem;
  margin-bottom: 1em;
  padding-bottom: 0.5em;
  border-bottom: 2px dashed var(--color-border);
}

.comment-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.comment-body {
  background-color: var(--color-white);
  border: 2px solid var(--color-border);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.comment-body:hover {
  border-color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(216, 73, 60, 0.1);
}

.comment-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.comment-author .avatar {
  border-radius: 50%;
  border: 3px solid var(--color-primary);
}

.comment-author .fn {
  font-weight: 700;
  color: var(--color-primary);
  font-size: 1.1rem;
}

.comment-author .says {
  display: none;
}

.comment-metadata {
  font-size: 0.85rem;
  color: var(--color-gray);
  margin-bottom: 12px;
}

.comment-metadata a {
  color: var(--color-gray);
  text-decoration: none;
}

.comment-metadata a:hover {
  color: var(--color-primary);
}

.comment-content {
  margin: 15px 0;
  line-height: 1.6;
}

.reply {
  margin-top: 10px;
}

.comment-reply-link {
  display: inline-block;
  background-color: var(--color-background);
  color: var(--color-primary);
  padding: 6px 15px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid var(--color-primary);
  transition: all 0.3s ease;
}

.comment-reply-link:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.children {
  list-style: none;
  padding-right: 30px;
  margin-top: 15px;
}

/* --- טופס תגובות --- */
.comment-respond {
  margin-top: 2em;
  padding: 25px;
  background-color: rgba(255, 247, 238, 0.5);
  border-radius: 10px;
  border: 2px solid var(--color-border);
}

.comment-form {
  display: grid;
  gap: 15px;
}

.comment-form-comment {
  grid-column: 1 / -1;
}

.comment-form label {
  display: block;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 5px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid var(--color-border);
  border-radius: 8px;
  background-color: rgb(255, 250, 245);
  font-family: 'Rubik', sans-serif;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(216, 73, 60, 0.1);
}

.comment-form textarea {
  min-height: 150px;
  resize: vertical;
}

.form-submit {
  grid-column: 1 / -1;
}

.form-submit input[type="submit"] {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 12px 30px;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  font-family: 'Rubik', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
}

.form-submit input[type="submit"]:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(216, 73, 60, 0.3);
}

/* כפתורי התחברות וניתוק בטופס תגובות */
.must-log-in,
.logged-in-as {
  margin-bottom: 15px;
  padding: 15px;
  background-color: rgba(5, 37, 69, 0.05);
  border-radius: 8px;
  border-right: 4px solid var(--color-primary);
}

.must-log-in a,
.logged-in-as a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 5px;
  transition: all 0.3s ease;
  display: inline-block;
  margin: 0 5px;
}

.must-log-in a:hover,
.logged-in-as a:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

/* כפתור ניתוק ספציפי */
.logged-in-as a[href*="logout"] {
  background-color: rgba(216, 73, 60, 0.1);
  border: 1px solid var(--color-primary);
}

.logged-in-as a[href*="logout"]:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

/* כפתור עריכה של משתמש */
.comment-form .comment-user-edit a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--color-dark);
  color: var(--color-white);
  padding: 8px 16px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid var(--color-dark);
  margin-top: 10px;
}

.comment-form .comment-user-edit a::before {
  content: "✏️";
}

.comment-form .comment-user-edit a:hover {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

/* --- סיידבר --- */
.widget-area {
  padding: 20px;
}

/* עיצוב רק לווידג'טים ספציפיים בסיידבר */
.widget-area .widget {
  background-color: var(--color-white);
  border: 2px solid var(--color-border);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 25px;
  transition: all 0.3s ease;
}

.widget-area .widget:hover {
  border-color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(216, 73, 60, 0.1);
}

/* כותרות ווידג'טים בסיידבר */
.widget-area .widget .widget-title {
  color: var(--color-primary);
  font-size: 1.4rem;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-border);
  position: relative;
}

.widget-area .widget .widget-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  right: 0;
  width: 50px;
  height: 2px;
  background-color: var(--color-primary);
}

/* רשימות בווידג'טים */
.widget-area .widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.widget-area .widget li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(216, 73, 60, 0.1);
}

.widget-area .widget li:last-child {
  border-bottom: none;
}

/* לינקים בווידג'טים עם חיצים */
.widget-area .widget a {
  color: var(--color-dark);
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.widget-area .widget a:hover {
  color: var(--color-primary);
  padding-right: 5px;
}

.widget-area .widget a::before {
  content: "◀";
  font-size: 0.7rem;
  color: var(--color-primary);
}

/* ווידג'ט חיפוש */
.widget_search .search-form {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.widget_search .widget-title {
  color: var(--color-primary);
  font-size: 1.5rem;
  margin-bottom: 15px;
  padding-bottom: 10px;
  font-weight: 700;
}

.widget_search label {
  display: block;
  margin-bottom: 8px;
  color: var(--color-dark);
  font-weight: 600;
  font-size: 1.05rem;
}

.widget_search .search-field {
  flex: 1;
  padding: 12px 15px;
  border: 2px solid var(--color-border);
  border-radius: 8px;
  font-family: 'Rubik', sans-serif;
  font-size: 1rem;
  background-color: rgb(255, 250, 245);
  transition: all 0.3s ease;
}

.widget_search .search-field:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(216, 73, 60, 0.1);
}

.widget_search .search-submit {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Rubik', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.widget_search .search-submit:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(216, 73, 60, 0.3);
}

/* ווידג'ט קטגוריות וארכיון */
.widget_categories select,
.widget_archive select {
  width: 100%;
  padding: 10px 15px;
  border: 2px solid var(--color-border);
  border-radius: 8px;
  background-color: var(--color-white);
  font-family: 'Rubik', sans-serif;
  cursor: pointer;
}

/* --- שיפורים נוספים --- */
/* פוסטים דביקים */
.sticky-post {
  border-right: 4px solid var(--color-primary);
  background-color: rgba(255, 247, 238, 0.5);
  padding-right: 15px;
}

/* פוסט מוגן בסיסמה */
.post-password-form input[type="password"] {
  padding: 10px 15px;
  border: 2px solid var(--color-border);
  border-radius: 8px;
  margin-left: 10px;
}

.post-password-form input[type="submit"] {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Rubik', sans-serif;
  font-weight: 600;
}

.post-password-form input[type="submit"]:hover {
  background-color: var(--color-primary-hover);
}

