/* =============================================================================
   CSS Reset & Base Styles
   ========================================================================== */

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

:root {
    /* Brand Colors */
    --strategic-charcoal: #1E222B;
    --blueprint-white: #F8F9FA;
    --command-blue: #3A4F6A;
    --insight-gold: #B48A3D;
    --priority-red: #9A3B3B;
    
    /* Typography */
    --font-primary: 'Lora', serif;
    --font-secondary: 'Inter', sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;
    
    /* Spacing */
    --section-padding: 120px 0;
    --container-padding: 0 24px;
    --container-max-width: 1200px;
    
    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    line-height: 1.6;
    color: var(--strategic-charcoal);
    background-color: var(--blueprint-white);
    overflow-x: hidden;
}

/* =============================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 700;
}

h2 {
    font-size: clamp(2rem, 5vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 4vw, 2rem);
}

p {
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* =============================================================================
   Layout Components
   ========================================================================== */

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

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--command-blue), var(--insight-gold));
    margin: 1rem auto;
}

/* =============================================================================
   Navigation
   ========================================================================== */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(248, 249, 250, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(58, 79, 106, 0.1);
    z-index: 1000;
    transition: var(--transition-smooth);
}

.nav-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 1rem 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--strategic-charcoal);
}

.logo-subtitle {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--command-blue);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--strategic-charcoal);
    font-weight: 500;
    transition: var(--transition-smooth);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--command-blue);
    transition: var(--transition-smooth);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-cta {
    background: var(--command-blue);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.nav-cta:hover {
    background: var(--strategic-charcoal);
    transform: translateY(-2px);
}

/* =============================================================================
   Main Content
   ========================================================================== */

.main-content {
    padding-top: 80px;
    min-height: calc(100vh - 80px);
}

/* =============================================================================
   Blog Hero Section
   ========================================================================== */

.hero-blog {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--blueprint-white) 0%, #f0f2f5 100%);
    position: relative;
    overflow: hidden;
}

.hero-blog::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(45deg, rgba(58, 79, 106, 0.03) 0%, rgba(180, 138, 61, 0.05) 100%);
    transform: skewX(-15deg);
    transform-origin: top;
}

.hero-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: var(--container-padding);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 40vh;
}

.hero-content {
    text-align: center;
    z-index: 2;
    max-width: 800px;
}

.hero-badge {
    display: inline-block;
    background: rgba(58, 79, 106, 0.1);
    color: var(--command-blue);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 2rem;
}

.hero-title {
    margin-bottom: 2rem;
    font-size: clamp(2.5rem, 6vw, 4rem);
}

.highlight-text {
    background: linear-gradient(135deg, var(--command-blue), var(--insight-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--command-blue);
    margin-bottom: 0;
}

/* =============================================================================
   Posts Section
   ========================================================================== */

.posts-section {
    padding: var(--section-padding);
    background: var(--blueprint-white);
}

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

.post-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(58, 79, 106, 0.1);
    border: 1px solid rgba(58, 79, 106, 0.1);
    transition: var(--transition-smooth);
    position: relative;
}

.post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--command-blue), var(--insight-gold));
}

.post-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(58, 79, 106, 0.2);
}

.post-image {
    position: relative;
    overflow: hidden;
    height: 240px;
}

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

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

.post-image a {
    display: block;
    height: 100%;
}

