/*
   static/css/post.css
   Blog post specific styles for AlgorithmicFIRE (Substack-inspired)
*/

.post-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1rem 4rem 1rem;
    font-size: 19px;
    line-height: 1.6;
}

/* Headings */
.post-header {
    margin-bottom: 2rem;
    text-align: left;
}

.post-title {
    font-weight: 700;
    font-size: 40px;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #111;
    letter-spacing: -0.02em;
}

.post-subtitle {
    font-size: 22px;
    color: #555;
    line-height: 1.4;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.post-meta {
    font-size: 14px;
    color: #777;
    margin-bottom: 2rem;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 1rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Content Typography */
.post-content p {
    margin-bottom: 1.5rem;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #111;
    font-weight: 700;
}

.post-content h2 {
    font-size: 26px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.post-content h3 {
    font-size: 22px;
}

.post-content a {
    color: var(--brand-red);
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-color: rgba(227, 18, 11, 0.4);
}

.post-content a:hover {
    text-decoration-color: var(--brand-red);
}

.post-content blockquote {
    border-left: 3px solid var(--brand-red);
    padding-left: 1rem;
    margin-left: 0;
    color: #555;
    font-style: italic;
}

.post-content img {
    display: block;
    margin: 2rem auto;
    border-radius: 4px;
}

/* Table Styling in Posts */
.post-content table {
    width: 100%;
    margin-bottom: 2rem;
    border-collapse: collapse;
    font-size: 0.9em;
}

.post-content th,
.post-content td {
    padding: 0.75rem;
    border: 1px solid #eee;
    text-align: left;
}

.post-content th {
    background-color: #f9f9f9;
    font-weight: 700;
    border-bottom: 2px solid #eee;
}

.post-content tr:nth-child(even) {
    background-color: #fcfcfc;
}

/* Subscription Box at Bottom */
.subscribe-widget {
    background: #f9f9f9;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    margin-top: 4rem;
    border: 1px solid #eee;
}

/* Gated Content Styles */
.gated-content-cta {
    position: relative;
    margin-top: -3rem !important;
    z-index: 10;
}

.fade-overlay {
    position: absolute;
    top: -100px;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff);
}