﻿/* Article Header */
.article-header {
    background-color: #f0f9ff;
    padding: 40px 0;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.article-category {
    background-color: #059669;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
}

.article-date {
    color: #6aac7b;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-read-time {
    color: #6aac7b;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-title {
    color: #059669;
    margin-bottom: 20px;
    line-height: 1.3;
}

.article-excerpt {
    color: #6aac7b;
    font-size: 20px;
    font-weight: bold;
    line-height: 1.5;
}

/* Social Share */
.social-share {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.social-share-label {
    color: #6aac7b;
    font-weight: bold;
}

.social-share-buttons {
    display: flex;
    gap: 10px;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: transform 0.3s ease;
}

    .social-btn:hover {
        transform: translateY(-3px);
    }

    .social-btn.telegram {
        background-color: #0088cc;
    }

    .social-btn.whatsapp {
        background-color: #25d366;
    }

    .social-btn.linkedin {
        background-color: #0077b5;
    }

    .social-btn.twitter {
        background-color: #1da1f2;
    }

/* Article Content */
.article-content {
    padding: 60px 0;
}

.article-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
}

.article-main {
    background-color: white;
}

.article-featured-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 30px;
}

.article-body {
    font-size: 18px;
    line-height: 1.8;
    color: #333;
}

    .article-body h2 {
        color: #059669;
        margin: 40px 0 20px;
        font-size: 28px !important;
    }

    .article-body h3 {
        color: #059669;
        margin: 30px 0 15px;
        font-size: 24px !important;
    }

    .article-body h4 {
        color: #059669;
        margin: 25px 0 10px;
        font-size: 20px !important;
    }

    .article-body p {
        margin-bottom: 20px;
    }

    .article-body ul, .article-body ol {
        margin: 20px 0;
        padding-right: 30px;
    }

    .article-body li {
        margin-bottom: 10px;
    }

    .article-body blockquote {
        background-color: #f0f9ff;
        border-right: 4px solid #059669;
        padding: 20px;
        margin: 30px 0;
        font-style: italic;
        border-radius: 5px;
    }

    .article-body img {
        width: 100%;
        height: auto;
        border-radius: 10px;
        margin: 30px 0;
    }

    .article-body .highlight-box {
        background-color: #e6f7f0;
        border: 1px solid #059669;
        border-radius: 10px;
        padding: 20px;
        margin: 30px 0;
    }

        .article-body .highlight-box h4 {
            color: #059669;
            margin-top: 0;
        }

