/*
  components.css
  ------------------
  Propósito: Estilos para enlaces, botones, tarjetas de comisiones, modales y reproductor musical.
*/

/* ===========================
   BOTONES Y ENLACES (LINKS)
=========================== */
.links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; justify-items: stretch; }

.links a, .back-home, .nsfw-buttons button {
  cursor: url('../cursors/cursorHover.cur'), pointer;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.links a {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--btn-grad-1) 0%, var(--btn-grad-3) 100%);
  color: var(--text-light); text-decoration: none; padding: 1.2rem; border-radius: 12px;
  font-family: 'Montserrat', sans-serif; font-weight: 400; letter-spacing: 0.5px;
  border-top: 1px solid rgba(255, 255, 255, 0.2); border-left: 1px solid rgba(255, 255, 255, 0.1);
  border-right: 1px solid rgba(0, 0, 0, 0.4); border-bottom: 1px solid rgba(0, 0, 0, 0.6);
  font-size: 1rem; text-align: center; box-shadow: 0 8px 20px rgba(0,0,0,0.6);
  position: relative; overflow: hidden;
}

.links a::before {
  content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.2), transparent);
  transform: skewX(-25deg); transition: all 0.6s ease; pointer-events: none;
}
.links a:hover::before { left: 150%; }

.links a img {
  width: 36px; height: 36px; margin-bottom: 8px;
  filter: brightness(0) invert(1) var(--icon-shadow-elegant);
  transition: filter 0.4s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.patreon-link img, .bluesky-link img, .patreon-link-inline img, .bluesky-link-inline img {
  width: 30px; height: 30px; margin-right: 0.6rem; margin-bottom: 0; vertical-align: middle;
}
.patreon-link span, .bluesky-link span { font-weight: 500; }
.links a span, .links a strong { color: inherit; transition: color 0.2s ease; }

.links a:hover {
  background: linear-gradient(135deg, var(--accent-purple) 0%, var(--bg-purple-light) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 10px 25px rgba(214, 34, 136, 0.5), inset 0 0 10px rgba(255,255,255,0.2);
  transform: translateY(-4px) scale(1.02);
}
.links a:hover img { transform: scale(1.15) translateY(-2px); filter: brightness(0) invert(1) drop-shadow(0 0 15px rgba(255, 255, 255, 1)); }

/* ===========================
   MODAL T.O.S.
=========================== */
.tos-modal {
  position: fixed; inset: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.82); display: flex;
  align-items: center; justify-content: center; padding: 1.5rem;
  z-index: 10000; opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.tos-modal.open { opacity: 1; pointer-events: all; }

.tos-modal-content {
  position: relative; width: min(680px, 94vw); max-height: min(84vh, 760px);
  overflow-y: auto; background: linear-gradient(135deg, var(--btn-grad-1) 0%, var(--btn-grad-3) 100%);
  border: 1px solid rgba(255,255,255,0.35); border-radius: 18px;
  padding: 2rem; box-shadow: 0 20px 60px rgba(0,0,0,0.9), 0 0 30px rgba(214,34,136,0.4);
  font-family: 'Montserrat', sans-serif;
}

.tos-modal-content h2 {
  font-family: 'Marcellus', serif; font-size: clamp(2rem, 3vw, 2.3rem);
  color: var(--text-light); margin: 0 0 1rem; text-align: center;
}

.tos-list {
  color: var(--text-light);
}

.tos-list .tos-section { margin-bottom: 1.2rem; border-bottom: 1px solid rgba(255,255,255,0.24); padding-bottom: 1rem; }
.tos-list .tos-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.tos-list h3 { font-family: 'Marcellus', serif; font-size: 1.5rem; margin: 0 0 0.7rem; color: var(--accent-light); }
.tos-list p { margin: 0.3rem 0; font-size: 1rem; line-height: 1.55; font-weight: 300; }

.close-tos {
  position: absolute; right: 1rem; top: 0.7rem; width: 40px; height: 40px;
  border-radius: 50%; background: rgba(13,0,20,0.9); color: var(--text-light);
  font-size: 1.8rem; border: 1px solid rgba(255,255,255,0.35);
  cursor: url('../cursors/cursorHover.cur'), pointer; transition: all 0.3s ease;
}
.close-tos:hover { color: var(--accent-light); transform: rotate(90deg); box-shadow: 0 0 16px rgba(214,34,136,0.6); }

/* ===========================
   BOTÓN VOLVER AL INICIO
=========================== */
.back-home {
  display: flex; justify-content: center; align-items: center; width: fit-content;
  margin: 2rem auto 1rem auto; padding: 0.8rem 1.8rem; font-size: 1.2rem;
  font-family: 'Marcellus', serif; text-decoration: none; color: var(--text-light);
  border-top: 1px solid rgba(255, 255, 255, 0.2); border-left: 1px solid rgba(255, 255, 255, 0.1);
  border-right: 1px solid rgba(0, 0, 0, 0.4); border-bottom: 1px solid rgba(0, 0, 0, 0.6);
  border-radius: 12px; background: var(--btn-grad-2); box-shadow: 0 6px 15px rgba(0,0,0,0.6);
  position: relative; overflow: hidden;
}
.back-home::before {
  content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.2), transparent);
  transform: skewX(-25deg); transition: all 0.6s ease; pointer-events: none;
}
.back-home:hover::before { left: 150%; }
.back-home:hover {
  background: linear-gradient(135deg, var(--accent-purple) 0%, var(--bg-purple-light) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 10px 25px rgba(214, 34, 136, 0.5), inset 0 0 10px rgba(255,255,255,0.2);
  transform: translateY(-3px);
}

/* ===========================
   ✨ TARJETAS DE COMISIONES ✨
=========================== */
.commission-sections {
  margin-top: 2rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 2.5rem;
}
h2.commissions-title + .commission-sections { grid-template-columns: repeat(2, 1fr); }

.commission-card {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--glass-grad-2) 0%, rgba(26,0,38,0.5) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.2); border-left: 1px solid rgba(255, 255, 255, 0.1);
  border-right: 1px solid rgba(0, 0, 0, 0.4); border-bottom: 1px solid rgba(0, 0, 0, 0.6);
  border-radius: 20px; backdrop-filter: blur(10px); padding: 1.8rem; text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6); transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.commission-card::after {
  content: ''; position: absolute; top: 0; left: -150%; width: 50%; height: 100%;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.25), transparent);
  transform: skewX(-25deg); transition: all 0.7s ease; pointer-events: none; mix-blend-mode: overlay; 
}
.commission-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 15px 40px rgba(214, 34, 136, 0.35), inset 0 0 25px rgba(214, 34, 136, 0.25);
  border-top: 1px solid rgba(255, 255, 255, 0.5); border-left: 1px solid rgba(214, 34, 136, 0.4);
}
.commission-card:hover::after { left: 200%; }