.post-content {
    padding: 2rem;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.post-date {
    color: var(--command-blue);
    font-family: var(--font-mono);
    font-weight: 500;
}

.post-tag {
    background: rgba(58, 79, 106, 0.1);
    color: var(--command-blue);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-weight: 500;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-title {
    margin-bottom: 1rem;
}

.post-title a {
    text-decoration: none;
    color: var(--strategic-charcoal);
    transition: var(--transition-smooth);
}

.post-title a:hover {
    color: var(--command-blue);
}

.post-excerpt {
    color: var(--command-blue);
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.6;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.read-more {
    background: var(--command-blue);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: var(--transition-smooth);
}

.read-more:hover {
    background: var(--strategic-charcoal);
    transform: translateY(-2px);
}

.post-reading-time {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: rgba(58, 79, 106, 0.7);
    font-weight: 500;
}

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

.post-single {
    background: var(--blueprint-white);
}

.post-header {
    padding: 80px 0 60px;
    background: linear-gradient(135deg, var(--blueprint-white) 0%, #f0f2f5 100%);
    position: relative;
    overflow: hidden;
}

.post-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(45deg, rgba(58, 79, 106, 0.03) 0%, rgba(180, 138, 61, 0.05) 100%);
    transform: skewX(-15deg);
    transform-origin: top;
}

.post-header .container {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.post-header .post-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    font-size: 0.875rem;
}

.post-header .post-date {
    color: var(--command-blue);
    font-family: var(--font-mono);
    font-weight: 500;
}

.post-header .post-tag {
    background: rgba(58, 79, 106, 0.1);
    color: var(--command-blue);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-header .post-reading-time {
    font-family: var(--font-mono);
    color: rgba(58, 79, 106, 0.7);
    font-weight: 500;
}

.post-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 2rem;
    color: var(--strategic-charcoal);
}

.post-header .post-excerpt {
    font-size: 1.25rem;
    color: var(--command-blue);
    margin-bottom: 3rem;
    line-height: 1.6;
}

.post-featured-image {
    margin-bottom: 3rem;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(58, 79, 106, 0.2);
}

.post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.post-author-info {
    background: rgba(58, 79, 106, 0.05);
    padding: 2rem;
    border-radius: 16px;
    border-left: 4px solid var(--command-blue);
}

.author-details h4 {
    color: var(--strategic-charcoal);
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
}

.author-details p {
    color: var(--command-blue);
    margin-bottom: 0;
    font-size: 1rem;
}

.post-content {
    padding: 60px 0;
}

.post-content .container {
    max-width: 800px;
}

.post-body {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--strategic-charcoal);
}

.post-body h2,
.post-body h3,
.post-body h4 {
    color: var(--strategic-charcoal);
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

.post-body h2 {
    font-size: 2rem;
    border-bottom: 3px solid var(--insight-gold);
    padding-bottom: 0.5rem;
}

.post-body h3 {
    font-size: 1.5rem;
    color: var(--command-blue);
}

.post-body blockquote {
    background: rgba(58, 79, 106, 0.05);
    border-left: 4px solid var(--command-blue);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    border-radius: 8px;
    font-style: italic;
}

.post-body blockquote p {
    margin-bottom: 0;
    color: var(--command-blue);
}

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

.post-body li {
    margin-bottom: 0.5rem;
    color: var(--strategic-charcoal);
}

.post-body a {
    color: var(--command-blue);
    text-decoration: underline;
    transition: var(--transition-smooth);
}

.post-body a:hover {
    color: var(--insight-gold);
}

.post-body code {
    background: rgba(58, 79, 106, 0.1);
    color: var(--command-blue);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.9em;
}

.post-body pre {
    background: var(--strategic-charcoal);
    color: var(--blueprint-white);
    padding: 2rem;
    border-radius: 12px;
    overflow-x: auto;
    margin: 2rem 0;
}

.post-body pre code {
    background: none;
    color: inherit;
    padding: 0;
}

.post-footer {
    padding: 60px 0;
    background: rgba(58, 79, 106, 0.03);
}

.post-footer .container {
    max-width: 800px;
}

.post-tags {
    margin-bottom: 3rem;
}

.post-tags h4 {
    color: var(--strategic-charcoal);
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tag-link {
    background: rgba(58, 79, 106, 0.1);
    color: var(--command-blue);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: var(--transition-smooth);
}

.tag-link:hover {
    background: var(--command-blue);
    color: white;
}

.post-share h4 {
    color: var(--strategic-charcoal);
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.share-buttons {
    display: flex;
    gap: 1rem;
}

.share-button {
    background: var(--command-blue);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: var(--transition-smooth);
}

.share-button:hover {
    background: var(--strategic-charcoal);
    transform: translateY(-2px);
}

.share-button.twitter:hover {
    background: #1DA1F2;
}

.share-button.linkedin:hover {
    background: #0077B5;
}

.share-button.email:hover {
    background: var(--insight-gold);
}

/* =============================================================================
   Related Posts
   ========================================================================== */

.related-posts {
    padding: 60px 0;
    background: var(--blueprint-white);
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.related-post-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(58, 79, 106, 0.1);
    border: 1px solid rgba(58, 79, 106, 0.1);
    transition: var(--transition-smooth);
}

.related-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(58, 79, 106, 0.15);
}

.related-post-image {
    height: 180px;
    overflow: hidden;
}

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

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

.related-post-image a {
    display: block;
    height: 100%;
}

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

.related-post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.75rem;
}

.related-post-meta time {
    color: var(--command-blue);
    font-family: var(--font-mono);
    font-weight: 500;
}

.related-post-reading-time {
    font-family: var(--font-mono);
    color: rgba(58, 79, 106, 0.7);
    font-weight: 500;
}

.related-post-title {
    margin-bottom: 0;
    font-size: 1.125rem;
}

.related-post-title a {
    text-decoration: none;
    color: var(--strategic-charcoal);
    transition: var(--transition-smooth);
}

.related-post-title a:hover {
    color: var(--command-blue);
}

/* =============================================================================
   Pagination
   ========================================================================== */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 4rem;
}

.pagination a,
.pagination .current {
    background: white;
    color: var(--command-blue);
    padding: 0.75rem 1rem;
    border: 1px solid rgba(58, 79, 106, 0.2);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-smooth);
    min-width: 44px;
    text-align: center;
}

.pagination a:hover {
    background: var(--command-blue);
    color: white;
    border-color: var(--command-blue);
}

.pagination .current {
    background: var(--command-blue);
    color: white;
    border-color: var(--command-blue);
}

/* =============================================================================
   No Posts State
   ========================================================================== */

.no-posts {
    text-align: center;
    padding: 4rem 0;
}

.no-posts h2 {
    color: var(--strategic-charcoal);
    margin-bottom: 1rem;
}

.no-posts p {
    color: var(--command-blue);
    font-size: 1.125rem;
}

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

.footer {
    background: var(--strategic-charcoal);
    color: white;
    padding: 4rem 0 2rem;
}

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

.footer-brand .logo-text {
    color: white;
}

.footer-tagline {
    font-family: var(--font-mono);
    color: var(--insight-gold);
    margin-top: 1rem;
    margin-bottom: 0;
}

.footer-links ul {
    display: flex;
    gap: 3rem;
    list-style: none;
    justify-content: flex-end;
    align-items: center;
}

.footer-links li {
    margin-bottom: 0;
}

.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition-smooth);
    font-weight: 500;
    padding: 0.5rem 0;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--insight-gold);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    opacity: 0.6;
}

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

@media (max-width: 968px) {
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-links ul {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 80px 0;
        --container-padding: 0 16px;
    }
    
    .nav-links {
        display: none;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .post-card {
        margin: 0 auto;
        max-width: 400px;
    }
    
    .share-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .tag-list {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .pagination {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    
    .post-title {
        font-size: clamp(2rem, 6vw, 3rem);
    }
    
    .post-content {
        padding: 40px 0;
    }
    
    .post-footer {
        padding: 40px 0;
    }
    
    .related-posts {
        padding: 40px 0;
    }
}