/* Sidebar */
.article-sidebar {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.sidebar-widget {
    background-color: white;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

    .sidebar-widget h3 {
        color: #059669;
        margin-bottom: 20px;
        font-size: 20px !important;
        border-bottom: 2px solid #e6f7f0;
        padding-bottom: 10px;
    }

/* Table of Contents */
.toc-list {
    list-style: none;
    padding: 0;
}

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

    .toc-list a {
        color: #333;
        text-decoration: none;
        font-size: 14px;
        transition: color 0.3s ease;
        display: block;
        padding: 5px 0;
    }

        .toc-list a:hover {
            color: #059669;
        }

/* Author Info */
.author-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

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

.author-details h4 {
    color: #059669;
    margin-bottom: 5px;
    font-size: 16px !important;
}

.author-details p {
    color: #666;
    font-size: 14px;
    margin: 0;
}

/* Related Articles */
.related-articles {
    padding: 60px 0;
    background-color: #f8f9fa;
}

    .related-articles h2 {
        text-align: center;
        color: #059669;
        margin-bottom: 40px;
        font-size: 32px !important;
    }

.related-posts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.related-post {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

    .related-post:hover {
        transform: translateY(-5px);
    }

.related-post-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.related-post-content {
    padding: 20px;
}

.related-post-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
    line-height: 1.4;
}

    .related-post-title a {
        color: inherit;
        text-decoration: none;
        transition: color 0.3s ease;
    }

        .related-post-title a:hover {
            color: #059669;
        }

.related-post-date {
    color: #888;
    font-size: 14px;
}

/* Article Navigation */
.article-navigation {
    padding: 40px 0;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
}

.nav-links {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.nav-link {
    flex: 1;
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
}

    .nav-link:hover {
        color: #059669;
    }

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

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

.nav-label {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 5px;
}

.nav-title {
    font-weight: bold;
    font-size: 16px;
}

/* Comments */
.comments-section {
    padding: 60px 0;
}

    .comments-section h2 {
        color: #059669;
        margin-bottom: 30px;
        font-size: 28px !important;
    }

.comment-form {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 40px;
}

.form-group {
    margin-bottom: 20px;
}

    .form-group label {
        display: block;
        margin-bottom: 8px;
        font-weight: bold;
        color: #333;
    }

    .form-group input,
    .form-group textarea {
        width: 100%;
        padding: 12px 15px;
        border: 1px solid #ddd;
        border-radius: 5px;
        font-family: 'peyda';
        font-size: 16px;
        transition: border-color 0.3s ease;
    }

        .form-group input:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: #059669;
        }

    .form-group textarea {
        height: 120px;
        resize: vertical;
    }

.submit-btn {
    background-color: #059669;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-family: 'peyda';
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

    .submit-btn:hover {
        background-color: #047857;
    }

.comments-list {
    margin-top: 40px;
}

.comment {
    background-color: white;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.sidebar-search-input {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid #d1d5db;
    border-radius: 4px 0 0 4px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
}

    .sidebar-search-input:focus {
        outline: none;
        border-color: #2563eb;
    }
.sidebar-search-btn {
    padding: 5px 10px;
    background-color: #2563eb;
    color: white;
    border: none;
    border-radius: 4px 0px 0px 4px;
    cursor: pointer;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.comment-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #059669;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.comment-info h4 {
    color: #333;
    margin-bottom: 5px;
    font-size: 16px !important;
}

.comment-date {
    color: #888;
    font-size: 14px;
}

.comment-body {
    color: #333;
    line-height: 1.6;
}

/* Footer */
footer {
    background-color: #1a1a1a;
    color: #f5f5f5;
    padding: 60px 0 20px;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-column {
    flex: 1;
    min-width: 200px;
}

    .footer-column h3 {
        color: white;
        font-size: 18px !important;
        margin-bottom: 20px;
        position: relative;
        padding-bottom: 10px;
    }

        .footer-column h3::after {
            content: '';
            position: absolute;
            bottom: 0;
            right: 0;
            width: 50px;
            height: 2px;
            background-color: #059669;
        }

.footer-links {
    list-style: none;
}

    .footer-links li {
        margin-bottom: 10px;
    }

    .footer-links a {
        color: #ccc;
        text-decoration: none;
        transition: color 0.3s ease;
        font-size: 14px;
    }

        .footer-links a:hover {
            color: #059669;
        }

.footer-contact-info {
    margin-bottom: 15px;
}

    .footer-contact-info p {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 10px;
        color: #ccc;
        font-size: 14px;
    }

    .footer-contact-info i {
        color: #059669;
        font-size: 16px;
        width: 20px;
        text-align: center;
    }

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    width: 36px;
    height: 36px;
    background-color: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

    .social-icon:hover {
        background-color: #059669;
        transform: translateY(-3px);
    }

.footer-newsletter h3 {
    margin-bottom: 15px;
}

.footer-newsletter p {
    color: #ccc;
    margin-bottom: 15px;
    font-size: 14px;
}

.footer-newsletter-form {
    display: flex;
    max-width: 100%;
}

.footer-newsletter-input {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 4px 0 0 4px;
    font-family: inherit;
}

.footer-newsletter-button {
    background-color: #059669;
    color: white;
    border: none;
    padding: 0 15px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

    .footer-newsletter-button:hover {
        background-color: #047857;
    }

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
    font-size: 14px;
    color: #999;
}

    .footer-bottom p {
        margin-bottom: 10px;
    }

    .footer-bottom a {
        color: #059669;
        text-decoration: none;
    }

/* Mobile Responsive Styles */
@media (max-width: 992px) {
    .article-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .article-sidebar {
        order: -1;
        position: static;
    }

    .related-posts {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    /* Header Mobile */
    .header-container {
        position: relative;
    }

    nav {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
        order: 1;
    }

    .logo {
        order: 2;
        margin: 0 auto;
    }

    .auth-buttons {
        display: none;
    }

    /* Article Header Mobile */
    .article-header {
        padding: 30px 0;
    }

    .article-title {
        font-size: 28px !important;
    }

    .article-excerpt {
        font-size: 16px;
    }

    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .social-share {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .social-share-buttons {
        flex-wrap: wrap;
    }

    /* Article Content Mobile */
    .article-content {
        padding: 40px 0;
    }

    .article-featured-image {
        height: 250px;
    }

    .article-body {
        font-size: 16px;
    }

        .article-body h2 {
            font-size: 24px !important;
        }

        .article-body h3 {
            font-size: 20px !important;
        }

        .article-body h4 {
            font-size: 18px !important;
        }

    /* Related Articles Mobile */
    .related-posts {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Navigation Mobile */
    .nav-links {
        flex-direction: column;
        gap: 30px;
    }

    .nav-link.prev,
    .nav-link.next {
        text-align: center;
    }

    /* Comments Mobile */
    .comments-section {
        padding: 40px 0;
    }

    .comment-form {
        padding: 20px;
    }

    /* Footer Mobile */
    .footer-container {
        flex-direction: column;
        gap: 30px;
    }

    .footer-column {
        width: 100%;
    }

    .footer-newsletter-form {
        flex-direction: column;
        gap: 10px;
    }

    .footer-newsletter-input {
        border-radius: 4px;
        width: 100%;
    }

    .footer-newsletter-button {
        border-radius: 4px;
        width: 100%;
        padding: 10px;
    }

    .footer-social {
        justify-content: center;
    }
  
}

/* Extra Small Mobile */
@media (max-width: 480px) {
    .article-title {
        font-size: 24px !important;
    }

    .article-excerpt {
        font-size: 14px;
    }

    .article-body {
        font-size: 15px;
    }

        .article-body h2 {
            font-size: 20px !important;
        }

        .article-body h3 {
            font-size: 18px !important;
        }

        .article-body h4 {
            font-size: 16px !important;
        }
}
