/* CSS Variables */
:root {
    --bg-primary: #0d0d0d;
    --bg-secondary: #141414;
    --bg-card: #1a1a1a;
    --bg-card-border: #2a2a2a;
    --text-primary: #e5e5e5;
    --text-secondary: #888888;
    --text-muted: #666666;
    --accent: #e85a2c;
    --accent-hover: #ff6b3d;
    --white: #ffffff;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', Consolas, monospace;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-mono);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(13, 13, 13, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--bg-card-border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
}

.logo-icon {
    opacity: 0.7;
}

.logo-img {
    height: 30px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 14px;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--bg-card-border);
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: #22c55e;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero-title {
    font-size: clamp(40px, 8vw, 72px);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-title .highlight {
    color: var(--accent);
}

.hero-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 40px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 14px 24px;
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--bg-card-border);
}

.btn-secondary:hover {
    border-color: var(--text-muted);
    color: var(--text-primary);
}

/* Services Section */
.services {
    padding: 100px 0;
    background-color: var(--bg-primary);
}

.section-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 8px;
}

.section-title.centered {
    text-align: center;
}

.section-subtitle {
    color: var(--text-secondary);
    margin-bottom: 48px;
    font-size: 15px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.service-card {
    background-color: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: 8px;
    padding: 32px;
    transition: border-color 0.2s ease;
}

.service-card:hover {
    border-color: var(--text-muted);
}

.service-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(232, 90, 44, 0.1);
    border: 1px solid rgba(232, 90, 44, 0.3);
    border-radius: 8px;
    margin-bottom: 20px;
    color: var(--accent);
}

.service-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.service-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Why Choose Section */
.why-choose {
    padding: 100px 0;
    background-color: var(--bg-secondary);
}

.why-choose-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.why-choose-content h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 40px;
}

.feature {
    display: flex;
    gap: 16px;
    margin-bottom: 28px;
}

.feature-bar {
    width: 3px;
    background: linear-gradient(180deg, var(--accent) 0%, rgba(232, 90, 44, 0.3) 100%);
    border-radius: 2px;
    flex-shrink: 0;
}

.feature-content h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
}

.feature-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Code Block */
.code-block {
    background-color: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: 8px;
    overflow: hidden;
}

.code-header {
    height: 8px;
    background: linear-gradient(90deg, var(--accent) 0%, #9333ea 50%, #3b82f6 100%);
}

.code-block pre {
    padding: 24px;
    overflow-x: auto;
    font-size: 13px;
    line-height: 1.8;
}

.code-block code {
    font-family: var(--font-mono);
}

.code-block .keyword {
    color: #c792ea;
}

.code-block .class-name {
    color: #ffcb6b;
}

.code-block .function {
    color: #82aaff;
}

.code-block .param {
    color: var(--accent);
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background-color: var(--bg-primary);
}

.contact .section-title {
    margin-bottom: 48px;
}

.contact-card {
    max-width: 700px;
    margin: 0 auto;
    background-color: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: 8px;
    padding: 40px;
}

.contact-info {
    margin-bottom: 32px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    color: var(--text-primary);
    font-size: 14px;
}

.contact-item svg {
    color: var(--accent);
    flex-shrink: 0;
}

.contact-item a {
    transition: color 0.2s ease;
}

.contact-item a:hover {
    color: var(--accent);
}

.form-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 14px 16px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--bg-card-border);
    border-radius: 6px;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.contact-form select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none' stroke='%23888888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.contact-form select option {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-muted);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--text-muted);
}

.contact-form textarea {
    resize: vertical;
    min-height: 140px;
}

.btn-submit {
    background-color: var(--text-primary);
    color: var(--bg-primary);
    font-weight: 600;
    width: 100%;
    justify-content: center;
}

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

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.form-status {
    margin-top: 16px;
    font-size: 14px;
    text-align: center;
}

.form-status.success {
    color: #22c55e;
}

.form-status.error {
    color: #ef4444;
}

/* About Page */
.about-hero {
    padding: 160px 0 80px;
    background-color: var(--bg-primary);
}

.about-hero-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 60px;
    align-items: center;
}

.about-hero-content {
    max-width: 600px;
}

.about-title {
    font-size: clamp(32px, 6vw, 48px);
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 16px;
}

.about-intro {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    line-height: 1.7;
}

/* About Photo */
.about-photo-container {
    display: flex;
    justify-content: center;
}

.about-photo-frame {
    background-color: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: 8px;
    overflow: hidden;
    width: 280px;
}

