/* עיצוב כללי לעמוד המצוות */
.mitzvot-columns {
  display: flex;
  gap: 2rem;
  margin: 2rem 0;
}

.mitzvot-column {
  flex: 1;
  border-radius: 12px;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  animation: shadowPulse 2s infinite;
}

/* עיצוב מקטע מצוות עשה */
.mitzvot-column.positive {
  background: linear-gradient(
    135deg,
    rgba(76, 175, 80, 0.1) 0%,
    rgba(76, 175, 80, 0.05) 100%
  );
  border: 2px solid #4caf50;
}

.mitzvot-column.positive::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: #4caf50;
}

@keyframes positiveShadowPulse {
  0% {
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.3);
  }
  50% {
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.5);
  }
  100% {
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.3);
  }
}

.mitzvot-column.positive {
  animation: positiveShadowPulse 3s infinite;
}

/* עיצוב מקטע מצוות לא תעשה */
.mitzvot-column.negative {
  background: linear-gradient(
    135deg,
    rgba(244, 67, 54, 0.1) 0%,
    rgba(244, 67, 54, 0.05) 100%
  );
  border: 2px solid #f44336;
}

.mitzvot-column.negative::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: #f44336;
}

@keyframes negativeShadowPulse {
  0% {
    box-shadow: 0 0 8px rgba(244, 67, 54, 0.3);
  }
  50% {
    box-shadow: 0 0 20px rgba(244, 67, 54, 0.5);
  }
  100% {
    box-shadow: 0 0 8px rgba(244, 67, 54, 0.3);
  }
}

.mitzvot-column.negative {
  animation: negativeShadowPulse 3s infinite;
}

/* עיצוב פריטי המצוות בתוך המקטעים */
.mitzvah-item {
  background: rgba(255, 255, 255, 0.9);
  margin-bottom: 1rem;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mitzvah-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.positive .mitzvah-item {
  border-right: 3px solid #4caf50;
}

.negative .mitzvah-item {
  border-right: 3px solid #f44336;
}

/* עדכון כפתורי הפרטים הנוספים */
.positive .details-btn {
  background-color: #4caf50;
}

.positive .details-btn:hover {
  background-color: #388e3c;
}

.negative .details-btn {
  background-color: #f44336;
}

.negative .details-btn:hover {
  background-color: #d32f2f;
}

/* התאמת הכותרות למקטעים */
.mitzvot-column h2 {
  color: #2c3e50;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

.positive h2 {
  color: #388e3c;
}

.negative h2 {
  color: #d32f2f;
}

/* רספונסיביות */
@media (max-width: 768px) {
  .mitzvot-columns {
    flex-direction: column;
  }

  .mitzvot-column {
    margin-bottom: 2rem;
  }
}

/* שאר הסגנונות נשארים כפי שהם... */

/* עיצוב המודל - מעודכן */
.mitzvah-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 20px;
  backdrop-filter: blur(5px);
}

.mitzvah-modal-content {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 20px;
  max-width: 800px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  padding: 2.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3), 0 0 100px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: modalAppear 0.3s ease-out;
}

@keyframes modalAppear {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* עדכון המודל - כותרת */
.modal-header {
  text-align: center;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid rgba(52, 152, 219, 0.2);
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1rem 1.5rem;
}

.modal-header::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 2px;
  background: linear-gradient(to right, #3498db, #2ecc71);
}

.modal-header h2 {
  color: #2c3e50;
  margin-bottom: 1rem;
  font-size: 2rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
  margin: 0 auto;
  padding-bottom: 0.5rem;
}

.modal-category {
  display: inline-block;
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 25px;
  font-size: 0.95rem;
  box-shadow: 0 2px 10px rgba(52, 152, 219, 0.3);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, 100%);
}

/* עיצוב הפסוקים - מעודכן */
.modal-verses {
  background: linear-gradient(135deg, #f1f9ff 0%, #ecf0f1 100%);
  padding: 2rem;
  border-radius: 15px;
  margin-bottom: 2.5rem;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(52, 152, 219, 0.2);
}

.verse-container {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease;
}

.verse-container:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.verse-text {
  font-size: 1.3rem;
  color: #2c3e50;
  margin-bottom: 0.8rem;
  line-height: 1.7;
  font-weight: 500;
}

.verse-source {
  color: #7f8c8d;
  font-size: 0.95rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* רשת הפרטים - מעודכן */
.mitzvah-details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.detail-card {
  background: white;
  border-radius: 15px;
  padding: 1.8rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(52, 152, 219, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.detail-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.detail-card h3 {
  color: #2c3e50;
  margin-bottom: 1.2rem;
  padding-bottom: 0.8rem;
  border-bottom: 2px solid rgba(52, 152, 219, 0.2);
  font-size: 1.2rem;
  position: relative;
}

.detail-card h3::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 50px;
  height: 2px;
  background: linear-gradient(to right, #3498db, #2ecc71);
}

.detail-card ul {
  list-style-type: none;
  padding: 0;
}

.detail-card li {
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  color: #34495e;
  transition: background-color 0.2s ease;
  padding-right: 1rem;
  position: relative;
}

.detail-card li::before {
  content: "•";
  color: #3498db;
  position: absolute;
  right: 0;
}

.detail-card li:last-child {
  border-bottom: none;
}

/* עיצוב מעודכן לכפתור סגירה */
.close-modal-btn {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: transparent;
  color: #e74c3c;
  border: 2px solid #e74c3c;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.close-modal-btn:hover {
  background: #e74c3c;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

.close-modal-btn:active {
  transform: translateY(1px);
}
