/* Enhanced Blog Post CSS with Advanced Animations - Updated to Yellow/Gold Theme */
@import url('../css/home.css'); /* Import base styles */

/* Blog Post-specific overrides and enhancements */
:root {
    --gradient-blog-post: linear-gradient(135deg, #ffbf00 0%, #e6ac00 50%, #FFD700 100%);
    --gradient-content-card: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
}

/* Enhanced Blog Post Hero Section */
.blog-post-hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 50%, rgba(255, 191, 0, 0.1) 100%);
    padding: 8rem 0 4rem;
}

.blog-post-hero .hero-bg-particles {
    background-image: 
        radial-gradient(3px 3px at 30px 50px, rgba(255, 191, 0, 0.4), transparent),
        radial-gradient(2px 2px at 60px 90px, rgba(255, 215, 0, 0.3), transparent),
        radial-gradient(1px 1px at 120px 60px, rgba(255, 191, 0, 0.3), transparent),
        radial-gradient(2px 2px at 200px 120px, rgba(255, 215, 0, 0.2), transparent);
    background-size: 150px 150px;
    animation: particleFloat 25s linear infinite, particleGlow 8s ease-in-out infinite alternate;
}

.blog-post-hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin: 0 auto;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

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

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

.breadcrumb span {
    opacity: 0.7;
}

.blog-post-title {
    font-size: clamp(2rem, 6vw, 3.5rem);
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.3;
    font-weight: 700;
}

.blog-post-excerpt {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

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

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

.author-name {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.author-title {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.post-share {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.post-share span {
    color: var(--text-secondary);
    font-weight: 600;
}

.share-buttons {
    display: flex;
    gap: 0.5rem;
}

.share-btn {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.share-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(255, 191, 0, 0.3);
}

/* Blog Post Content */
.blog-post-content {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
    position: relative;
}

.blog-post-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 191, 0, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 215, 0, 0.08) 0%, transparent 50%);
    z-index: 1;
}

.post-content-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    position: relative;
    z-index: 2;
}