.photo-header {
    height: 8px;
    background: linear-gradient(90deg, var(--accent) 0%, #9333ea 50%, #3b82f6 100%);
}

.about-photo {
    width: 100%;
    height: auto;
    display: block;
}

.photo-caption {
    padding: 16px;
    text-align: center;
    border-top: 1px solid var(--bg-card-border);
}

.caption-name {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.caption-credentials {
    font-size: 13px;
    color: var(--accent);
    font-weight: 500;
}

/* Bio Section */
.about-bio {
    padding: 80px 0;
    background-color: var(--bg-secondary);
}

.bio-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 60px;
    align-items: start;
}

.bio-content h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
}

.bio-content p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
}

.bio-content p:last-child {
    margin-bottom: 0;
}

/* Credentials Card */
.credentials-card {
    background-color: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: 8px;
    overflow: hidden;
}

.credentials-header {
    height: 8px;
    background: linear-gradient(90deg, var(--accent) 0%, #9333ea 50%, #3b82f6 100%);
}

.credentials-content {
    padding: 24px;
}

.credential {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 14px;
}

.credential:last-child {
    margin-bottom: 0;
}

.credential-label {
    color: var(--text-muted);
    font-style: italic;
}

.credential-key {
    color: #82aaff;
}

.credential-value {
    color: #c3e88d;
}

/* Clients Section */
.about-clients {
    padding: 100px 0;
    background-color: var(--bg-primary);
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.client-card {
    background-color: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: 8px;
    padding: 32px;
    transition: border-color 0.2s ease;
}

.client-card:hover {
    border-color: var(--text-muted);
}

.client-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(232, 90, 44, 0.1);
    border: 1px solid rgba(232, 90, 44, 0.3);
    border-radius: 8px;
    margin-bottom: 20px;
    color: var(--accent);
}

.client-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.client-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Philosophy Section */
.about-philosophy {
    padding: 100px 0;
    background-color: var(--bg-secondary);
}

.philosophy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.philosophy-content h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 40px;
}

/* Personal Block */
.personal-block {
    background-color: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: 8px;
    overflow: hidden;
}

.personal-header {
    padding: 16px 24px;
    border-bottom: 1px solid var(--bg-card-border);
}

.personal-label {
    font-size: 13px;
    color: var(--text-muted);
    font-style: italic;
}

.personal-content {
    padding: 24px;
}

.personal-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

.personal-content p:last-child {
    margin-bottom: 0;
}

.personal-highlight {
    color: var(--text-primary);
    padding-top: 8px;
    border-top: 1px solid var(--bg-card-border);
}

/* CTA Section */
.about-cta {
    padding: 100px 0;
    background-color: var(--bg-primary);
}

.cta-card {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    background-color: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: 8px;
    padding: 48px;
}

.cta-card h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-card p {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

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

.pricing-hero {
    padding: 160px 0 60px;
    background-color: var(--bg-primary);
}

.pricing-title {
    font-size: clamp(32px, 6vw, 48px);
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 16px;
}

.pricing-intro {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    line-height: 1.7;
}

.pricing-section {
    padding: 80px 0;
    background-color: var(--bg-primary);
}

.pricing-section.alt-bg {
    background-color: var(--bg-secondary);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.pricing-card {
    background-color: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: 8px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: border-color 0.2s ease;
}

.pricing-card:hover {
    border-color: var(--text-muted);
}

.pricing-card.featured {
    border-color: var(--accent);
    box-shadow: 0 0 30px rgba(232, 90, 44, 0.1);
}

.featured-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent);
    color: var(--white);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 12px;
}

.pricing-header {
    margin-bottom: 24px;
}

.pricing-header h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.pricing-desc {
    font-size: 14px;
    color: var(--text-muted);
}

.pricing-price {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--bg-card-border);
}

.price-amount {
    font-size: 42px;
    font-weight: 700;
    color: var(--text-primary);
}

.price-period {
    font-size: 14px;
    color: var(--text-muted);
    margin-left: 8px;
}

.pricing-features {
    list-style: none;
    flex-grow: 1;
    margin-bottom: 24px;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.5;
}

.pricing-features .check {
    color: var(--accent);
    font-weight: 600;
    flex-shrink: 0;
}

.pricing-btn {
    width: 100%;
    justify-content: center;
    margin-top: auto;
}

/* Add-ons */
.addons-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 48px;
}

.addon-card {
    background-color: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: 8px;
    padding: 24px;
    transition: border-color 0.2s ease;
}

.addon-card:hover {
    border-color: var(--text-muted);
}

.addon-name {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
}

.addon-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 12px;
}

.addon-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Pricing CTA */
.pricing-cta {
    padding: 80px 0;
    background-color: var(--bg-secondary);
}

