/* ============================================================
   Profile Completion Reminder — All styles for:
   1. Avatar completion badge
   2. Slim dismissible reminder bar
   3. Avatar dropdown panel
   ============================================================ */

/* ── 1. Avatar Completion Badge ── */
#gnb_avatar_wrap {
    position: relative;
    display: inline-block;
}

.pc-avatar-badge {
    position: absolute;
    bottom: -4px;
    right: -6px;
    min-width: 20px;
    height: 20px;
    border-radius: 999px;
    background: #059669;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(5,150,105,.3);
    z-index: 2;
    pointer-events: none;
}

/* ── 2. Slim Profile Completion Reminder Bar ── */
.pc-reminder-bar {
    max-width: 1280px;
    margin: 0 auto 0 auto;
    background: #f0fdf4;
    border: 1px solid rgba(5,150,105,.2);
    border-top: none;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
    position: relative;
    z-index: 1;
    animation: pcSlideDown .3s ease;
}

@keyframes pcSlideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.pc-reminder-bar-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 20px;
    flex-wrap: nowrap;
}

.pc-reminder-bar-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.pc-reminder-bar-icon {
    color: #059669;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.pc-reminder-bar-text {
    font-size: 13px;
    font-weight: 500;
    color: #065f46;
    white-space: nowrap;
}

.pc-reminder-bar-mid {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.pc-reminder-bar-progress {
    width: 100px;
    height: 6px;
    background: #d1fae5;
    border-radius: 999px;
    overflow: hidden;
    flex-shrink: 0;
}

.pc-reminder-bar-progress-fill {
    height: 100%;
    background: #059669;
    border-radius: 999px;
    transition: width .4s ease;
    width: 0%;
}

.pc-reminder-bar-pct {
    font-size: 13px;
    font-weight: 600;
    color: #059669;
    white-space: nowrap;
}

.pc-reminder-bar-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    flex-wrap: nowrap;
}

.pc-reminder-bar-next {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
    white-space: nowrap;
}

.pc-reminder-bar-cta {
    font-size: 12.5px;
    font-weight: 600;
    color: #059669;
    text-decoration: none;
    white-space: nowrap;
    padding: 5px 12px;
    border: 1px solid rgba(5,150,105,.3);
    border-radius: 6px;
    transition: all .15s;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.pc-reminder-bar-cta:hover {
    background: #059669;
    color: #fff;
    text-decoration: none;
}

.pc-reminder-bar-close {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #94a3b8;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .15s;
    line-height: 1;
    padding: 0;
    margin-left: 4px;
}

.pc-reminder-bar-close:hover {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #cbd5e1;
}

/* ── 3. Avatar Dropdown Panel ── */
.pc-avatar-dropdown {
    position: fixed; /* positioned via JS near avatar */
    width: 310px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,.06), 0 20px 40px -12px rgba(0,0,0,.18);
    z-index: 10001;
    overflow: hidden;
    animation: pcFadeIn .15s ease;
}

@keyframes pcFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Header: user info */
.pc-ad-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px 14px 20px;
    border-bottom: 1px solid #f1f5f9;
}

.pc-ad-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid #e2e8f0;
}

