/* ISG CV Platform — Frontend CSS */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --isg-p:      #e85d04;
    --isg-pd:     #c44d00;
    --isg-pl:     #fff3ee;
    --isg-txt:    #1a1713;
    --isg-txt2:   #5a5550;
    --isg-txt3:   #9a9590;
    --isg-bg:     #f7f6f4;
    --isg-bg2:    #fff;
    --isg-bg3:    #f2f0ec;
    --isg-bdr:    #e2ddd8;
    --isg-bdr2:   #ccc8c2;
    --isg-grn:    #16a34a;
    --isg-blu:    #2563eb;
    --isg-r:      8px;
    --isg-r2:     12px;
    --isg-fn:     'Inter', Arial, sans-serif;
    --isg-sh:     0 2px 8px rgba(0,0,0,.08);
}

#isg-platform {
    font-family: var(--isg-fn);
    font-size: 13.5px;
    color: var(--isg-txt);
    line-height: 1.5;
    background: var(--isg-bg);
    min-height: 80vh;
    padding: 20px;
    -webkit-font-smoothing: antialiased;
}

/* ── KARTLAR ── */
.isg-card {
    background: var(--isg-bg2);
    border: 1px solid var(--isg-bdr);
    border-radius: var(--isg-r2);
    overflow: hidden;
    margin-bottom: 14px;
}
.isg-card-h {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--isg-bdr);
    font-weight: 600;
    font-size: 13.5px;
    color: var(--isg-txt);
}
.isg-card-b { padding: 16px; }

/* ── BUTONLAR ── */
.isg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 16px;
    height: 36px;
    border-radius: var(--isg-r);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-family: var(--isg-fn);
    text-decoration: none;
    transition: all .15s;
    line-height: 1;
}
.isg-btn-p  { background: var(--isg-p);   color: #fff; }
.isg-btn-p:hover { background: var(--isg-pd); }
.isg-btn-g  { background: var(--isg-bg3); color: var(--isg-txt); border: 1px solid var(--isg-bdr2); }
.isg-btn-g:hover { background: var(--isg-bdr); }
.isg-btn-sm { height: 28px; padding: 0 11px; font-size: 12px; }
.isg-btn-grn { background: var(--isg-grn); color: #fff; }

/* ── FORMLAR ── */
.isg-fg { margin-bottom: 13px; }
.isg-fl { display: block; font-size: 11px; font-weight: 600; color: var(--isg-txt2); margin-bottom: 4px; }
.isg-fi, .isg-fs, .isg-fta {
    width: 100%;
    padding: 0 12px;
    height: 36px;
    border: 1px solid var(--isg-bdr);
    border-radius: var(--isg-r);
    background: var(--isg-bg2);
    color: var(--isg-txt);
    font-size: 13px;
    font-family: var(--isg-fn);
    outline: none;
    transition: border-color .15s;
}
.isg-fi:focus, .isg-fs:focus, .isg-fta:focus {
    border-color: var(--isg-p);
    box-shadow: 0 0 0 3px rgba(232,93,4,.08);
}
.isg-fta { height: auto; padding: 10px 12px; min-height: 80px; resize: vertical; line-height: 1.5; }

/* ── BADGE ── */
.isg-bdg {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}
.isg-bo { background: #fff3ee; color: #c44d00; border: 1px solid #fbd0b8; }
.isg-bg { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.isg-bb { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }

/* ── TABS ── */
.isg-tabs {
    display: flex;
    border-bottom: 2px solid var(--isg-bdr);
    margin-bottom: 18px;
    overflow-x: auto;
    scrollbar-width: none;
}
.isg-tabs::-webkit-scrollbar { display: none; }
.isg-tab {
    display: inline-flex;
    align-items: center;
    padding: 0 16px;
    height: 40px;
    font-size: 13px;
    font-weight: 500;
    color: var(--isg-txt2);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    white-space: nowrap;
    transition: all .15s;
}
.isg-tab.on, .isg-tab:hover { color: var(--isg-p); }
.isg-tab.on { border-bottom-color: var(--isg-p); }

/* ── ADAY KARTLARI ── */
.isg-cc {
    background: var(--isg-bg2);
    border: 1px solid var(--isg-bdr);
    border-radius: var(--isg-r2);
    padding: 16px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all .2s;
}
.isg-cc:hover { border-color: var(--isg-bdr2); box-shadow: var(--isg-sh); }
.isg-cc.ft   { border-left: 3px solid var(--isg-p); }
.isg-cc-av {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg,var(--isg-p),#7c3aed);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700; font-size: 14px;
    flex-shrink: 0; overflow: hidden;
}
.isg-cc-av img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

/* ── İLAN KARTLARI ── */
.isg-jc {
    background: var(--isg-bg2);
    border: 1px solid var(--isg-bdr);
    border-radius: var(--isg-r2);
    padding: 16px;
    margin-bottom: 10px;
    transition: all .2s;
    cursor: pointer;
}
.isg-jc:hover { border-color: var(--isg-bdr2); box-shadow: var(--isg-sh); }
.isg-jc.ft   { border-left: 3px solid var(--isg-p); }

/* ── İLERLEME ── */
.isg-prog { background: var(--isg-bdr); border-radius: 20px; height: 5px; overflow: hidden; }
.isg-pf   { height: 100%; border-radius: 20px; background: var(--isg-p); transition: width .5s; }

/* ── TAG ── */
.isg-tag {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11.5px;
    background: var(--isg-bg3);
    color: var(--isg-txt2);
    border: 1px solid var(--isg-bdr);
    margin: 2px;
}

/* ── TOAST ── */
.isg-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--isg-grn);
    color: #fff;
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,.15);
    animation: isgFadeUp .3s ease;
}
@keyframes isgFadeUp {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── MODAL ── */
.isg-ov {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 9998;
    display: flex; align-items: center; justify-content: center;
    padding: 16px;
}
.isg-md {
    background: var(--isg-bg2);
    border: 1.5px solid var(--isg-bdr2);
    border-radius: var(--isg-r2);
    padding: 24px;
    max-width: 480px;
    width: 100%;
    max-height: 88vh;
    overflow-y: auto;
}

/* ── GRID ── */
.isg-g2  { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.isg-g3  { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.isg-g21 { display: grid; grid-template-columns: 2fr 1fr; gap: 14px; }

/* ── LOADER ── */
.isg-loader {
    display: flex; align-items: center; justify-content: center;
    padding: 40px;
    color: var(--isg-txt3);
    font-size: 13px;
}
.isg-spinner {
    width: 20px; height: 20px;
    border: 2px solid var(--isg-bdr);
    border-top-color: var(--isg-p);
    border-radius: 50%;
    animation: isgSpin .7s linear infinite;
    margin-right: 10px;
}
@keyframes isgSpin { to { transform: rotate(360deg); } }

/* ── SAYFA: BOŞ DURUM ── */
.isg-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--isg-txt3);
}
.isg-empty-icon { font-size: 40px; margin-bottom: 12px; }
.isg-empty-text { font-size: 14px; font-weight: 600; color: var(--isg-txt2); }

/* ── RESPONSİVE ── */
@media (max-width: 768px) {
    #isg-platform { padding: 12px; }
    .isg-g2, .isg-g21, .isg-g3 { grid-template-columns: 1fr; }
}
