/*
Single Post Modern Layout - Sync with Blog Layout Design
Professional & consistent styling matching blog cards
*/

/* ==========================================================================
   1. SINGLE POST CONTAINER - MODERN DESIGN
   ========================================================================== */

.single-post .site-content-container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
}

.single-post .content-area {
    background: #ffffff !important;
    border-radius: 0 !important; /* No border radius for clean look */
    box-shadow: none !important; /* Remove box shadow */
    padding: 48px 0 !important; /* Remove horizontal padding for full width */
    margin-bottom: 40px !important;
    border: none !important; /* Remove border */
    backdrop-filter: none !important; /* Remove backdrop filter */
    position: relative !important;
    overflow: visible !important; /* Allow content to flow naturally */
}

/* Clean layout - no overlay effects */

/* ==========================================================================
   2. POST HEADER SECTION
   ========================================================================== */

.single-post .post-header {
    margin-bottom: 40px !important;
    padding-bottom: 30px !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
}

.single-post .post-title,
.single-post .entry-title {
    font-size: 32px !important; /* Match H1 from typography */
    font-weight: 700 !important;
    color: #1e293b !important;
    margin-bottom: 24px !important;
    line-height: 1.2 !important;
    background: linear-gradient(135deg, #1e293b, #0866fe);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
}

/* ==========================================================================
   3. POST META SECTION - MODERN STYLE
   ========================================================================== */

.single-post .post-meta,
.single-post .entry-meta {
    display: flex !important;
    align-items: center !important;
    gap: 24px !important;
    font-size: 14px !important;
    color: #64748b !important;
    margin-bottom: 30px !important;
    padding: 16px 20px !important;
    background: rgba(248, 250, 252, 0.8) !important;
    border-radius: 12px !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
}

.single-post .post-meta .author-name,
.single-post .entry-meta .author-name {
    font-weight: 600 !important;
    color: #0866fe !important;
}

.single-post .post-meta .post-date,
.single-post .entry-meta .post-date {
    position: relative !important;
}

.single-post .post-meta .post-date::before,
.single-post .entry-meta .post-date::before {
    content: '•' !important;
    margin: 0 8px !important;
    color: #cbd5e1 !important;
}

/* ==========================================================================
   4. POST CATEGORIES - MODERN BADGES
   ========================================================================== */

.single-post .post-categories {
    display: flex !important;
    gap: 12px !important;
    margin-bottom: 24px !important;
    flex-wrap: wrap !important;
}

.single-post .post-categories a {
    background: linear-gradient(135deg, #0866fe, #10b981) !important;
    color: white !important;
    padding: 8px 16px !important;
    border-radius: 6px !important; /* Consistent with buttons */
    font-size: 12px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(8, 102, 254, 0.3) !important;
}

.single-post .post-categories a:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(8, 102, 254, 0.4) !important;
}

/* ==========================================================================
   5. POST THUMBNAIL - MODERN STYLING
   ========================================================================== */

.single-post .post-thumbnail,
.single-post .entry-thumbnail {
    margin-bottom: 40px !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    position: relative !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12) !important;
}

.single-post .post-thumbnail img,
.single-post .entry-thumbnail img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    filter: brightness(1) contrast(1.05) !important;
    transition: filter 0.3s ease !important;
}

.single-post .post-thumbnail:hover img,
.single-post .entry-thumbnail:hover img {
    filter: brightness(1.05) contrast(1.1) !important;
}

/* ==========================================================================
   6. POST CONTENT - ENHANCED TYPOGRAPHY
   ========================================================================== */

.single-post .post-content,
.single-post .entry-content {
    font-size: 18px !important; /* Match typography unification */
    line-height: 1.7 !important;
    color: #495057 !important;
}

.single-post .post-content p,
.single-post .entry-content p {
    margin-bottom: 24px !important;
    font-size: 18px !important;
    line-height: 1.7 !important;
}

/* Content headings - match modern typography */
.single-post .post-content h1,
.single-post .entry-content h1 {
    font-size: 32px !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    margin-top: 40px !important;
    margin-bottom: 20px !important;
}

.single-post .post-content h2,
.single-post .entry-content h2 {
    font-size: 26px !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    margin-top: 36px !important;
    margin-bottom: 18px !important;
}