.commission-card h3 { font-family: 'Marcellus', serif; font-size: 2.2rem; margin: 0 0 1rem 0; color: var(--text-light); transition: all 0.3s ease; }
.commission-card:hover h3 { color: var(--accent-light); text-shadow: 0 0 15px rgba(214, 34, 136, 0.8), 0 0 30px rgba(255, 255, 255, 0.4); }
.commission-card p { font-size: 1.3rem; font-weight: 300; margin: 0; color: var(--text-light); }
.commission-card strong { color: var(--accent-light); font-weight: 500; text-shadow: 0 0 8px rgba(250, 212, 230, 0.5); }

.price-img {
  width: 100%; border-radius: 12px; margin-bottom: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2); border-left: 1px solid rgba(255, 255, 255, 0.1);
  border-right: 1px solid rgba(0, 0, 0, 0.4); border-bottom: 1px solid rgba(0, 0, 0, 0.6);
  box-shadow: 0 5px 15px rgba(0,0,0,0.5); transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative; z-index: 2; 
}
.price-img:hover { transform: scale(1.04); border-color: var(--accent-purple); box-shadow: 0 15px 30px rgba(214, 34, 136, 0.6); cursor: url('../cursors/cursorHover.cur'), pointer; }

/* ===========================
   MODAL NSFW
=========================== */
.nsfw-modal {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.90); display: flex; justify-content: center; align-items: center;
  z-index: 9999; opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.nsfw-modal.open { opacity: 1; pointer-events: all; }

