/* Single Post Template Styles */

.single-post {
    background-color: var(--color-3);
}

/* Hero Section */
.post-hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.post-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.post-hero-image .hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.post-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    background: linear-gradient(
        to bottom,
        rgba(14, 17, 28, 0.7) 0%,
        rgba(14, 17, 28, 0.5) 50%,
        rgba(14, 17, 28, 0.8) 100%
    );
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.single-hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.post-title {
    color: var(--color-6);
    font-size: 4rem;
    line-height: 4.5rem;
    font-weight: 700;
    margin: 0 0 2rem 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.post-meta {
    color: var(--color-6);
    font-size: 1.125rem;
    line-height: 1.6;
    opacity: 0.9;
}

.post-meta span {
    display: inline-block;
    margin: 0 1rem;
}

.post-meta a {
    color: var(--color-1);
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-meta a:hover {
    color: var(--color-2);
}

/* Content Section */
.post-content {
    background-color: var(--color-3);
    padding: 4rem 0;
}

.post-article {
    max-width: 1200px;
    margin: 0 auto;
    background-color: var(--color-6);
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.post-article h1,
.post-article h2,
.post-article h3,
.post-article h4,
.post-article h5,
.post-article h6 {
    color: var(--color-3);
    margin: 2rem 0 1rem 0;
    font-weight: 600;
}

.post-article h1 {
    font-size: 2.5rem;
    line-height: 3rem;
}

.post-article h2 {
    font-size: 2rem;
    line-height: 2.5rem;
}

.post-article h3 {
    font-size: 1.75rem;
    line-height: 2.25rem;
}

.post-article p {
    color: var(--color-3);
    font-size: 1.125rem;
    line-height: 1.8;
    margin: 0 0 1.5rem 0;
}

.post-article ul,
.post-article ol {
    color: var(--color-3);
    font-size: 1.125rem;
    line-height: 1.8;
    margin: 0 0 1.5rem 0;
    padding-left: 2rem;
}

.post-article li {
    margin: 0 0 0.5rem 0;
}

.post-article blockquote {
    border-left: 4px solid var(--color-1);
    padding-left: 2rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--color-4);
    font-size: 1.25rem;
    line-height: 1.6;
}

.post-article img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
}

.post-article a {
    color: var(--color-1);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.post-article a:hover {
    color: var(--color-2);
}

/* Post Navigation */
.post-navigation {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb; /* Use a subtle border */
}

.nav-links {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.nav-previous,
.nav-next {
    flex: 1;
}

.nav-previous a,
.nav-next a {
    display: block;
    padding: 2rem;
    background-color: #ffffff; /* White card background */
    text-decoration: none;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease-in-out;
}

.nav-previous a:hover,
.nav-next a:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0);
}

.nav-subtitle {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.75rem;
    color: #9ca3af; /* A clear but subtle gray */
    font-weight: 600;
}

.nav-title {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
}

/* Previous Post: Orange Title */
.nav-previous a .nav-title {
    color: var(--color-1, #f58023);
    transition: color 0.3s ease;
}

/* Next Post: Dark Title */
.nav-next a .nav-title {
    color: var(--color-3, #1f2937);
    transition: color 0.3s ease;
}

/* Change both titles to orange on hover for consistency */
.nav-previous a:hover .nav-title,
.nav-next a:hover .nav-title {
    color: var(--color-2, #db6b19);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .post-title {
        font-size: 3rem;
        line-height: 3.5rem;
    }
    
    .post-article {
        padding: 2rem;
        margin: 0 2rem;
    }
    
    .single-hero-content {
        padding: 0 1rem;
    }
}

@media (max-width: 768px) {
    .post-hero {
        min-height: 50vh;
    }
    
    .post-title {
        font-size: 2.5rem;
        line-height: 3rem;
    }
    
    .post-meta span {
        display: block;
        margin: 0.5rem 0;
    }
    
    .post-article {
        padding: 1.5rem;
        margin: 0 1rem;
    }
    
    .single-hero-content {
        padding: 0 1rem;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-previous,
    .nav-next {
        flex: none;
    }
}

@media (max-width: 480px) {
    .post-title {
        font-size: 2rem;
        line-height: 2.5rem;
    }
    
    .post-article {
        padding: 1rem;
        margin: 0 0.5rem;
    }
    
    .single-hero-content {
        padding: 0 0.5rem;
    }
    
    .post-article h1 {
        font-size: 2rem;
        line-height: 2.5rem;
    }
    
    .post-article h2 {
        font-size: 1.75rem;
        line-height: 2.25rem;
    }
} 