.single-post .post-content h3,
.single-post .entry-content h3 {
    font-size: 22px !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    margin-top: 32px !important;
    margin-bottom: 16px !important;
}

.single-post .post-content h4,
.single-post .entry-content h4 {
    font-size: 20px !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    margin-top: 28px !important;
    margin-bottom: 14px !important;
}

.single-post .post-content h5,
.single-post .entry-content h5 {
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    margin-top: 24px !important;
    margin-bottom: 12px !important;
}

.single-post .post-content h6,
.single-post .entry-content h6 {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    margin-top: 20px !important;
    margin-bottom: 10px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

/* ==========================================================================
   7. RELATED POSTS SECTION - MATCH BLOG CARDS
   ========================================================================== */

.single-post .related-posts {
    background: #ffffff !important;
    border-radius: 0 !important; /* Clean, no border radius */
    box-shadow: none !important; /* Remove box shadow */
    padding: 48px 0 !important; /* Full width padding */
    margin-top: 60px !important;
    border: none !important; /* Remove border */
    position: relative !important;
    border-top: 1px solid #e2e8f0 !important; /* Simple top border for separation */
}

.single-post .related-posts h3 {
    font-size: 26px !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    margin-bottom: 32px !important;
    text-align: center !important;
    padding-bottom: 16px !important;
    border-bottom: 2px solid #0866fe !important;
    display: inline-block !important;
    width: 100% !important;
}

/* ==========================================================================
   8. CONTENT ELEMENTS - MODERN STYLING
   ========================================================================== */

/* Blockquotes */
.single-post .post-content blockquote,
.single-post .entry-content blockquote {
    background: rgba(8, 102, 254, 0.05) !important;
    border-left: 4px solid #0866fe !important;
    padding: 24px !important;
    margin: 32px 0 !important;
    border-radius: 0 8px 8px 0 !important;
    font-style: italic !important;
    font-size: 18px !important;
    color: #475569 !important;
}

/* Lists */
.single-post .post-content ul,
.single-post .post-content ol,
.single-post .entry-content ul,
.single-post .entry-content ol {
    margin: 24px 0 !important;
    padding-left: 32px !important;
}

.single-post .post-content li,
.single-post .entry-content li {
    margin-bottom: 8px !important;
    line-height: 1.6 !important;
}

/* Code blocks */
.single-post .post-content code,
.single-post .entry-content code {
    background: #f1f5f9 !important;
    padding: 4px 8px !important;
    border-radius: 4px !important;
    font-size: 16px !important;
    color: #0866fe !important;
}

.single-post .post-content pre,
.single-post .entry-content pre {
    background: #1e293b !important;
    color: #f1f5f9 !important;
    padding: 24px !important;
    border-radius: 8px !important;
    overflow-x: auto !important;
    margin: 32px 0 !important;
}

/* ==========================================================================
   9. RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 768px) {
    .single-post .site-content-container {
        padding: 0 15px !important;
    }

    .single-post .content-area {
        padding: 32px 24px !important;
        border-radius: 12px !important;
    }

    .single-post .post-title,
    .single-post .entry-title {
        font-size: 26px !important;
    }

    .single-post .post-content,
    .single-post .entry-content {
        font-size: 17px !important;
    }

    .single-post .related-posts {
        padding: 32px 24px !important;
        border-radius: 12px !important;
    }

    .single-post .post-meta,
    .single-post .entry-meta {
        flex-direction: column !important;
        gap: 12px !important;
        text-align: center !important;
    }
}

@media (max-width: 480px) {
    .single-post .content-area {
        padding: 24px 20px !important;
    }

    .single-post .post-title,
    .single-post .entry-title {
        font-size: 24px !important;
    }

    .single-post .post-content,
    .single-post .entry-content {
        font-size: 16px !important;
    }

    .single-post .post-categories {
        justify-content: center !important;
    }
}

/* ==========================================================================
   10. NAVIGATION & SHARING (if needed)
   ========================================================================== */

.single-post .post-navigation {
    margin-top: 48px !important;
    padding-top: 32px !important;
    border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
}

.single-post .post-navigation a {
    display: inline-block !important;
    padding: 12px 24px !important;
    background: #0866fe !important;
    color: white !important;
    text-decoration: none !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.single-post .post-navigation a:hover {
    background: #0550c3 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(8, 102, 254, 0.3) !important;
}

/* End Single Post Modern CSS */