/* ==========================================================================
   PROFILE — User Profile Page · Green Accent #10b981
   ========================================================================== */

.prof-section {
    padding: 28px 0 60px;
}

/* ══════════════════════════════════════════════════════════════════════════
   HEADER
══════════════════════════════════════════════════════════════════════════ */
.prof-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 28px;
    background: var(--v-card-bg);
    border: 1px solid var(--v-card-border);
    border-radius: 20px;
    box-shadow: var(--v-shadow);
    flex-wrap: wrap;
}

.prof-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--v-accent-soft), #d1fae5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.6rem;
    color: var(--v-accent-dark);
    flex-shrink: 0;
}

.prof-info {
    flex: 1;
    min-width: 200px;
}
.prof-name-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}
.prof-name {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--v-text);
    margin: 0;
    letter-spacing: -0.02em;
}
.prof-level {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--v-accent-dark), var(--v-accent));
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
}
.prof-bio {
    font-size: 0.88rem;
    color: var(--v-text-secondary);
    margin: 0;
    line-height: 1.5;
}

.prof-actions {
    flex-shrink: 0;
}

/* ─── Buttons ── */
.prof-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 18px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--v-accent-dark), var(--v-accent));
    color: #fff !important;
    font-weight: 700;
    font-size: 0.8rem;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(16,185,129,0.15);
}
.prof-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(16,185,129,0.25);
}

.prof-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 18px;
    border-radius: 10px;
    background: var(--v-input-bg);
    border: 1px solid var(--v-card-border);
    color: var(--v-text-secondary);
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
    text-decoration: none;
}
.prof-btn-outline:hover {
    border-color: var(--v-accent-border);
    color: var(--v-accent-dark);
    background: var(--v-accent-soft);
}

.prof-badge-pill {
    display: inline-flex;
    align-items: center;
    padding: 5px 14px;
    border-radius: 999px;
    background: var(--v-accent-soft);
    border: 1px solid var(--v-accent-border);
    color: var(--v-accent-dark);
    font-size: 0.78rem;
    font-weight: 700;
}

/* ══════════════════════════════════════════════════════════════════════════
   STATS
══════════════════════════════════════════════════════════════════════════ */
.prof-stats {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    margin-top: 16px;
}

.prof-stat-box {
    text-align: center;
    padding: 14px 8px;
    background: var(--v-card-bg);
    border: 1px solid var(--v-card-border);
    border-radius: 14px;
    box-shadow: var(--v-shadow);
    transition: all 0.2s;
}
.prof-stat-box:hover {
    transform: translateY(-2px);
    box-shadow: var(--v-shadow-hover);
}
.prof-stat-icon {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 4px;
}
.prof-stat-val {
    display: block;
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--v-text);
    line-height: 1.1;
}
.prof-stat-lbl {
    display: block;
    font-size: 0.62rem;
    font-weight: 600;
    color: var(--v-text-muted);
    margin-top: 2px;
}

/* ══════════════════════════════════════════════════════════════════════════
   TABS
══════════════════════════════════════════════════════════════════════════ */
.prof-tabs {
    display: flex;
    gap: 4px;
    background: var(--v-nav-bg);
    border-radius: 12px;
    padding: 4px;
    margin-top: 20px;
}

.prof-tab-btn {
    padding: 9px 20px;
    border-radius: 9px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--v-nav-text);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}
.prof-tab-btn:hover {
    color: var(--v-text);
}
.prof-tab-btn.active {
    background: #ffffff;
    color: var(--v-accent-dark);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
[data-theme="dark"] .prof-tab-btn.active {
    background: #1e293b;
}

.prof-tab-content {
    display: none;
    margin-top: 16px;
}
.prof-tab-content.active {
    display: block;
}

/* ─── Badge row ── */
.prof-badge-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: var(--v-input-bg);
    border-radius: 10px;
    border: 1px solid var(--v-card-border);
}

/* ─── Post row ── */
.prof-post-row {
    padding: 10px 12px;
    background: var(--v-input-bg);
    border-radius: 10px;
    border: 1px solid var(--v-card-border);
    transition: all 0.2s;
}
.prof-post-row:hover {
    border-color: var(--v-accent-border);
}

