/* Blog Post Detail */
.blog-post-detail {
    background: var(--white);
}

/* Article Header */
.article-header {
    padding: 80px 0 40px;
    background: linear-gradient(135deg, var(--deep-cyan-green) 0%, var(--black) 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

/* Comment Form Input Styling */
.form-input, .form-textarea {
    border: 2px solid var(--electric-green) !important;
    color: #000000 !important;
}

.form-input::placeholder, .form-textarea::placeholder {
    color: #666666 !important;
}

.article-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%2301B12F' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.article-meta {
    margin-bottom: 2rem;
}

.back-to-blog {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--electric-green);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 10;
}

.back-to-blog:hover {
    color: var(--white);
    transform: translateX(-5px);
}

.meta-info {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.category-badge {
    background: var(--electric-green);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.publish-date, .read-time {
    color: var(--light-gray);
    font-size: 0.9rem;
}

.article-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--electric-green) 0%, var(--white) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 5;
}

.article-excerpt {
    font-size: 1.3rem;
    line-height: 1.6;
    color: var(--light-gray);
    margin-bottom: 2.5rem;
    max-width: 800px;
    position: relative;
    z-index: 5;
}

.author-section {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    z-index: 5;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--electric-green);
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.author-name {
    font-weight: 600;
    color: var(--white);
}

.post-views {
    font-size: 0.9rem;
    color: var(--light-gray);
}

/* Featured Image */
.featured-image {
    padding: 40px 0;
    background: var(--white);
}

.article-image {
    width: 100%;
    max-height: 600px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Article Content */
.article-content {
    padding: 60px 0;
    background: var(--off-white);
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 60px;
    align-items: start;
}

/* Main Content */
.main-content {
    background: var(--white);
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.content-wrapper {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.content-wrapper h2 {
    font-size: 1.8rem;
    color: var(--deep-cyan-green);
    margin: 2.5rem 0 1rem 0;
    font-weight: 700;
}

.content-wrapper h3 {
    font-size: 1.4rem;
    color: var(--deep-cyan-green);
    margin: 2rem 0 1rem 0;
    font-weight: 600;
}

.content-wrapper p {
    margin-bottom: 1.5rem;
}

.content-wrapper img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 2rem 0;
}

.content-wrapper blockquote {
    border-left: 4px solid var(--electric-green);
    padding-left: 2rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--deep-cyan-green);
    background: var(--off-white);
    padding: 2rem;
    border-radius: 0 12px 12px 0;
}

.content-wrapper ul, .content-wrapper ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.content-wrapper li {
    margin-bottom: 0.5rem;
}

/* Article Tags */
.article-tags {
    margin: 3rem 0;
    padding-top: 2rem;
    border-top: 2px solid var(--off-white);
}

.article-tags h4 {
    color: var(--deep-cyan-green);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tags-list .tag {
    background: var(--off-white);
    color: var(--deep-cyan-green);
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.tags-list .tag:hover {
    background: var(--electric-green);
    color: var(--white);
    transform: translateY(-2px);
}

/* Share Section */
.share-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--off-white);
}

.share-section h4 {
    color: var(--deep-cyan-green);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.share-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    text-decoration: none;
    color: var(--white);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.twitter { background: #1DA1F2; }
.linkedin { background: #0077B5; }
.facebook { background: #4267B2; }
.copy-link { background: var(--deep-cyan-green); }

.share-btn:hover {
    transform: translateY(-3px) scale(1.1);
}

/* Table of Contents */
.table-of-contents {
    position: sticky;
    top: 100px;
    background: var(--white);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.toc-header h4 {
    color: var(--deep-cyan-green);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 700;
}

.toc-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-content li {
    margin-bottom: 12px;
}

.toc-content a {
    color: #666;
    text-decoration: none;
    font-size: 0.95rem;
    line-height: 1.5;
    transition: all 0.3s ease;
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid var(--off-white);
}

.toc-content a:hover {
    color: var(--electric-green);
    transform: translateX(5px);
}

.toc-content a::before {
    content: '#';
    color: var(--electric-green);
    margin-right: 8px;
    font-weight: 600;
}

/* Comments Section */
.comments-section {
    padding: 80px 0;
    background: var(--white);
}

.comments-header {
    text-align: center;
    margin-bottom: 3rem;
}

.comments-header h3 {
    font-size: 2.5rem;
    color: var(--deep-cyan-green);
    font-weight: 700;
}

/* Comment Form */
.comment-form-container {
    background: var(--off-white);
    padding: 40px;
    border-radius: 20px;
    margin-bottom: 4rem;
}

.comment-form-container h4 {
    color: var(--deep-cyan-green);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-input, .form-textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid var(--electric-green);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
    background: var(--white);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.form-input:focus, .form-textarea:focus {
    border-color: var(--electric-green);
    box-shadow: 0 0 0 3px rgba(168, 132, 78, 0.2);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.submit-btn {
    background: var(--electric-green);
    color: var(--white);
    border: none;
    padding: 15px 40px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: var(--deep-cyan-green);
    transform: translateY(-2px);
}

.error {
    color: #dc3545;
    font-size: 0.9rem;
    margin-top: 5px;
    display: block;
}

/* Comments List */
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.comment {
    display: flex;
    gap: 20px;
    padding: 30px;
    background: var(--off-white);
    border-radius: 20px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s ease;
}

.comment.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.comment-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid var(--electric-green);
}

.comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 10px;
}

.comment-header h5 {
    color: var(--deep-cyan-green);
    font-size: 1.1rem;
    margin: 0;
}

.comment-date {
    color: var(--golden-brown);
    font-size: 0.9rem;
}

.comment-content p {
    color: #333;
    line-height: 1.6;
    margin: 0;
}

.no-comments {
    text-align: center;
    padding: 3rem;
    color: #666;
    background: var(--off-white);
    border-radius: 20px;
}

/* Related Posts Section */
.related-posts {
    padding: 80px 0;
    background: var(--off-white);
}

.related-posts .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.related-posts .section-header h3 {
    font-size: 2.5rem;
    color: var(--deep-cyan-green);
    font-weight: 700;
    margin: 0;
}

.view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--electric-green);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.view-all:hover {
    color: var(--deep-cyan-green);
    transform: translateX(5px);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.related-post {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    position: relative;
}

.related-post.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.related-post:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.related-post-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.related-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-post:hover .related-post-image img {
    transform: scale(1.05);
}

.related-post-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--electric-green);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 3;
}

.related-post-content {
    position: relative;
    z-index: 2;
    padding: 25px;
}

.related-post-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 12px;
    font-size: 0.8rem;
    color: var(--golden-brown);
    flex-wrap: wrap;
}

.related-post-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
    position: relative;
    z-index: 3;
}

.related-post-title a {
    color: var(--deep-cyan-green);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
    z-index: 4;
}

.related-post-title a:hover {
    color: var(--electric-green);
}

.related-post-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 0.9rem;
    position: relative;
    z-index: 2;
}

.related-post-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--electric-green);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 4;
}

