/**
 * Nadlan360 Facebook Group Plugin - Styles
 * גרסה: 1.0.0
 * תואם לעיצוב נדל"ן 360
 */

/* === משתנים - צבעים מהאתר === */
:root {
  --n360-footer-bg: #0f2342;
  --n360-accent: #ffd700;
  --n360-text-light: #c9d6ff;
  --n360-white: #ffffff;
}

/* === קופסת הפייסבוק === */
.n360-fb-box {
  background: linear-gradient(135deg, rgba(15, 35, 66, 0.95) 0%, rgba(15, 35, 66, 0.98) 100%);
  border: 2px solid rgba(255, 215, 0, 0.3);
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.n360-fb-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    var(--n360-accent) 50%, 
    transparent 100%);
  opacity: 0.5;
}

.n360-fb-box:hover {
  border-color: var(--n360-accent);
  box-shadow: 
    0 8px 30px rgba(255, 215, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* === אייקון פייסבוק === */
.n360-fb-icon {
  margin: 0 auto 16px;
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--n360-accent) 0%, #ffed4e 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 
    0 4px 15px rgba(255, 215, 0, 0.4),
    inset 0 2px 4px rgba(255, 255, 255, 0.3);
  animation: pulse 2s ease-in-out infinite;
}

.n360-fb-icon svg {
  color: var(--n360-footer-bg);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
  }
}

/* === כותרת === */
.n360-fb-title {
  color: var(--n360-white);
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 12px 0;
  line-height: 1.3;
  position: relative;
  padding-bottom: 12px;
}

.n360-fb-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    var(--n360-accent) 50%, 
    transparent 100%);
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* === תיאור === */
.n360-fb-desc {
  color: var(--n360-text-light);
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 16px 0;
  opacity: 0.95;
}

/* === כותרת משנית === */
.n360-fb-subtitle {
  color: var(--n360-accent);
  font-size: 13px;
  line-height: 1.4;
  margin: 0 0 4px 0;
  font-weight: 600;
  opacity: 0.9;
  display: none; /* מוסתר בעיצוב אנכי */
}

/* קבוצת טקסט - לעיצוב אנכי */
.n360-fb-text-group {
  /* בעיצוב אנכי זה לא צריך סטיילים מיוחדים */
}

/* === מספר חברים === */
.n360-fb-members {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 215, 0, 0.15);
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.n360-fb-members svg {
  color: var(--n360-accent);
  flex-shrink: 0;
}

.n360-fb-members span {
  color: var(--n360-white);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

/* === כפתור === */
.n360-fb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--n360-accent) 0%, #ffed4e 100%);
  color: var(--n360-footer-bg);
  padding: 14px 32px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  transition: all 0.3s ease;
  box-shadow: 
    0 4px 12px rgba(255, 215, 0, 0.3),
    inset 0 2px 0 rgba(255, 255, 255, 0.3),
    inset 0 -2px 0 rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
}

.n360-fb-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.3), 
    transparent);
  transition: left 0.5s ease;
}

.n360-fb-btn:hover::before {
  left: 100%;
}

.n360-fb-btn:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 6px 20px rgba(255, 215, 0, 0.5),
    inset 0 2px 0 rgba(255, 255, 255, 0.4),
    inset 0 -2px 0 rgba(0, 0, 0, 0.1);
  text-decoration: none;
  color: var(--n360-footer-bg);
}

