/**
 * SMY Talent Showcase & Lead Gate - Frontend Styles
 * Brand Colors: SMY Navy (#023953), SMY Gold (#fac723)
 * @package SMY_Talent
 */

:root {
    --smy-navy: #023953;
    --smy-navy-dark: #012130;
    --smy-navy-light: #035277;
    --smy-gold: #fac723;
    --smy-gold-hover: #e5b318;
    --smy-gold-light: #fef9c3;
    --smy-text-main: #0f172a;
    --smy-text-muted: #64748b;
    --smy-border: #e2e8f0;
    --smy-card-bg: #ffffff;
    --smy-bg-soft: #f8fafc;
    --smy-emerald: #10b981;
    --smy-emerald-light: #d1fae5;
    --smy-radius-lg: 16px;
    --smy-radius-md: 10px;
    --smy-radius-sm: 6px;
    --smy-shadow-sm: 0 2px 4px rgba(2, 57, 83, 0.04);
    --smy-shadow-md: 0 10px 25px -5px rgba(2, 57, 83, 0.08), 0 8px 10px -6px rgba(2, 57, 83, 0.04);
    --smy-shadow-lg: 0 20px 35px -5px rgba(2, 57, 83, 0.12), 0 10px 15px -5px rgba(2, 57, 83, 0.06);
    --smy-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* ==========================================================================
   TALENT FILTER BAR
   ========================================================================== */
.smy-talent-container {
    width: 100%;
    margin: 2rem 0;
    font-family: var(--smy-font);
    box-sizing: border-box;
}

.smy-talent-container *,
.smy-inline-form-wrap *,
.smy-modal-backdrop * {
    box-sizing: border-box;
}

.smy-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
}

.smy-filter-btn {
    appearance: none;
    background: #f1f5f9;
    color: var(--smy-navy);
    border: 1px solid var(--smy-border);
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    line-height: 1.2;
}

.smy-filter-btn:hover {
    background: #e2e8f0;
    color: var(--smy-navy-dark);
}

.smy-filter-btn.smy-filter-active {
    background: var(--smy-navy);
    color: #ffffff;
    border-color: var(--smy-navy);
    box-shadow: 0 4px 12px rgba(2, 57, 83, 0.2);
}

.smy-filter-badge {
    background: rgba(250, 199, 35, 0.9);
    color: var(--smy-navy-dark);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 999px;
}

.smy-filter-btn.smy-filter-active .smy-filter-badge {
    background: var(--smy-gold);
    color: var(--smy-navy);
}

/* ==========================================================================
   TALENT GRID & CARDS
   ========================================================================== */
.smy-talent-grid {
    display: grid;
    gap: 1.75rem;
    width: 100%;
}

.smy-cols-1 { grid-template-columns: 1fr; }
.smy-cols-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.smy-cols-3 { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.smy-cols-4 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

.smy-talent-card {
    background: var(--smy-card-bg);
    border: 1px solid var(--smy-border);
    border-radius: var(--smy-radius-lg);
    box-shadow: var(--smy-shadow-md);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    position: relative;
}

.smy-talent-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--smy-shadow-lg);
    border-color: rgba(2, 57, 83, 0.2);
}

.smy-card-header {
    padding: 1.5rem 1.5rem 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid #f1f5f9;
}

.smy-avatar-box {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.smy-candidate-photo {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2.5px solid var(--smy-gold);
    box-shadow: 0 4px 12px rgba(2, 57, 83, 0.18);
    display: block;
    background: #f1f5f9;
}

.smy-avatar-initials {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--smy-navy), var(--smy-navy-light));
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 800;
    border: 2.5px solid var(--smy-gold);
    box-shadow: 0 4px 12px rgba(2, 57, 83, 0.18);
}

.smy-avatar-initials .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.smy-verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--smy-emerald-light);
    color: #065f46;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 3px 8px;
    border-radius: 999px;
}

.smy-icon-check {
    width: 14px;
    height: 14px;
}

.smy-meta-header {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.smy-talent-id {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--smy-text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.smy-training-badge {
    background: var(--smy-gold-light);
    color: #854d0e;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid rgba(250, 199, 35, 0.4);
}

.smy-card-body {
    padding: 1.25rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.smy-candidate-name {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--smy-navy);
    margin: 0;
    line-height: 1.25;
}

.smy-talent-role {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--smy-navy-light);
    margin: -0.45rem 0 0 0;
    line-height: 1.3;
}

.smy-meta-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.smy-meta-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.82rem;
    color: var(--smy-text-muted);
    background: #f8fafc;
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid #f1f5f9;
}

.smy-meta-tag .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    color: var(--smy-navy-light);
}

.smy-talent-summary {
    font-size: 0.92rem;
    line-height: 1.55;
    color: #475569;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.smy-skills-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: auto;
    padding-top: 0.5rem;
}

.smy-skill-pill {
    background: #eff6ff;
    color: #1e40af;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 999px;
    border: 1px solid #dbeafe;
}

.smy-skill-more {
    background: #f1f5f9;
    color: var(--smy-text-muted);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 7px;
    border-radius: 999px;
}

