/* ============================================
   PIRANOT V4 - SINGLE POST ENHANCED
   ============================================ */

/* Single Post Container */
.content-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    padding: 32px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.main-content {
    flex: 1 1 70%;
    min-width: 0;
}

.sidebar {
    flex: 0 0 300px;
    position: sticky;
    top: 80px;
}

/* ============================================
   SINGLE ARTICLE
   ============================================ */

.single-article {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
}

.single-header {
    margin-bottom: 24px;
}

.breadcrumbs {
    font-size: 11px;
    font-weight: 600;
    color: #999;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.breadcrumbs a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumbs a:hover {
    color: var(--accent-red);
}

.breadcrumbs .sep {
    margin: 0 6px;
    color: #ccc;
}

.single-meta {
    font-size: 13px;
    color: #666;
    margin: 8px 0;
    display: flex;
    gap: 16px;
    align-items: center;
}

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

.single-title {
    font-size: 42px;
    font-weight: 900;
    margin: 12px 0 20px 0;
    line-height: 1.15;
    color: #111;
}

.single-author-box {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 16px;
    background: #f6f7f9;
    border-radius: 10px;
    margin-top: 20px;
}

.single-author-box img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.single-author-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.single-author-label {
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-weight: 600;
}

.single-author-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.single-author-name:hover {
    text-decoration: underline;
}

/* Featured Image */
.single-thumb {
    width: 100%;
    max-width: 100%;
    margin: 24px -16px -16px -16px;
    border-radius: 0;
    overflow: hidden;
}

.single-thumb img {
    width: 100%;
    height: auto;
    display: block;
}

.single-thumb figcaption {
    padding: 12px 16px;
    background: #f6f7f9;
    font-size: 12px;
    color: #666;
    text-align: center;
}

/* Social Share Buttons */
.social-share {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 16px 0;
    margin: 20px 0;
    border-top: 1px solid #e8e8e8;
    border-bottom: 1px solid #e8e8e8;
}

.social-share-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: #999;
    margin-right: 12px;
}

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

.social-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f0f0f0;
    color: #111;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
    font-weight: 600;
}

.social-share-btn:hover {
    transform: translateY(-2px);
    background: var(--primary);
    color: #fff;
    box-shadow: 0 6px 16px rgba(11, 59, 143, 0.2);
}

/* Post Content */
.post-content {
    font-size: 18px;
    line-height: 1.8;
    color: #222;
    margin: 28px 0;
}

.post-content p {
    margin: 18px 0;
}

.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5 {
    margin: 32px 0 16px;
    line-height: 1.3;
    color: #111;
}

.post-content h2 {
    font-size: 28px;
    font-weight: 800;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
}

.post-content h3 {
    font-size: 24px;
    font-weight: 700;
}

.post-content h4 {
    font-size: 20px;
    font-weight: 700;
}

.post-content blockquote {
    border-left: 4px solid var(--primary);
    padding: 16px 20px;
    margin: 24px 0;
    background: #f6f7f9;
    font-style: italic;
    color: #444;
    border-radius: 4px;
}

.post-content img,
.post-content iframe,
.post-content video {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 24px 0;
    display: block;
}

.post-content img {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.post-content ul,
.post-content ol {
    margin: 16px 0;
    padding-left: 24px;
}

.post-content li {
    margin: 8px 0;
    line-height: 1.7;
}

.post-content a {
    color: var(--primary);
    text-decoration: none;
    border-bottom: 2px solid rgba(11, 59, 143, 0.2);
    transition: all 0.2s ease;
}

.post-content a:hover {
    border-bottom-color: var(--primary);
    color: var(--accent-red);
}

/* Single Footer / Tags */
.single-footer {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 2px solid #e8e8e8;
}

.single-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.single-tag {
    display: inline-block;
    background: var(--bg-light);
    color: var(--primary);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.single-tag:hover {
    background: var(--primary);
    color: #fff;
}

/* ============================================
   RELATED POSTS
   ============================================ */

.related-posts {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 3px solid var(--primary);
}

.related-posts-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 28px;
    color: #111;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.related-post-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.related-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
    border-color: #d8d8d8;
}

.related-post-thumb {
    width: 100%;
    height: 180px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    position: relative;
}

.related-post-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.3s ease;
}

.related-post-card:hover .related-post-thumb::after {
    background: rgba(0, 0, 0, 0.05);
}

.related-post-body {
    padding: 16px;
}

.related-post-body h3 {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 8px 0;
    line-height: 1.4;
    color: #111;
}

.related-post-meta {
    font-size: 12px;
    color: #999;
}

/* ============================================
   NEWSLETTER SECTION
   ============================================ */

.newsletter-section {
    background: linear-gradient(135deg, var(--primary) 0%, #0a2f73 100%);
    color: #fff;
    padding: 32px 24px;
    border-radius: 12px;
    margin-top: 48px;
    text-align: center;
}

.newsletter-section h3 {
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 8px 0;
}

.newsletter-section p {
    font-size: 13px;
    margin: 0 0 16px 0;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.newsletter-form input {
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 12px;
    outline: none;
    transition: all 0.2s ease;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-form input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
}

.newsletter-form button {
    padding: 10px 20px;
    background: var(--secondary);
    color: var(--primary);
    border: none;
    border-radius: 6px;
    font-weight: 800;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.newsletter-form button:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1100px) {
    .content-layout {
        flex-direction: column;
        gap: 32px;
    }

    .main-content {
        flex: 1 1 auto;
    }

    .sidebar {
        flex: 1 1 auto;
        position: relative;
        top: 0;
    }

    .single-title {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .content-layout {
        padding: 20px 16px;
    }

    .single-title {
        font-size: 24px;
    }

    .post-content {
        font-size: 16px;
    }

    .post-content h2 {
        font-size: 22px;
    }

    .post-content h3 {
        font-size: 20px;
    }

    .related-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 12px;
    }

    .related-post-thumb {
        height: 140px;
    }

    .related-post-body {
        padding: 12px;
    }

    .related-post-body h3 {
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    .content-layout {
        padding: 16px 12px;
        gap: 20px;
    }

    .single-title {
        font-size: 20px;
    }

    .post-content {
        font-size: 15px;
        line-height: 1.7;
    }

    .post-content h2 {
        font-size: 18px;
        margin-top: 24px;
    }

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

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
    }

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

    .related-post-thumb {
        height: 200px;
    }
}
