/* apps/csr/legacy/static/legacy/styles/story_card.css */

body.story-card-body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: #0f0e0c;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: "DM Sans", sans-serif;
    color: #f2efe7;
}

/* Floating controls outside the 9:16 export frame */
.story-actions-bar {
    position: fixed;
    top: 20px;
    z-index: 50;
    display: flex;
    gap: 12px;
}

.story-download-btn,
.story-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 999px;
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    border: none;
    transition: transform 160ms cubic-bezier(.2, .7, .2, 1);
}

.story-download-btn {
    background: #b7d83b;
    color: #171714;
}

.story-back-btn {
    background: rgba(255, 255, 255, 0.12);
    color: #f2efe7;
    backdrop-filter: blur(8px);
}

.story-download-btn:hover,
.story-back-btn:hover {
    transform: translateY(-2px);
}

/* 9:16 Archival Stage */
.story-viewport {
    padding: 80px 20px 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.story-artboard {
    width: 380px;
    height: 675px; /* Exact 9:16 aspect ratio */
    border-radius: 20px;
    background: #171714;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px 32px;
    box-sizing: border-box;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Top Branding */
.story-top {
    text-align: center;
}

.story-brand {
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #89847a;
}

/* Center Artifact */
.story-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    margin: 20px 0;
}

.story-card-frame {
    width: 100%;
    border-radius: 14px;
    padding: 24px 20px;
    box-sizing: border-box;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.story-owner-icon {
    max-width: 100%;
    height: 90px;
    border-radius: 12px;
    object-fit: contain; /* From Cover */ 
    margin: 0 auto 16px;
    display: block;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.story-owner-name {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.2;
    margin: 0 0 14px;
}

.story-owner-message {
    font-family: "DM Sans", sans-serif;
    font-size: 0.92rem;
    line-height: 1.55;
    margin: 0;
    opacity: 0.9;
}

/* Bottom Archival Metadata */
.story-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.story-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.65rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #bdb8ac;
}

.story-slot-number {
    font-family: "IBM Plex Mono", monospace;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #f2efe7;
}

.story-provenance {
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.65rem;
    color: #6f6c64;
    letter-spacing: 0.04em;
}

@media (max-width: 480px) {
    .story-artboard {
        width: 100%;
        max-width: 340px;
        height: 604px;
        padding: 32px 24px;
    }
}