.n360-fb-btn:active {
  transform: translateY(0);
  box-shadow: 
    0 2px 8px rgba(255, 215, 0, 0.4),
    inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.n360-fb-btn svg {
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.n360-fb-btn:hover svg {
  transform: translateX(-3px); /* RTL - חץ זז שמאלה */
}

/* === רספונסיביות === */
@media (max-width: 640px) {
  .n360-fb-box {
    padding: 24px 18px;
  }
  
  .n360-fb-title {
    font-size: 18px;
  }
  
  .n360-fb-desc {
    font-size: 13px;
  }
  
  .n360-fb-btn {
    padding: 12px 24px;
    font-size: 15px;
    width: 100%;
  }
}

/* === גרסה כהה === */
.n360-fb-box.dark-mode {
  background: linear-gradient(135deg, rgba(10, 25, 47, 0.98) 0%, rgba(15, 35, 66, 0.98) 100%);
}

/* === אנימציות נוספות === */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.n360-fb-box {
  animation: fadeIn 0.5s ease;
}

/* === Accessibility === */
.n360-fb-btn:focus {
  outline: 3px solid var(--n360-accent);
  outline-offset: 3px;
}

.n360-fb-btn:focus:not(:focus-visible) {
  outline: none;
}

/* === עיצוב מיוחד לפוטר === */
footer .n360-fb-box {
  background: rgba(15, 35, 66, 0.5);
  border-color: rgba(255, 215, 0, 0.2);
}

footer .n360-fb-box:hover {
  background: rgba(15, 35, 66, 0.7);
}

/* === הדפסה === */
@media print {
  .n360-fb-box {
    display: none;
  }
}

/* ============================================
   עיצוב LANDSCAPE (רוחב)
   ============================================ */

.n360-fb-box.n360-fb-layout-landscape {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto auto;
  gap: 12px 20px;
  padding: 20px 24px;
  max-width: 100%;
  align-items: center;
}

/* אייקון בצד שמאל - תופס 2 שורות */
.n360-fb-layout-landscape .n360-fb-icon {
  grid-column: 1;
  
  margin: 0;
  flex-shrink: 0;
  width: 50px;
  height: 50px;
}

.n360-fb-layout-landscape .n360-fb-icon svg {
  width: 56px;
  height: 56px;
}

/* קונטיינר התוכן - תופס את העמודות האמצעיות והימניות */
.n360-fb-layout-landscape .n360-fb-content {
  grid-column: 2 / 4;
  grid-row: 1 / 3;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 16px 20px;
  align-items: start;
}

/* קבוצת הטקסט - כותרת + כותרת משנית */
.n360-fb-layout-landscape .n360-fb-text-group {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  justify-self: center;
  text-align: center;
}

/* כותרת בעיצוב landscape */
.n360-fb-layout-landscape .n360-fb-title {
  font-size: 20px;
  margin: 0;
  padding: 0;
  white-space: nowrap;
  line-height: 1.2;
  font-weight: 800;
}

.n360-fb-layout-landscape .n360-fb-title::after {
  display: none;
}

/* כותרת משנית בעיצוב landscape */
.n360-fb-layout-landscape .n360-fb-subtitle {
  display: block !important;
  margin: 0;
  font-size: 14px;
  white-space: nowrap;
  line-height: 1.3;
}

/* תיאור מוסתר בעיצוב landscape */
.n360-fb-layout-landscape .n360-fb-desc {
  display: none;
}

/* מספר חברים - למעלה מימין */
.n360-fb-layout-landscape .n360-fb-members {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  flex-shrink: 0;
  align-self: start;
}

/* כפתור - במרכז למטה */
.n360-fb-layout-landscape .n360-fb-btn {
  grid-column: 1 / 3;
  grid-row: 2;
  padding: 12px 32px;
  font-size: 16px;
  justify-self: center;
  margin: 0 auto;
  min-width: 200px;
  color: #000000;
}

/* מסגרת מעודנת יותר לעיצוב landscape */
.n360-fb-layout-landscape {
  border-width: 1px;
  border-color: rgba(255, 215, 0, 0.4);
}

.n360-fb-layout-landscape::before {
  height: 2px;
  background: linear-gradient(90deg, 
    var(--n360-accent) 0%, 
    transparent 50%, 
    var(--n360-accent) 100%);
}

/* רספונסיביות לעיצוב landscape */
@media (max-width: 968px) {
  .n360-fb-layout-landscape {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
  }
  
  .n360-fb-layout-landscape .n360-fb-icon {
    justify-self: center;
    margin: 0 auto 12px;
  }
  
  .n360-fb-layout-landscape .n360-fb-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 0 auto;
    gap: 16px;
  }
  
  .n360-fb-layout-landscape .n360-fb-text-group {
    justify-self: center;
    align-items: center;
    text-align: center;
  }
  
  .n360-fb-layout-landscape .n360-fb-members {
    justify-self: center;
    margin: 0 auto;
  }
  
  .n360-fb-layout-landscape .n360-fb-btn {
    width: 100%;
    max-width: 300px;
    justify-self: center;
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .n360-fb-layout-landscape {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .n360-fb-layout-landscape .n360-fb-icon {
    margin: 0 auto 12px;
    justify-self: center;
  }
  
  .n360-fb-layout-landscape .n360-fb-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .n360-fb-layout-landscape .n360-fb-text-group {
    text-align: center;
    align-items: center;
    justify-self: center;
  }
  
  .n360-fb-layout-landscape .n360-fb-title {
    white-space: normal;
    font-size: 18px;
    text-align: center;
  }
  
  .n360-fb-layout-landscape .n360-fb-subtitle {
    white-space: normal;
    font-size: 13px;
    text-align: center;
  }
  
  .n360-fb-layout-landscape .n360-fb-members {
    justify-self: center;
    margin: 0 auto;
  }
  
  .n360-fb-layout-landscape .n360-fb-btn {
    width: 100%;
    justify-self: center;
    margin: 0 auto;
  }
}
