/* ============================================
   User Profile - Clean White Card Design
   ============================================ */

/* Cover Image Section */
.usercoverimg {
    position: relative;
    min-height: 200px;
    background: #fff;
    border-radius: 0;
    overflow: visible;
    margin-bottom: 30px;
}

/* When user has cover image */
.usercoverimg:not(.no-cover-image) {
    background: #1a1a1a;
    min-height: 280px;
}

.usercoverimg img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}

.usercoverimg:after {
    background: linear-gradient(0deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0) 100%);
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    content: '';
    z-index: 1;
}

/* No cover image - clean white card */
.usercoverimg.no-cover-image {
    background: #fff;
    min-height: auto;
    padding: 40px 30px 30px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    border-radius: 12px;
}

.usercoverimg.no-cover-image:after {
    display: none;
}

/* User Main Info */
.userMaininfo {
    position: absolute;
    left: 0;
    bottom: -70px;
    width: 100%;
    z-index: 2;
    padding: 0 30px;
    display: flex;
    align-items: flex-end;
    gap: 25px;
}

/* White card layout for no cover image */
.usercoverimg.no-cover-image .userMaininfo {
    position: relative;
    bottom: auto;
    padding: 0;
    align-items: center;
}

.userMaininfo .userPic {
    width: 140px;
    height: 140px;
    min-width: 140px;
    overflow: hidden;
    border: 5px solid #fff;
    border-radius: 50%;
    position: relative;
    z-index: 15;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Smaller shadow for white card */
.usercoverimg.no-cover-image .userMaininfo .userPic {
    border: 4px solid #f0f0f0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.userMaininfo .userPic:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 28px rgba(0,0,0,0.2);
}

.usercoverimg.no-cover-image .userMaininfo .userPic:hover {
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.userMaininfo .userPic img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.userMaininfo .title {
    flex: 1;
    padding-bottom: 20px;
}

.usercoverimg.no-cover-image .userMaininfo .title {
    padding-bottom: 0;
}

.userMaininfo h3 {
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.4);
    letter-spacing: -0.5px;
    line-height: 1.2;
}

/* Dark text for white card */
.usercoverimg.no-cover-image .userMaininfo h3 {
    color: #1a202c;
    text-shadow: none;
    font-size: 26px;
}

.userMaininfo h3 span {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: #00c853;
    background: rgba(0,200,83,0.12);
    padding: 5px 12px;
    border-radius: 16px;
    margin-left: 10px;
    text-shadow: none;
    border: 1px solid rgba(0,200,83,0.25);
    vertical-align: middle;
}

.userMaininfo .desi {
    font-size: 15px;
    color: #fff;
    margin-bottom: 6px;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.3);
    font-weight: 500;
}

/* Dark text for white card */
.usercoverimg.no-cover-image .userMaininfo .desi {
    color: #4a5568;
    text-shadow: none;
}

.userMaininfo .desi i {
    margin-right: 6px;
    color: #00c853;
}

.membersinc {
    color: #fff;
    font-size: 13px;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.3);
    background: rgba(255,255,255,0.15);
    padding: 6px 14px;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    display: inline-block;
    font-weight: 500;
}

/* Subtle background for white card */
.usercoverimg.no-cover-image .membersinc {
    color: #4a5568;
    text-shadow: none;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
}

.membersinc i {
    margin-right: 6px;
    color: #00c853;
}

/* Action Buttons Section */
.userlinkstp {
    margin-top: 90px;
    margin-bottom: 30px;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

/* Adjust margin for white card layout */
.usercoverimg.no-cover-image ~ .userlinkstp {
    margin-top: 0;
}

.userlinkstp .btn {
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(102,126,234,0.3);
}

.userlinkstp .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102,126,234,0.4);
}

.userlinkstp .btn i {
    font-size: 16px;
}

.userlinkstp .btn-default {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 4px 12px rgba(245,87,108,0.3);
}

.userlinkstp .btn-default:hover {
    box-shadow: 0 6px 20px rgba(245,87,108,0.4);
}

.userlinkstp .btn-warning {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    box-shadow: 0 4px 12px rgba(250,112,154,0.3);
}

.userlinkstp .btn-warning:hover {
    box-shadow: 0 6px 20px rgba(250,112,154,0.4);
}

.userlinkstp span {
    color: #666;
    font-size: 14px;
    font-style: italic;
    margin-left: 10px;
}

/* Content Sections */
.job-header {
    margin-bottom: 25px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.job-header:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.job-header .contentbox,
.job-header .jobdetail {
    padding: 25px;
}

.job-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid #667eea;
    position: relative;
}

.job-header h3:after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.job-header p {
    color: #4a5568;
    line-height: 1.8;
    font-size: 15px;
}

/* Skills Section */
.ptsklbx {
    padding: 25px;
}

.ptsklbx h3 {
    font-size: 20px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid #667eea;
    position: relative;
}

.ptsklbx h3:after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

#skill_div .skill-tag {
    display: inline-block;
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
    color: #667eea;
    padding: 8px 16px;
    border-radius: 20px;
    margin: 5px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid #667eea30;
    transition: all 0.3s ease;
}

#skill_div .skill-tag:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102,126,234,0.3);
}

/* Candidate Details List */
.jbdetail {
    list-style: none;
    padding: 0;
    margin: 0;
}

.jbdetail li {
    padding: 15px 0;
    border-bottom: 1px solid #e2e8f0;
    transition: background 0.3s ease;
}

.jbdetail li:last-child {
    border-bottom: none;
}

