/* ==================== */
/* PROFILE MODAL STYLES - LANDSCAPE/HORIZONTAL VERSION */
/* ==================== */

/* Modal Overlay */
.profile-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    z-index: 999998;
    animation: overlayFadeIn 0.3s ease forwards;
}

.profile-modal-overlay.active {
    display: flex;
}

/* Modal Container - LANDSCAPE MODE (Wider) */
.profile-modal-container {
    position: relative;
    width: 100%;
    max-width: 950px;
    margin: 20px;
    z-index: 999999;
    animation: modalSlideIn 0.4s cubic-bezier(0.34, 1.2, 0.64, 1) forwards;
    max-height: 90vh;
}

/* Close Button */
.profile-modal-close {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: none;
    transition: all 0.3s ease;
}

.profile-modal-close:hover {
    background: #e74c3c;
    transform: rotate(90deg) scale(1.1);
}

.profile-modal-close i {
    font-size: 18px;
    color: #333;
}

.profile-modal-close:hover i {
    color: white;
}

/* Profile Card - LANDSCAPE LAYOUT */
.profile-card {
    background: white;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    animation: cardGlow 2s ease-in-out infinite;
    display: flex;
    flex-direction: column;
    max-height: 85vh;
}

/* Two Column Layout - LANDSCAPE */
.profile-detail-body {
    display: flex;
    flex-direction: row;
    height: 100%;
    max-height: 85vh;
}

/* LEFT COLUMN - Profile Header and Avatar (Fixed) */
.profile-detail-left {
    flex: 0.9;
    background: linear-gradient(135deg, #2d6cdf, #764ba2);
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

/* Custom scrollbar for left column */
.profile-detail-left::-webkit-scrollbar {
    width: 4px;
}

.profile-detail-left::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

.profile-detail-left::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 2px;
}

/* Background Pattern */
.profile-detail-left::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    animation: patternMove 20s linear infinite;
    pointer-events: none;
}

/* Profile Header on Left Column */
.profile-header-left {
    padding: 40px 30px 20px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.profile-avatar-left {
    width: 140px;
    height: 140px;
    margin: 0 auto 20px;
    position: relative;
}

.profile-avatar-left img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.profile-avatar-left img:hover {
    transform: scale(1.05);
}

.profile-avatar-left .avatar-badge {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: #ffd700;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid white;
}

.profile-avatar-left .avatar-badge i {
    font-size: 20px;
    color: #1a2a4f;
}

.profile-header-left h2 {
    font-size: 26px;
    color: white;
    margin: 0 0 5px 0;
    font-weight: 700;
}

.profile-position-left {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 15px 0;
}

/* Stats Section on Left Column */
.profile-stats-left {
    margin: 20px 30px;
    position: relative;
    z-index: 1;
}

.stats-title {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.stats-title i {
    font-size: 14px;
}

.stats-cards-left {
    display: flex;
    gap: 12px;
}

.stat-card-left {
    flex: 1;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-card-left:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.25);
}

.stat-number-left {
    font-size: 22px;
    font-weight: 700;
    color: #ffd700;
    margin-bottom: 5px;
}

.stat-label-left {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Social Links on Left Column */
.profile-social-left {
    margin: 20px 30px 30px;
    display: flex;
    justify-content: center;
    gap: 15px;
    position: relative;
    z-index: 1;
}

.social-link-left {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: white;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.social-link-left:hover {
    background: #ffd700;
    color: #1a2a4f;
    transform: translateY(-3px);
}

/* RIGHT COLUMN - Content (SCROLLABLE) */
.profile-detail-right {
    flex: 1.1;
    padding: 30px;
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 85vh;
    scroll-behavior: smooth;
}

/* Custom Scrollbar for Right Column */
.profile-detail-right::-webkit-scrollbar {
    width: 8px;
}

.profile-detail-right::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 4px;
}

.profile-detail-right::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #2d6cdf, #764ba2);
    border-radius: 4px;
}

.profile-detail-right::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #1d4fa8, #5a3292);
}