/* Main Content */
.post-main-content {
    background: var(--gradient-content-card);
    border-radius: 20px;
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.featured-image {
    margin-bottom: 2.5rem;
    border-radius: 15px;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.article-content {
    line-height: 1.8;
    color: var(--text-secondary);
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content .intro {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 2rem;
    padding-left: 1.5rem;
    border-left: 3px solid var(--primary-color);
}

.article-content h2 {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin: 2.5rem 0 1.5rem;
    font-weight: 600;
}

.article-content h3 {
    font-size: 1.4rem;
    color: var(--text-primary);
    margin: 2rem 0 1rem;
    font-weight: 600;
}

.article-content ul, .article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.article-content li {
    margin-bottom: 0.8rem;
}

.article-content li strong {
    color: var(--text-primary);
}

.stat-highlight {
    background: rgba(255, 191, 0, 0.1);
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 10px 10px 0;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-family: 'Oswald', sans-serif;
}

.stat-description {
    color: var(--text-secondary);
    line-height: 1.5;
}

.conclusion {
    background: rgba(255, 215, 0, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.2);
    padding: 2rem;
    border-radius: 15px;
    margin: 2.5rem 0;
}

.conclusion h3 {
    color: var(--accent-gold);
    margin-top: 0;
}

.action-call {
    background: rgba(255, 191, 0, 0.05);
    border: 1px solid rgba(255, 191, 0, 0.2);
    padding: 1.5rem;
    border-radius: 15px;
    margin: 2.5rem 0;
}

.action-call p {
    margin-bottom: 0;
}

.inline-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.inline-link:hover {
    text-decoration: underline;
}

.article-tags {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 2.5rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.article-tags span {
    color: var(--text-primary);
    font-weight: 600;
}

.tag {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tag:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 191, 0, 0.3);
    border-color: var(--primary-color);
}

.social-sharing {
    margin: 2.5rem 0;
}

.social-sharing h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.share-buttons.large {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.share-btn.large {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.2rem;
    border-radius: 25px;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.share-btn.large:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 191, 0, 0.3);
}

.author-bio {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    margin: 2.5rem 0;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

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

.author-details h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.author-title {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.author-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.author-social {
    display: flex;
    gap: 0.8rem;
}

.author-social .social-link {
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.author-social .social-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 191, 0, 0.3);
}

/* Comments Section */
.comments-section {
    margin: 3rem 0;
}

.comments-section h3 {
    color: var(--text-primary);
    margin-bottom: 2rem;
    font-weight: 600;
}

.comment-list {
    margin-bottom: 3rem;
}

.comment {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.comment.reply {
    margin-left: 4rem;
    margin-top: 1.5rem;
}

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

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.8rem;
    flex-wrap: wrap;
}

.comment-header h4 {
    color: var(--text-primary);
    margin: 0;
    font-weight: 600;
}

.comment-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.comment-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.comment-actions {
    display: flex;
    gap: 1rem;
}

.comment-like, .comment-reply {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0;
    transition: color 0.3s ease;
}

.comment-like:hover, .comment-reply:hover {
    color: var(--primary-color);
}

.comment-form {
    background: rgba(255, 255, 255, 0.03);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.comment-form h3 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.comment-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.comment-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.comment-form label {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.comment-form input, .comment-form textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1rem;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.comment-form input:focus, .comment-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(255, 191, 0, 0.3);
}

.comment-form .checkbox-group {
    flex-direction: row;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.comment-form .checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

.comment-form .checkbox-group label {
    margin: 0;
    font-weight: 500;
    font-size: 0.9rem;
}

/* Related Posts */
.related-posts {
    margin: 3rem 0;
}

.related-posts h3 {
    color: var(--text-primary);
    margin-bottom: 2rem;
    font-weight: 600;
}

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

.related-post {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.related-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 191, 0, 0.15);
    border-color: var(--border-glow);
}

.related-post-image {
    height: 150px;
    overflow: hidden;
}

.related-post-image .post-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 191, 0, 0.5) 0%, rgba(255, 215, 0, 0.3) 100%);
}

.related-post-content {
    padding: 1.5rem;
}

.related-post-content .post-category {
    background: rgba(255, 191, 0, 0.15);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    margin-bottom: 0.8rem;
}

.related-post-content h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    line-height: 1.4;
    font-weight: 600;
}

.read-more-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.read-more-link:hover {
    gap: 0.8rem;
}

/* Sidebar */
.post-sidebar {
    position: sticky;
    top: 2rem;
    height: fit-content;
}

.post-sidebar .sidebar-widget {
    background: var(--gradient-content-card);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.toc-widget .widget-title {
    color: var(--text-primary);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.8rem;
}

.toc-widget .widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

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

.toc-nav li {
    margin-bottom: 0.8rem;
    position: relative;
}

.toc-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: block;
    padding: 0.3rem 0;
}

.toc-nav a:hover {
    color: var(--text-primary);
    transform: translateX(5px);
}

.toc-nav ul ul {
    margin-left: 1rem;
    margin-top: 0.5rem;
}

.toc-nav ul ul a {
    font-size: 0.85rem;
    color: var(--text-secondary);
    opacity: 0.8;
}

.toc-nav ul ul a:hover {
    opacity: 1;
}

.popular-posts {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.popular-post {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.popular-post-image {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

.popular-post-image .post-image-placeholder.small {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 191, 0, 0.5) 0%, rgba(255, 215, 0, 0.3) 100%);
}

.popular-post-content {
    flex: 1;
}

.popular-post-title {
    color: var(--text-primary);
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
    line-height: 1.4;
    font-weight: 600;
}

.popular-post-date {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.cta-widget {
    background: var(--gradient-primary) !important;
    color: white;
    text-align: center;
}

.cta-widget .widget-title {
    color: white;
}

.cta-widget .widget-description {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
}

.cta-widget .btn-small {
    background: white;
    color: var(--primary-color);
    font-weight: 600;
}

.cta-widget .btn-small:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .post-content-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .post-sidebar {
        position: static;
        order: 2;
    }
    
    .post-main-content {
        order: 1;
    }
}

@media (max-width: 768px) {
    .blog-post-hero {
        min-height: 60vh;
        padding: 6rem 0 3rem;
    }
    
    .blog-post-content {
        padding: 3rem 0;
    }
    
    .post-main-content {
        padding: 2rem 1.5rem;
    }
    
    .blog-post-title {
        font-size: 2.2rem;
    }
    
    .blog-post-excerpt {
        font-size: 1.1rem;
    }
    
    .article-content h2 {
        font-size: 1.6rem;
    }
    
    .article-content h3 {
        font-size: 1.3rem;
    }
    
    .comment.reply {
        margin-left: 2rem;
    }
    
    .comment-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .author-bio {
        flex-direction: column;
        text-align: center;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .blog-post-title {
        font-size: 1.8rem;
    }
    
    .post-author {
        flex-direction: column;
        text-align: center;
    }
    
    .post-share {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .comment {
        flex-direction: column;
        text-align: left;
    }
    
    .comment.reply {
        margin-left: 1rem;
    }
    
    .comment-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .article-tags {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .share-buttons.large {
        flex-direction: column;
    }
    
    .share-btn.large {
        justify-content: center;
    }
}

/* Animation Keyframes */
@keyframes particleFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) rotate(90deg);
    }
    50% {
        transform: translateY(0) rotate(180deg);
    }
    75% {
        transform: translateY(-10px) rotate(270deg);
    }
}

@keyframes particleGlow {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.6;
    }
}

/* Print Styles */
@media print {
    .blog-post-hero,
    .blog-post-content {
        background: white !important;
        color: black !important;
    }
    
    .blog-post-title,
    .widget-title,
    .article-content h2,
    .article-content h3 {
        color: #ffbf00 !important;
        -webkit-text-fill-color: #ffbf00 !important;
    }
    
    .text-primary {
        color: black !important;
    }
    
    .text-secondary {
        color: #666 !important;
    }
    
    .post-main-content,
    .sidebar-widget {
        background: #f9f9f9 !important;
        border: 1px solid #ddd !important;
        box-shadow: none !important;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .blog-post-hero .hero-bg-particles {
        animation: none;
    }
    
    .floating-elements {
        display: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --text-primary: #ffffff;
        --text-secondary: #cccccc;
        --bg-dark: #000000;
        --bg-darker: #000000;
        --primary-color: #ffbf00;
        --accent-gold: #ffff00;
    }
    
    .post-main-content,
    .sidebar-widget {
        border: 2px solid var(--primary-color);
    }
}