/* =============================================
   이력서 관리 — Resume-specific Styles
   ============================================= */

/* ─── 4-column KPI grid override ─── */
.rs-stats-4col { grid-template-columns: repeat(4, 1fr); }

/* ─── Tag pills for 등록항목 ─── */
.rs-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: .68rem;
    font-weight: 600;
    border: 1px solid transparent;
    transition: opacity .15s;
}
.rs-tag-intro  { background: rgba(96,165,250,.12);  color: #60a5fa; border-color: rgba(96,165,250,.2); }
.rs-tag-edu    { background: rgba(192,132,252,.12); color: #c084fc; border-color: rgba(192,132,252,.2); }
.rs-tag-career { background: rgba(52,211,153,.12);  color: #34d399; border-color: rgba(52,211,153,.2); }
.rs-tag-cert   { background: rgba(251,191,36,.12);  color: #fbbf24; border-color: rgba(251,191,36,.2); }
.rs-tag-empty  { background: rgba(255,255,255,.04); color: rgba(255,255,255,.25); border-color: rgba(255,255,255,.08); }

.rs-tags { display: flex; gap: 5px; flex-wrap: wrap; }

/* ─── Action button in table ─── */
.rs-btn-view {
    padding: 5px 12px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 8px;
    background: rgba(255,255,255,.04);
    color: rgba(255,255,255,.5);
    font-size: .75rem;
    cursor: pointer;
    transition: all .15s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.rs-btn-view:hover {
    border-color: #818cf8;
    color: #818cf8;
    background: rgba(129,140,248,.08);
}

/* ═══════════════════════════════════════════
   Detail Modal
   ═══════════════════════════════════════════ */
.rs-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    backdrop-filter: blur(4px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}
.rs-modal-overlay.show { display: flex; }

.rs-modal-container {
    background: #16162a;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 16px;
    width: 100%;
    max-width: 1000px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0,0,0,.5);
    animation: rsModalIn .25s ease;
    display: flex;
    flex-direction: column;
}

@keyframes rsModalIn {
    from { opacity: 0; transform: translateY(-16px) scale(.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.rs-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 16px;
    border-bottom: 1px solid rgba(255,255,255,.06);
    flex-shrink: 0;
}
.rs-modal-header h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: rgba(255,255,255,.9);
}
.rs-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: rgba(255,255,255,.35);
    cursor: pointer;
    line-height: 1;
}
.rs-modal-close:hover { color: rgba(255,255,255,.7); }

/* ─── 2-column layout ─── */
.rs-detail-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

/* ─── Profile sidebar ─── */
.rs-detail-sidebar {
    padding: 28px 20px;
    background: rgba(255,255,255,.02);
    border-right: 1px solid rgba(255,255,255,.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-y: auto;
}
.rs-profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(129,140,248,.2), rgba(129,140,248,.08));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #818cf8;
    margin-bottom: 14px;
    box-shadow: 0 4px 16px rgba(129,140,248,.15);
}
.rs-profile-avatar .avatar-initial {
    font-size: 1.7rem;
    font-weight: 800;
    color: #818cf8;
}
.rs-profile-name {
    font-size: 1.1rem;
    font-weight: 800;
    color: rgba(255,255,255,.9);
    text-align: center;
}
.rs-profile-position {
    font-size: .8rem;
    font-weight: 600;
    color: #818cf8;
    margin-top: 2px;
}
.rs-profile-dept {
    font-size: .75rem;
    color: rgba(255,255,255,.4);
    margin-top: 2px;
}
.rs-profile-divider {
    width: 100%;
    height: 1px;
    background: rgba(255,255,255,.06);
    margin: 18px 0;
}

/* Profile info list */
.rs-profile-info {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.rs-pinfo-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: .75rem;
}
.rs-pinfo-item i {
    width: 16px;
    text-align: center;
    color: rgba(255,255,255,.3);
    margin-top: 1px;
    flex-shrink: 0;
}
.rs-pinfo-item .pi-label {
    color: rgba(255,255,255,.35);
    min-width: 48px;
    flex-shrink: 0;
}
.rs-pinfo-item .pi-value {
    color: rgba(255,255,255,.8);
    font-weight: 500;
    word-break: break-all;
}

/* Profile stats */
.rs-profile-stats {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
}
.rs-pstat-item {
    text-align: center;
    padding: 10px 4px;
    background: rgba(255,255,255,.03);
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,.06);
}
.rs-pstat-item .ps-num {
    display: block;
    font-size: 1.1rem;
    font-weight: 800;
    color: #818cf8;
}
.rs-pstat-item .ps-label {
    display: block;
    font-size: .65rem;
    font-weight: 600;
    color: rgba(255,255,255,.35);
    margin-top: 2px;
}

/* ─── Content area ─── */
.rs-detail-content {
    padding: 24px;
    overflow-y: auto;
}

/* Sections */
.rs-section { margin-bottom: 28px; }
.rs-section:last-of-type { margin-bottom: 0; }
.rs-section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.rs-section-header i {
    font-size: .9rem;
    color: #818cf8;
}
.rs-section-header h4 {
    font-size: .95rem;
    font-weight: 700;
    color: rgba(255,255,255,.85);
}
.rs-section-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #818cf8;
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    margin-left: 4px;
}

/* Intro text */
.rs-intro-text {
    font-size: .85rem;
    line-height: 1.7;
    color: rgba(255,255,255,.6);
    padding: 16px;
    background: rgba(255,255,255,.03);
    border-radius: 8px;
    border-left: 3px solid #818cf8;
    margin: 0;
}

/* ─── Timeline ─── */
.rs-timeline {
    position: relative;
    padding-left: 24px;
}
.rs-timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 4px;
    bottom: 4px;
    width: 2px;
    background: rgba(255,255,255,.08);
    border-radius: 2px;
}
.rs-tl-item {
    position: relative;
    padding-bottom: 20px;
}
.rs-tl-item:last-child { padding-bottom: 0; }
.rs-tl-dot {
    position: absolute;
    left: -20px;
    top: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #818cf8;
    border: 2px solid #16162a;
    box-shadow: 0 0 0 2px #818cf8;
}
.rs-tl-header {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}
.rs-tl-title {
    font-size: .85rem;
    font-weight: 700;
    color: rgba(255,255,255,.85);
}
.rs-tl-sub {
    font-size: .75rem;
    font-weight: 600;
    color: #818cf8;
}
.rs-tl-period {
    font-size: .7rem;
    color: rgba(255,255,255,.35);
    margin-top: 3px;
}
.rs-tl-period i { margin-right: 4px; font-size: .65rem; }
.rs-tl-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 5px;
}
.rs-tl-tag {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: .65rem;
    font-weight: 600;
}
.rs-tl-tag.tag-degree   { background: rgba(192,132,252,.12); color: #c084fc; }
.rs-tl-tag.tag-status   { background: rgba(52,211,153,.12);  color: #34d399; }
.rs-tl-tag.tag-gpa      { background: rgba(251,191,36,.12);  color: #fbbf24; }
.rs-tl-tag.tag-position { background: rgba(96,165,250,.12);  color: #60a5fa; }
.rs-tl-desc {
    font-size: .75rem;
    color: rgba(255,255,255,.5);
    margin-top: 5px;
    line-height: 1.6;
}

/* ─── Cert grid ─── */
.rs-cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 10px;
}
.rs-cert-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    background: rgba(255,255,255,.03);
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.06);
    transition: all .15s;
}
.rs-cert-card:hover {
    border-color: rgba(129,140,248,.3);
    box-shadow: 0 2px 12px rgba(129,140,248,.08);
}
.rs-cert-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    flex-shrink: 0;
    background: rgba(251,191,36,.12);
    color: #fbbf24;
}
.rs-cert-body { flex: 1; min-width: 0; }
.rs-cert-name {
    font-size: .8rem;
    font-weight: 700;
    color: rgba(255,255,255,.85);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rs-cert-issuer {
    font-size: .7rem;
    color: rgba(255,255,255,.4);
    margin-top: 2px;
}
.rs-cert-date {
    font-size: .65rem;
    color: rgba(255,255,255,.3);
    margin-top: 4px;
}
.rs-cert-date i { margin-right: 3px; }

/* ─── Empty states ─── */
.rs-detail-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: rgba(255,255,255,.3);
}
.rs-detail-empty i { font-size: 2.5rem; opacity: .3; margin-bottom: 12px; }
.rs-detail-empty p { font-size: .85rem; }

/* ═══════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════ */
@media (max-width: 1200px) {
    .rs-stats-4col { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
    .rs-detail-layout { grid-template-columns: 1fr; }
    .rs-detail-sidebar {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,.06);
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
        padding: 16px;
    }
    .rs-profile-divider { display: none; }
    .rs-profile-stats { max-width: 280px; }
}
@media (max-width: 600px) {
    .rs-stats-4col { grid-template-columns: 1fr 1fr; }
    .rs-cert-grid { grid-template-columns: 1fr; }
}