.related-post-link:hover {
    color: var(--deep-cyan-green);
    transform: translateX(5px);
}

.no-related-posts {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: #666;
}

.no-related-posts i {
    font-size: 3rem;
    color: var(--electric-green);
    margin-bottom: 1rem;
}

/* Hover effects enhancement - FIXED */
.related-post::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(168, 132, 78, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    border-radius: 16px;
    z-index: 1;
}

.related-post:hover::before {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .table-of-contents {
        position: static;
        order: -1;
    }
    
    .article-title {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .article-header {
        padding: 60px 0 30px;
    }
    
    .article-title {
        font-size: 2.2rem;
    }
    
    .article-excerpt {
        font-size: 1.1rem;
    }
    
    .main-content {
        padding: 30px;
    }
    
    .content-wrapper {
        font-size: 1rem;
    }
    
    .content-wrapper h2 {
        font-size: 1.5rem;
    }
    
    .content-wrapper h3 {
        font-size: 1.2rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .comment {
        flex-direction: column;
        text-align: center;
    }
    
    .comment-header {
        justify-content: center;
    }
    
    .related-posts .section-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .related-posts .section-header h3 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .article-title {
        font-size: 1.8rem;
    }
    
    .meta-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .main-content {
        padding: 20px;
    }
    
    .comment-form-container {
        padding: 25px;
    }
    
    .share-buttons {
        justify-content: center;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .related-post-content {
        padding: 20px;
    }
}

/* Animation Delays */
[data-scroll]:nth-child(1) { transition-delay: 0.1s; }
[data-scroll]:nth-child(2) { transition-delay: 0.2s; }
[data-scroll]:nth-child(3) { transition-delay: 0.3s; }
[data-scroll]:nth-child(4) { transition-delay: 0.4s; }
[data-scroll]:nth-child(5) { transition-delay: 0.5s; }

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}