/* ===== Public Profile — Clean Card Layout ===== */
.pp-page {
    background: #f3f4f6;
    min-height: 100vh;
    padding: 24px 0 60px;
}

.pp-container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Card base */
.pp-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 16px;
}

/* ── Header ── */
.pp-header {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.pp-avatar {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid #e5e7eb;
    flex-shrink: 0;
}

.pp-info {
    flex: 1;
    min-width: 0;
}

.pp-name {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 4px;
    line-height: 1.3;
}

.pp-headline {
    font-size: 14px;
    color: #4b5563;
    margin: 0 0 10px;
    line-height: 1.4;
}

.pp-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-bottom: 12px;
}

.pp-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #6b7280;
}

.pp-meta-item i {
    font-size: 14px;
    color: #9ca3af;
}

/* Tags */
.pp-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.pp-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #e5e7eb;
}

.pp-tag i {
    font-size: 13px;
}

.pp-tag.type {
    background: #eff6ff;
    color: #2563eb;
    border-color: #dbeafe;
}

.pp-tag.avail {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}

/* Buttons */
.pp-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.pp-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: all .2s;
}

.pp-btn-primary {
    background: #1d4ed8;
    color: #fff;
    border-color: #1d4ed8;
}

.pp-btn-primary:hover {
    background: #047857;
    color: #fff;
}

.pp-btn-outline {
    background: #fff;
    color: #374151;
    border-color: #d1d5db;
}

.pp-btn-outline:hover {
    background: #f9fafb;
    border-color: #9ca3af;
    color: #374151;
}

/* ── Highlights strip ── */
.pp-highlights {
    display: flex;
    flex-wrap: wrap;
    border-top: 1px solid #e5e7eb;
    margin: 20px -24px -24px;
    border-radius: 0 0 12px 12px;
    overflow: hidden;
}

.pp-hl-title {
    width: 100%;
    padding: 14px 24px 0;
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.pp-hl-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    flex: 1;
    min-width: 160px;
}

.pp-hl-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.pp-hl-icon.blue {
    background: #eff6ff;
    color: #2563eb;
}

.pp-hl-icon.green {
    background: #eff6ff;
    color: #1d4ed8;
}

.pp-hl-icon.purple {
    background: #eff6ff;
    color: #2563eb;
}

.pp-hl-icon.amber {
    background: #fffbeb;
    color: #d97706;
}

.pp-hl-text {
    font-size: 13px;
    color: #4b5563;
    line-height: 1.4;
}

.pp-hl-text strong {
    color: #111827;
    font-weight: 600;
}

/* ── Grid ── */
.pp-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 16px;
}

.pp-main {
    min-width: 0;
}

.pp-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ── Section heading ── */
.pp-stitle {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f3f4f6;
}

.pp-stitle i {
    color: #2563eb;
    font-size: 18px;
}

/* About */
.pp-about {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.7;
    margin: 0;
    white-space: pre-line;
}

/* Skills */
.pp-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pp-skill {
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #e5e7eb;
    transition: all .2s;
}

.pp-skill:hover {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}

.pp-skill .ec {
    background: #2563eb;
    color: #fff;
    padding: 1px 6px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    margin-left: 4px;
}

.pp-skill:hover .ec {
    background: #fff;
    color: #2563eb;
}

/* Timeline */
.pp-timeline {
    position: relative;
    padding-left: 20px;
}

.pp-timeline::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 4px;
    bottom: 4px;
    width: 2px;
    background: #e5e7eb;
}

.pp-tl-item {
    position: relative;
    padding-bottom: 20px;
}

.pp-tl-item:last-child {
    padding-bottom: 0;
}

.pp-tl-dot {
    position: absolute;
    left: -20px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #2563eb;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px #e5e7eb;
}

.pp-tl-title {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 2px;
}

.pp-tl-sub {
    font-size: 13px;
    color: #2563eb;
    font-weight: 600;
    margin: 0 0 2px;
}

.pp-tl-date {
    font-size: 12px;
    color: #9ca3af;
    margin: 0 0 6px;
}

.pp-tl-desc {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
    margin: 0;
}

/* Certifications */
.pp-cert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}

.pp-cert:last-child {
    border-bottom: none;
}

.pp-cert-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.pp-cert-info {
    flex: 1;
    min-width: 0;
}

.pp-cert-name {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 2px;
}

.pp-cert-iss {
    font-size: 12px;
    color: #2563eb;
    font-weight: 500;
}

.pp-cert-date {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 2px;
}

.pp-cert-link {
    font-size: 12px;
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    margin-top: 2px;
    display: inline-block;
}

.pp-cert-link:hover {
    text-decoration: underline;
}

/* Services */
.pp-service {
    padding: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: all .2s;
}

.pp-service:last-child {
    margin-bottom: 0;
}

