/* ============================================
   SINGLE POST PAGE - COMPLETE STYLES
   ============================================ */

/* ===== POST HERO ===== */
.post-hero {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: flex-end;
    padding: 100px 0 60px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.post-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(6, 20, 46, 0.95) 0%, rgba(6, 20, 46, 0.7) 50%, rgba(6, 20, 46, 0.5) 100%);
}

.post-hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.post-hero .breadcrumb {
    margin-bottom: 20px;
}

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

.post-category {
    background: var(--primary);
    color: var(--white);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
}

.post-meta-info {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.post-meta-info span {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.92rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

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

.post-hero-content h1 {
    font-size: 3rem;
    font-weight: 900;
    color: var(--white);
    line-height: 1.4;
    margin-bottom: 20px;
}

.post-excerpt {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.9;
}

/* ===== POST SECTION ===== */
.post-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.post-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    align-items: start;
}

/* --- Post Article --- */
.post-article {
    background: var(--white);
    padding: 50px;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border);
    margin-bottom: 30px;
}

.post-article h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--dark);
    margin: 35px 0 20px;
    padding-right: 15px;
    border-right: 4px solid var(--primary);
}

.post-article h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark);
    margin: 30px 0 15px;
}

.post-article p {
    font-size: 1.05rem;
    color: var(--text);
    line-height: 2;
    margin-bottom: 20px;
}

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

.post-article li {
    font-size: 1.02rem;
    color: var(--text);
    line-height: 2;
    margin-bottom: 10px;
}

.post-article ul li::marker {
    color: var(--primary);
    font-size: 1.2rem;
}

.post-article ol li::marker {
    color: var(--primary);
    font-weight: 700;
}

.post-article strong {
    color: var(--dark);
    font-weight: 700;
}

.post-article img {
    width: 100%;
    border-radius: 12px;
    margin: 30px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.post-article blockquote {
    background: var(--primary-light);
    border-right: 4px solid var(--primary);
    padding: 25px 30px;
    margin: 30px 0;
    border-radius: 10px;
    font-style: italic;
    font-size: 1.1rem;
    color: var(--dark);
    line-height: 1.9;
}

.post-article blockquote::before {
    content: '"';
    font-size: 3rem;
    color: var(--primary);
    line-height: 1;
    display: block;
    margin-bottom: 10px;
}

/* --- Post Tags --- */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    padding: 25px;
    background: var(--white);
    border-radius: 16px;
    border: 1px solid var(--border);
}

.post-tags h4 {
    width: 100%;
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
}

.post-tags .tag {
    padding: 6px 14px;
    background: var(--bg-light);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--text);
    text-decoration: none;
    transition: all 0.3s ease;
}

.post-tags .tag:hover {
    background: var(--primary);
    color: var(--white);
}

/* --- Post Share --- */
.post-share {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    padding: 25px;
    background: var(--white);
    border-radius: 16px;
    border: 1px solid var(--border);
    flex-wrap: wrap;
}

.post-share h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
}

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

.share-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-family: var(--font);
}

.share-btn:hover {
    transform: translateY(-3px) scale(1.1);
}

.share-btn.facebook { background: #1877f2; }
.share-btn.twitter { background: #1da1f2; }
.share-btn.linkedin { background: #0077b5; }
.share-btn.telegram { background: #0088cc; }
.share-btn.whatsapp { background: #25d366; }
.share-btn.copy-link { background: var(--primary); }

/* --- Author Box --- */
.author-box {
    display: flex;
    gap: 25px;
    padding: 35px;
    background: var(--white);
    border-radius: 16px;
    border: 1px solid var(--border);
    margin-bottom: 30px;
}

.author-image {
    flex-shrink: 0;
}

.author-image img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
}

.author-info h4 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 5px;
}

.author-info .author-position {
    color: var(--primary);
    font-size: 0.92rem;
    font-weight: 600;
    margin-bottom: 12px;
    display: block;
}

.author-info p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 15px;
}

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

.author-social a {
    width: 35px;
    height: 35px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    transition: all 0.3s ease;
}

.author-social a:hover {
    background: var(--primary);
    color: var(--white);
}

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

.related-posts h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.related-posts h3 i {
    color: var(--primary);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.related-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid var(--border);
}

.related-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.related-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.related-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.related-card:hover img {
    transform: scale(1.1);
}

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

.related-card-content h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
    line-height: 1.5;
    transition: color 0.3s ease;
}

.related-card:hover .related-card-content h4 {
    color: var(--primary);
}

.related-card-content span {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

.related-card-content i {
    color: var(--primary);
}

/* --- Comments Section --- */
.comments-section {
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--border);
}

.comments-section h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.comments-section h3 i {
    color: var(--primary);
}

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

.comment-item {
    display: flex;
    gap: 20px;
    padding: 25px;
    background: var(--bg-light);
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid var(--border);
}

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

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.comment-author {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark);
}

