/* =========================================
   Kpoperverse • style.css
   vibe: webcore / y2k / kpop shrine
   ========================================= */

/* --- Reset suave --- */
* { box-sizing: border-box; }
html, body { height: 100%; }
img { max-width: 100%; height: auto; }
a { text-decoration: none; }

/* --- Variables --- */
:root{
  --bg: #090910;
  --card: rgba(18, 18, 34, 0.86);
  --stroke: rgba(255,255,255,.12);
  --stroke2: rgba(255,255,255,.18);

  --text: #f7f2ff;
  --muted: #d7c7ff;

  --accent: #ff7ad9;
  --accent2: #8b5bff;
  --accent3: #5fe1ff;

  --shadow: 0 12px 40px rgba(0,0,0,.45);
  --radius: 16px;

  --noise: radial-gradient(circle at 1px 1px, rgba(255,255,255,.05) 1px, transparent 0);
}

/* --- Fondo con pattern + glows --- */
body{
  margin: 0;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
  line-height: 1.45;

  /* “neocities wallpaper” */
  background:
    radial-gradient(circle at 20% 12%, rgba(255,122,217,.24), transparent 38%),
    radial-gradient(circle at 70% 40%, rgba(139,91,255,.22), transparent 45%),
    radial-gradient(circle at 40% 90%, rgba(95,225,255,.12), transparent 40%),
    linear-gradient(180deg, rgba(255,255,255,.03), transparent 30%),
    var(--noise);
  background-size:
    auto,
    auto,
    auto,
    auto,
    6px 6px;
  background-color: var(--bg);
}

/* --- Selección de texto --- */
::selection{
  background: rgba(255,122,217,.35);
  color: var(--text);
}

/* --- Scrollbar (Chrome/Edge) --- */
::-webkit-scrollbar{ width: 12px; }
::-webkit-scrollbar-track{ background: rgba(255,255,255,.06); }
::-webkit-scrollbar-thumb{
  background: linear-gradient(180deg, rgba(255,122,217,.65), rgba(139,91,255,.65));
  border-radius: 999px;
  border: 2px solid rgba(0,0,0,.35);
}

/* --- Links --- */
a{
  color: var(--accent);
  transition: transform .12s ease, filter .12s ease, opacity .12s ease;
}
a:hover{
  filter: brightness(1.08);
  text-decoration: underline;
}
a:active{
  transform: translateY(1px);
}

/* --- Layout principal --- */
.wrap{
  max-width: 980px;
  margin: 28px auto;
  padding: 0 14px;
}

/* Grid sidebar + main */
.grid{
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 14px;
  align-items: start;
}
@media (max-width: 820px){
  .grid{ grid-template-columns: 1fr; }
}

/* --- Cards --- */
.card{
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

/* “Brillito” borde superior sutil */
.card{
  position: relative;
}
.card::before{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.10), transparent 18%);
  opacity: .65;
  mask: linear-gradient(#000, transparent 45%);
}

/* --- Logo --- */
.logo{
  font-weight: 900;
  letter-spacing: .6px;
  font-size: 20px;
  text-shadow: 0 0 18px rgba(255,122,217,.18);
}
.logo span{
  color: var(--accent);
  text-shadow: 0 0 18px rgba(255,122,217,.35);
}

/* --- Badges --- */
.badge{
  display: inline-block;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--stroke2);
  background: rgba(255,255,255,.06);
  color: var(--muted);
  font-size: 12px;
}

/* Badge “botón” para CTAs */
.badge[href]{
  border-color: rgba(255,122,217,.35);
  background: linear-gradient(180deg, rgba(255,122,217,.10), rgba(139,91,255,.08));
}
.badge[href]:hover{
  text-decoration: none;
  filter: brightness(1.1);
  transform: translateY(-1px);
}

/* --- Sidebar nav --- */
.nav a{
  display: block;
  padding: 10px 10px;
  border-radius: 12px;
  margin: 6px 0;

  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
}
.nav a:hover{
  background: rgba(255,122,217,.12);
  border-color: rgba(255,122,217,.35);
  text-decoration: none;
}
.nav a:active{
  transform: translateY(1px);
}

/* --- Hero --- */
.hero{
  display: flex;
  gap: 12px;
  align-items: center;
}
.hero img{
  width: 110px;
  height: 110px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.35);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
@media (max-width: 520px){
  .hero{ flex-direction: column; align-items: flex-start; }
  .hero img{ width: 140px; height: 140px; }
}

/* --- Titulos --- */
.title{
  font-size: 30px;
  margin: 0;
  letter-spacing: .2px;
  text-shadow: 0 0 24px rgba(139,91,255,.16);
}
.subtitle{
  margin: 6px 0 0;
  color: rgba(215,199,255,.92);
}

/* --- Secciones dobles --- */
.two{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}
@media (max-width: 740px){
  .two{ grid-template-columns: 1fr; }
}

/* Mini cards dentro de main */
.mini h3{
  margin: 0 0 8px;
  font-size: 14px;
  letter-spacing: .35px;
  color: var(--muted);
}
.list{
  margin: 0;
  padding-left: 18px;
}
.list li{
  margin: 6px 0;
}

/* --- “Marquee” fake bonito --- */
.marquee{
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}
.marquee::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    linear-gradient(90deg, var(--card), transparent 18%, transparent 82%, var(--card));
  opacity: .85;
}
.marquee span{
  display: inline-block;
  padding-left: 100%;
  animation: scroll 16s linear infinite;
}
@keyframes scroll{
  0%{ transform: translateX(0); }
  100%{ transform: translateX(-100%); }
}

/* --- Footer text --- */
.footer{
  margin-top: 14px;
  font-size: 12px;
  color: rgba(255,255,255,.72);
}

/* --- HR --- */
hr{
  border: none;
  border-top: 1px solid rgba(255,255,255,.10);
}

/* Cursor Candy Bong (TWICE) */
html, body {
  cursor: url("/assets/cursors/candybong.cur"), auto;
}

a, button, .nav a, .badge[href] {
  cursor: url("/assets/cursors/candybong.cur"), pointer;
}

/* ✦ Cursor trail de estrellas ✦ */
.cursor-star{
  position: fixed;
  pointer-events: none;
  z-index: 9999;

  background: radial-gradient(circle,
    #ffffff 0%,
    #ffd6f3 40%,
    #ff7ad9 70%,
    transparent 72%
  );

  clip-path: polygon(
    50% 0%,
    61% 35%,
    98% 35%,
    68% 57%,
    79% 91%,
    50% 70%,
    21% 91%,
    32% 57%,
    2% 35%,
    39% 35%
  );

  animation: star-fade linear forwards;
}

@keyframes star-fade{
  0%{
    opacity: 1;
    transform: scale(1) translateY(0);
  }
  100%{
    opacity: 0;
    transform: scale(0.2) translateY(-10px);
  }
}



/* --- Pequeños “detalles kpoper” opcionales --- */
/* Si quieres que TODO tenga un brillito, descomenta esto:
.card{ outline: 1px solid rgba(255,122,217,.10); }
*/
