/* ==============================================
   PROFILE PAGE STYLES — Redesigned
   ============================================== */

/* ── Profile Hero Card ── */
.profile-hero-card {
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.65);
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.04),
        0 6px 16px -4px rgba(0, 0, 0, 0.06),
        0 16px 36px -8px rgba(0, 0, 0, 0.04);
}

.profile-hero-cover {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.cover-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0085FF 0%, #6366f1 40%, #ec4899 70%, #f59e0b 100%);
}

.cover-pattern {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 40%);
}

.profile-hero-body {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding: 0 2rem 2rem;
    margin-top: -50px;
    position: relative;
}

.profile-avatar-ring {
    flex-shrink: 0;
    padding: 5px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.10),
        0 0 0 3px rgba(0, 133, 255, 0.15);
}

.profile-avatar-lg {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.profile-hero-info {
    padding-top: 58px;
    /* Align text below the cover edge */
    flex: 1;
    min-width: 0;
}

.profile-name {
    font-size: 1.75rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 0.25rem;
    letter-spacing: -0.5px;
    font-family: 'Outfit', sans-serif;
    line-height: 1.2;
}

.profile-headline {
    font-size: 1.05rem;
    color: #64748b;
    margin: 0 0 1rem;
    font-weight: 500;
}

.profile-meta-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #f1f5f9;
    border-radius: 99px;
    font-size: 0.85rem;
    color: #475569;
    font-weight: 500;
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.2s;
}

.meta-pill i {
    font-size: 0.8rem;
    color: #94a3b8;
}

.meta-pill-accent {
    background: rgba(0, 133, 255, 0.08);
    border-color: rgba(0, 133, 255, 0.15);
    color: #0085FF;
}

.meta-pill-accent i {
    color: #0085FF;
}

/* ── Section Cards ── */
.profile-section-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 1.75rem 2rem;
    border: 1px solid rgba(226, 232, 240, 0.65);
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.04),
        0 6px 16px -4px rgba(0, 0, 0, 0.06);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}

.section-header h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    font-family: 'Outfit', sans-serif;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header h3 i {
    color: #0085FF;
    font-size: 1rem;
}

/* ── Experience / Education Items ── */
.experience-list {
    position: relative;
    padding-left: 20px;
}

.experience-list::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(180deg, #0085FF 0%, rgba(99, 102, 241, 0.3) 100%);
    border-radius: 2px;
}

.exp-item {
    position: relative;
    padding-left: 24px;
    padding-bottom: 1.75rem;
}

.exp-item:last-child {
    padding-bottom: 0;
}

.exp-dot {
    position: absolute;
    left: -1px;
    top: 6px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid #cbd5e1;
    z-index: 1;
    transition: all 0.3s;
}

.exp-dot.active {
    border-color: #0085FF;
    background: #0085FF;
    box-shadow: 0 0 0 4px rgba(0, 133, 255, 0.15);
}

.exp-dot.edu {
    border-color: #6366f1;
    background: #6366f1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

.exp-content {
    background: #f8fafc;
    border: 1px solid rgba(226, 232, 240, 0.6);
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.exp-content:hover {
    background: #ffffff;
    box-shadow: 0 4px 12px -4px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 133, 255, 0.12);
}

.exp-top-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 0.5rem;
}

.exp-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    line-height: 1.3;
}

.exp-date {
    flex-shrink: 0;
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
    background: rgba(0, 133, 255, 0.06);
    border: 1px solid rgba(0, 133, 255, 0.1);
    padding: 4px 12px;
    border-radius: 99px;
    white-space: nowrap;
}

.exp-company {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0 0 0.5rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.exp-company i {
    font-size: 0.8rem;
    color: #94a3b8;
}

.exp-desc {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.65;
    margin: 0;
}

/* ── Right Column Widgets ── */
.profile-widget-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 1.5rem;
    border: 1px solid rgba(226, 232, 240, 0.65);
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.04),
        0 4px 12px -3px rgba(0, 0, 0, 0.05);
}

.widget-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.widget-header-row h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    font-family: 'Outfit', sans-serif;
}

.btn-icon-sm {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    background: #f8fafc;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.8rem;
}

.btn-icon-sm:hover {
    background: #0085FF;
    color: #ffffff;
    border-color: #0085FF;
}

