/* ========================================
   Single Post Styles
======================================== */

.feature-number {
    width: 60px;
    height: 60px;
    background-color: var(--lf-orange);
    color: white;
    font-weight: bold;
    font-size: 1.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.feature-title {
    color: var(--lf-text-primary);
}

.col-12:not(:last-child) .feature-number::after {
    content: "";
    position: absolute;
    top: 130%;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 40px;
    background-color: var(--lf-border-color);
}

.section-area {
    justify-content: space-between;
}

/* ========================================
   Post Header
======================================== */

.post-header {
    padding: 2rem 0;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 0.9375rem;
    color: var(--lf-text-secondary);
    font-weight: 500;
}

.post-meta svg {
    margin-right: 0.375rem;
    color: var(--lf-orange);
}

.meta-divider {
    color: var(--lf-border-color);
    font-weight: 300;
}

.meta-date,
.meta-author,
.meta-category {
    display: inline-flex;
    align-items: center;
}

.meta-category a {
    color: var(--lf-orange);
    text-decoration: none;
    transition: color 0.3s ease;
}

.meta-category a:hover {
    color: var(--lf-navy);
    text-decoration: underline;
}

.post-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--lf-text-primary);
}

.post-excerpt {
    font-size: 1.375rem;
    line-height: 1.6;
    color: var(--lf-text-secondary);
    font-weight: 400;
}

@media (max-width: 768px) {
    .post-title {
        font-size: 2.25rem;
    }

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

    .post-meta {
        font-size: 0.875rem;
        gap: 0.75rem;
    }
}

/* ========================================
   Post Hero Image
======================================== */

.post-hero {
    margin-bottom: 3rem;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--lf-border-color);
}

.post-hero img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .post-hero {
        margin-bottom: 2rem;
        border-radius: 12px;
    }
}

/* ========================================
   Post Content
======================================== */

.post-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--lf-text-primary);
}

.post-content h2 {
    font-size: 2.25rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    color: var(--lf-text-primary);
    position: relative;
    padding-bottom: 0.75rem;
}

.post-content h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--lf-orange);
    border-radius: 2px;
}

.post-content h3 {
    font-size: 1.75rem;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    font-weight: 700;
    color: var(--lf-text-primary);
}

.post-content h4 {
    font-size: 1.375rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--lf-text-primary);
}

.post-content p {
    margin-bottom: 1.75rem;
}

.post-content strong {
    color: var(--lf-text-primary);
    font-weight: 700;
}

.post-content ul,
.post-content ol {
    margin-bottom: 1.75rem;
    padding-left: 2.5rem;
}

.post-content li {
    margin-bottom: 0.75rem;
    line-height: 1.8;
}

.post-content ul li {
    list-style: none;
    position: relative;
}

.post-content ul li::before {
    content: "";
    position: absolute;
    left: -1.5rem;
    top: 0.6em;
    width: 8px;
    height: 8px;
    background-color: var(--lf-orange);
    border-radius: 50%;
}