.pp-service:hover {
    border-color: #2563eb;
    background: #fafafe;
}

.pp-svc-title {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 4px;
}

.pp-svc-desc {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

/* Portfolio */
.pp-portfolio {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.pp-proj {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    transition: all .2s;
}

.pp-proj:hover {
    border-color: #2563eb;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
}

.pp-proj-img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    background: #f3f4f6;
}

.pp-proj-ph {
    width: 100%;
    height: 120px;
    background: linear-gradient(135deg, #2563eb, #60a5fa);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 28px;
}

.pp-proj-name {
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 600;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Reviews */
.pp-review {
    display: flex;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid #f3f4f6;
}

.pp-review:last-child {
    border-bottom: none;
}

.pp-rev-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid #e5e7eb;
}

.pp-rev-body {
    flex: 1;
    min-width: 0;
}

.pp-rev-name {
    font-size: 13px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 2px;
}

.pp-rev-stars {
    color: #f59e0b;
    font-size: 12px;
    margin-bottom: 4px;
}

.pp-rev-text {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
    margin: 0;
}

/* ── Sidebar ── */
.pp-sb-title {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 14px;
}

.pp-sb-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: 13px;
}

.pp-sb-row:last-child {
    border-bottom: none;
}

.pp-sb-icon {
    color: #9ca3af;
    font-size: 16px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.pp-sb-label {
    color: #6b7280;
}

.pp-sb-value {
    color: #111827;
    font-weight: 600;
    margin-left: auto;
    text-align: right;
    max-width: 60%;
    word-break: break-word;
}

.pp-sb-value a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

.pp-sb-value a:hover {
    text-decoration: underline;
}

/* Score bar */
.pp-score-bar {
    width: 100%;
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
    margin: 8px 0;
}

.pp-score-fill {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, #2563eb, #60a5fa);
    transition: width .3s;
}

.pp-score-lbl {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
}

.pp-score-lbl strong {
    color: #2563eb;
}

/* Similar */
.pp-similar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f3f4f6;
    text-decoration: none;
    transition: all .15s;
}

.pp-similar:last-child {
    border-bottom: none;
}

.pp-similar:hover {
    background: #f9fafb;
    margin: 0 -12px;
    padding: 10px 12px;
    border-radius: 8px;
}

.pp-sim-avatar {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid #e5e7eb;
}

.pp-sim-info {
    flex: 1;
    min-width: 0;
}

.pp-sim-name {
    font-size: 13px;
    font-weight: 600;
    color: #111827;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pp-sim-role {
    font-size: 12px;
    color: #6b7280;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pp-sim-arrow {
    color: #2563eb;
    font-size: 16px;
    flex-shrink: 0;
}

/* Info grid */
.pp-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.pp-info-label {
    font-size: 11px;
    color: #9ca3af;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: .5px;
    margin-bottom: 2px;
}

.pp-info-val {
    font-size: 14px;
    color: #111827;
    font-weight: 600;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .pp-grid {
        grid-template-columns: 1fr;
    }

    .pp-sidebar {
        order: -1;
    }
}

@media (max-width: 640px) {
    .pp-page {
        padding: 12px 0 40px;
    }

    .pp-container {
        padding: 0 10px;
    }

    .pp-card {
        padding: 16px;
        margin-bottom: 12px;
        border-radius: 10px;
    }

    .pp-header {
        gap: 14px;
    }

    .pp-avatar {
        width: 56px;
        height: 56px;
        border-radius: 10px;
    }

    .pp-name {
        font-size: 18px;
    }

    .pp-headline {
        font-size: 13px;
    }

    .pp-meta {
        gap: 6px 12px;
    }

    .pp-meta-item {
        font-size: 12px;
    }

    .pp-tags {
        gap: 6px;
    }

    .pp-tag {
        font-size: 11px;
        padding: 4px 10px;
    }

    .pp-actions {
        gap: 8px;
    }

    .pp-btn {
        padding: 8px 16px;
        font-size: 13px;
        flex: 1;
        justify-content: center;
    }

    .pp-hl-item {
        padding: 10px 16px;
        min-width: 120px;
    }

    .pp-hl-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .pp-hl-text {
        font-size: 12px;
    }

    .pp-stitle {
        font-size: 15px;
    }

    .pp-portfolio {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .pp-proj-img,
    .pp-proj-ph {
        height: 100px;
    }

    .pp-info-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .pp-hl-title {
        padding: 12px 16px 0;
        font-size: 14px;
    }

    .pp-highlights {
        margin: 16px -16px -16px;
    }
}

@media (max-width: 400px) {
    .pp-avatar {
        width: 48px;
        height: 48px;
    }

    .pp-name {
        font-size: 16px;
    }

    .pp-portfolio {
        grid-template-columns: 1fr;
    }
}

