.profile-header {
    text-align: center;
    padding: 40px 20px;
    background: var(--surface);
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px var(--shadow);
}

.profile-picture {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary);
    margin-bottom: 15px;
}

.profile-header h1 {
    color: var(--primary);
    font-size: 32px;
    margin-bottom: 10px;
}

.profile-meta {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 15px;
}

.profile-bio {
    max-width: 600px;
    margin: 0 auto 20px;
    color: var(--text);
}

.subscribe-form {
    display: flex;
    gap: 10px;
    max-width: 400px;
    margin: 0 auto;
}

.subscribe-form input {
    flex: 1;
}

.posts-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.post {
    background: var(--surface);
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 8px var(--shadow);
}

.post-header {
    margin-bottom: 15px;
}

.post-type {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.post-title {
    color: var(--primary);
    font-size: 24px;
    margin-bottom: 5px;
}

.post-date {
    color: var(--text-light);
    font-size: 14px;
}

.post-content {
    color: var(--text);
    white-space: pre-wrap;
    line-height: 1.8;
    margin-bottom: 15px;
}

.post-images {
    display: grid;
    gap: 12px;
    margin-top: 15px;
}

.post-images:has(img:only-child) {
    grid-template-columns: 1fr;
}

.post-images:has(img:only-child) .post-image {
    max-height: 500px;
}

.post-images:has(img:nth-child(2):last-child) {
    grid-template-columns: repeat(2, 1fr);
}

.post-images:has(img:nth-child(3)) {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.post-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--border);
}

.post-images:has(img:only-child) .post-image {
    height: auto;
    max-height: 500px;
    object-fit: contain;
}

.post-image:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
    .post-images {
        grid-template-columns: 1fr !important;
    }

    .post-image {
        height: 200px;
    }

    .post-images:has(img:only-child) .post-image {
        height: auto;
        max-height: 400px;
    }
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--surface);
    padding: 30px;
    border-radius: 12px;
    max-width: 400px;
    width: 90%;
}

.modal-content h2 {
    color: var(--primary);
    margin-bottom: 20px;
}

.profile-picture {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary);
    margin-bottom: 15px;
    background: var(--primary-light);
}

.profile-picture[src=""],
.profile-picture[src="/uploads/default-avatar.png"] {
    content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 120 120"><circle cx="60" cy="60" r="60" fill="%232d5016"/><circle cx="60" cy="45" r="20" fill="%23ffffff"/><path d="M30 95 Q30 70 60 70 Q90 70 90 95 Z" fill="%23ffffff"/></svg>');
}