/* ============================================================
   Profile Panel — Shared between Journal & Connect
   Floating card overlay (Figma 07, 09, 10)
   ============================================================ */

/* Backdrop */
.cnt-profile-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1100;
    background: rgba(0,0,0,0.15);
}
.cnt-profile-backdrop.open {
    display: block;
}

/* Panel */
.cnt-profile-panel {
    display: none;
    position: fixed;
    top: 70px;
    left: 50px;
    width: 300px;
    max-height: calc(100vh - 90px);
    overflow-y: auto;
    z-index: 1110;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    padding: 0;
    animation: cnt-profile-slidein 0.25s ease-out;
}
.cnt-profile-panel.open {
    display: block;
}
@keyframes cnt-profile-slidein {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.cnt-profile-panel-inner {
    padding: 20px 20px 16px;
}

/* Close button */
.cnt-profile-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    font-size: 22px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    z-index: 2;
}
.cnt-profile-close:hover {
    color: #333;
}

/* Header section: info + avatar */
.cnt-profile-header-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}
.cnt-profile-info-col {
    flex: 1;
    min-width: 0;
}
.cnt-profile-display-name {
    font-size: 20px;
    font-weight: 700;
    color: #00D2C2;
    margin: 0 0 6px;
    line-height: 1.2;
}
.cnt-profile-meta-item {
    font-size: 13px;
    color: #3F4342;
    margin: 3px 0;
    display: flex;
    align-items: flex-start;
    gap: 5px;
    line-height: 1.4;
}
.cnt-profile-icon {
    font-size: 13px;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
    color: #8D8D8D;
}

/* Avatar */
.cnt-profile-avatar-col {
    flex-shrink: 0;
}
.cnt-profile-avatar-wrap {
    position: relative;
    width: 80px;
    height: 80px;
}
.cnt-profile-avatar-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #eee;
}
.cnt-profile-camera {
    position: absolute;
    bottom: 0;
    right: 0;
    background: #00D2C2;
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    border: 2px solid #fff;
    cursor: pointer;
}

/* Action row — Figma 605: follow pill + counts LEFT, meeting RIGHT */
.cnt-profile-action-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.cnt-profile-action-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.cnt-profile-follow-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border: 1.5px solid #00D2C2;
    background: #00D2C2;
    color: #fff;
    text-decoration: none;
    transition: all 0.15s;
}

.cnt-profile-follow-pill:hover {
    background: #00c0b1;
}

.cnt-profile-follow-pill.following {
    background: #fff;
    color: #00D2C2;
}

.cnt-profile-follow-pill.me {
    background: #3F4342;
    border-color: #3F4342;
    color: #fff;
}

.cnt-profile-follow-counts {
    font-size: 12px;
    color: #00D2C2;
    font-weight: 500;
}

.cnt-profile-follow-counts a {
    color: #00D2C2;
    text-decoration: none;
    font-weight: 500;
}

.cnt-profile-follow-counts a:hover {
    text-decoration: underline;
}

.cnt-profile-action-right {
    flex-shrink: 0;
}

.cnt-profile-meeting-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 18px;
    border: 1.5px solid #D7D7D7;
    border-radius: 20px;
    background: #fff;
    color: #00D2C2;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: border-color 0.15s, background 0.15s;
}

.cnt-profile-meeting-pill:hover {
    border-color: #00D2C2;
    background: #f0fffe;
}

.cnt-profile-meeting-pill .sp-lucide-icon {
    color: #00D2C2;
}

/* Tabs */
.cnt-profile-tabs {
    display: flex;
    border-bottom: 2px solid #eee;
    margin-bottom: 12px;
}
.cnt-profile-tab {
    flex: none;
    background: none;
    border: none;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 400;
    color: #878787;
    cursor: pointer;
    border-bottom: 2.5px solid transparent;
    margin-bottom: -2px;
    transition: color 0.15s, border-color 0.15s;
}
.cnt-profile-tab:hover {
    color: #555;
}
.cnt-profile-tab.active {
    color: #00D2C2;
    border-bottom-color: #00D2C2;
    font-weight: 600;
}

/* Tab content */
.cnt-profile-tab-content {
    display: none;
}
.cnt-profile-tab-content.active {
    display: block;
}

/* Sections */
.cnt-profile-section {
    margin-bottom: 16px;
}
.cnt-profile-section h4 {
    font-size: 14px;
    font-weight: 700;
    color: #000;
    margin: 0 0 6px;
}
.cnt-profile-section p {
    font-size: 13px;
    color: #3F4342;
    margin: 0;
    line-height: 1.6;
}
.cnt-profile-placeholder {
    color: #00D2C2 !important;
    cursor: pointer;
    font-weight: 500;
}
.cnt-profile-empty {
    color: #bbb !important;
    font-style: italic;
}
.cnt-profile-keywords {
    color: #00D2C2 !important;
    font-weight: 500;
}

/* Reflection list */
.cnt-profile-reflection-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.cnt-profile-reflection-item {
    border-bottom: 1px solid #f0f0f0;
}
.cnt-profile-reflection-item:last-child {
    border-bottom: none;
}
.cnt-profile-reflection-link {
    display: block;
    padding: 12px 0;
    text-decoration: none;
    color: inherit;
}
.cnt-profile-reflection-link:hover {
    background: #fafafa;
}
.cnt-profile-reflection-cat {
    font-size: 11px;
    font-weight: 600;
    color: #00D2C2;
}
.cnt-profile-reflection-text {
    font-size: 13px;
    line-height: 1.5;
    color: #333;
    margin: 4px 0 6px;
    word-break: break-word;
}
.cnt-profile-reflection-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #aaa;
}

/* Bottom actions */
.cnt-profile-bottom {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}
.cnt-profile-edit-notice {
    font-size: 12px;
    color: #717171;
    text-align: center;
    margin: 0;
    font-weight: 600;
}
.cnt-profile-history-link {
    display: block;
    text-align: center;
    font-size: 13px;
    color: #00D2C2;
    text-decoration: none;
    font-weight: 600;
    padding: 6px 0;
}
.cnt-profile-logout-btn {
    display: block;
    text-align: center;
    font-size: 16px;
    font-weight: 800;
    color: #00D2C2;
    text-decoration: none;
    cursor: pointer;
    padding: 4px 0;
    transition: opacity 0.15s;
}
.cnt-profile-logout-btn:hover {
    opacity: 0.7;
}
.cnt-profile-error {
    padding: 20px;
    text-align: center;
    color: #999;
}

/* Responsive */
@media (max-width: 768px) {
    .cnt-profile-panel {
        left: 50%;
        top: 60px;
        transform: translateX(-50%);
        width: calc(100% - 32px);
        max-width: 340px;
    }
    @keyframes cnt-profile-slidein {
        from { opacity: 0; transform: translateX(-50%) translateY(10px); }
        to   { opacity: 1; transform: translateX(-50%) translateY(0); }
    }
}

/* Lucide icons in panel */
.cnt-profile-panel .sp-lucide-icon,
.cnt-profile-icon .sp-lucide-icon {
  display: inline-block;
  width: 14px;
  height: 14px;
  vertical-align: middle;
  color: #ABAFAE;
  margin-right: 3px;
}
.cnt-profile-panel .sp-lucide-icon svg,
.cnt-profile-icon .sp-lucide-icon svg {
  width: 14px;
  height: 14px;
}
.cnt-meeting-icon .sp-lucide-icon {
  color: #00D2C2;
  width: 18px;
  height: 18px;
}
.cnt-meeting-icon .sp-lucide-icon svg {
  width: 18px;
  height: 18px;
}