.jbdetail li:hover {
    background: #f7fafc;
    padding-left: 10px;
    padding-right: 10px;
    margin-left: -10px;
    margin-right: -10px;
    border-radius: 6px;
}

.jbdetail li .col-md-6:first-child {
    font-weight: 600;
    color: #4a5568;
    font-size: 14px;
}

.jbdetail li span {
    color: #2d3748;
    font-weight: 500;
    font-size: 14px;
}

/* Candidate Contact Section */
.candidateinfo {
    padding: 10px 0;
}

.candidateinfo .loctext {
    padding: 12px 0;
    color: #4a5568;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.candidateinfo .loctext:hover {
    color: #667eea;
    padding-left: 5px;
}

.candidateinfo .loctext i {
    color: #667eea;
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.candidateinfo .loctext a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.candidateinfo .loctext a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Video Profile */
.contentbox iframe {
    width: 100%;
    min-height: 400px;
    border-radius: 8px;
    margin-top: 10px;
}

/* Experience & Education Sections */
#experience_div .experience-item,
#education_div .education-item,
#projects_div .project-item {
    padding: 20px;
    background: #f7fafc;
    border-radius: 8px;
    margin-bottom: 15px;
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
}

#experience_div .experience-item:hover,
#education_div .education-item:hover,
#projects_div .project-item:hover {
    background: #edf2f7;
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Languages Section */
#language_div .language-item {
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#language_div .language-item:last-child {
    border-bottom: none;
}

/* Modal Styling */
.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 12px 12px 0 0;
    border-bottom: none;
    padding: 20px 25px;
}

.modal-header .modal-title {
    font-weight: 700;
    font-size: 20px;
}

.modal-header .close {
    color: #fff;
    opacity: 0.8;
    text-shadow: none;
}

.modal-header .close:hover {
    opacity: 1;
}

.modal-body {
    padding: 25px;
}

.modal-footer {
    border-top: 1px solid #e2e8f0;
    padding: 15px 25px;
}

.modal-footer .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
}

.modal-footer .btn-default {
    background: #e2e8f0;
    color: #4a5568;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 991px) {
    .userMaininfo {
        flex-direction: column;
        align-items: flex-start;
        bottom: -100px;
    }
    
    .usercoverimg.no-cover-image .userMaininfo {
        flex-direction: row;
        align-items: center;
        bottom: auto;
    }
    
    .userMaininfo h3 {
        font-size: 24px;
    }
    
    .userMaininfo .userPic {
        width: 130px;
        height: 130px;
        min-width: 130px;
    }
    
    .userMaininfo .title {
        padding-bottom: 10px;
    }
    
    .userlinkstp {
        margin-top: 120px;
    }
    
    .usercoverimg.no-cover-image ~ .userlinkstp {
        margin-top: 0;
    }
}

@media (max-width: 767px) {
    .usercoverimg {
        min-height: 250px;
    }
    
    .usercoverimg.no-cover-image {
        padding: 30px 20px 25px;
    }
    
    .usercoverimg img {
        height: 250px;
    }
    
    .userMaininfo {
        bottom: -90px;
        padding: 0 20px;
        gap: 15px;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .usercoverimg.no-cover-image .userMaininfo {
        padding: 0;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .userMaininfo .userPic {
        width: 110px;
        height: 110px;
        min-width: 110px;
    }
    
    .userMaininfo .title {
        width: 100%;
    }
    
    .userMaininfo h3 {
        font-size: 20px;
        margin-bottom: 8px;
    }
    
    .usercoverimg.no-cover-image .userMaininfo h3 {
        font-size: 22px;
    }
    
    .userMaininfo h3 span {
        display: block;
        margin-left: 0;
        margin-top: 8px;
        width: fit-content;
    }
    
    .usercoverimg.no-cover-image .userMaininfo h3 span {
        margin: 8px auto 0;
    }
    
    .userMaininfo .desi {
        font-size: 14px;
    }
    
    .membersinc {
        font-size: 12px;
        padding: 5px 10px;
    }
    
    .userlinkstp {
        margin-top: 110px;
        flex-direction: column;
        align-items: stretch;
    }
    
    .usercoverimg.no-cover-image ~ .userlinkstp {
        margin-top: 0;
    }
    
    .userlinkstp .btn {
        width: 100%;
        justify-content: center;
    }
    
    .job-header .contentbox,
    .job-header .jobdetail {
        padding: 20px 15px;
    }
    
    .job-header h3 {
        font-size: 18px;
    }
    
    .contentbox iframe {
        min-height: 250px;
    }
}

@media (max-width: 480px) {
    .usercoverimg {
        min-height: 200px;
    }
    
    .usercoverimg.no-cover-image {
        padding: 25px 15px 20px;
    }
    
    .usercoverimg img {
        height: 200px;
    }
    
    .userMaininfo {
        bottom: -80px;
    }
    
    .userMaininfo .userPic {
        width: 90px;
        height: 90px;
        min-width: 90px;
    }
    
    .userMaininfo h3 {
        font-size: 18px;
    }
    
    .usercoverimg.no-cover-image .userMaininfo h3 {
        font-size: 20px;
    }
    
    .userMaininfo h3 span {
        font-size: 11px;
        padding: 4px 10px;
    }
    
    .job-header h3 {
        font-size: 16px;
    }
    
    .userlinkstp {
        margin-top: 100px;
    }
    
    .usercoverimg.no-cover-image ~ .userlinkstp {
        margin-top: 0;
    }
    
    .userlinkstp .btn {
        padding: 10px 18px;
        font-size: 13px;
    }
}
