/* ==========================================================================
   Hero Transparent Header Theme
   ========================================================================== */

:root {
    /* Colors */
    --color-primary: #2563eb;
    --color-text: #1f2937;
    --color-text-light: #6b7280;
    --color-bg: #ffffff;
    --color-bg-light: #f9fafb;
    --color-border: #e5e7eb;
    
    /* Typography */
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    
    /* Spacing */
    --container-width: 1200px;
    --gap: 2rem;
    
    /* Other */
    --radius: 8px;
    --transition: 0.3s ease;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition);
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--gap);
}

/* ==========================================================================
   Transparent Header (overlays on hero)
   ========================================================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
}

.site-header .container {
    max-width: 100%;
    padding: 0 2rem;
}

/* Transparent on homepage */
.site-header.transparent {
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-header.transparent .site-nav a {
    color: white;
}

.site-header.transparent .btn-signin {
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

/* Solid background when scrolled */
.site-header.scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.site-header.scrolled .site-nav a {
    color: var(--color-text);
}

/* Transparent header on scroll for homepage */
.site-header.transparent.scrolled {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
}

.site-header.transparent.scrolled .site-nav a,
.site-header.transparent.scrolled .btn-signin {
    color: white;
}

/* Non-homepage headers (always solid) */
.site-header:not(.transparent) {
    background: white;
    border-bottom: 1px solid var(--color-border);
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    width: 100%;
}

.site-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: inherit;
    flex-shrink: 0;
    margin-right: auto; /* Pushes everything else to the right */
}

.site-logo img {
    max-height: 40px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0; /* Remove auto centering */
}

.nav-menu li {
    display: inline-block;
    list-style: none;
}

.nav-menu a {
    color: inherit;
    font-weight: 500;
    transition: var(--transition);
    display: block;
}

.nav-menu a:hover {
    opacity: 0.7;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.btn-signin {
    padding: 0.5rem 1.25rem;
    border: 1px solid var(--color-border);
    border-radius: 50px;
    font-weight: 500;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    width: 40px;
    height: 40px;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: currentColor;
    transition: all 0.3s ease;
    display: block;
}

/* Ensure hamburger is visible on transparent header */
.site-header.transparent .menu-toggle span {
    background: white;
}

.site-header:not(.transparent) .menu-toggle span {
    background: var(--color-text);
}

/* ==========================================================================
   Full Screen Hero
   ========================================================================== */

.hero-fullscreen {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: white;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

/* Optional: Add parallax effect */
.home .hero-background {
    transform: translateY(0);
    transition: transform 0.5s ease-out;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.5) 100%
    );
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 2rem;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: clamp(1.125rem, 3vw, 1.5rem);
    margin-bottom: 2.5rem;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: var(--radius);
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    font-size: 2rem;
    color: white;
    opacity: 0.7;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ==========================================================================
   Content Section
   ========================================================================== */

.content-section {
    padding: 4rem 0;
}

.section-header {
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
}

/* Featured Grid */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Post Cards */
.post-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--color-border);
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.post-card.featured {
    border: 2px solid var(--color-primary);
}

.post-card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--color-bg-light);
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.post-card:hover .post-card-image img {
    transform: scale(1.05);
}

.post-card-content {
    padding: 1.5rem;
}

.post-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--color-bg-light);
    color: var(--color-primary);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-card-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.post-card-title a {
    color: var(--color-text);
}

.post-card-excerpt {
    color: var(--color-text-light);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.post-card-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: var(--color-text-light);
}

.author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 3rem;
}

.pagination-info {
    color: var(--color-text-light);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    background: var(--color-bg-light);
    border-top: 1px solid var(--color-border);
    padding: 3rem 0 2rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.footer-description {
    color: var(--color-text-light);
}

.footer-nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.5rem;
}

.footer-column ul li a {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
    text-align: center;
    color: var(--color-text-light);
    font-size: 0.875rem;
}

/* ==========================================================================
   Ghost Content Classes
   ========================================================================== */

.kg-width-wide {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.kg-width-full {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.kg-card {
    margin: 2rem 0;
}

.kg-image {
    max-width: 100%;
    height: auto;
}

/* ==========================================================================
   Post Styles
   ========================================================================== */

/* Container for narrow content */
.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Post Hero (with feature image) */
.post-hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    display: flex;
    align-items: flex-end;
    color: white;
    margin-top: 70px;
}

.post-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
}

.post-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.7));
}

.post-hero-content {
    position: relative;
    z-index: 2;
    padding: 3rem 0;
}

