/**
 * AYA LIVE Post Styles
 * Post-specific styles matching home page design
 */

/* Post Hero */
.post-hero {
    position: relative;
    padding: 140px 7% 60px;
    background: var(--gradient-hero), var(--bg);
}

.post-hero-image {
    position: relative;
    max-width: 1400px;
    margin: 0 auto 40px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    aspect-ratio: 21/9;
}

.post-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
}

/* Post Header */
.post-header {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.post-category {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 20px;
}

.post-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.post-meta {
    display: flex;
    justify-content: center;
    gap: 24px;
    color: var(--muted);
    font-size: 15px;
    flex-wrap: wrap;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.post-meta i {
    color: var(--primary);
}

/* Post Content Layout */
.post-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    padding: 60px 7%;
    max-width: 1400px;
    margin: 0 auto;
}

.post-main {
    min-width: 0;
}

/* Post Content */
.post-content {
    background: var(--card-dark);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    padding: 40px;
    margin-bottom: 40px;
}

.post-content h2 {
    font-size: 32px;
    margin: 40px 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
}

.post-content h3 {
    font-size: 26px;
    margin: 32px 0 16px;
}

.post-content p {
    margin-bottom: 20px;
    font-size: 18px;
    line-height: 1.9;
}

.post-content img {
    border-radius: var(--radius-lg);
    margin: 30px 0;
    max-width: 100%;
}

.post-content ul,
.post-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.post-content li {
    margin-bottom: 12px;
    line-height: 1.8;
}

.post-content blockquote {
    border-left: 4px solid var(--primary);
    padding: 20px 24px;
    margin: 30px 0;
    background: rgba(255, 0, 0, 0.05);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
}

.post-content code {
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 8px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

.post-content pre {
    background: #111;
    padding: 20px;
    border-radius: var(--radius-md);
    overflow-x: auto;
    margin: 20px 0;
}

.post-content pre code {
    background: none;
    padding: 0;
}

/* Share Buttons */
.post-share {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin: 30px 0;
    flex-wrap: wrap;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--card-dark);
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.share-btn:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
}

.share-btn.facebook:hover {
    background: #1877F2;
    border-color: #1877F2;
}

.share-btn.twitter:hover {
    background: #1DA1F2;
    border-color: #1DA1F2;
}

.share-btn.whatsapp:hover {
    background: #25D366;
    border-color: #25D366;
}

.share-btn.telegram:hover {
    background: #229ED9;
    border-color: #229ED9;
}

/* Navigation Posts */
.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.nav-post {
    background: var(--card-dark);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 24px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text);
}

.nav-post:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.nav-post.prev {
    text-align: left;
}

.nav-post.next {
    text-align: right;
}

.nav-post span {
    display: block;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 8px;
    font-weight: 600;
}

.nav-post h4 {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
}

/* Related Posts */
.related-posts {
    margin-bottom: 40px;
}

.related-posts h3 {
    font-size: 28px;
    margin-bottom: 24px;
}

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

/* Sticky Sidebar */
.post-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

/* Table of Contents */
.toc-widget {
    background: var(--card-dark);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 24px;
    margin-bottom: 24px;
}

.toc-widget h4 {
    font-size: 20px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
}

.toc-list {
    list-style: none;
}

.toc-list li {
    margin-bottom: 8px;
}

.toc-list a {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    padding: 6px 0;
}

.toc-list a:hover {
    color: var(--primary);
    padding-left: 8px;
}

/* Reading Progress Bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--primary);
    z-index: 10000;
    transition: width 0.1s ease;
}

/* Responsive */
@media (max-width: 950px) {
    .post-hero {
        padding: 120px 5% 40px;
    }
    
    .post-hero-image {
        aspect-ratio: 16/9;
    }
    
    .post-title {
        font-size: 36px;
    }
    
    .post-layout {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 40px 5%;
    }
    
    .post-sidebar {
        position: static;
    }
    
    .post-content {
        padding: 30px;
    }
    
    .post-navigation {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .post-hero {
        padding: 100px 20px 30px;
    }
    
    .post-hero-image {
        aspect-ratio: 16/10;
    }
    
    .post-title {
        font-size: 28px;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 12px;
    }
    
    .post-layout {
        padding: 30px 20px;
    }
    
    .post-content {
        padding: 24px;
    }
    
    .post-content h2 {
        font-size: 24px;
    }
    
    .post-content h3 {
        font-size: 20px;
    }
    
    .post-content p {
        font-size: 16px;
    }
    
    .post-share {
        flex-direction: column;
    }
    
    .share-btn {
        width: 100%;
        justify-content: center;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
}
