/* --- TIMELINE & UPLOAD SECTION --- */
.timeline-section {
    max-width: 1200px;
    margin: 4rem auto 5rem;
    padding: 0 5%;
}

.timeline-layout {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 2.5rem;
    align-items: start;
}

@media (max-width: 900px) {
    .timeline-layout {
        grid-template-columns: 1fr;
    }
}

.upload-box {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-soft);
    position: sticky;
    top: 90px;
}

.upload-header {
    margin-bottom: 1.5rem;
    text-align: center;
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 1rem;
}

.upload-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--text-main);
}

.upload-header p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.file-upload-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.file-upload-btn {
    display: block;
    padding: 0.85rem;
    background: var(--bg-blush);
    border: 1.5px dashed var(--primary-rose);
    border-radius: var(--radius-md);
    text-align: center;
    color: var(--primary-rose);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-upload-btn:hover {
    background: #ffe3ec;
}

.file-upload-wrapper input[type="file"] {
    display: none;
}

.file-name-display {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    word-break: break-all;
}

.upload-btn {
    margin-top: 1rem;
}

/* Feed Posts */
.feed-wrapper {
    min-height: 200px;
}

#feed-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.loading-spinner {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
    font-style: italic;
}

.post-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.post-card:hover {
    box-shadow: var(--shadow-hover);
}

.post-header {
    padding: 1.2rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid #f8eaef;
}

.author-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 3px 8px rgba(255, 82, 123, 0.2);
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    color: var(--text-main);
    font-size: 1rem;
}

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

.post-media-container {
    max-height: 600px;
    overflow: hidden;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-image,
.post-video {
    width: 100%;
    max-height: 600px;
    object-fit: contain;
    display: block;
}

.post-body {
    padding: 1.5rem;
}

.post-caption {
    font-size: 1rem;
    color: var(--text-main);
    line-height: 1.6;
}

.post-footer {
    padding: 0.8rem 1.5rem;
    background: var(--bg-blush);
    border-top: 1px solid #f8eaef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--primary-rose);
    font-weight: 500;
}