.nsfw-modal-content {
  background: linear-gradient(135deg, var(--btn-grad-1) 0%, var(--btn-grad-2) 70%, var(--btn-grad-3) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.2); border-left: 1px solid rgba(255, 255, 255, 0.1);
  border-right: 1px solid rgba(0, 0, 0, 0.4); border-bottom: 1px solid rgba(0, 0, 0, 0.6);
  padding: 2.5rem 2rem; border-radius: 20px; box-shadow: 0 15px 50px rgba(0,0,0,0.9), 0 0 30px rgba(214, 34, 136, 0.3);
  max-width: 420px; width: 90%; text-align: center; backdrop-filter: blur(12px);
}
.nsfw-modal-content h2 { font-family: 'Marcellus', serif; font-size: 2rem; margin-top: 0; }
.nsfw-modal-content p { font-size: 1.3rem; margin-bottom: 1.5rem; font-weight: 300;}

.no-show { display: flex; align-items: center; justify-content: center; font-size: 1rem; margin-bottom: 1.5rem; gap: 0.5rem; color: var(--muted); }
.nsfw-buttons { display: flex; justify-content: center; gap: 1.5rem; }

.nsfw-buttons button {
  background-color: var(--accent-deep); color: var(--text-light); 
  font-family: 'Montserrat', sans-serif; font-weight: 500;
  border-top: 1px solid rgba(255, 255, 255, 0.2); border-left: 1px solid rgba(255, 255, 255, 0.1);
  border-right: 1px solid rgba(0, 0, 0, 0.4); border-bottom: 1px solid rgba(0, 0, 0, 0.6);
  border-radius: 12px; padding: 0.8rem 1.5rem; font-size: 1rem; box-shadow: 0 5px 15px rgba(0,0,0,0.5);
  position: relative; overflow: hidden;
}
.nsfw-buttons button::before {
  content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.2), transparent);
  transform: skewX(-25deg); transition: all 0.6s ease; pointer-events: none;
}
.nsfw-buttons button:hover::before { left: 150%; }
.nsfw-buttons button:hover {
  background-color: var(--accent-purple); border-top-color: rgba(255,255,255,0.5);
  transform: translateY(-3px); box-shadow: 0 10px 20px rgba(214, 34, 136, 0.5), inset 0 0 10px rgba(255,255,255,0.2);
}

/* ===========================
   PANTALLA DE BIENVENIDA (SPLASH)
=========================== */
.welcome-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(circle at center, rgba(37, 0, 54, 0.6) 0%, rgba(13, 0, 20, 0.95) 100%);
  display: flex; justify-content: center; align-items: center; z-index: 10000;
  transition: opacity 1.5s ease-in-out, visibility 1.5s ease-in-out; backdrop-filter: blur(10px); 
}
.welcome-overlay.hidden { opacity: 0 !important; visibility: hidden !important; pointer-events: none !important; }

.welcome-content { text-align: center; transition: opacity 0.8s ease, transform 0.8s ease; }
.welcome-content.fade-out { animation: none !important; opacity: 0 !important; transform: scale(0.8) !important; }

.enter-btn {
  font-family: 'Marcellus', serif; padding: 1rem 3.5rem; font-size: 1.6rem; font-weight: bold; color: white;
  background: linear-gradient(135deg, var(--btn-grad-1) 0%, var(--btn-grad-3) 100%);
  border: 1px solid rgba(255,255,255,0.4); border-radius: 50px;
  cursor: url('../cursors/cursorHover.cur'), pointer; box-shadow: 0 0 20px rgba(214, 34, 136, 0.4);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); position: relative; overflow: hidden;
}
.enter-btn::after {
  content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.4), transparent);
  transform: skewX(-25deg); transition: all 0.5s ease;
}
.enter-btn:hover {
  transform: scale(1.1) translateY(-3px); box-shadow: 0 10px 40px rgba(214, 34, 136, 0.8);
  border-color: var(--accent-light); background: linear-gradient(135deg, var(--accent-purple) 0%, var(--bg-purple-light) 100%);
}
.enter-btn:hover::after { left: 200%; }
.enter-btn:active { transform: scale(1.02) translateY(2px); box-shadow: 0 5px 20px rgba(214, 34, 136, 0.6); }