/* Footer */
.footer {
    padding: 32px 0;
    border-top: 1px solid var(--bg-card-border);
    text-align: center;
}

.footer p {
    font-size: 13px;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 900px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

    .addons-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .about-hero-content {
        max-width: 100%;
    }

    .about-photo-container {
        justify-content: center;
        padding-right: 0;
    }

    .about-photo-frame {
        width: 220px;
    }

    .why-choose-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .code-block {
        order: -1;
    }

    .bio-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .credentials-card {
        order: -1;
    }

    .philosophy-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .personal-block {
        order: -1;
    }
}

@media (max-width: 600px) {
    .nav-links {
        gap: 20px;
    }

    .nav-links a {
        font-size: 13px;
    }

    .addons-grid {
        grid-template-columns: 1fr;
    }

    .pricing-hero {
        padding: 120px 0 40px;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .contact-card {
        padding: 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .about-hero {
        padding: 120px 0 60px;
    }

    .about-intro {
        font-size: 16px;
    }

    .clients-grid {
        grid-template-columns: 1fr;
    }

    .cta-card {
        padding: 32px 24px;
    }

    .cta-buttons {
        flex-direction: column;
    }
}

/* ==================== */
/* Insights/Blog Styles */
/* ==================== */

.insights-hero {
    padding: 160px 0 60px;
    background-color: var(--bg-primary);
}

.insights-title {
    font-size: clamp(32px, 6vw, 48px);
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 16px;
}

.insights-intro {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    line-height: 1.7;
}

/* Category Filters */
.insights-filters {
    padding: 0 0 40px;
    background-color: var(--bg-primary);
}

.filter-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    background-color: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: 6px;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    border-color: var(--text-muted);
    color: var(--text-primary);
}

.filter-btn.active {
    background-color: var(--accent);
    border-color: var(--accent);
    color: var(--white);
}

/* Posts Grid */
.insights-posts {
    padding: 0 0 100px;
    background-color: var(--bg-primary);
    min-height: 400px;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.post-card {
    background-color: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
}

.post-card:hover {
    border-color: var(--text-muted);
    transform: translateY(-2px);
}

.post-cover {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background-color: var(--bg-secondary);
}

.post-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-content {
    padding: 24px;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.post-category {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--accent);
    background-color: rgba(232, 90, 44, 0.1);
    padding: 4px 10px;
    border-radius: 4px;
}

.post-date {
    font-size: 12px;
    color: var(--text-muted);
}

.post-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.4;
}

.post-excerpt {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-read-more {
    font-size: 13px;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.post-card:hover .post-read-more {
    color: var(--accent);
}

/* Loading & Error States */
.posts-loading,
.posts-empty,
.posts-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
}

.loading-spinner {
    width: 24px;
    height: 24px;
    border: 2px solid var(--bg-card-border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==================== */
/* Single Post Page     */
/* ==================== */

.post-container {
    padding: 120px 0 100px;
    background-color: var(--bg-primary);
    min-height: 100vh;
}

.post-back {
    display: inline-block;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 32px;
    transition: color 0.2s ease;
}

.post-back:hover {
    color: var(--accent);
}

.post-header {
    margin-bottom: 48px;
}

.post-hero-cover {
    width: 100%;
    max-height: 400px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 32px;
}

.post-hero-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-hero-title {
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    margin-top: 16px;
}

/* Post Body - Notion Block Styles */
.post-body {
    max-width: 720px;
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.post-body a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

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

/* Paragraphs */
.notion-paragraph {
    margin-bottom: 20px;
}

/* Headings */
.notion-h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 48px 0 20px;
}

.notion-h2 {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 40px 0 16px;
}

.notion-h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 32px 0 12px;
}

/* Lists */
.notion-list {
    margin: 0 0 20px 24px;
    padding: 0;
}

.notion-list-item {
    margin-bottom: 8px;
}

.notion-list .notion-list {
    margin-top: 8px;
    margin-bottom: 0;
}

/* Toggle Blocks */
.notion-toggle {
    margin-bottom: 16px;
    border: 1px solid var(--bg-card-border);
    border-radius: 6px;
    background-color: var(--bg-card);
}

.notion-toggle summary {
    padding: 16px 20px;
    cursor: pointer;
    color: var(--text-primary);
    font-weight: 500;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

.notion-toggle summary::-webkit-details-marker {
    display: none;
}

.notion-toggle summary::before {
    content: '';
    width: 0;
    height: 0;
    border-left: 6px solid var(--accent);
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.notion-toggle[open] summary::before {
    transform: rotate(90deg);
}

.toggle-content {
    padding: 0 20px 16px 38px;
    border-top: 1px solid var(--bg-card-border);
}

.toggle-content > *:first-child {
    margin-top: 16px;
}

.toggle-content > *:last-child {
    margin-bottom: 0;
}

/* Code Blocks */
.notion-code {
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--bg-card);
    border: 1px solid var(--bg-card-border);
}

.notion-code .code-language {
    padding: 8px 16px;
    font-size: 11px;
    color: var(--text-muted);
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--bg-card-border);
    text-transform: lowercase;
}

.notion-code pre {
    padding: 16px;
    margin: 0;
    overflow-x: auto;
    font-size: 13px;
    line-height: 1.6;
}

.notion-code code {
    font-family: var(--font-mono);
    color: var(--text-primary);
}

/* Inline Code */
.inline-code {
    font-family: var(--font-mono);
    font-size: 0.9em;
    background-color: var(--bg-card);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--accent);
}

/* Quotes */
.notion-quote {
    margin: 24px 0;
    padding: 16px 24px;
    border-left: 3px solid var(--accent);
    background-color: var(--bg-card);
    font-style: italic;
    color: var(--text-primary);
}

/* Callouts */
.notion-callout {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
    background-color: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: 6px;
}

.callout-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.callout-content {
    flex: 1;
}

.callout-content > *:last-child {
    margin-bottom: 0;
}

/* Divider */
.notion-divider {
    border: none;
    border-top: 1px solid var(--bg-card-border);
    margin: 32px 0;
}

/* Images */
.notion-image {
    margin: 24px 0;
}

.notion-image img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

.notion-image figcaption {
    margin-top: 8px;
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
}

/* Videos */
.notion-video {
    margin: 24px 0;
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 6px;
}

.notion-video iframe,
.notion-video video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Bookmarks */
.notion-bookmark {
    display: block;
    padding: 16px 20px;
    margin-bottom: 20px;
    background-color: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: 6px;
    text-decoration: none;
    transition: border-color 0.2s ease;
}

.notion-bookmark:hover {
    border-color: var(--text-muted);
}

.bookmark-url {
    font-size: 13px;
    color: var(--text-muted);
    word-break: break-all;
}

/* Embeds */
.notion-embed {
    margin: 24px 0;
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 6px;
}

.notion-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Tables */
.notion-table {
    width: 100%;
    margin: 24px 0;
    border-collapse: collapse;
    font-size: 14px;
}

.notion-table th,
.notion-table td {
    padding: 12px 16px;
    border: 1px solid var(--bg-card-border);
    text-align: left;
}

.notion-table th {
    background-color: var(--bg-card);
    color: var(--text-primary);
    font-weight: 600;
}

.notion-table td {
    background-color: var(--bg-secondary);
}

/* Columns */
.notion-columns {
    display: flex;
    gap: 24px;
    margin-bottom: 20px;
}

.notion-column {
    flex: 1;
    min-width: 0;
}

/* To-do items */
.notion-todo {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 8px;
}

.todo-checkbox {
    width: 18px;
    height: 18px;
    border: 2px solid var(--bg-card-border);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
    margin-top: 2px;
}

.notion-todo.checked .todo-checkbox {
    background-color: var(--accent);
    border-color: var(--accent);
    color: var(--white);
}

.notion-todo.checked .todo-text {
    text-decoration: line-through;
    color: var(--text-muted);
}

/* Text colors from Notion */
.color-gray { color: var(--text-muted); }
.color-brown { color: #8b5a2b; }
.color-orange { color: var(--accent); }
.color-yellow { color: #d4a017; }
.color-green { color: #22c55e; }
.color-blue { color: #3b82f6; }
.color-purple { color: #9333ea; }
.color-pink { color: #ec4899; }
.color-red { color: #ef4444; }

/* Responsive - Blog */
@media (max-width: 768px) {
    .posts-grid {
        grid-template-columns: 1fr;
    }

    .notion-columns {
        flex-direction: column;
    }

    .notion-table {
        display: block;
        overflow-x: auto;
    }
}

@media (max-width: 600px) {
    .insights-hero {
        padding: 120px 0 40px;
    }

    .insights-intro {
        font-size: 16px;
    }

    .filter-buttons {
        gap: 8px;
    }

    .filter-btn {
        padding: 8px 14px;
        font-size: 12px;
    }

    .post-container {
        padding: 100px 0 60px;
    }

    .post-body {
        font-size: 14px;
    }

    .notion-h1 {
        font-size: 24px;
    }

    .notion-h2 {
        font-size: 20px;
    }

    .notion-h3 {
        font-size: 16px;
    }
}