.smy-card-footer {
    padding: 1rem 1.5rem 1.5rem 1.5rem;
    border-top: 1px solid #f8fafc;
}

.smy-btn-request {
    appearance: none;
    width: 100%;
    background: linear-gradient(135deg, var(--smy-navy), var(--smy-navy-light));
    color: #ffffff !important;
    border: none;
    border-radius: var(--smy-radius-md);
    padding: 0.85rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.25s ease;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(2, 57, 83, 0.15);
}

.smy-btn-request:hover {
    background: linear-gradient(135deg, var(--smy-navy-light), var(--smy-navy));
    color: var(--smy-gold) !important;
    box-shadow: 0 6px 16px rgba(2, 57, 83, 0.25);
    transform: translateY(-1px);
}

.smy-btn-request .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: var(--smy-gold);
}

/* ==========================================================================
   POSITIONS SHOWCASE GRID
   ========================================================================== */
.smy-positions-container {
    width: 100%;
    margin: 2rem 0;
    font-family: var(--smy-font);
}

.smy-positions-grid {
    display: grid;
    gap: 1.75rem;
}

.smy-position-card {
    background: #ffffff;
    border: 1px solid var(--smy-border);
    border-radius: var(--smy-radius-lg);
    box-shadow: var(--smy-shadow-md);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.smy-position-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--smy-shadow-lg);
}

.smy-position-badge-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.smy-pos-badge {
    background: var(--smy-gold-light);
    color: #854d0e;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
}

.smy-pos-count {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--smy-navy);
    background: #f1f5f9;
    padding: 3px 8px;
    border-radius: 999px;
}

.smy-position-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--smy-navy);
    margin: 0 0 0.75rem 0;
}

.smy-position-desc {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0 0 1.5rem 0;
}

/* ==========================================================================
   EMPTY STATE
   ========================================================================== */
.smy-empty-state {
    grid-column: 1 / -1;
    background: #ffffff;
    border: 2px dashed var(--smy-border);
    border-radius: var(--smy-radius-lg);
    padding: 3rem 2rem;
    text-align: center;
}

.smy-empty-state .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: var(--smy-text-muted);
    margin-bottom: 1rem;
}

.smy-empty-state h4 {
    color: var(--smy-navy);
    font-size: 1.3rem;
    margin: 0 0 0.5rem 0;
}

.smy-empty-state p {
    color: var(--smy-text-muted);
    font-size: 0.95rem;
    margin: 0 0 1.5rem 0;
}

.smy-btn-center {
    display: inline-flex;
    width: auto;
    max-width: 300px;
    margin: 0 auto;
}

/* ==========================================================================
   3-STEP LEAD FLOW & MODAL
   ========================================================================== */
.smy-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(2, 57, 83, 0.75);
    backdrop-filter: blur(6px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.smy-modal-backdrop.smy-modal-open {
    opacity: 1;
    visibility: visible;
}

.smy-modal-dialog {
    background: #ffffff;
    border-radius: var(--smy-radius-lg);
    max-width: 620px;
    width: 100%;
    max-height: 92vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    transform: translateY(20px) scale(0.97);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.smy-modal-backdrop.smy-modal-open .smy-modal-dialog {
    transform: translateY(0) scale(1);
}

.smy-modal-close {
    appearance: none;
    background: #f1f5f9;
    border: none;
    border-radius: 999px;
    width: 36px;
    height: 36px;
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--smy-text-muted);
    transition: all 0.2s;
    z-index: 10;
}

.smy-modal-close:hover {
    background: #e2e8f0;
    color: var(--smy-navy);
}

.smy-modal-body {
    padding: 2.25rem;
}

.smy-inline-form-wrap {
    background: #ffffff;
    border: 1px solid var(--smy-border);
    border-radius: var(--smy-radius-lg);
    box-shadow: var(--smy-shadow-md);
    padding: 2.25rem;
    max-width: 680px;
    margin: 2rem auto;
}

.smy-inline-badge {
    background: var(--smy-gold-light);
    color: #854d0e;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 3px 10px;
    border-radius: 999px;
    display: inline-block;
    margin-bottom: 0.75rem;
}

.smy-modal-title,
.smy-inline-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--smy-navy);
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
}

.smy-modal-subtitle,
.smy-inline-subtitle {
    color: var(--smy-text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0 0 1.5rem 0;
}

.smy-candidate-context-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Stepper */
.smy-stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 1.5rem 0 2rem 0;
    padding: 0 0.5rem;
}

.smy-step-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--smy-text-muted);
}

