/* ===== STORY DETAIL SECTION ===== */
.story-detail {
    margin-top: 4rem;
    padding-top: 4rem;
    border-top: 1px solid var(--color-border-light);
}

.story-detail-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 4rem;
}

/* Left Column - Metadata */
.story-meta-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.meta-block {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;
}

.meta-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-faint);
}

.meta-value {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-text-main);
}

.meta-value a {
    color: var(--color-accent);
    transition: opacity 0.2s var(--transition-function);
}

.meta-value a:hover {
    opacity: 0.8;
}

/* Author with avatar */
.meta-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.author-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-accent), #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.author-info {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.author-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-main);
}

.author-role {
    font-size: 0.8rem;
    color: var(--color-text-faint);
}

/* Contributors list */
.contributors-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Right Column - Content */
.story-content-column {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

/* Description */
.story-description {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--color-text-muted);
}

.story-description p {
    margin-bottom: 1rem;
}

.story-description p:last-child {
    margin-bottom: 0;
}

/* Stats Row */
.story-stats-row {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat-block {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding-right: 2rem;
    border-right: 1px solid var(--color-border-light);
}

.stat-block:last-child {
    border-right: none;
    padding-right: 0;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-main);
    display: flex;
    align-items: baseline;
    gap: 0.3rem;
}

.stat-value .unit {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-faint);
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-faint);
}

/* Tags */
.story-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.story-tag {
    padding: 0.5rem 1.25rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--color-border-light);
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-muted);
    transition: all 0.2s var(--transition-function);
    cursor: pointer;
}

.story-tag:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-border-light);
    color: var(--color-text-main);
}

.story-tag.tag-genre {
    background: rgba(255, 100, 50, 0.1);
    border-color: rgba(255, 100, 50, 0.3);
    color: var(--color-accent);
}

/* Content Warnings */
.content-warnings {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.warning-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-faint);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.warning-label i {
    color: #f59e0b;
}

.warning-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.warning-tag {
    padding: 0.35rem 0.85rem;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #fbbf24;
}

/* Age Rating Badge */
.age-rating {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-border-light);
    border-radius: 8px;
    width: fit-content;
}

.age-rating-badge {
    width: 32px;
    height: 32px;
    background: #1a1a1a;
    border: 2px solid currentColor;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 800;
}

.age-rating-badge.rating-e { color: #22c55e; }
.age-rating-badge.rating-t { color: #f59e0b; }
.age-rating-badge.rating-m { color: #ef4444; }

.age-rating-text {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* Responsive */
@media screen and (max-width: 900px) {
    .story-detail-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .story-meta-column {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .story-stats-row {
        gap: 1.5rem;
    }
    
    .stat-block {
        padding-right: 1.5rem;
    }
}

@media screen and (max-width: 500px) {
    .story-meta-column {
        grid-template-columns: 1fr 1fr;
    }
    
    .story-stats-row {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-block {
        border-right: none;
        padding-right: 0;
        padding-bottom: 1rem;
        border-bottom: 1px solid var(--color-border-light);
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }
    
    .stat-block:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .stat-block:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    text-decoration: none;
    transition: all 0.2s var(--transition-function);
}

.tag-item i {
    font-size: 0.7rem;
    opacity: 0.6;
}

.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding: 3rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 4rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    background: linear-gradient(135deg, var(--text) 0%, var(--text-muted) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}