.profile-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.form-section {
    background: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.form-section h2 {
    margin: 0 0 1rem 0;
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
}

.form-section p {
    color: #666;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.primary-button, .danger-button {
    width: 100%;
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
}

.primary-button:hover {
    background: var(--primary-hover);
}

.danger-button {
    background: var(--danger-color);
}

.danger-button:hover {
    background: var(--danger-hover);
}

.posts-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.post {
    background: white;
    border-radius: 0.5rem;
    padding: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.post-content {
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
}

.post-time {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.hidden {
    display: none;
}

.error-message {
    color: var(--danger-color);
    margin-bottom: 1rem;
    padding: 0.5rem;
    background-color: var(--danger-bg);
    border-radius: 0.25rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.spinner {
    display: none;
    width: 1rem;
    height: 1rem;
    border: 2px solid currentColor;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

.spinner:not(.hidden) {
    display: inline-block;
}

.button-text:not(.hidden) {
    display: inline-block;
}

.button-text.hidden {
    display: none;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.avatar-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.avatar-preview {
    width: 128px;
    height: 128px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e5e7eb;
}

.upload-area {
    width: 100%;
    padding: 2rem;
    border: 2px dashed #e2e8f0;
    border-radius: 0.5rem;
    background-color: #f8fafc;
    cursor: pointer;
    transition: all 0.2s ease;
}

.upload-area:hover {
    border-color: #94a3b8;
    background-color: #f1f5f9;
}

.upload-prompt {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    text-align: center;
}

.upload-icon {
    color: #94a3b8;
    margin-bottom: 0.5rem;
}

.upload-area.dragover {
    border-color: #3b82f6;
    background-color: #eff6ff;
}

.drop-zone.dragover {
    border: none;
    background-color: transparent;
}

#avatar-upload {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    background-color: white;
}

#avatar-upload::-webkit-file-upload-button {
    background-color: #f3f4f6;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    cursor: pointer;
    margin-right: 1rem;
}

#avatar-upload::-webkit-file-upload-button:hover {
    background-color: #e5e7eb;
}

.profile-header {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    padding: 2rem 0;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 2rem;
}

.profile-avatar {
    flex-shrink: 0;
    width: 128px;
    height: 128px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-info {
    flex-grow: 1;
}

.profile-info h1 {
    margin: 0 0 0.5rem 0;
    font-size: 1.875rem;
    font-weight: 700;
}

.profile-bio {
    margin: 0 0 1.5rem 0;
    color: #4b5563;
    font-size: 1.125rem;
}

.profile-stats {
    display: flex;
    gap: 2rem;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 1.25rem;
    font-weight: 600;
}

.stat-label {
    color: #6b7280;
}

.profile-posts {
    margin-top: 2rem;
}

.profile-posts h2 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.posts-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.post-card {
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.post-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.post-card a {
    display: block;
    padding: 1.5rem;
    color: inherit;
    text-decoration: none;
}

.post-card h3 {
    margin: 0 0 0.75rem 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.post-card p {
    margin: 0 0 1rem 0;
    color: #4b5563;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    color: #6b7280;
    font-size: 0.875rem;
}

.no-posts {
    text-align: center;
    color: #6b7280;
    padding: 3rem 0;
    font-size: 1.125rem;
} 