/* Story Page Styles - Rootleaf Media */

/* Story Container */
.story-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
    min-height: 100vh;
    position: relative;
    z-index: 2;
    background: transparent;
}

/* Story Navigation */
.story-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding: 1rem 0;
}

.back-button {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background: var(--earth-brown);
    color: var(--foreground);
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid var(--soft-border);
    font-weight: 500;
    transition: all 0.3s ease;
}

.back-button:hover {
    background: var(--earth-brown-light);
    transform: translateY(-2px);
}

.story-meta-nav {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.story-category {
    padding: 0.5rem 1rem;
    background: var(--royal-blue);
    color: var(--foreground);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid var(--soft-border);
}

.story-date {
    color: var(--golden-yellow-light);
    font-size: 0.875rem;
}

/* Story Header */
.story-header {
    text-align: center;
    margin-bottom: 4rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--soft-border);
}

.story-title {
    font-size: 3rem;
    font-weight: bold;
    color: var(--foreground);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.story-byline {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.story-byline span {
    color: var(--golden-yellow-light);
    font-size: 1rem;
}

.author {
    font-weight: 600;
    color: var(--golden-yellow) !important;
}

.story-tags {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.tag {
    padding: 0.5rem 1rem;
    background: var(--earth-brown);
    color: var(--foreground);
    border-radius: 20px;
    font-size: 0.875rem;
    border: 1px solid var(--soft-border);
}

/* Story Content */
.story-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--foreground);
    margin-bottom: 4rem;
    /* Text Protection */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

.story-content p {
    margin-bottom: 1.5rem;
    /* Additional text protection */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Story Text Protection Classes */
.story-text {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
    pointer-events: auto;
}

.story-text::selection {
    background: transparent;
}

.story-text::-moz-selection {
    background: transparent;
}

/* Prevent drag operations */
.story-text * {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}

/* Disable context menu styling */
.no-select {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

/* Additional protection for images within stories */
.story-content img {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    pointer-events: none;
}

.story-content h1, 
.story-content h2, 
.story-content h3 {
    color: var(--golden-yellow);
    margin: 2rem 0 1rem 0;
    font-weight: bold;
}

.story-content h1 {
    font-size: 2rem;
}

.story-content h2 {
    font-size: 1.5rem;
}

.story-content h3 {
    font-size: 1.25rem;
}

.story-content hr {
    border: none;
    height: 1px;
    background: var(--soft-border);
    margin: 3rem 0;
}

.story-content em {
    font-style: italic;
    color: var(--golden-yellow-light);
}

.story-content strong {
    font-weight: bold;
    color: var(--golden-yellow);
}

.story-end {
    font-style: italic;
    text-align: center;
    color: var(--golden-yellow-light);
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--soft-border);
}

/* Story Footer */
.story-footer {
    text-align: center;
    padding: 3rem 0;
    border-top: 1px solid var(--soft-border);
}

.story-engagement p {
    color: var(--foreground);
    margin-bottom: 2rem;
    font-size: 1.125rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--golden-yellow);
    color: var(--background);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: var(--golden-yellow-light);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .story-container {
        padding: 1rem;
    }
    
    .story-title {
        font-size: 2rem;
    }
    
    .story-content {
        font-size: 1rem;
    }
    
    .story-byline {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .story-nav {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .story-meta-nav {
        justify-content: center;
    }
}

/* Featured Story Bar Fix */
.featured-story-card {
    background: var(--royal-blue) !important;
    border: 1px solid var(--soft-border) !important;
    border-radius: 16px !important;
    overflow: hidden;
    margin-bottom: 1rem;
}

.featured-story-content {
    padding: 2rem;
    min-height: 200px;
}

.featured-story-text {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 180px;
}

.featured-story-badge {
    display: inline-flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.featured-badge {
    padding: 0.5rem 1rem;
    background: var(--golden-yellow);
    color: var(--background);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.genre-badge {
    padding: 0.5rem 1rem;
    background: var(--earth-brown);
    color: var(--foreground);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.featured-story-title {
    font-size: 2rem;
    font-weight: bold;
    color: var(--foreground);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.featured-story-description {
    color: var(--foreground);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.featured-story-meta {
    display: flex;
    gap: 1rem;
    color: var(--golden-yellow-light);
    font-size: 0.875rem;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.featured-story-cta {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--golden-yellow);
    color: var(--background);
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    width: fit-content;
    margin-top: 0.5rem;
}

.featured-story-cta:hover {
    background: var(--golden-yellow-light);
    transform: translateY(-2px);
}

/* Single Column Story Grid */
.stories-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 700px;
    margin: 0 auto;
}

.story-card {
    width: 100%;
    max-width: none;
    margin: 0;
}

/* Ensure button container is always visible */
.featured-story-bottom {
    margin-top: auto;
    padding-top: 1rem;
}

@media (max-width: 768px) {
    .featured-story-content {
        text-align: left;
        padding: 1.5rem;
    }
    
    .featured-story-title {
        font-size: 1.5rem;
    }
    
    .featured-story-text {
        min-height: 150px;
    }
}