/* Story Page Specific Styles */
.story-main {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
    background: linear-gradient(135deg, #fefefe 0%, #f8fafc 100%);
}

.story-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

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

.story-category {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.read-time {
    font-size: 0.875rem;
    color: var(--gray-600);
    background: var(--gray-100);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
}

.story-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
    line-height: 1.1;
}

.story-subtitle {
    font-size: 1.25rem;
    color: var(--gray-600);
    line-height: 1.5;
    margin-bottom: 2rem;
}

.story-meta {
    display: flex;
    justify-content: center;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: var(--gradient-primary);
}

.author-details {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.author-name {
    font-weight: 600;
    color: var(--gray-900);
}

.publish-date {
    font-size: 0.875rem;
    color: var(--gray-600);
}

/* Story Visual */
.story-image {
    margin-bottom: 3rem;
}

.story-visual {
    background: var(--gradient-card);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--gray-200);
}

.unity-visualization {
    text-align: center;
}

.languages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.lang-item {
    background: var(--gradient-primary);
    color: white;
    padding: 0.75rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.875rem;
    text-align: center;
    animation: fadeInUp 0.6s ease-out;
}

.lang-item:nth-child(odd) {
    animation-delay: 0.1s;
}

.lang-item:nth-child(even) {
    animation-delay: 0.2s;
}

.unity-message h3 {
    color: var(--gray-800);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

/* Story Content */
.story-content {
    line-height: 1.8;
    color: var(--gray-800);
}

.story-intro {
    margin-bottom: 2.5rem;
}

.lead {
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--gray-700);
    font-weight: 400;
    border-left: 4px solid var(--primary-orange);
    padding-left: 1.5rem;
    margin-bottom: 0;
    background: rgba(255, 107, 53, 0.05);
    padding: 1.5rem;
    border-radius: 0 8px 8px 0;
}

.story-content h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 2.5rem 0 1rem 0;
    line-height: 1.3;
}

.story-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.story-quote {
    background: var(--gray-50);
    border-left: 4px solid var(--primary-green);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
    font-style: italic;
}

.story-quote p {
    font-size: 1.2rem;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.story-quote cite {
    font-size: 0.9rem;
    color: var(--gray-600);
    font-weight: 500;
}

.story-conclusion {
    background: var(--gradient-primary);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    margin: 3rem 0;
    text-align: center;
}

.story-conclusion p {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Story Interaction */
.story-interaction {
    background: var(--cream);
    border-radius: 12px;
    padding: 2rem;
    margin: 3rem 0;
    border: 1px solid var(--gold);
}

.story-interaction h3 {
    color: var(--primary-orange);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.reflection-box {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--gold);
}

.reflection-box p {
    margin: 0;
    color: var(--gray-700);
}

/* Story Stats */
.story-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
    padding: 2rem;
    background: var(--gradient-card);
    border-radius: 12px;
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-orange);
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray-600);
    font-weight: 500;
    margin-top: 0.5rem;
}

/* Story Navigation */
.story-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
}

.nav-story {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--gray-700);
    transition: var(--transition-fast);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--gray-200);
    background: white;
}

.nav-story:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: var(--primary-orange);
}

.nav-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray-500);
    margin-bottom: 0.25rem;
}

.nav-title {
    font-weight: 600;
    font-size: 1rem;
}

.back-to-stories {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--gray-600);
    transition: var(--transition-fast);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    border: 1px solid var(--gray-300);
}

.back-to-stories:hover {
    background: var(--primary-orange);
    color: white;
    border-color: var(--primary-orange);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stories Index Page Styles */
.stories-index {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.stories-container {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.stories-header {
    text-align: center;
    margin-bottom: 2rem;
}

.stories-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.stories-header p {
    font-size: 1.125rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

.story-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.story-card {
    background: var(--gradient-card);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--gray-200);
    position: relative;
    transition: var(--transition-normal);
}

.story-card.completed {
    border-color: var(--primary-green);
}

.story-card.upcoming {
    opacity: 0.7;
}

.story-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.story-number {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
}

.story-card .story-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.story-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
}

.story-card p {
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.story-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.story-status {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
}

.completed .story-status {
    background: var(--primary-green);
    color: white;
}

.upcoming .story-status {
    background: var(--gray-200);
    color: var(--gray-600);
}

.story-length {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.story-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background: var(--primary-orange);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: var(--transition-fast);
    width: 100%;
}

.story-btn:hover:not(.disabled) {
    background: var(--deep-orange);
    transform: translateY(-1px);
}

.story-btn.disabled {
    background: var(--gray-300);
    color: var(--gray-500);
    cursor: not-allowed;
}

.progress-indicator {
    text-align: center;
    background: var(--gradient-card);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--gray-200);
}

.progress-indicator h3 {
    color: var(--gray-900);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--gray-200);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.progress-indicator p {
    color: var(--gray-600);
    margin: 0;
}

.newsletter-signup {
    text-align: center;
    background: var(--cream);
    padding: 3rem 2rem;
    border-radius: 16px;
    border: 1px solid var(--gold);
}

.newsletter-signup h3 {
    color: var(--gray-900);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.newsletter-signup p {
    color: var(--gray-600);
    margin-bottom: 2rem;
}

.signup-form {
    display: flex;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

.signup-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font-size: 1rem;
}

.signup-form button {
    padding: 0.75rem 1.5rem;
    background: var(--primary-orange);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
}

.signup-form button:hover {
    background: var(--deep-orange);
}

/* Responsive Design */
@media (max-width: 768px) {
    .story-container {
        padding: 1rem;
    }
    
    .story-title {
        font-size: 2.5rem;
    }
    
    .story-subtitle {
        font-size: 1.1rem;
    }
    
    .story-visual {
        padding: 2rem;
    }
    
    .languages-grid {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
        gap: 0.75rem;
    }
    
    .lang-item {
        padding: 0.5rem;
        font-size: 0.75rem;
    }
    
    .story-content h2 {
        font-size: 1.5rem;
    }
    
    .lead {
        font-size: 1.1rem;
        padding: 1rem;
    }
    
    .story-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 1.5rem;
    }
    
    .story-navigation {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .nav-story {
        text-align: center;
    }
    
    .stories-index {
        padding: 2rem 1rem;
    }
    
    .stories-header h1 {
        font-size: 2rem;
    }
    
    .story-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .story-card {
        padding: 1.5rem;
    }
    
    .signup-form {
        flex-direction: column;
    }
    
    .newsletter-signup {
        padding: 2rem 1rem;
    }
}

@media (max-width: 480px) {
    .story-title {
        font-size: 2rem;
    }
    
    .story-visual {
        padding: 1.5rem;
    }
    
    .unity-message h3 {
        font-size: 1.25rem;
    }
    
    .story-interaction,
    .story-conclusion {
        padding: 1.5rem;
    }
}