/* ══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 991px) {
    .prof-stats { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 767px) {
    .prof-header { flex-direction: column; align-items: center; text-align: center; padding: 20px; }
    .prof-name-row { justify-content: center; }
    .prof-actions { width: 100%; justify-content: center; }
    .prof-stats { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .prof-stat-box { padding: 10px 6px; }
    .prof-tabs { overflow-x: auto; }
}

/* ══════════════════════════════════════════════════════════════════════════
   PROFILE SETTINGS PAGE (pcard-*) — /profile
══════════════════════════════════════════════════════════════════════════ */
.prof-page {
    padding: 28px 0 60px;
}

.pcard {
    background: var(--v-card-bg);
    border: 1px solid var(--v-card-border);
    border-radius: 20px;
    padding: 24px;
    box-shadow: var(--v-shadow);
    text-align: center;
}
.pcard-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--v-accent-soft), #d1fae5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 2rem;
    color: var(--v-accent-dark);
    margin: 0 auto 12px;
    cursor: pointer;
}
.pcard-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 18px;
    border-radius: 10px;
    background: var(--v-input-bg);
    border: 1px solid var(--v-card-border);
    color: var(--v-text-secondary);
    font-weight: 700;
    font-size: 0.8rem;
    font-family: inherit;
    transition: all 0.2s;
}
.pcard-btn-outline:hover {
    border-color: var(--v-accent-border);
    color: var(--v-accent-dark);
    background: var(--v-accent-soft);
}
.pcard-name {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--v-text);
    margin: 0 0 2px;
}
.pcard-email {
    font-size: 0.82rem;
    color: var(--v-text-muted);
    margin: 0 0 16px;
}

.pcard-details {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.pcard-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: var(--v-input-bg);
    border-radius: 10px;
    border: 1px solid var(--v-card-border);
}
.pcard-dlbl {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--v-text-muted);
}
.pcard-dval {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--v-text);
}

/* ─── Reminder ── */
.pcard-reminder {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 16px;
}
.pcard-reminder-warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}
.pcard-reminder-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

/* ─── Stats ── */
.pcard-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}
.pcard-stat {
    text-align: center;
    padding: 14px 8px;
    background: var(--v-card-bg);
    border: 1px solid var(--v-card-border);
    border-radius: 14px;
    box-shadow: var(--v-shadow);
    transition: all 0.2s;
}
.pcard-stat:hover {
    transform: translateY(-2px);
    box-shadow: var(--v-shadow-hover);
}
.pcard-stat-icon {
    display: block;
    font-size: 1.2rem;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    margin: 0 auto 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pcard-stat-val {
    display: block;
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--v-text);
    line-height: 1.1;
}
.pcard-stat-lbl {
    display: block;
    font-size: 0.62rem;
    font-weight: 600;
    color: var(--v-text-muted);
    margin-top: 2px;
}

/* ─── Action cards ── */
.pcard-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 8px;
    border-radius: 14px;
    background: var(--v-card-bg);
    border: 1px solid var(--v-card-border);
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: var(--v-shadow);
}
.pcard-action:hover {
    transform: translateY(-3px);
    border-color: var(--v-accent-border);
    box-shadow: var(--v-shadow-hover);
}
.pcard-action-lbl {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--v-text);
}

@media (max-width: 767px) {
    .pcard-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ══════════════════════════════════════════════════════════════════════════
   EXPLICIT LIGHT & DARK MODE OVERRIDES (PROFILE PAGE)
   ══════════════════════════════════════════════════════════════════════════ */

/* ─── Light Mode ─── */
[data-theme="light"] .prof-header,
:root:not([data-theme="dark"]) .prof-header,
[data-theme="light"] .prof-stat-box,
:root:not([data-theme="dark"]) .prof-stat-box,
[data-theme="light"] .pcard,
:root:not([data-theme="dark"]) .pcard,
[data-theme="light"] .pcard-stat,
:root:not([data-theme="dark"]) .pcard-stat,
[data-theme="light"] .pcard-action,
:root:not([data-theme="dark"]) .pcard-action {
    background: #ffffff !important;
    border: 1px solid rgba(15, 23, 42, 0.09) !important;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04) !important;
}

