* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    background: #dae0e6;
    line-height: 1.6;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: #0079d3;
    text-decoration: none;
    font-size: 0.9rem;
}

.back-link:hover {
    text-decoration: underline;
}

.post-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.post-card h1 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #1a1a1b;
}

.post-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #edeff1;
    color: #7c7c7c;
    font-size: 0.9rem;
    align-items: center;
}

.author-link {
    font-weight: 500;
    text-decoration: none;
    color: #7c7c7c;
    display: flex;
    align-items: center;
    gap: 4px;
}

.author-link:hover {
    color: #0079d3;
    text-decoration: underline;
}

.author-deleted {
    color: #ff4500;
}

.subreddit-link {
    color: #0079d3;
    font-weight: 500;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
}

.subreddit-link:hover {
    text-decoration: underline;
}

.tag {
    background: #e9f0f5;
    color: #0079d3;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.attachment {
    background: #f6f7f8;
    border: 1px solid #edeff1;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.attachment a {
    color: #0079d3;
    word-break: break-all;
    text-decoration: none;
}

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

.attachment-preview {
    margin-top: 15px;
    text-align: center;
}

.attachment-preview img,
.attachment-preview video {
    max-width: 100%;
    max-height: 500px;
    border-radius: 8px;
}

.body-content {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    white-space: pre-wrap;
    font-family: inherit;
    border-left: 4px solid #0079d3;
}

.version-info {
    background: #f0f7ff;
    padding: 10px 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: #0079d3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.version-selector {
    display: flex;
    align-items: center;
    gap: 8px;
}

.version-selector label {
    font-size: 0.85rem;
    color: #0079d3;
}

.version-selector select {
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid #0079d3;
    background: white;
    color: #0079d3;
    font-size: 0.85rem;
    cursor: pointer;
}

.version-selector select:focus {
    outline: none;
    border-color: #0056b3;
}

.images-section {
    margin-top: 30px;
}

.images-section h2 {
    margin-bottom: 15px;
    font-size: 1.3rem;
    color: #1a1a1b;
}

.images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.image-item {
    border: 1px solid #edeff1;
    border-radius: 8px;
    overflow: hidden;
    background: white;
    transition: transform 0.2s;
}

.image-item:hover {
    transform: scale(1.02);
}

.image-item a {
    display: block;
}

.image-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.image-item .image-name {
    padding: 8px;
    font-size: 0.8rem;
    color: #7c7c7c;
    text-align: center;
    background: #f6f7f8;
}

/* Responsive */
@media (max-width: 768px) {
    .post-card {
        padding: 20px;
    }
    
    .post-card h1 {
        font-size: 1.4rem;
    }
    
    .version-info {
        flex-direction: column;
        align-items: flex-start;
    }
}