.post-tag-hero {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(255,255,255,0.2);
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

.post-hero .post-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.post-hero .post-excerpt {
    font-size: 1.25rem;
    opacity: 0.95;
    margin-bottom: 1.5rem;
}

.post-hero .post-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* Post Header (no feature image) */
.post-header {
    padding: 6rem 0 2rem;
    text-align: center;
}

.post-title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1rem;
}

.post-excerpt {
    font-size: 1.25rem;
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
}

.post-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-size: 0.95rem;
    color: var(--color-text-light);
}

.post-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: inherit;
}

.post-author img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

/* Post Content */
.post-content {
    padding: 3rem 0;
}

.post-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.post-content h2,
.post-content h3,
.post-content h4 {
    margin: 2rem 0 1rem;
}

.post-content img {
    border-radius: var(--radius);
    margin: 2rem 0;
}

.post-content blockquote {
    border-left: 4px solid var(--color-primary);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--color-text-light);
}

.post-content ul,
.post-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.post-content li {
    margin-bottom: 0.5rem;
}

/* Post Footer */
.post-footer {
    padding: 2rem 0 4rem;
    border-top: 1px solid var(--color-border);
    margin-top: 2rem;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.post-tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--color-bg-light);
    color: var(--color-primary);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 50px;
}

.author-card {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--color-bg-light);
    border-radius: var(--radius);
    margin-top: 2rem;
}

.author-card-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    flex-shrink: 0;
}

.author-card h3 {
    margin-bottom: 0.5rem;
}

.author-card p {
    color: var(--color-text-light);
    line-height: 1.6;
}

/* ==========================================================================
   Page Styles
   ========================================================================== */

.page-header {
    padding: 6rem 0 2rem;
    text-align: center;
}

.page-title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1rem;
}

.page-excerpt {
    font-size: 1.25rem;
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
}

.page-feature-image {
    margin: 2rem auto;
    max-width: 1200px;
}

.page-feature-image img {
    width: 100%;
    border-radius: var(--radius);
}

.page-content {
    padding: 3rem 0 4rem;
}

.page-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.page-content h2,
.page-content h3 {
    margin: 2rem 0 1rem;
}

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