[data-theme="light"] .prof-name,
:root:not([data-theme="dark"]) .prof-name,
[data-theme="light"] .prof-stat-val,
:root:not([data-theme="dark"]) .prof-stat-val,
[data-theme="light"] .pcard-name,
:root:not([data-theme="dark"]) .pcard-name,
[data-theme="light"] .pcard-stat-val,
:root:not([data-theme="dark"]) .pcard-stat-val {
    color: #0f172a !important;
}

[data-theme="light"] .prof-bio,
:root:not([data-theme="dark"]) .prof-bio,
[data-theme="light"] .prof-stat-lbl,
:root:not([data-theme="dark"]) .prof-stat-lbl,
[data-theme="light"] .pcard-email,
:root:not([data-theme="dark"]) .pcard-email,
[data-theme="light"] .pcard-stat-lbl,
:root:not([data-theme="dark"]) .pcard-stat-lbl {
    color: #475569 !important;
}

[data-theme="light"] .prof-btn-outline,
:root:not([data-theme="dark"]) .prof-btn-outline,
[data-theme="light"] .pcard-btn-outline,
:root:not([data-theme="dark"]) .pcard-btn-outline,
[data-theme="light"] .prof-badge-row,
:root:not([data-theme="dark"]) .prof-badge-row,
[data-theme="light"] .prof-post-row,
:root:not([data-theme="dark"]) .prof-post-row {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    color: #334155 !important;
}

[data-theme="light"] .prof-btn-outline:hover,
:root:not([data-theme="dark"]) .prof-btn-outline:hover,
[data-theme="light"] .pcard-btn-outline:hover,
:root:not([data-theme="dark"]) .pcard-btn-outline:hover {
    background: #ecfdf5 !important;
    border-color: #10b981 !important;
    color: #059669 !important;
}

/* ─── Dark Mode ─── */
[data-theme="dark"] .prof-header,
html.dark .prof-header,
[data-theme="dark"] .prof-stat-box,
html.dark .prof-stat-box,
[data-theme="dark"] .pcard,
html.dark .pcard,
[data-theme="dark"] .pcard-stat,
html.dark .pcard-stat,
[data-theme="dark"] .pcard-action,
html.dark .pcard-action {
    background: #161d2b !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25) !important;
}

[data-theme="dark"] .prof-name,
html.dark .prof-name,
[data-theme="dark"] .prof-stat-val,
html.dark .prof-stat-val,
[data-theme="dark"] .pcard-name,
html.dark .pcard-name,
[data-theme="dark"] .pcard-stat-val,
html.dark .pcard-stat-val {
    color: #f8fafc !important;
}

[data-theme="dark"] .prof-bio,
html.dark .prof-bio,
[data-theme="dark"] .prof-stat-lbl,
html.dark .prof-stat-lbl,
[data-theme="dark"] .pcard-email,
html.dark .pcard-email,
[data-theme="dark"] .pcard-stat-lbl,
html.dark .pcard-stat-lbl {
    color: #cbd5e1 !important;
}

[data-theme="dark"] .prof-btn-outline,
html.dark .prof-btn-outline,
[data-theme="dark"] .pcard-btn-outline,
html.dark .pcard-btn-outline,
[data-theme="dark"] .prof-badge-row,
html.dark .prof-badge-row,
[data-theme="dark"] .prof-post-row,
html.dark .prof-post-row {
    background: #0f1624 !important;
    border-color: rgba(255, 255, 255, 0.14) !important;
    color: #cbd5e1 !important;
}

[data-theme="dark"] .prof-btn-outline:hover,
html.dark .prof-btn-outline:hover,
[data-theme="dark"] .pcard-btn-outline:hover,
html.dark .pcard-btn-outline:hover {
    background: #10b981 !important;
    border-color: #10b981 !important;
    color: #ffffff !important;
}

[data-theme="dark"] .prof-tabs,
html.dark .prof-tabs {
    background: #0f1624 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

[data-theme="dark"] .prof-tab-btn,
html.dark .prof-tab-btn {
    color: #cbd5e1 !important;
}

[data-theme="dark"] .prof-tab-btn.active,
html.dark .prof-tab-btn.active {
    background: #10b981 !important;
    color: #ffffff !important;
}
