﻿/* ============================================================
   story-details.css – Full, clean styles for story detail page
   ============================================================ */

/* ---------- Global variables & base ---------- */
:root {
    --color-primary: #222;
    --color-muted: #666;
    --color-accent: #FF0033;
    --color-bg-light: #F2F2F2;
    --color-border: #e0e0e0;
    --color-white: #fff;
}

body {
    overflow-y: scroll;
    background-color: var(--color-bg-light);
}

/* ---------- Main container ---------- */
.story-detail-container {
    font-family: 'Wix Madefor Display', monospace, sans-serif;
    max-width: 860px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
    background-color: var(--color-bg-light);
    min-height: 100vh;
}

/* ---------- Back link (styled like .preview-link) ---------- */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-accent);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s ease;
    background: none;
    cursor: pointer;
}

    .back-link:hover {
        border-bottom-color: var(--color-accent);
    }

    /* Left‑pointing arrow – slides left on hover */
    .back-link svg {
        transition: transform 0.2s ease;
        flex-shrink: 0;
    }

    .back-link:hover svg {
        transform: translateX(-4px);
    }

/* Top back button spacing */
.detail-back {
    margin-bottom: 2rem;
}

/* ---------- Header ---------- */
.detail-header {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-border);
}

.detail-tag {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-accent);
    background: #ffe6eb;
    padding: 0.15rem 0.8rem;
    border-radius: 20px;
    margin-bottom: 0.75rem;
}

.detail-title {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 0.5rem;
    color: var(--color-primary);
}

.detail-subtitle {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--color-muted);
    margin: 0;
}

/* ---------- Content paragraphs ---------- */
.detail-content {
    margin-bottom: 2.5rem;
}

.detail-paragraph {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-primary);
    margin: 0 0 1.5rem;
}

    .detail-paragraph:last-of-type {
        margin-bottom: 0;
    }

/* ---------- Footer ---------- */
.detail-footer {
    border-top: 1px solid var(--color-border);
    padding-top: 1.5rem;
    text-align: center;
}

/* ---------- Responsive adjustments ---------- */
@media (max-width: 640px) {
    .story-detail-container {
        padding: 1.5rem 1rem 3rem;
        max-width: 100%;
    }

    .detail-title {
        font-size: 1.7rem;
    }

    .detail-paragraph {
        font-size: 0.98rem;
    }
}