.pc-ad-user-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.pc-ad-name {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pc-ad-view-profile {
    font-size: 12px;
    color: #059669;
    text-decoration: none;
    font-weight: 500;
}

.pc-ad-view-profile:hover {
    text-decoration: underline;
    color: #047857;
}

/* Completion section */
.pc-ad-completion {
    padding: 16px 20px;
}

.pc-ad-ring-wrap {
    position: relative;
    width: 72px;
    height: 72px;
    margin: 0 auto 12px auto;
}

.pc-ad-ring {
    width: 72px;
    height: 72px;
    display: block;
}

.pc-ad-ring-bg {
    stroke: #e2e8f0;
}

.pc-ad-ring-fill {
    stroke: #059669;
    transition: stroke-dashoffset .5s ease;
}

.pc-ad-ring-pct {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 18px;
    font-weight: 700;
    color: #065f46;
}

.pc-ad-completion-text {
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    color: #475569;
    margin: 0 0 10px 0;
}

.pc-ad-progress-bar {
    width: 100%;
    height: 6px;
    background: #f1f5f9;
    border-radius: 999px;
    overflow: hidden;
}

.pc-ad-progress-fill {
    height: 100%;
    background: #059669;
    border-radius: 999px;
    transition: width .4s ease;
    width: 0%;
}

/* Next step card */
.pc-ad-next-step {
    margin: 0 20px 16px 20px;
    padding: 12px 14px;
    background: #f0fdf4;
    border: 1px solid rgba(5,150,105,.15);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pc-ad-next-label {
    font-size: 10px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.pc-ad-next-title {
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.3;
}

.pc-ad-score-gain {
    font-size: 11px;
    color: #059669;
    font-weight: 500;
}

/* CTA button */
.pc-ad-complete-btn {
    display: block;
    margin: 0 20px 16px 20px;
    padding: 10px 0;
    background: #059669;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s;
    box-shadow: 0 2px 8px rgba(5,150,105,.15);
}

.pc-ad-complete-btn:hover {
    background: #047857;
    text-decoration: none;
    color: #fff;
}

/* Success state for complete profile */
.pc-ad-complete-btn.pc-complete {
    background: #f0fdf4;
    color: #059669;
    border: 1px solid rgba(5,150,105,.25);
    box-shadow: none;
    cursor: default;
}

.pc-ad-complete-btn.pc-complete:hover {
    background: #f0fdf4;
    color: #059669;
}

/* Nav links */
.pc-ad-nav {
    padding: 0 20px 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    border-top: 1px solid #f1f5f9;
    padding-top: 14px;
}

.pc-ad-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #475569;
    text-decoration: none;
    transition: all .12s;
}

.pc-ad-nav a i {
    width: 18px;
    font-size: 14px;
    text-align: center;
    color: #94a3b8;
    transition: color .12s;
}

.pc-ad-nav a:hover {
    background: #f8fafc;
    color: #0f172a;
}

.pc-ad-nav a:hover i {
    color: #059669;
}

/* ── Responsive ── */

/* Tablet: wrap slim bar */
@media (max-width: 768px) {
    .pc-reminder-bar-inner {
        flex-wrap: wrap;
        gap: 8px;
    }

    .pc-reminder-bar-mid {
        order: 3;
        flex-basis: 100%;
    }

    .pc-reminder-bar-right {
        flex: 1;
    }

    .pc-reminder-bar-progress {
        width: 80px;
    }

    .pc-reminder-bar-close {
        position: absolute;
        top: 10px;
        right: 10px;
    }
}

/* Mobile: stack vertically */
@media (max-width: 640px) {
    .pc-reminder-bar {
        margin: 0;
        border-radius: 0 0 10px 10px;
    }

    .pc-reminder-bar-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 12px 16px;
    }

    .pc-reminder-bar-left {
        width: 100%;
    }

    .pc-reminder-bar-text {
        font-size: 12.5px;
    }

    .pc-reminder-bar-mid {
        width: 100%;
    }

    .pc-reminder-bar-progress {
        width: 100%;
        flex: 1;
    }

    .pc-reminder-bar-right {
        width: 100%;
        justify-content: space-between;
    }

    .pc-reminder-bar-close {
        position: absolute;
        top: 8px;
        right: 8px;
    }

    /* Dropdown full-width on mobile */
    .pc-avatar-dropdown {
        width: calc(100vw - 24px);
        max-width: 360px;
        left: 12px !important;
        right: 12px !important;
    }
}

@media (max-width: 400px) {
    .pc-reminder-bar-next {
        font-size: 11px;
    }

    .pc-reminder-bar-cta {
        font-size: 11px;
        padding: 4px 8px;
    }

    .pc-avatar-dropdown {
        width: calc(100vw - 16px);
        left: 8px !important;
        right: 8px !important;
    }
}

/* ============================================================
   DARK MODE — body.dark_mode_theme
   ============================================================ */

/* ── Avatar Completion Badge ── */
body.dark_mode_theme .pc-avatar-badge {
    border-color: #1e1e1e;
}

/* ── Slim Profile Completion Reminder Bar ── */
body.dark_mode_theme .pc-reminder-bar {
    background: #1a2e1a;
    border-color: rgba(5,150,105,.25);
    box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
body.dark_mode_theme .pc-reminder-bar-icon {
    color: #34d399;
}
body.dark_mode_theme .pc-reminder-bar-text {
    color: #5ec45b;
}
body.dark_mode_theme .pc-reminder-bar-progress {
    background: #2a3a2a;
}
body.dark_mode_theme .pc-reminder-bar-progress-fill {
    background: #059669;
}
body.dark_mode_theme .pc-reminder-bar-pct {
    color: #34d399;
}
body.dark_mode_theme .pc-reminder-bar-next {
    color: #888;
}
body.dark_mode_theme .pc-reminder-bar-cta {
    color: #34d399;
    border-color: rgba(5,150,105,.35);
}
body.dark_mode_theme .pc-reminder-bar-cta:hover {
    background: #059669;
    color: #fff;
}
body.dark_mode_theme .pc-reminder-bar-close {
    background: #2a2a2a;
    border-color: #3a3a3a;
    color: #888;
}
body.dark_mode_theme .pc-reminder-bar-close:hover {
    background: #333;
    color: #f0f0f0;
    border-color: #555;
}

/* ── Avatar Dropdown Panel ── */
body.dark_mode_theme .pc-avatar-dropdown {
    background: #1e1e1e;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,.3), 0 20px 40px -12px rgba(0,0,0,.5);
}
body.dark_mode_theme .pc-ad-header {
    border-bottom-color: #2e2e2e;
}
body.dark_mode_theme .pc-ad-avatar {
    border-color: #3a3a3a;
}
body.dark_mode_theme .pc-ad-name {
    color: #f0f0f0;
}
body.dark_mode_theme .pc-ad-view-profile {
    color: #34d399;
}
body.dark_mode_theme .pc-ad-view-profile:hover {
    color: #5ec45b;
}
body.dark_mode_theme .pc-ad-ring-bg {
    stroke: #3a3a3a;
}
body.dark_mode_theme .pc-ad-ring-fill {
    stroke: #059669;
}
body.dark_mode_theme .pc-ad-ring-pct {
    color: #5ec45b;
}
body.dark_mode_theme .pc-ad-completion-text {
    color: #888;
}
body.dark_mode_theme .pc-ad-progress-bar {
    background: #2a2a2a;
}
body.dark_mode_theme .pc-ad-progress-fill {
    background: #059669;
}
body.dark_mode_theme .pc-ad-next-step {
    background: rgba(5,150,105,0.08);
    border-color: rgba(5,150,105,.2);
}
body.dark_mode_theme .pc-ad-next-label {
    color: #6b7280;
}
body.dark_mode_theme .pc-ad-next-title {
    color: #f0f0f0;
}
body.dark_mode_theme .pc-ad-score-gain {
    color: #34d399;
}
body.dark_mode_theme .pc-ad-complete-btn {
    background: #059669;
    color: #fff;
}
body.dark_mode_theme .pc-ad-complete-btn:hover {
    background: #047857;
}
body.dark_mode_theme .pc-ad-complete-btn.pc-complete {
    background: rgba(5,150,105,0.1);
    color: #34d399;
    border-color: rgba(5,150,105,.25);
}
body.dark_mode_theme .pc-ad-complete-btn.pc-complete:hover {
    background: rgba(5,150,105,0.1);
    color: #34d399;
}
body.dark_mode_theme .pc-ad-nav {
    border-top-color: #2e2e2e;
}
body.dark_mode_theme .pc-ad-nav a {
    color: #888;
}
body.dark_mode_theme .pc-ad-nav a i {
    color: #6b7280;
}
body.dark_mode_theme .pc-ad-nav a:hover {
    background: #2a2a2a;
    color: #f0f0f0;
}
body.dark_mode_theme .pc-ad-nav a:hover i {
    color: #34d399;
}
