/* Tale Page Styles - Original Design from backup */
:root {
    --primary: #4F46E5;
    --primary-hover: #4338CA;
    --secondary: #A855F7;
    --accent: #F59E0B;
    --success: #10B981;
    --dark: #1F2937;
    --gray: #6B7280;
    --light-gray: #F3F4F6;
    --white: #FFFFFF;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --radius: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--dark);
    line-height: 1.6;
    background: var(--light-gray);
    padding-top: 80px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Article Styles */
.article-header {
    background: linear-gradient(135deg, #E0E7FF 0%, #F3E8FF 100%);
    padding: 3rem 0;
    margin-bottom: 3rem;
    border-radius: 0 0 30px 30px;
}

.breadcrumb {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--gray);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb-separator {
    color: var(--gray);
}

.article-title {
    font-family: 'Merriweather', serif;
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.article-meta {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    color: var(--gray);
    font-size: 0.95rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-content {
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 3rem;
}

.tale-text {
    font-family: 'Merriweather', serif;
    font-size: 1.15rem;
    line-height: 1.9;
    color: #374151;
}

.tale-text p {
    margin-bottom: 1.8rem;
    text-align: justify;
}

.tale-text p:first-of-type::first-letter {
    font-size: 4rem;
    float: left;
    line-height: 3rem;
    margin: 0.5rem 0.5rem 0 0;
    font-weight: 700;
    color: var(--primary);
}

/* Navigation between tales */
.tale-navigation {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 3rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.nav-title {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark);
}

.tale-nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.tale-nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--light-gray);
    border-radius: 12px;
    text-decoration: none;
    color: var(--dark);
    transition: all 0.3s;
}

.tale-nav-item:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateX(5px);
}

.tale-nav-item.current {
    background: var(--primary);
    color: var(--white);
}

.tale-nav-emoji {
    font-size: 1.5rem;
}

/* Share Section */
.share-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    margin-bottom: 3rem;
}

.share-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.share-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.share-btn {
    background: rgba(255,255,255,0.2);
    color: var(--white);
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.share-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

/* CTA Section */
.cta-section {
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    margin-bottom: 3rem;
}

.cta-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.cta-description {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 2rem;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    font-size: 1.1rem;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(79, 70, 229, 0.3);
}

/* Mobile Styles */
@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }
    
    .article-header {
        padding: 2rem 0;
    }
    
    .article-title {
        font-size: 2rem;
    }
    
    .article-content {
        padding: 2rem 1.5rem;
    }
    
    .tale-text {
        font-size: 1.05rem;
    }
    
    .tale-text p:first-of-type::first-letter {
        font-size: 3rem;
        line-height: 2.5rem;
    }
    
    .cta-section {
        padding: 2rem;
    }
    
    .cta-title {
        font-size: 1.5rem;
    }
    
    .tale-nav-grid {
        grid-template-columns: 1fr;
    }
}

/* Additional responsive tweaks */
@media (max-width: 480px) {
    .article-title {
        font-size: 1.75rem;
    }
    
    .share-buttons {
        flex-direction: column;
    }
    
    .share-btn {
        width: 100%;
        justify-content: center;
    }
}