/* Completion Ring */
.completion-ring-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0.5rem;
}

.completion-ring-text {
    position: absolute;
    text-align: center;
}

.completion-pct {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    font-family: 'Outfit', sans-serif;
    line-height: 1.1;
}

.completion-label {
    display: block;
    font-size: 0.7rem;
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 2px;
}

/* Resume */
.resume-file-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 14px;
    border: 1px solid rgba(226, 232, 240, 0.6);
}

.resume-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(239, 68, 68, 0.08);
    color: #ef4444;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.resume-info {
    flex: 1;
    min-width: 0;
}

.resume-name {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #0f172a;
}

.resume-date {
    margin: 0;
    font-size: 0.78rem;
    color: #94a3b8;
    margin-top: 2px;
}

/* Skills */
.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-chip {
    display: inline-flex;
    align-items: center;
    padding: 7px 14px;
    background: linear-gradient(135deg, rgba(0, 133, 255, 0.06) 0%, rgba(99, 102, 241, 0.04) 100%);
    border: 1px solid rgba(0, 133, 255, 0.12);
    border-radius: 99px;
    font-size: 0.85rem;
    color: #334155;
    font-weight: 600;
    transition: all 0.2s;
}

.skill-chip:hover {
    background: rgba(0, 133, 255, 0.1);
    border-color: rgba(0, 133, 255, 0.25);
    color: #0085FF;
    transform: translateY(-1px);
}

/* Quick Actions */
.quick-action-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.quick-action-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid rgba(226, 232, 240, 0.6);
    color: #475569;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.quick-action-btn i {
    width: 20px;
    text-align: center;
    color: #0085FF;
}

.quick-action-btn:hover {
    background: rgba(0, 133, 255, 0.05);
    border-color: rgba(0, 133, 255, 0.15);
    color: #0085FF;
    transform: translateX(4px);
}

/* ── Layout Override for profile ── */
.profile-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
    align-items: start;
    padding-bottom: 2rem;
}

.profile-main-col,
.profile-side-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .profile-layout {
        grid-template-columns: 1fr;
    }

    .profile-side-col {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }
}

@media (max-width: 640px) {
    .profile-hero-body {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0 1.25rem 1.5rem;
        margin-top: -40px;
    }

    .profile-hero-info {
        padding-top: 0.5rem;
    }

    .profile-meta-pills {
        justify-content: center;
    }

    .exp-top-row {
        flex-direction: column;
        gap: 6px;
    }

    .profile-side-col {
        grid-template-columns: 1fr;
    }
}

/* ── Empty States ── */
.profile-empty-state {
    text-align: center;
    padding: 2rem 1rem;
    color: #94a3b8;
}

.profile-empty-state i {
    font-size: 2rem;
    opacity: 0.4;
    margin-bottom: 0.75rem;
    display: block;
}

.profile-empty-state p {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #64748b;
}

.profile-empty-state span {
    font-size: 0.85rem;
    display: block;
    margin-top: 0.25rem;
}

.profile-empty-state-sm {
    text-align: center;
    padding: 1rem 0.5rem;
    color: #94a3b8;
}

.profile-empty-state-sm p {
    margin: 0;
    font-size: 0.85rem;
}

/* ── Completion Checklist ── */
.completion-checklist {
    margin-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding-top: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 8px;
    font-size: 0.85rem;
    transition: background 0.15s;
}

.checklist-item:hover {
    background: rgba(0, 0, 0, 0.02);
}

.checklist-item i {
    font-size: 0.9rem;
    flex-shrink: 0;
}

.checklist-item span:first-of-type {
    flex: 1;
    color: #334155;
    font-weight: 500;
}

.checklist-pts {
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 36px;
    text-align: right;
}

.checklist-item.done i {
    color: #22c55e;
}

.checklist-item.done .checklist-pts {
    color: #22c55e;
}

.checklist-item.done span:first-of-type {
    color: #94a3b8;
    text-decoration: line-through;
    text-decoration-color: rgba(148, 163, 184, 0.4);
}

.checklist-item.missing i {
    color: #ef4444;
    opacity: 0.6;
}

.checklist-item.missing .checklist-pts {
    color: #94a3b8;
}