.smy-step-number {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: #e2e8f0;
    color: var(--smy-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.82rem;
}

.smy-step-item.smy-step-active {
    color: var(--smy-navy);
    font-weight: 700;
}

.smy-step-item.smy-step-active .smy-step-number {
    background: var(--smy-navy);
    color: #ffffff;
}

.smy-step-item.smy-step-complete .smy-step-number {
    background: var(--smy-emerald);
    color: #ffffff;
}

.smy-step-line {
    flex: 1;
    height: 2px;
    background: #e2e8f0;
    margin: 0 0.75rem;
}

/* Form Inputs */
.smy-input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.smy-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.smy-input-group label {
    font-size: 0.88rem;
    font-weight: 600;
    color: #334155;
}

.smy-req {
    color: #ef4444;
}

.smy-lead-form input[type="text"],
.smy-lead-form input[type="email"],
.smy-lead-form select,
.smy-lead-form textarea {
    appearance: none;
    width: 100%;
    padding: 0.75rem 0.95rem;
    border: 1px solid var(--smy-border);
    border-radius: var(--smy-radius-sm);
    font-size: 0.92rem;
    color: var(--smy-text-main);
    background: #ffffff;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.smy-lead-form input:focus,
.smy-lead-form select:focus,
.smy-lead-form textarea:focus {
    border-color: var(--smy-navy);
    box-shadow: 0 0 0 3px rgba(2, 57, 83, 0.12);
}

.smy-btn-submit {
    appearance: none;
    width: 100%;
    background: linear-gradient(135deg, var(--smy-navy), var(--smy-navy-light));
    color: #ffffff;
    border: none;
    border-radius: var(--smy-radius-md);
    padding: 0.9rem 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.smy-btn-submit:hover {
    background: linear-gradient(135deg, var(--smy-navy-light), var(--smy-navy));
    color: var(--smy-gold);
    box-shadow: 0 4px 14px rgba(2, 57, 83, 0.2);
}

.smy-btn-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.smy-form-privacy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--smy-text-muted);
    margin-top: 1rem;
    text-align: center;
}

.smy-form-privacy .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* OTP Step */
.smy-otp-wrap {
    text-align: center;
    padding: 1rem 0;
}

.smy-otp-icon {
    width: 56px;
    height: 56px;
    border-radius: 999px;
    background: #eff6ff;
    color: var(--smy-navy);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.smy-otp-icon .dashicons {
    font-size: 28px;
    width: 28px;
    height: 28px;
}

.smy-otp-wrap h3 {
    color: var(--smy-navy);
    font-size: 1.35rem;
    margin: 0 0 0.5rem 0;
}

.smy-otp-notice {
    color: var(--smy-text-muted);
    font-size: 0.92rem;
    margin-bottom: 1.5rem;
}

.smy-otp-inputs {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    margin: 1.5rem 0;
}

.smy-otp-digit {
    width: 48px;
    height: 56px;
    border: 2px solid var(--smy-border);
    border-radius: var(--smy-radius-md);
    text-align: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--smy-navy);
    background: #ffffff;
    transition: all 0.2s;
    outline: none;
}

.smy-otp-digit:focus {
    border-color: var(--smy-navy);
    box-shadow: 0 0 0 4px rgba(2, 57, 83, 0.15);
    transform: scale(1.05);
}

.smy-otp-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.25rem;
}

.smy-btn-link {
    appearance: none;
    background: none;
    border: none;
    color: var(--smy-navy);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0;
    text-decoration: underline;
}

.smy-btn-link:hover {
    color: var(--smy-navy-light);
}

/* Success Confirmation Step */
.smy-success-wrap {
    text-align: center;
    padding: 1.5rem 0;
}

.smy-success-icon-box {
    width: 72px;
    height: 72px;
    margin: 0 auto 1.5rem auto;
}

.smy-checkmark {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    stroke-width: 3;
    stroke: var(--smy-emerald);
    stroke-miterlimit: 10;
    box-shadow: inset 0px 0px 0px var(--smy-emerald);
    animation: smyFill .4s ease-in-out .4s forwards, smyScale .3s ease-in-out .9s both;
}

.smy-checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 3;
    stroke-miterlimit: 10;
    stroke: var(--smy-emerald);
    fill: none;
    animation: smyStroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.smy-checkmark-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: smyStroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.6s forwards;
}

@keyframes smyStroke {
    100% { stroke-dashoffset: 0; }
}

@keyframes smyScale {
    0%, 100% { transform: none; }
    50% { transform: scale3d(1.1, 1.1, 1); }
}

.smy-success-wrap h3 {
    font-size: 1.5rem;
    color: var(--smy-navy);
    margin: 0 0 0.75rem 0;
}

.smy-success-text {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.6;
    margin: 0 0 1.5rem 0;
}

.smy-success-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 380px;
    margin: 0 auto 1.5rem auto;
}

.smy-meta-pill {
    background: #f8fafc;
    border: 1px solid var(--smy-border);
    border-radius: var(--smy-radius-md);
    padding: 0.6rem 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--smy-navy);
}

.smy-meta-pill .dashicons {
    color: var(--smy-emerald);
}

/* Error Alert */
.smy-error-alert {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 0.75rem 1rem;
    border-radius: var(--smy-radius-sm);
    font-size: 0.88rem;
    margin: 1rem 0;
    text-align: left;
}

/* Spinner */
.smy-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: smySpin 0.7s linear infinite;
    display: inline-block;
}

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

/* Responsive adjustments */
@media (max-width: 640px) {
    .smy-input-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .smy-otp-inputs {
        gap: 0.35rem;
    }
    .smy-otp-digit {
        width: 40px;
        height: 48px;
        font-size: 1.25rem;
    }
    .smy-modal-body {
        padding: 1.5rem;
    }
}
