/**
 * Consolidated Single Post Styles
 * Combines: single-post.css, single-post-enhanced.css, single-layout.css, single-hero.css
 * Created: 2025-08-12
 * Version: 1.0.0
 */

/* ===== Core Single Post Styles ===== */
/* From single-post.css */

/* Hero Section */
.single-post-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #3498DB 100%);
    color: white;
    padding: 120px 0 80px;
    margin-bottom: 60px;
    position: relative;
    overflow: hidden;
}

.single-post-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 60%;
    height: 200%;
    background: rgba(255, 255, 255, 0.05);
    transform: rotate(45deg);
}

.single-post-hero .container {
    position: relative;
    z-index: 1;
}

.single-post-hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
    animation: fadeInUp 0.8s ease-out;
}

.post-meta {
    display: flex;
    gap: 30px;
    font-size: 16px;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease-out 0.1s backwards;
}

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

/* Content Area */
.single-post-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.single-post-content .entry-content {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.single-post-content h2 {
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--text-primary);
    font-size: 32px;
}

.single-post-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--text-primary);
    font-size: 24px;
}

.single-post-content p {
    margin-bottom: 20px;
}

.single-post-content ul,
.single-post-content ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.single-post-content li {
    margin-bottom: 10px;
}

/* ===== Enhanced Single Post Styles ===== */
/* From single-post-enhanced.css */

/* Enhanced Typography */
.single-post-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    color: var(--text-secondary);
    background: var(--background-light);
    padding: 20px 20px 20px 30px;
    border-radius: 8px;
}

.single-post-content code {
    background: #f4f4f4;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.single-post-content pre {
    background: #1e1e1e;
    color: #fff;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 30px 0;
}

/* Enhanced Images */
.single-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin: 30px 0;
}

.single-post-content .wp-caption {
    max-width: 100%;
    margin: 30px 0;
}

.single-post-content .wp-caption-text {
    text-align: center;
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 10px;
}

/* ===== Layout Styles ===== */
/* From single-layout.css */

/* Sidebar Layout */
.single-post-with-sidebar {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.single-post-with-sidebar .single-post-content {
    max-width: none;
    padding: 0;
}

.single-post-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-widget {
    background: var(--background-white);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.sidebar-widget h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--text-primary);
}

/* ===== Hero Styles ===== */
/* From single-hero.css */

/* Hero Variations */
.single-post-hero.hero-dark {
    background: linear-gradient(135deg, var(--primary-color) 0%, #34495E 100%);
}

.single-post-hero.hero-light {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: var(--text-primary);
}

.single-post-hero .breadcrumb {
    margin-bottom: 20px;
    font-size: 14px;
    opacity: 0.8;
}

.single-post-hero .breadcrumb a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.single-post-hero .breadcrumb a:hover {
    opacity: 0.6;
}

/* ===== Responsive Design ===== */

@media (max-width: 768px) {
    .single-post-hero {
        padding: 80px 0 60px;
        margin-bottom: 40px;
    }
    
    .single-post-hero h1 {
        font-size: 32px;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .single-post-with-sidebar {
        grid-template-columns: 1fr;
    }
    
    .single-post-sidebar {
        position: static;
    }
    
    .single-post-content {
        padding: 0 15px;
    }
    
    .single-post-content .entry-content {
        font-size: 16px;
    }
}

/* ===== Animations ===== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}