.comment-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

.comment-date i {
    color: var(--primary);
}

.comment-text {
    font-size: 0.95rem;
    color: var(--text);
    line-height: 1.8;
}

.comment-reply {
    margin-right: 80px;
}

/* Comment Form */
.comment-form-container {
    border-top: 2px solid var(--bg-light);
    padding-top: 30px;
}

.comment-form-container h4 {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 25px;
}

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

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

.comment-form label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 10px;
}

.required {
    color: #ef4444;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-family: var(--font);
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(246, 199, 68, 0.1);
}

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

.comment-form .btn {
    padding: 14px 30px;
}

.form-success {
    display: none;
    background: #FFF7DF;
    border: 1px solid #F3DEA0;
    color: #73510A;
    padding: 16px 20px;
    border-radius: 10px;
    margin-top: 20px;
    align-items: center;
    gap: 12px;
    animation: slideDown 0.4s ease;
}

.form-success.show {
    display: flex;
}

.form-success i {
    font-size: 1.5rem;
    color: #F6C744;
}

.form-success span {
    font-size: 0.95rem;
    font-weight: 500;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== POST SIDEBAR ===== */
.post-sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
    position: sticky;
    top: 100px;
}

.post-sidebar .sidebar-widget {
    background: var(--white);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border);
}

.post-sidebar .sidebar-widget h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--bg-light);
}

.post-sidebar .sidebar-widget h3 i {
    color: var(--primary);
}

/* Widget Search */
.widget-search {
    display: flex;
    gap: 10px;
}

.widget-search input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-family: var(--font);
    font-size: 0.9rem;
    outline: none;
}

.widget-search input:focus {
    border-color: var(--primary);
}

.widget-search button {
    background: var(--primary);
    color: var(--white);
    border: none;
    width: 45px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.widget-search button:hover {
    background: var(--primary-dark);
}

/* Category List */
.category-list {
    list-style: none;
    padding: 0;
}

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

.category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: var(--bg-light);
    border-radius: 10px;
    text-decoration: none;
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.category-list a:hover {
    background: var(--primary-light);
    color: var(--primary);
    transform: translateX(-5px);
}

.category-list .count {
    background: var(--white);
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--primary);
}

/* Popular Posts */
.popular-posts {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.popular-post {
    display: flex;
    gap: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--bg-light);
}

.popular-post:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.popular-post a {
    text-decoration: none;
    color: inherit;
    display: flex;
    gap: 15px;
    flex: 1;
}

.popular-post img {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

.popular-post-info h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
    line-height: 1.5;
}

.popular-post-info span {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* Tags Cloud */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    padding: 6px 14px;
    background: var(--bg-light);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--text);
    text-decoration: none;
    transition: all 0.3s ease;
}

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

/* Newsletter Widget */
.newsletter-widget p {
    font-size: 0.92rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 18px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-family: var(--font);
    font-size: 0.9rem;
    outline: none;
}

.newsletter-form input:focus {
    border-color: var(--primary);
}

.newsletter-form button {
    background: var(--primary);
    color: var(--white);
    border: none;
    width: 45px;
    border-radius: 10px;
    cursor: pointer;
}

.newsletter-form button:hover {
    background: var(--primary-dark);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .post-layout {
        grid-template-columns: 1fr;
    }

    .post-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .post-article {
        padding: 35px;
    }

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

@media (max-width: 768px) {
    .post-hero {
        min-height: 400px;
        padding: 80px 0 40px;
    }

    .post-hero-content h1 {
        font-size: 2rem;
    }

    .post-excerpt {
        font-size: 1rem;
    }

    .post-article {
        padding: 25px;
    }

    .post-article h2 {
        font-size: 1.5rem;
    }

    .author-box {
        flex-direction: column;
        text-align: center;
    }

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

    .related-grid {
        grid-template-columns: 1fr;
    }

    .comment-item {
        flex-direction: column;
    }

    .comment-reply {
        margin-right: 0;
    }

    .comment-form .form-row {
        grid-template-columns: 1fr;
    }

    .post-sidebar {
        grid-template-columns: 1fr;
    }

    .post-share {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .post-hero-content h1 {
        font-size: 1.6rem;
    }

    .post-meta-info {
        gap: 12px;
    }

    .post-meta-info span {
        font-size: 0.85rem;
    }

    .comments-section {
        padding: 25px;
    }
}