/* PLANNER-223: styles for /estante (renders in the shared layout since
   PLANNER-281). */

.estante-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}
.estante-header h1 {
    font-family: var(--sans);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}
.estante-count { color: var(--dim); font-size: 0.8rem; margin-top: 0.25rem; }

/* ── Grid ────────────────────────────────── */
.estante-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
@media (min-width: 700px) {
    .estante-grid { grid-template-columns: repeat(4, 1fr); }
}

.estante-card { display: block; text-decoration: none; color: var(--txt); }

.estante-card-photo {
    aspect-ratio: 3 / 4;
    width: 100%;
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    background: var(--panel);
    display: flex;
    align-items: center;
    justify-content: center;
    object-fit: cover;
}

.estante-card-empty { color: var(--dim); font-size: 0.72rem; }

.estante-card-dashed {
    flex-direction: column;
    gap: 0.35rem;
    border-style: dashed;
    color: var(--dim);
    font-size: 0.72rem;
}
.estante-plus { font-size: 1.5rem; line-height: 1; }

.estante-card-title {
    margin-top: 0.5rem;
    font-size: 0.76rem;
    text-align: center;
    color: var(--dim);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ── Empty state ─────────────────────────── */
.estante-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem 0 1rem;
}
.estante-empty-stack {
    position: relative;
    width: 45%;
    max-width: 200px;
}
.estante-empty-stack .estante-card-add { position: relative; z-index: 2; }
.estante-ghost {
    position: absolute;
    inset: 0;
    border: 1px dashed var(--line);
    border-radius: var(--radius-md);
    opacity: 0.4;
}
.estante-ghost-1 { transform: translate(6px, 8px) rotate(2deg); }
.estante-ghost-2 { transform: translate(-6px, 14px) rotate(-3deg); }
.estante-empty-hint {
    max-width: 40ch;
    text-align: center;
    color: var(--dim);
    font-size: 0.85rem;
    line-height: 1.6;
}

/* ── Detail / new form ───────────────────── */
.estante-detail {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-width: 360px;
    margin: 0 auto;
}
.estante-detail-photo, .estante-photo-placeholder {
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: var(--panel);
    object-fit: cover;
}
.estante-photo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dim);
    font-size: 0.8rem;
}
.estante-since { color: var(--dim); font-size: 0.78rem; margin-top: -0.75rem; }
.estante-delete-link {
    align-self: center;
    color: var(--danger);
    font-size: 0.8rem;
    text-decoration: none;
}
.estante-delete-link:hover { text-decoration: underline; }

/* ── Delete confirm ──────────────────────── */
.estante-confirm {
    max-width: 360px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* ── Sorteio ─────────────────────────────── */
.estante-sorteio {
    max-width: 360px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
}
.estante-sorteio-label {
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
}
.estante-sorteio h2 { font-family: var(--sans); font-size: 1.15rem; }
.estante-sorteio-note { color: var(--dim); font-size: 0.85rem; }
.estante-sorteio-actions { display: flex; gap: 0.5rem; margin-top: 0.5rem; }
