main.page {
    padding-top: 6.5rem;
    padding-bottom: 3rem;
}

.post-card {
    padding: 1.25rem;
}

.post-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
    color: var(--text-tertiary);
    font-size: 0.9rem;
}

.post-header-left {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.post-avatar {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background-size: cover;
    background-position: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.9);
    flex: 0 0 auto;
}

.post-author {
    font-weight: 800;
    color: var(--text-secondary);
    text-decoration: none;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
}

.post-meta {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.2;
    min-width: 0;
}

.post-handle {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    font-weight: 400;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.post-time {
    white-space: nowrap;
}

.post-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 0.9rem;
}

.post-actions-spacer {
    flex: 1;
}

.md {
    color: var(--text-secondary);
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.md p {
    margin: 0.65rem 0;
}

.md p:first-child {
    margin-top: 0;
}

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

.md h1,
.md h2,
.md h3 {
    margin: 0.9rem 0 0.5rem;
    line-height: 1.25;
    color: var(--text-primary);
}

.md h1 {
    font-size: 1.25rem;
}

.md h2 {
    font-size: 1.1rem;
}

.md h3 {
    font-size: 1rem;
}

.md ul,
.md ol {
    margin: 0.65rem 0 0.65rem 1.25rem;
}

.md li + li {
    margin-top: 0.2rem;
}

.md a {
    color: var(--accent-primary);
    text-decoration: none;
}

.md a:hover {
    text-decoration: underline;
}

.md code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.92em;
    padding: 0.12em 0.35em;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.md pre {
    margin: 0.75rem 0;
    padding: 0.9rem;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.12);
    overflow: auto;
}

.md pre code {
    padding: 0;
    border: 0;
    background: transparent;
}

.md-omitted {
    color: var(--text-tertiary);
    font-style: italic;
}

/* Icon Buttons */
.btn-icon {
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-tertiary);
    position: relative;
    transition: all 0.2s ease;
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.btn-icon svg {
    width: 16px;
    height: 16px;
}

/* Tooltip */
[data-tooltip] {
    position: relative;
}

[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 8px;
    padding: 5px 10px;
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 6px;
    white-space: nowrap;
    pointer-events: none;
    z-index: 20;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    animation: tooltip-fade 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes tooltip-fade {
    from { opacity: 0; transform: translateX(-50%) translateY(4px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
