/**
 * Facts Modal Styles
 * BEM-based CSS - No global styles
 */

/* ==================== Modal Base ==================== */
.sosheets-facts-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sosheets-facts-modal--active {
  display: flex;
  opacity: 1;
}

/* ==================== Overlay ==================== */
.sosheets-facts-modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
}

/* ==================== Content Container ==================== */
.sosheets-facts-modal__content {
  position: relative;
  background: var(--dark-bg-light, #161b22);
  border-radius: 16px;
  max-width: 600px;
  width: 90%;
  padding: 3rem 2.5rem 2rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  border: 2px solid #28a06d;
  transform: scale(0.9);
  transition: transform 0.3s ease;
  text-align: center;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.sosheets-facts-modal--active .sosheets-facts-modal__content {
  transform: scale(1);
}

/* ==================== Close Button ==================== */
.sosheets-facts-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 2rem;
  color: #888;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s ease;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sosheets-facts-modal__close:hover {
  color: #fff;
}

/* ==================== Slides ==================== */
.sosheets-facts-modal__slide {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 1rem 0;
}

.sosheets-facts-modal__slide--active {
  display: flex;
}

.sosheets-facts-modal__title {
  font-size: 1rem;
  font-weight: 700;
  color: #28a06d;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 1.5rem 0;
}

.sosheets-facts-modal__text {
  font-size: 1.25rem;
  line-height: 1.7;
  color: #ccc;
  margin: 0;
  max-width: 500px;
}

/* ==================== Indicators ==================== */
.sosheets-facts-modal__indicators {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 2rem 0 1.5rem;
}

.sosheets-facts-modal__indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #444;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.sosheets-facts-modal__indicator:hover {
  background: #666;
}

.sosheets-facts-modal__indicator--active {
  background: #28a06d;
  transform: scale(1.2);
}

/* ==================== Navigation ==================== */
.sosheets-facts-modal__nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.sosheets-facts-modal__prev,
.sosheets-facts-modal__next {
  flex: 1;
  padding: 0.875rem 1.5rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sosheets-facts-modal__prev {
  background: transparent;
  border: 1px solid #444;
  color: #999;
}

.sosheets-facts-modal__prev:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: #666;
  color: #fff;
}

.sosheets-facts-modal__next {
  background: #217346;
  border: none;
  color: #fff;
}

.sosheets-facts-modal__next:hover {
  background: #28a06d;
}

/* ==================== Facts Trigger Icon ==================== */
.sosheets-facts__trigger {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #217346;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(33, 115, 70, 0.4);
  transition: all 0.3s ease;
}

.sosheets-facts__trigger:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(33, 115, 70, 0.6);
}

.sosheets-facts__trigger svg {
  width: 28px;
  height: 28px;
  color: white;
}

/* ==================== Responsive ==================== */
@media (max-width: 768px) {
  .sosheets-facts-modal__content {
    padding: 2.5rem 1.5rem 1.5rem;
    max-width: 95%;
  }

  .sosheets-facts-modal__text {
    font-size: 1.1rem;
  }

  .sosheets-facts-modal__nav {
    flex-direction: column;
  }

  .sosheets-facts__trigger {
    width: 55px;
    height: 55px;
  }

  .sosheets-facts__trigger svg {
    width: 24px;
    height: 24px;
  }
}
