/* Warp exit canvas */
#insights-warp-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 9100;
    pointer-events: none;
    display: none;
    background: #15100b;
}

/* Page Enter Overlay */
#page-enter-overlay {
    position: fixed;
    inset: 0;
    background: #15100b;
    z-index: 9000;
    pointer-events: none;
    animation: pageEnterFade 0.75s ease forwards;
}

@keyframes pageEnterFade {
    0%   { opacity: 1; }
    100% { opacity: 0; }
}

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

:root {
    --bg-color: #15100b;
    --text-color: #ede8df;
    --text-gray: #968d85;
    --border-color: #ede8df;
    --accent-color: #c44743;
    --nav-bg: rgba(21, 16, 11, 0.6);
    --nav-border: rgba(237, 232, 223, 0.1);
    --shadow-color: rgba(237, 232, 223, 0.12);
    --content-width: 680px;
}

body {
    font-family: Georgia, 'Times New Roman', Times, serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* Glass Navigation Bar */
.navbar {
    position: fixed;
    top: 20px;
    right: 40px;
    z-index: 1001;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--nav-border);
    border-radius: 50px;
    padding: 0.5rem 0.75rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.nav-content {
    display: flex;
    align-items: center;
}

.cv-button {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 0.95rem;
    color: var(--text-color);
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    background: transparent;
    display: flex;
    align-items: center;
}

.cv-button:hover {
    background: var(--nav-border);
    transform: scale(1.05);
}

/* Progress Bar */
.progress-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(237, 232, 223, 0.1);
    z-index: 1000;
}

.progress-bar {
    height: 100%;
    background: var(--accent-color);
    width: 0%;
    transition: width 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Main Layout */
.insights-content {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 8rem 2rem 6rem;
}

/* Page Header */
.insights-header {
    margin-bottom: 2rem;
}

.insights-title {
    font-size: 3rem;
    font-weight: 300;
    font-style: italic;
    color: var(--text-color);
    text-shadow: 3px 3px 0px var(--text-gray);
    margin-bottom: 0.75rem;
}

.insights-subtitle {
    font-size: 1rem;
    color: var(--text-gray);
    font-style: italic;
}

/* Post List (index page) */
.post-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.post-list-item {
    border-bottom: 1px solid rgba(237, 232, 223, 0.08);
}

.post-list-item:first-child {
    border-top: 1px solid rgba(237, 232, 223, 0.08);
}


.post-list-link {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 1.1rem 0;
    text-decoration: none;
    transition: all 0.2s ease;
}

.post-list-link:hover .post-list-title {
    color: var(--accent-color);
}

.post-list-link:hover {
    border-color: rgba(237, 232, 223, 0.2);
}

.post-list-title {
    font-size: 1rem;
    color: var(--text-color);
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-weight: 400;
    transition: color 0.2s ease;
}

.post-list-date {
    font-size: 0.8rem;
    font-family: ui-monospace, 'SF Mono', Menlo, Consolas, 'Courier New', monospace;
    font-style: normal;
    color: var(--text-gray);
    white-space: nowrap;
    margin-left: 2rem;
    letter-spacing: 0.02em;
}

.date-divider {
    opacity: 0.3;
    margin: 0 0.4rem;
    font-style: normal;
}

/* Individual Post */
.post {
    margin-bottom: 4rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid rgba(237, 232, 223, 0.1);
}

.post:last-of-type {
    border-bottom: none;
}

.post-meta {
    display: flex;
    align-items: baseline;
    gap: 1.5rem;
    margin-bottom: 1.25rem;
}

.post-date {
    font-size: 0.875rem;
    color: var(--text-gray);
    font-style: italic;
    white-space: nowrap;
}

.post-tag {
    font-size: 0.8rem;
    color: var(--text-gray);
    border: 1px solid rgba(237, 232, 223, 0.15);
    border-radius: 20px;
    padding: 0.15rem 0.7rem;
    font-weight: 300;
}

.post-title {
    font-size: 3rem;
    font-weight: 300;
    font-style: italic;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    line-height: 1.4;
    text-shadow: 3px 3px 0px var(--text-gray);
    border-bottom: 1px solid rgba(237, 232, 223, 0.12);
}

.post-body {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text-color);
}

.post-body p {
    margin-bottom: 1.25rem;
}

.post-body p:last-child {
    margin-bottom: 0;
}

.post-body a {
    color: var(--accent-color);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: opacity 0.2s ease;
}

.post-body a:hover {
    opacity: 0.7;
}

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

/* Empty state */
.no-posts {
    font-size: 1rem;
    color: var(--text-gray);
    font-style: italic;
}

/* Scroll Animation */
.fade-in-section {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .insights-content {
        padding: 7rem 1.5rem 5rem;
    }

    .insights-title {
        font-size: 2.25rem;
    }

    .post-title {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .insights-content {
        padding: 6rem 1.25rem 4rem;
    }
}