/* ===========================
   REPRODUCTOR DE MÚSICA FLOTANTE
=========================== */
.music-player-widget {
  position: fixed; bottom: 20px; right: 20px; display: flex; align-items: center; gap: 8px;
  background: rgba(26, 0, 38, 0.65); border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-left: 1px solid rgba(255, 255, 255, 0.1); border-right: 1px solid rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid rgba(0, 0, 0, 0.6); border-radius: 40px; padding: 0.35rem 1rem 0.35rem 0.35rem; 
  backdrop-filter: blur(15px); box-shadow: 0 8px 20px rgba(0,0,0,0.8), inset 0 0 10px rgba(214, 34, 136, 0.2);
  z-index: 9998; transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.music-player-widget.hidden { opacity: 0; transform: translateY(30px); pointer-events: none; }

.music-toggle-btn {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-purple) 0%, var(--bg-purple-light) 100%);
  border: 1px solid rgba(255,255,255,0.4); display: flex; justify-content: center; align-items: center;
  cursor: url('../cursors/cursorHover.cur'), pointer; box-shadow: 0 0 10px rgba(214, 34, 136, 0.5);
  transition: all 0.3s ease; outline: none;
}
.music-toggle-btn.shuffle-btn { background: linear-gradient(135deg, var(--bg-purple-mid) 0%, var(--bg-purple-light) 100%); }
.music-toggle-btn:hover { transform: scale(1.1); box-shadow: 0 0 20px rgba(214, 34, 136, 0.9); }
.music-toggle-btn.playing { animation: pulseMusicBtn 2s infinite alternate; }

.music-toggle-btn img { width: 14px; height: 14px; filter: brightness(0) invert(1) drop-shadow(0 0 2px rgba(255,255,255,0.6)); transition: all 0.3s ease; }
.music-toggle-btn.shuffle-btn img { width: 16px; height: 16px; }
.music-toggle-btn:hover img { filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(255,255,255,1)); transform: scale(1.1); }

.track-info { display: flex; flex-direction: column; font-family: 'Montserrat', sans-serif; line-height: 1.1; margin-left: 4px; }
.now-playing-label { font-size: 0.55rem; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; font-weight: 500; }

.marquee-container {
  width: 110px; overflow: hidden; position: relative; white-space: nowrap;
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
#track-name {
  font-size: 0.8rem; color: var(--text-light); font-weight: 600;
  text-shadow: 0 0 5px rgba(214, 34, 136, 0.8); display: inline-block;
  padding-left: 100%; animation: marqueeText 8s linear infinite; 
}

@keyframes marqueeText { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }
@keyframes pulseMusicBtn { 0% { box-shadow: 0 0 8px rgba(214, 34, 136, 0.4); } 100% { box-shadow: 0 0 15px rgba(214, 34, 136, 0.8), 0 0 25px rgba(255, 255, 255, 0.2); } }

/* Media Queries específicas para componentes */
@media (max-width: 899px) {
  .commission-sections, h2.commissions-title + .commission-sections { grid-template-columns: 1fr; }
  .left-column .links { display: flex; flex-direction: column; align-items: stretch; gap: 1.2rem; width: 100%; }
  .left-column .links a { width: 100%; max-width: 100%; padding: 1.3rem 1rem; font-size: 1.10rem; justify-content: center; box-sizing: border-box; }
  .links { gap: 1.2rem; }
}

@media (min-width: 900px) {
  .left-column .links { display: flex; flex-direction: column; gap: 1rem; width: 100%; }
  .left-column .links a { min-height: 65px; padding: 1rem 1.2rem; font-size: 1.1rem; border-radius: 12px; justify-content: center; align-items: center; width: 100%; max-width: 380px; display: flex; box-sizing: border-box; }
  .right-column .links { grid-template-columns: 1fr; }
  .right-grid .col .links { grid-template-columns: 1fr; width: 100%; max-width: 380px; }
  .right-grid .col .links a { min-height: 65px; padding: 1rem 1.2rem; }
  .links a { font-size: 1.1rem; padding: 1.2rem; }
}

@media (max-width: 600px) {
  .commission-card h3 { font-size: 1.8rem; }
  .music-player-widget { bottom: 15px; right: 15px; padding: 0.3rem 0.8rem 0.3rem 0.3rem; }
  .music-toggle-btn { width: 28px; height: 28px; }
  .music-toggle-btn img { width: 12px; height: 12px; }
  .marquee-container { width: 90px; }
  #track-name { font-size: 0.7rem; }
}