/* ==========================================================================
   Single Post Hero and Main Layout Styles
   ========================================================================== */

/* === Single Post Hero Header === */
.single-post-hero {
    position: relative;
    width: 100vw;
    min-height: 44vh;
    height: 44vh;
    max-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.single-post-hero-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
    transition: background-image 0.4s;
    filter: brightness(0.7) grayscale(0.08);
}

/* === Single Post Main Layout === */
.single-post-main {
    position: relative;
    min-height: 60vh;
    width: 100vw;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    z-index: 1;
    background: none;
    margin-top: -30px;
    padding-bottom: 20px;
}

.single-post-card {
    position: relative;
    z-index: 3;
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    background: none;
    box-shadow: none;
    border-radius: 0;
    padding: 3rem 2.5rem 2.5rem 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2.2rem;
    margin-top: 0;
}

.single-post-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #1536F2;
    margin-bottom: 0.5rem;
    text-align: left;
    letter-spacing: -1px;
}

.single-post-content {
    font-size: 1.18rem;
    color: #f2f2f2;
    margin-bottom: 1.2rem;
    line-height: 1.7;
}

/* Ensure content elements have proper styling */
.single-post-card, .single-post-content, .single-post-card * {
    color: #f2f2f2 !important;
    background: none !important;
    box-shadow: none !important;
}

/* Responsive styles for hero and main */
@media (max-width: 900px) {
    .single-post-hero {
        min-height: 28vh;
        height: 28vh;
        max-height: 220px;
    }
}

@media (max-width: 600px) {
    .single-post-card {
        max-width: 98vw;
        padding: 1.2rem 0.5rem 1.5rem 0.5rem;
    }
    .single-post-title {
        font-size: 1.4rem;
    }
}

/* ==========================================================================
   Single Post Template Styles (Original)
   ========================================================================== */

.single-post-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.single-post-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.single-post-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.post-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.post-meta-item i {
    color: #007cba;
}

.single-post-featured-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.single-post-content h2,
.single-post-content h3,
.single-post-content h4 {
    color: #000;
    margin: 2rem 0 1rem;
    font-weight: 600;
}

.single-post-content h2 {
    font-size: 1.75rem;
}

.single-post-content h3 {
    font-size: 1.5rem;
}

.single-post-content h4 {
    font-size: 1.25rem;
}

.single-post-content p {
    margin-bottom: 1.5rem;
}

.single-post-content ul,
.single-post-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.single-post-content li {
    margin-bottom: 0.5rem;
}

.single-post-content blockquote {
    background: #f8f9fa;
    border-left: 4px solid #007cba;
    padding: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    border-radius: 0 8px 8px 0;
}

.single-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.single-post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.tag-link {
    background: #f0f0f0;
    color: #333;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.tag-link:hover {
    background: #007cba;
    color: white;
}

.single-post-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 3rem 0;
    padding: 2rem 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    max-width: 40%;
}

.nav-link:hover {
    color: #007cba;
}

.nav-link.prev {
    text-align: left;
}

.nav-link.next {
    text-align: right;
    flex-direction: row-reverse;
}

.nav-arrow {
    font-size: 1.25rem;
    color: #007cba;
}

.comments-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #eee;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
    .single-post-container {
        padding: 1.5rem 1rem;
    }
    
    .single-post-meta {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .single-post-featured-image {
        height: 250px;
    }
    
    .single-post-navigation {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-link {
        max-width: 100%;
        text-align: center;
    }
    
    .nav-link.next {
        flex-direction: row;
    }
} 