/* User Profile Styles - Integrated with site design */

/* Main user profile page layout */
.user-profile-page {
    position: relative;
}

.user-profile-header {
    margin-bottom: 2rem;
}

.back-button {
    margin-bottom: 2rem;
    display: inline-block;
}

/* User main card layout */
.user-main-card {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .user-main-card {
        flex-direction: column;
        gap: 1.5rem;
    }
}

/* User photo wrapper - using existing illustration-wrapper pattern */
.user-photo-wrapper {
    flex-shrink: 0;
    width: 250px;
    height: 300px;
    position: relative;
}

.user-photo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .user-photo-wrapper {
        width: 200px;
        height: 240px;
        align-self: center;
    }
}

/* User info section */
.user-info {
    flex: 1;
    padding-top: 1rem;
}

.user-info h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .user-info h1 {
        font-size: 2rem;
        text-align: center;
    }
}

.user-position {
    font-size: 1.4rem;
    font-weight: 400;
    color: #666;
    margin: 0 0 1.5rem 0;
    font-style: italic;
}

@media (max-width: 768px) {
    .user-position {
        text-align: center;
        font-size: 1.2rem;
    }
}

.user-info .intro-txt {
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .user-info .intro-txt {
        text-align: center;
    }
}

.user-contact {
    margin-top: 1.5rem;
}

@media (max-width: 768px) {
    .user-contact {
        text-align: center;
    }
}

/* Biography section */
.user-bio-section {
    margin-top: 3rem;
    padding: 2rem 0;
    border-top: 1px solid #e9ecef;
}

.user-bio-section h3 {
    font-size: 1.8rem;
    color: #333;
    margin: 0 0 1.5rem 0;
    font-weight: 600;
}

.bio-content {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
}

.bio-content p {
    margin-bottom: 1.2rem;
}

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

/* Side tags positioning for user photo */
.user-photo-wrapper .side-tag-wrapper {
    position: absolute;
    top: -10px;
    left: -10px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.user-photo-wrapper .side-tag {
    transform: rotate(-5deg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
    .user-profile-page {
        padding: 1rem 0;
    }
    
    .user-bio-section {
        padding: 1.5rem 0;
        margin-top: 2rem;
    }
    
    .user-bio-section h3 {
        font-size: 1.5rem;
    }
    
    .bio-content {
        font-size: 1rem;
    }
}

/* Integration with existing single-items patterns */
.user-profile-page + .margin-top .single-items .item {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.user-profile-page + .margin-top .single-items .item:hover {
    transform: translateY(-2px);
}

/* Ensure proper spacing in aside section */
.user-profile-page + .margin-top .aside h2.h3 {
    margin-top: 0;
}

.user-profile-page + .margin-top .aside h2.h3:not(:first-child) {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
}

/* Print styles */
@media print {
    .back-button,
    .user-contact {
        display: none;
    }
    
    .user-main-card {
        flex-direction: row;
    }
    
    .user-photo-wrapper {
        width: 200px;
        height: 240px;
    }
    
    .user-photo-wrapper .side-tag-wrapper {
        display: none;
    }
    
    .user-bio-section {
        border-top: 1px solid #333;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .user-info h1 {
        color: #000;
    }
    
    .user-position {
        color: #333;
    }
    
    .bio-content {
        color: #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .user-profile-page + .margin-top .single-items .item {
        transition: none;
    }
    
    .user-profile-page + .margin-top .single-items .item:hover {
        transform: none;
    }
}