/* Profile Info Sections */
.profile-info-section {
    margin-bottom: 25px;
}

.profile-info-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

.profile-info-title i {
    font-size: 20px;
    color: #2d6cdf;
}

.profile-info-title h3 {
    font-size: 18px;
    color: #1a2a4f;
    margin: 0;
    font-weight: 600;
}

/* Profile Details */
.profile-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.detail-row {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.detail-row:hover {
    transform: translateX(5px);
    background: #e8f0fe;
}

.detail-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #2d6cdf, #764ba2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.detail-icon i {
    font-size: 20px;
    color: white;
}

.detail-text {
    flex: 1;
}

.detail-text .label {
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 3px;
}

.detail-text .value {
    font-size: 15px;
    color: #333;
    font-weight: 500;
}

.detail-text .value a {
    color: #2d6cdf;
    text-decoration: none;
}

.detail-text .value a:hover {
    text-decoration: underline;
}

/* Bio Section */
.profile-bio {
    margin-bottom: 25px;
}

.profile-bio p {
    color: #555;
    line-height: 1.7;
    margin: 0;
    font-size: 14px;
}

/* Scroll Indicator */
.scroll-indicator-right {
    position: absolute;
    right: 10px;
    bottom: 20px;
    background: rgba(45, 108, 223, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 5;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.profile-detail-right:hover .scroll-indicator-right {
    opacity: 0;
}

/* Animations */
@keyframes overlayFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(5px);
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes cardGlow {
    0%, 100% {
        box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    }
    50% {
        box-shadow: 0 40px 70px rgba(45, 108, 223, 0.2);
    }
}

@keyframes patternMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(30px, 30px);
    }
}

/* Responsive - Tablet */
@media (max-width: 900px) {
    .profile-modal-container {
        max-width: 95%;
        max-height: 95vh;
    }
    
    .profile-detail-body {
        flex-direction: column;
    }
    
    .profile-detail-left {
        max-height: 45vh;
        overflow-y: auto;
    }
    
    .profile-avatar-left {
        width: 100px;
        height: 100px;
    }
    
    .profile-avatar-left .avatar-badge {
        width: 30px;
        height: 30px;
    }
    
    .profile-avatar-left .avatar-badge i {
        font-size: 14px;
    }
    
    .profile-header-left h2 {
        font-size: 22px;
    }
    
    .profile-position-left {
        font-size: 13px;
    }
    
    .stats-cards-left {
        flex-wrap: wrap;
    }
    
    .profile-detail-right {
        max-height: 40vh;
        padding: 20px;
    }
}

/* Responsive - Mobile */
@media (max-width: 600px) {
    .profile-header-left {
        padding: 25px 20px;
    }
    
    .profile-avatar-left {
        width: 80px;
        height: 80px;
    }
    
    .profile-header-left h2 {
        font-size: 20px;
    }
    
    .profile-position-left {
        font-size: 12px;
    }
    
    .profile-stats-left {
        margin: 15px 20px;
    }
    
    .stats-cards-left {
        flex-direction: column;
        gap: 8px;
    }
    
    .profile-social-left {
        margin: 15px 20px 20px;
    }
    
    .profile-detail-right {
        padding: 15px;
    }
    
    .detail-row {
        padding: 10px;
    }
    
    .detail-icon {
        width: 35px;
        height: 35px;
    }
    
    .detail-icon i {
        font-size: 16px;
    }
    
    .detail-text .value {
        font-size: 13px;
    }
    
    .profile-bio p {
        font-size: 13px;
    }
}

/* Large Screens */
@media (min-width: 1400px) {
    .profile-modal-container {
        max-width: 1100px;
    }
    
    .profile-avatar-left {
        width: 160px;
        height: 160px;
    }
    
    .profile-header-left h2 {
        font-size: 30px;
    }
    
    .profile-position-left {
        font-size: 16px;
    }
    
    .profile-detail-right {
        padding: 35px;
    }
    
    .detail-text .value {
        font-size: 16px;
    }
    
    .profile-bio p {
        font-size: 15px;
    }
}