/**
 * SAL Candidate Card Styles
 * Styles for the [sal_candidate_card] shortcode
 */

/* Base card container */
.sal-cfw-candidate-card {
    box-sizing: border-box;
}

.sal-cfw-candidate-card *,
.sal-cfw-candidate-card *::before,
.sal-cfw-candidate-card *::after {
    box-sizing: inherit;
}

/* ========================================
   LAYOUT: Card (default full card)
   ======================================== */

.sal-cfw-layout-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    max-width: 400px;
}

.sal-cfw-layout-card .sal-card-photo {
    text-align: center;
    padding: 20px 20px 0;
}

.sal-cfw-layout-card .sal-card-photo img {
    border-radius: 50%;
    width: 120px;
    height: 120px;
    object-fit: cover;
}

.sal-cfw-layout-card .sal-card-content {
    padding: 15px 20px 20px;
}

.sal-cfw-layout-card .sal-card-name {
    margin: 0 0 5px;
    font-size: 1.25em;
    color: #333;
}

.sal-cfw-layout-card .sal-card-level {
    font-weight: 600;
    color: #0073aa;
    margin-bottom: 5px;
}

.sal-cfw-layout-card .sal-card-type {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 15px;
}

.sal-cfw-layout-card .sal-card-qualifications {
    font-size: 0.9em;
    color: #444;
    line-height: 1.5;
}

/* ========================================
   LAYOUT: Video
   ======================================== */

.sal-cfw-layout-video {
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    max-width: 600px;
}

.sal-cfw-layout-video .sal-card-video {
    width: 100%;
}

.sal-cfw-layout-video .sal-card-info {
    padding: 15px;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 15px;
}

.sal-cfw-layout-video .sal-card-name {
    color: #fff;
    font-size: 1.1em;
    font-weight: 600;
}

.sal-cfw-layout-video .sal-card-level {
    color: #4fc3f7;
    font-size: 0.9em;
}

/* ========================================
   LAYOUT: Compact (horizontal)
   ======================================== */

.sal-cfw-layout-compact {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.sal-cfw-layout-compact .sal-card-photo img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.sal-cfw-layout-compact .sal-card-details {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.sal-cfw-layout-compact .sal-card-name {
    font-size: 1em;
    color: #333;
}

.sal-cfw-layout-compact .sal-card-level {
    font-size: 0.85em;
    color: #0073aa;
}

.sal-cfw-layout-compact .sal-card-type {
    font-size: 0.8em;
    color: #666;
}

/* ========================================
   LAYOUT: Minimal
   ======================================== */

.sal-cfw-layout-minimal {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.sal-cfw-layout-minimal img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.sal-cfw-layout-minimal .sal-card-name {
    font-weight: 500;
}

/* ========================================
   LAYOUT: Profile (detailed)
   ======================================== */

.sal-cfw-layout-profile {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    max-width: 800px;
}

.sal-cfw-layout-profile .sal-profile-header {
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.sal-cfw-layout-profile .sal-profile-photo img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.3);
}

.sal-cfw-layout-profile .sal-profile-name {
    margin: 0 0 10px;
    font-size: 1.5em;
    color: #fff;
}

.sal-cfw-layout-profile .sal-profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.9em;
    opacity: 0.9;
}

.sal-cfw-layout-profile .sal-profile-video {
    padding: 20px;
    background: #f8f9fa;
}

.sal-cfw-layout-profile .sal-profile-section {
    padding: 20px 30px;
    border-top: 1px solid #eee;
}

.sal-cfw-layout-profile .sal-profile-section h4 {
    margin: 0 0 10px;
    font-size: 1em;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sal-cfw-layout-profile .sal-profile-qualifications,
.sal-cfw-layout-profile .sal-profile-summary {
    color: #555;
    line-height: 1.6;
}

/* ========================================
   Timezone & Badge Styling
   (Matches SAL Zoho Candidate Integration plugin inline styles)
   ======================================== */

/* Timezone wrapper */
.timezone-wrapper {
    margin: 8px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

/* Badge wrapper */
.badge-wrapper {
    margin: 8px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

/* Base style for all timezones and custom badges */
.timezones, .custom-badge {
    display: inline-block;
    border-radius: 20px;
    margin: 5px 5px 15px 0;
    padding: 2px 10px;
    font-size: 85%;
    white-space: nowrap;
    font-weight: bold;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Default Timezone Style */
.timezones {
    color: #fff !important;
    border: 1px solid #324bad !important;
    background: #334bac !important;
}

/* Custom Badge base */
.custom-badge {
    border: 1px solid;
}

/* MSP Experience - Teal/Green */
.badge-msp {
    background-color: #1abc9c !important;
    border-color: #1abc9c !important;
    color: #fff !important;
}

/* AI Certified - Bright Blue */
.badge-ai-certified {
    background-color: #3498db !important;
    border-color: #3498db !important;
    color: #fff !important;
}

/* SDM Experience - Purple */
.badge-sdm {
    background-color: #9b59b6 !important;
    border-color: #9b59b6 !important;
    color: #fff !important;
}

/* Nick's Pick - Gold/Amber */
.badge-nicks-pick {
    background-color: #f39c12 !important;
    border-color: #f39c12 !important;
    color: #333 !important;
}

/* Badge info tooltip "i" */
.badge-info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.15);
    font-size: 10px;
    font-weight: 700;
    cursor: help;
    position: relative;
}

/* Tooltip on hover */
.badge-info:hover::after {
    content: attr(data-description);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 12px;
    background: #333;
    color: #fff;
    font-size: 12px;
    font-weight: 400;
    border-radius: 6px;
    white-space: normal;
    width: 200px;
    text-align: center;
    margin-bottom: 8px;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* ========================================
   Responsive Adjustments
   ======================================== */

@media (max-width: 600px) {
    .sal-cfw-layout-profile .sal-profile-header {
        flex-direction: column;
        text-align: center;
    }

    .sal-cfw-layout-profile .sal-profile-meta {
        justify-content: center;
    }

    .sal-cfw-layout-compact {
        flex-direction: column;
        text-align: center;
    }
}