@media (max-width: 768px) {
    .site-header .container {
        padding: 0 1rem;
    }
    
    .site-nav {
        position: relative;
    }
    
    /* Hide desktop menu on mobile */
    .nav-menu {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.98);
        padding: 2rem 1rem;
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
        z-index: 999;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        width: 100%;
        text-align: center;
    }
    
    .nav-menu a {
        color: white !important;
        font-size: 1.25rem;
        padding: 0.75rem;
        display: block;
    }
    
    /* Show hamburger on mobile */
    .menu-toggle {
        display: flex !important;
        position: relative;
        z-index: 1001;
        order: 3; /* Puts it after nav-actions */
    }
    
    /* Hamburger animation when active */
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .nav-actions {
        gap: 1rem;
    }
    
    .btn-signin {
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-actions .btn-primary,
    .hero-actions .btn-secondary {
        width: 100%;
        max-width: 300px;
    }
    
    .featured-grid,
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content,
    .footer-nav {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .site-logo {
        font-size: 1.125rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
}


/* Additional Post Styles for Simple Template */
.post {
    margin-top: 80px;
}

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.post-header {
    padding: 4rem 2rem 2rem;
    text-align: center;
}

.post-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--color-bg-light, #f5f5f5);
    color: var(--color-primary, #6366f1);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: 1rem;
    text-decoration: none;
}

.post-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.post-excerpt {
    font-size: 1.25rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.post-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    color: #999;
    font-size: 0.95rem;
}

.post-author {
    font-weight: 500;
}

.post-feature-image {
    margin: 2rem 0;
}

.post-feature-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.post-content {
    padding: 3rem 0;
    font-size: 1.125rem;
    line-height: 1.8;
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content h2,
.post-content h3,
.post-content h4 {
    margin: 2rem 0 1rem;
    font-weight: 600;
}

.post-content h2 {
    font-size: 2rem;
}

.post-content h3 {
    font-size: 1.5rem;
}

.post-content ul,
.post-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.post-content li {
    margin-bottom: 0.5rem;
}

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

.post-content blockquote {
    border-left: 4px solid var(--color-primary, #6366f1);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #666;
}

.post-footer {
    padding: 2rem 0 4rem;
    border-top: 1px solid #e5e7eb;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

@media (max-width: 768px) {
    .post-title {
        font-size: 2rem;
    }
    
    .post-content {
        font-size: 1rem;
    }
}

/* Post Cards on Homepage */
.content-section {
    padding: 4rem 0;
    background: white;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.post-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.post-card-image {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #f5f5f5;
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-card:hover .post-card-image img {
    transform: scale(1.05);
}

.post-card-content {
    padding: 1.5rem;
}

.post-card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.post-card-title a {
    color: #1f2937;
    text-decoration: none;
}

.post-card-title a:hover {
    color: #6366f1;
}

.post-card-excerpt {
    color: #6b7280;
    margin-bottom: 1rem;
    line-height: 1.6;
    font-size: 1rem;
}

.post-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: #9ca3af;
}

.post-date,
.post-read-time {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
}

.pagination a {
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    color: #1f2937;
    text-decoration: none;
}

.pagination a:hover {
    background: #f9fafb;
    border-color: #6366f1;
    color: #6366f1;
}

.pagination .page-number {
    color: #6b7280;
}

/* Mobile */
@media (max-width: 768px) {
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
}

/* Post Hero Styles - Full Screen with Transparent Header */
.post.has-hero {
    margin-top: 0;
}

.post-hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    margin-top: -80px;
    padding-top: 80px;
}

.post-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.post-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.4) 0%,
        rgba(0, 0, 0, 0.7) 100%
    );
    z-index: 2;
}

.post-hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

.post-tag-hero {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    text-decoration: none;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.post-tag-hero:hover {
    background: rgba(255, 255, 255, 0.3);
}

.post-hero .post-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
    color: white;
}

.post-hero .post-excerpt {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    margin-bottom: 2rem;
    opacity: 0.95;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    color: white;
}

.post-hero .post-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

.post-author-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.author-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.author-name {
    font-weight: 600;
}

.read-time:before {
    content: "•";
    margin-right: 0.5rem;
}

/* Make header transparent on posts with hero */
.has-hero + .site-header,
body.post-template .site-header {
    position: fixed;
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body.post-template .site-header .site-logo,
body.post-template .site-header .nav-menu a,
body.post-template .site-header .btn-signin {
    color: white;
}

body.post-template .site-header.scrolled {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

/* Post Content - Porto-style beautiful typography */
.post-content {
    padding: 4rem 0;
    font-size: 1.1875rem;
    line-height: 1.75;
    color: #374151;
}

.post-content p {
    margin-bottom: 1.75rem;
}

.post-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin: 3rem 0 1.5rem;
    color: #111827;
}

.post-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 2.5rem 0 1.25rem;
    color: #1f2937;
}

.post-content h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
    color: #374151;
}

.post-content a {
    color: #6366f1;
    text-decoration: none;
    border-bottom: 1px solid rgba(99, 102, 241, 0.3);
    transition: all 0.2s ease;
}

.post-content a:hover {
    border-bottom-color: #6366f1;
}

.post-content strong {
    font-weight: 600;
    color: #111827;
}

.post-content em {
    font-style: italic;
}

.post-content ul,
.post-content ol {
    margin: 1.75rem 0;
    padding-left: 2rem;
}

.post-content li {
    margin-bottom: 0.75rem;
}

.post-content ul li {
    list-style-type: disc;
}

.post-content ol li {
    list-style-type: decimal;
}

.post-content blockquote {
    border-left: 4px solid #6366f1;
    padding-left: 1.75rem;
    margin: 2.5rem 0;
    font-size: 1.25rem;
    font-style: italic;
    color: #6b7280;
}

.post-content img {
    max-width: 100%;
    height: auto;
    margin: 2.5rem 0;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.post-content figure {
    margin: 2.5rem 0;
}

.post-content figcaption {
    text-align: center;
    font-size: 0.95rem;
    color: #9ca3af;
    margin-top: 0.75rem;
}

.post-content pre {
    background: #1f2937;
    color: #f3f4f6;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 2rem 0;
}

.post-content code {
    background: #f3f4f6;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.95em;
    font-family: 'Courier New', monospace;
}

.post-content pre code {
    background: none;
    padding: 0;
}

/* Mobile */
@media (max-width: 768px) {
    .post-hero {
        height: 60vh;
        min-height: 400px;
    }
    
    .post-hero .post-title {
        font-size: 2rem;
    }
    
    .post-hero .post-excerpt {
        font-size: 1.125rem;
    }
    
    .post-content {
        font-size: 1.0625rem;
    }
}
