/* Menú de ideas (20-09, rehecho el mismo día según la maqueta de Alfredo):
   tarjeta vertical — portada arriba a todo el ancho, texto debajo y botón
   «Continuar este libro →» a todo el ancho — sobre el mismo fondo y paleta
   que la cabecera de /start/ (misma tarjeta que allí). Siempre en oscuro. */
:root { --ideas-accent: #ffb171; --ideas-line: #ffffff18; --ideas-ink: #f4eee4; --ideas-muted: #b5c0c5; }
html, body { background: #061219; }
body.ideas-body {
    color: var(--ideas-ink);
    background: #061219 url("../../start/assets/hero.jpg") center / cover no-repeat fixed;
    min-height: 100vh;
}
body.ideas-body::before {
    content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background: linear-gradient(180deg, #061219f0 0%, #061219cc 40%, #061219e6 100%);
}
body.ideas-body > * { position: relative; z-index: 1; }
body.ideas-body .site-header { background: #061219f2; border-bottom: 1px solid var(--ideas-line); backdrop-filter: blur(14px); }

.ideas-head { text-align: center; margin-left: 0; }
.ideas-head h1 { max-width: 720px; margin: 0 auto 8px; color: var(--ideas-ink); font-family: var(--serif); font-weight: 500; font-size: clamp(28px, 3vw, 38px); letter-spacing: -.02em; }
.ideas-head p { color: var(--ideas-muted); max-width: 640px; margin: 0 auto; }

.ideas-grid {
    display: grid;
    /* Ancho FIJO por tarjeta (20-09): con auto-fit + 1fr, una sola idea (o dos)
       se estiraba a todo el ancho y la portada ocupaba toda la pantalla. */
    grid-template-columns: repeat(auto-fit, clamp(210px, calc((100vh - 400px) * 2 / 3), 268px));
    justify-content: center;
    gap: 18px;
    margin: 22px 0 8px;
}
/* La tarjeta ES el libro (20-09, "el mismo efecto de bisel del libro de la
   biblioteca"): portada a sangre en proporción 2/3, lomo con degradado a la
   izquierda (.cover::after de app.css), sombra, degradado oscuro abajo con el
   título encima, y sin marco alrededor. Debajo, sinopsis, personajes y botón. */
.idea-card {
    display: flex; flex-direction: column; gap: 12px;
    color: var(--ideas-ink);
    position: relative;
    /* Marco de la tarjeta (el mismo de la cabecera de /start/), con el libro
       — la portada con su efecto — dentro (20-09, "el diseño de la segunda
       captura, pero con el libro ya"). */
    padding: 14px;
    border: 1px solid #cba06b55; border-radius: 8px;
    background: #09171ddd; backdrop-filter: blur(8px);
    box-shadow: 0 20px 65px #0005;
}
.idea-card.is-picked { border-color: var(--ideas-accent); box-shadow: 0 0 0 1px var(--ideas-accent), 0 20px 65px #0005; }
.idea-cover {
    position: relative;
    width: 100%; aspect-ratio: 2 / 3;
    border-radius: 10px; overflow: hidden;
    background: linear-gradient(155deg, #2f2a26, #4a3f37 55%, #6b5a4c);
    background-size: cover; background-position: center;
    box-shadow: 0 4px 10px rgba(0,0,0,.35), 0 16px 34px rgba(0,0,0,.45);
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 18px 16px 16px 20px;
    transition: transform .16s ease, box-shadow .16s ease;
}
/* Lomo: mismo degradado que .cover::after de la biblioteca. */
.idea-cover::after {
    content: ""; position: absolute; inset: 0 auto 0 0; width: 7px;
    background: linear-gradient(90deg, rgba(0,0,0,.4), rgba(255,255,255,.06));
}
/* Degradado inferior para que el título se lea sobre cualquier portada. */
.idea-cover.has-art::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,.86) 0%, rgba(0,0,0,.42) 26%, transparent 52%);
}
.idea-card:hover .idea-cover { transform: translateY(-3px); box-shadow: 0 4px 10px rgba(0,0,0,.35), 0 20px 40px rgba(0,0,0,.55); }
.idea-pick-badge {
    position: absolute; top: 10px; left: 16px; z-index: 2;
    background: var(--ideas-accent); color: #25160e;
    font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 999px;
}
/* Botón de borrar en la esquina de la portada (20-09). */
.idea-delete {
    position: absolute; top: 8px; right: 8px; z-index: 3;
    width: 30px; height: 30px; padding: 0; border-radius: 50%;
    border: 1px solid #ffffff33; background: #061219cc; color: #f4eee4;
    display: grid; place-items: center; font-size: 12px; cursor: pointer;
    opacity: .82; transition: opacity .15s, background .15s, color .15s, border-color .15s;
}
.idea-delete:hover, .idea-delete:focus-visible { opacity: 1; background: #5a1f1f; border-color: #e58a8a; color: #ffd7d7; }
.idea-cover-text { position: relative; z-index: 1; }
.idea-cover-text h2 {
    margin: 0 0 5px; font-family: var(--serif); font-weight: 500;
    font-size: 1.14rem; line-height: 1.22; color: #fff; letter-spacing: .003em;
    text-shadow: 0 1px 3px rgba(0,0,0,.45), 0 1px 14px rgba(0,0,0,.25);
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.idea-cover-genre {
    margin: 0; font-size: .64rem; letter-spacing: .16em; text-transform: uppercase;
    color: #f3ece3; opacity: .82; text-shadow: 0 1px 4px rgba(0,0,0,.4);
}
.idea-body { min-width: 0; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.idea-tagline { margin: 0; color: var(--ideas-muted); font-size: 13.5px; }
.idea-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.idea-chips span { font-size: 11px; padding: 4px 9px; border-radius: 6px; background: #ffffff12; color: var(--ideas-ink); }
.idea-synopsis {
    margin: 0; font-size: 13.5px; line-height: 1.55; color: #c7d0d4;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.idea-cast { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 2px; }
.idea-cast-item { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ideas-muted); }
.idea-avatar {
    width: 30px; height: 30px; border-radius: 50%; flex: none; overflow: hidden;
    border: 2px solid #ffffff33; background: #1c3a4a center / cover no-repeat;
    /* Mismo arreglo que .hero-avatar en /start/: sin esto la imagen empieza dentro del borde y se ve el aro. */
    background-origin: border-box; clip-path: circle(50%);
    display: grid; place-items: center; font-size: 11px; font-weight: 600; color: #f1e9dc;
}
.idea-foot { margin-top: 10px; }
.idea-cta {
    display: flex; align-items: center; justify-content: center; gap: 12px;
    width: 100%; min-height: 46px; padding: 12px 18px;
    border: 1px solid transparent; border-radius: 9px;
    background: var(--ideas-accent); color: #25160e;
    font-size: 14px; font-weight: 600; text-decoration: none;
    box-shadow: 0 5px 22px #ffb17112; transition: background .2s, transform .2s;
}
.idea-cta:hover { background: #ffc596; transform: translateY(-2px); }
.ideas-empty, .ideas-foot { text-align: center; margin: 24px 0; }
.ideas-empty p { color: var(--ideas-muted); }
.ideas-fresh {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 44px; padding: 11px 20px; border-radius: 9px;
    border: 1px solid #426379; background: #081720b3; color: var(--ideas-ink);
    font-size: 14px; font-weight: 600; text-decoration: none;
}
.ideas-fresh:hover { border-color: var(--ideas-accent); color: var(--ideas-accent); }
.ideas-note { color: var(--ideas-muted); font-size: 13px; margin-top: 12px; }
body.ideas-body .empty-note { color: var(--ideas-muted); }
@media (max-width: 560px) { .ideas-grid { grid-template-columns: minmax(0, 300px); } }
