/* Single Post Styles */


:root {
    --primary-color: #0B1F3A;
    --secondary-color: #FF9900;
    --primary-rgb: 21, 87, 174;
    --gradient-primary: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    --heading-color: #1A1A1A;
    --text-color: #1e1e1e;
    --light-bg: #F8F9FA;
    --border-color: #E9ECEF;
    --white: #fff;
    --content-width: 800px;
    --sidebar-width: 350px;
    --spacing-section: clamp(60px, 8vw, 100px);
}
/* Hero Section */
.post-hero {
    position: relative;
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color), #FF9900);
    color: var(--white);
    margin-bottom: var(--spacing-section);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.1) 0%,
        rgba(0,0,0,0.2) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;
    margin-top: 5rem;
}

.featured-image {
    margin-top: 50px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    background: var(--white);
    position: relative;
}

.featured-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.featured-image:hover img {
    transform: scale(1.02);
}

.post-category {
    margin-bottom: 25px;
}

.post-category a {
    background: var(--primary-color);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.post-category a:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.post-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.2;
    margin: 0 0 30px;
    font-weight: 800;
    color: var(--white);
}

.post-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    font-size: 0.95rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.meta-item.author img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--white);
}

.meta-item i {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Content Layout */
.post-content-container {
    background: var(--white);
}

.post-layout {
    display: grid;
    grid-template-columns: minmax(0, var(--content-width)) var(--sidebar-width);
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 20px;
}

/* Main Content */
.post-content {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-color);
}

.post-content > * {
    margin-bottom: 1.8em;
}

.post-content h2 {
    font-size: 2.2rem;
    color: var(--heading-color);
    margin: 2em 0 1em;
    font-weight: 700;
}

.post-content h3 {
    font-size: 1.8rem;
    color: var(--heading-color);
    margin: 1.8em 0 1em;
    font-weight: 700;
}

.post-content p {
    margin-bottom: 1.8em;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    margin: 2em 0;
}

.post-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 30px 40px;
    margin: 2em 0;
    background: rgba(var(--primary-rgb), 0.05);
    font-style: italic;
    border-radius: 0 15px 15px 0;
    font-size: 1.1em;
}

/* Tags */
.post-tags {
    margin: 60px 0;
    padding: 30px;
    background: var(--light-bg);
    border-radius: 15px;
}

.tags-label {
    display: block;
    margin-bottom: 15px;
    font-weight: 600;
    color: var(--heading-color);
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: var(--white);
    color: var(--primary-color);
    border-radius: 50px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Author Bio */
.author-bio {
    margin: 60px 0;
    padding: 40px;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    display: flex;
    gap: 30px;
    align-items: center;
}

.author-avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--white);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.author-info h3 {
    font-size: 1.4rem;
    color: var(--heading-color);
    margin: 0 0 15px;
}

.author-info p {
    color: var(--text-color);
    line-height: 1.6;
    margin: 0 0 20px;
}

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

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

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

/* Sidebar */
.post-sidebar {
    position: relative;
}

.sidebar-sticky {
    position: sticky;
    top: 125px;
}

.sidebar-widget {
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    margin-bottom: 30px;
    overflow: hidden;
}

.widget-header {
    padding: 20px 25px;
    background: var(--white);
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.widget-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--heading-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

/* Table of Contents */
.toc-list {
    padding: 20px 25px;
}

.toc-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-list ul ul {
    padding-left: 20px;
    margin-top: 10px;
    border-left: 2px solid rgba(var(--primary-rgb), 0.1);
}

.toc-list li {
    margin-bottom: 12px;
    line-height: 1.4;
}

.toc-list a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    opacity: 0.85;
    display: block;
    padding: 5px 0;
}

.toc-list a:hover,
.toc-list a.active {
    color: var(--primary-color);
    opacity: 1;
    padding-left: 10px;
}

/* Social Share */
.share-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 20px 25px;
}

.share-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    border-radius: 8px;
    color: var(--white);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.share-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.share-button i {
    font-size: 1.1rem;
}

.facebook {
    background: #1877f2;
}

.twitter {
    background: #1da1f2;
}

.linkedin {
    background: #0a66c2;
}

.copy-link {
    background: var(--text-color);
}

.copy-link.copied {
    background: #28a745;
}

/* Related Posts */
.related-list {
    padding: 20px 25px;
}

.related-item {
    display: flex;
    gap: 15px;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.related-item:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: none;
}

.related-thumbnail {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
}

.related-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-item:hover .related-thumbnail img {
    transform: scale(1.05);
}

.related-content {
    min-width: 0;
}

.related-content h4 {
    margin: 0 0 10px;
    font-size: 1rem;
    line-height: 1.4;
}

.related-content h4 a {
    color: var(--heading-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.related-meta {
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: 5px;
}

.related-meta i {
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .post-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .post-sidebar {
        order: -1;
    }

    .sidebar-sticky {
        position: relative;
        top: 0;
    }

    .share-buttons {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .post-hero {
        min-height: 500px;
    }

    .post-meta {
        flex-direction: column;
        gap: 15px;
    }

    .post-content {
        font-size: 1.1rem;
    }

    .post-content h2 {
        font-size: 1.8rem;
    }

    .post-content h3 {
        font-size: 1.5rem;
    }

    .author-bio {
        flex-direction: column;
        text-align: center;
        padding: 30px;
    }

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

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

@media (max-width: 480px) {
    .post-hero {
        min-height: 400px;
    }

    .post-title {
        font-size: 2rem;
    }

    .post-layout {
        padding: 0 15px;
    }

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

    .related-item {
        flex-direction: column;
        gap: 15px;
    }

    .related-thumbnail {
        width: 100%;
        height: 200px;
    }
} 