/**
 * story-index.css - Estilos para páginas de índice de coletâneas de contos
 * Usado em: meu-nome-e-kafka.html, automatas-gospel.html, evangelho-do-absurdo.html
 */

html { scroll-behavior: smooth; }

.page {
    min-height: 100vh;
    transition: opacity 0.5s ease;
}

.page.hidden,
.story-content.hidden {
    display: none;
}

/* SECTIONS */
section {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 2rem 6rem;
    opacity: 0;
    animation: fadeInUp 1s ease 0.6s forwards;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* STORY HEADER */
.story-header {
    text-align: center;
    margin-bottom: 3rem;
}

.story-header h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}

/* BACK BUTTON */
.back-btn {
    display: inline-block;
    margin-bottom: 2rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s;
    cursor: pointer;
}

.back-btn:hover {
    color: var(--text-primary);
    transform: translateX(-5px);
}

/* STORY CARDS */
.stories-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.story-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.5s ease;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.story-card .card-bg {
    position: relative;
    width: 100%;
    aspect-ratio: 3.125 / 1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    flex-grow: 1;
    background-color: var(--bg-secondary);
}

.story-card .card-overlay {
    position: relative;
    width: 100%;
    height: 90px;
    background: var(--bg-primary);
    padding: 0 2rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.story-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.story-card:hover .card-overlay {
    background: var(--bg-card);
}

.story-card .card-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    font-weight: 500;
    letter-spacing: -0.5px;
    transition: color 0.3s;
}

.story-card:hover .card-title {
    color: var(--accent-red);
}

.story-card .card-cta {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s;
}

.story-card:hover .card-cta {
    color: var(--accent-red);
}

/* Status ribbon for coming soon */
.status-ribbon {
    position: absolute;
    bottom: 12%;
    left: 0;
    color: white;
    padding: 6px 16px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 0 4px 4px 0;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.status-ribbon.production {
    background: rgba(16, 52, 166, 0.95);
}

/* Responsive */
@media (max-width: 768px) {
    section { padding: 2rem 1.5rem 4rem; }

    .story-card .card-overlay {
        height: 80px;
        padding: 0 1.5rem;
    }

    .story-card .card-title { font-size: 1.4rem; }
}
