/* =========================================
   AnimeEXT — Share modal styles
   ========================================= */

.modal-share {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  justify-content: center;
  align-items: flex-end;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s;
  z-index: 9999;
  backdrop-filter: blur(6px);
}

.modal-share.active {
  opacity: 1;
  visibility: visible;
}

.modal-share__container {
  background: var(--bg-2);
  border: 1px solid rgba(255, 255, 255, 0.09);
  width: 94%;
  max-width: 500px;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -6px 40px rgba(0, 0, 0, 0.5);
  padding: 20px;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.modal-share.active .modal-share__container {
  transform: translateY(0);
}

/* Handle indicator */
.modal-share__container::before {
  content: "";
  display: block;
  width: 40px;
  height: 4px;
  background: var(--bg-4);
  border-radius: 999px;
  margin: 0 auto 16px;
}

.modal-share__header {
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.modal-share__close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 1.4rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  transition: color var(--transition);
}

.modal-share__close:hover {
  color: var(--text-primary);
}

/* ── Share options scroll ── */
.share-options-wrapper {
  position: relative;
  overflow: hidden;
  margin-bottom: 16px;
}

.share-options {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 8px 0 16px;
  scrollbar-width: none;
}

.share-options::-webkit-scrollbar {
  display: none;
}

.scroll-btn {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(22, 27, 34, 0.9);
  border: 1px solid var(--bg-4);
  color: var(--text-primary);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all var(--transition);
}

.scroll-btn.hidden {
  opacity: 0;
  pointer-events: none;
}

.scroll-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg-0);
}

/* ── Option items ── */
.share-option {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.78rem;
  width: 68px;
  gap: 7px;
  transition: color var(--transition);
}

.share-option:hover {
  color: var(--text-primary);
}

.share-option:focus,
.share-option:active {
  color: inherit;
  outline: none;
}

.share-option__icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.6rem;
  transition: transform var(--transition), box-shadow var(--transition);
}

.share-option:hover .share-option__icon {
  transform: scale(1.1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.whatsapp {
  background: #25D366;
}

.facebook {
  background: #1877F2;
}

.correo {
  background: #555;
}

.pinterest {
  background: #E60023;
}

.telegram {
  background: #0088cc;
}

.reddit {
  background: #ff4500;
}

.x {
  background: #1a1a1a;
  border: 1px solid #333;
}

/* ── Link / copy ── */
.modal-share__link-box {
  display: flex;
  background: var(--bg-3);
  border: 1px solid var(--bg-4);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.modal-share__input {
  flex: 1;
  background: transparent;
  color: var(--text-secondary);
  border: none;
  padding: 10px 14px;
  font-size: 0.85rem;
  outline: none;
  font-family: var(--font-body);
}

.modal-share__copy-btn {
  background: var(--accent);
  border: none;
  color: var(--bg-0);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0 18px;
  cursor: pointer;
  transition: background var(--transition);
  font-family: var(--font-body);
}

.modal-share__copy-btn:hover {
  background: var(--accent-hover);
}