.post-content a {
    color: var(--lf-orange);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.post-content a:hover {
    color: var(--lf-navy);
    text-decoration: none;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 2.5rem 0;
}

.post-content blockquote {
    border-left: 5px solid var(--lf-orange);
    padding: 2rem 2.5rem;
    margin: 2.5rem 0;
    background-color: var(--lf-bg-secondary);
    border-radius: 12px;
    font-style: italic;
    color: var(--lf-text-primary);
    font-size: 1.25rem;
    position: relative;
}

.post-content blockquote::before {
    content: '"';
    font-size: 4rem;
    color: var(--lf-orange);
    opacity: 0.3;
    position: absolute;
    top: -10px;
    left: 20px;
}

.post-content blockquote p:last-child {
    margin-bottom: 0;
}

.post-content code {
    background-color: var(--lf-bg-secondary);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.9em;
    font-family: "Courier New", monospace;
    color: var(--lf-orange);
    border: 1px solid var(--lf-border-color);
}

.post-content pre {
    background-color: var(--lf-bg-secondary);
    padding: 1.5rem;
    border-radius: 12px;
    overflow-x: auto;
    margin: 2.5rem 0;
    border: 1px solid var(--lf-border-color);
}

.post-content pre code {
    background-color: transparent;
    padding: 0;
    color: var(--lf-text-primary);
    border: none;
}

@media (max-width: 768px) {
    .post-content {
        font-size: 1rem;
    }

    .post-content h2 {
        font-size: 1.75rem;
        margin-top: 2rem;
    }

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

    .post-content blockquote {
        padding: 1.5rem;
        font-size: 1.0625rem;
    }
}

/* ========================================
   Page Links (Multi-page posts)
======================================== */

.page-links {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 2px solid var(--lf-border-color);
    display: flex;
    gap: 0.75rem;
    align-items: center;
    font-weight: 600;
}

.page-links a {
    display: inline-block;
    padding: 0.75rem 1.25rem;
    background-color: var(--lf-bg-secondary);
    color: var(--lf-text-primary);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 2px solid var(--lf-border-color);
}

.page-links a:hover {
    background-color: var(--lf-orange);
    color: #ffffff;
    border-color: var(--lf-orange);
    transform: translateY(-2px);
}

/* ========================================
   Post Tags
======================================== */

.post-tags {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--lf-border-color);
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.tags-label {
    font-weight: 700;
    color: var(--lf-text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.tags-label svg {
    color: var(--lf-orange);
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.post-tags a {
    display: inline-block;
    padding: 0.625rem 1.25rem;
    background-color: var(--lf-bg-secondary);
    color: var(--lf-text-primary);
    text-decoration: none;
    border-radius: 24px;
    font-size: 0.9375rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--lf-border-color);
}

.post-tags a:hover {
    background-color: var(--lf-orange);
    color: #ffffff;
    border-color: var(--lf-orange);
    transform: translateY(-2px);
}

/* ========================================
   Share Section
======================================== */

.share-area {
    padding: 3rem 2.5rem;
    background: linear-gradient(
        135deg,
        var(--lf-bg-secondary) 0%,
        var(--lf-bg-secondary) 100%
    );
    border-radius: 16px;
    text-align: center;
    border: 2px solid var(--lf-border-color);
}

.share-area .sub-title {
    color: var(--lf-orange);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
}

.share-area .section-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0;
    color: var(--lf-text-primary);
}

@media (max-width: 576px) {
    .share-area {
        padding: 2rem 1.5rem;
    }

    .share-area .section-title {
        font-size: 1.5rem;
    }
}

/* ========================================
   Author Bio
======================================== */

.author-bio {
    display: flex;
    gap: 1.5rem;
    padding: 2.5rem;
    background-color: var(--lf-bg-secondary);
    border-radius: 16px;
    align-items: flex-start;
    border: 2px solid var(--lf-border-color);
}

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

.author-avatar img {
    border-radius: 50%;
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 3px solid var(--lf-orange);
}

.author-info {
    flex-grow: 1;
}

.author-name {
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--lf-text-primary);
}

.author-description {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--lf-text-secondary);
}

@media (max-width: 576px) {
    .author-bio {
        flex-direction: column;
        text-align: center;
        align-items: center;
        padding: 2rem 1.5rem;
    }
}

/* ========================================
   Post Navigation
======================================== */

.post-navigation {
    margin-top: 2rem;
}

.post-navigation .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--lf-orange);
    color: var(--lf-orange);
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-outline:hover {
    background-color: var(--lf-orange);
    color: #ffffff;
    transform: translateY(-2px);
}

/* ========================================
   Related Posts
======================================== */

.related-posts {
    background-color: var(--lf-bg-secondary);
}

.related-card {
    background-color: var(--lf-bg-light);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--lf-border-color);
}

.related-card:hover {
    transform: translateY(-8px);
    border-color: var(--lf-orange);
}

.related-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    display: block;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.related-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to top,
        rgba(8, 27, 54, 0.95) 0%,
        transparent 60%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.related-card:hover .related-overlay {
    opacity: 1;
}

.related-read-more {
    color: #ffffff;
    font-size: 2.5rem;
    transform: scale(0.3);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.related-card:hover .related-read-more {
    transform: scale(1);
}

.related-content {
    padding: 1.5rem;
    flex-grow: 1;
}

.related-content h5 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

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

.related-content h5 a:hover {
    color: var(--lf-orange);
}

.related-date {
    font-size: 0.875rem;
    color: var(--lf-text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-weight: 500;
}

.related-date svg {
    color: var(--lf-orange);
}

/* ========================================
   Utility Classes
======================================== */

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
    color: var(--lf-text-primary);
}

@media (max-width: 768px) {
    .section-title {
        font-size: 1.75rem;
    }
}
