/* HumanFix - Public Profile Styles */

/* ============================
   Profile Hero — dark banner for visitors
   ============================ */
.profile-hero {
    background: #0f0f10;
    color: #fff;
    padding: 72px 24px 56px;
    text-align: center;
}
.profile-hero-inner {
    max-width: 600px;
    margin: 0 auto;
}
.profile-hero-title {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 48px;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -2px;
    margin-bottom: 16px;
}
.profile-hero-line2 {
    display: inline-block;
    margin-top: 8px;
    white-space: nowrap;
}
.profile-hero-code {
    font-family: 'JetBrains Mono', monospace;
    background: rgba(234, 88, 12, 0.15);
    color: #f97316;
    padding: 2px 14px;
    border-radius: 8px;
    border-bottom: 3px solid #ea580c;
    letter-spacing: -1px;
}
.profile-hero-sub {
    font-size: 18px;
    line-height: 1.6;
    color: #9ca3af;
    margin-bottom: 28px;
}
.profile-hero-hl {
    color: #ef4444;
    font-weight: 500;
}

/* Hero value props */
.profile-hero-checks {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 28px;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
}
.profile-hero-check {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 500;
    color: #9ca3af;
    text-align: left;
}
.profile-hero-check svg {
    color: #ea580c;
    flex-shrink: 0;
}

.profile-hero-tools {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}
.profile-hero-tool {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: #d1d5db;
}
.profile-hero-tool img {
    flex-shrink: 0;
}

/* Remove top gap when hero is above card */
.profile-main-no-gap {
    padding-top: 0 !important;
}
.profile-main-no-gap .container {
    padding-top: 32px;
}

.profile-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

/* Banner */
.profile-banner {
    height: 140px;
    background: linear-gradient(135deg, #ea580c 0%, #f97316 50%, #c2410c 100%);
    position: relative;
}
.profile-banner-warm {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 50%, #d97706 100%);
}
.profile-banner-pattern {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.08) 1px, transparent 1px),
                radial-gradient(circle at 80% 30%, rgba(255,255,255,0.06) 1px, transparent 1px),
                radial-gradient(circle at 50% 80%, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 30px 30px, 40px 40px, 25px 25px;
}

/* Avatar */
.profile-avatar-lg {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -44px;
    box-shadow: 0 0 0 4px var(--bg-card);
    z-index: 2;
}
.profile-avatar-warm {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}
.profile-avatar-img {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -44px;
    box-shadow: 0 0 0 4px var(--bg-card);
    z-index: 2;
}

/* Main content area */
.profile-main {
    padding: 56px 32px 36px;
}

.profile-name {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 6px;
}

/* Tagline under name — for visitors */
.profile-tagline {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 20px;
}
.profile-tagline .logo-text {
    font-size: inherit;
    font-weight: 600;
}

/* Role badge — for own profile */
.profile-role-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 14px;
    background: var(--accent-light);
    color: var(--accent);
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
}
.profile-role-badge svg {
    width: 14px;
    height: 14px;
}
.profile-role-badge-warm {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.profile-bio {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto 24px;
}

/* Skills */
.profile-skills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 28px;
}

.skill-pill {
    display: inline-block;
    padding: 5px 16px;
    background: var(--accent-light);
    color: var(--accent);
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 600;
}

/* ============================
   Inline CTA — the hero action
   ============================ */
.profile-cta-inline {
    margin: 4px 0 28px;
}
.profile-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 400px;
    padding: 18px 32px;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    border-radius: var(--radius-lg);
    text-decoration: none;
    box-shadow: var(--shadow-accent);
    transition: all var(--transition);
    letter-spacing: -0.01em;
}
.profile-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(234, 88, 12, 0.35);
    color: #fff;
}
.profile-cta-btn svg {
    width: 20px;
    height: 20px;
    transition: transform var(--transition-fast);
}
.profile-cta-btn:hover svg {
    transform: translateX(3px);
}

/* ============================
   How it works — 3 steps
   ============================ */
.profile-steps {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 28px;
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
}
.profile-step {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}
.profile-step-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent-light);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

/* ============================
   Achievements — builder profile
   ============================ */
.profile-achievements {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 20px;
}
.achievement {
    display: flex;
    align-items: center;
    gap: 10px;
}
.achievement-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-light);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.achievement-icon svg {
    width: 20px;
    height: 20px;
}
.achievement-icon-warm {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}
.achievement-icon-success {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}
.achievement-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}
.achievement-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}
.achievement-label {
    font-size: 13px;
    color: var(--text-muted);
}

/* ============================
   Watermark — builder profile footer
   ============================ */
.profile-watermark {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}
.profile-watermark .logo-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
}

/* ============================
   Builder CTA — below card
   ============================ */
.profile-cta {
    text-align: center;
    margin-top: 24px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
}
.profile-cta p {
    margin-bottom: 12px;
    color: var(--text-secondary);
    font-size: 15px;
}

/* ============================
   Stats row — compact, inline
   ============================ */
.profile-stats-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}
.profile-stats-row strong {
    font-weight: 700;
    color: var(--text-primary);
}
.profile-stats-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--text-muted);
    flex-shrink: 0;
}

/* ============================
   Brand footer — for visitors
   ============================ */
.profile-brand-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    font-size: 13px;
    color: var(--text-muted);
}
.profile-brand-footer .logo-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}
.profile-brand-sep {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--border-color);
}

/* ============================
   Own profile — links, share, etc
   ============================ */
.profile-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 12px;
}

.profile-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-pill);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    transition: all 0.15s;
}
.profile-link:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.profile-member-since {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* Share section — labeled for clarity */
.profile-share-section {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}
.profile-share-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.profile-share-row {
    display: flex;
    justify-content: center;
    gap: 10px;
}
.profile-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-pill);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
}
.profile-share-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}
.profile-share-btn svg {
    width: 16px;
    height: 16px;
}

.profile-actions {
    margin-top: 16px;
}

/* Edit form */
.profile-edit-form {
    text-align: left;
    max-width: 440px;
    margin: 0 auto;
    padding-top: 8px;
}

.profile-edit-form .form-group {
    margin-bottom: 16px;
}

/* ============================
   How it works — expanded
   ============================ */
.profile-hiw {
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    margin-bottom: 28px;
    text-align: left;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
}
.profile-hiw-title {
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-primary);
}
.profile-hiw-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.profile-hiw-step {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.profile-hiw-step div {
    flex: 1;
}
.profile-hiw-step strong {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    display: block;
    margin-bottom: 2px;
}
.profile-hiw-step p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

/* ============================
   Compact FAQ
   ============================ */
.profile-faq {
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    margin-bottom: 28px;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}
.profile-faq-item {
    border-bottom: 1px solid var(--border-color);
}
.profile-faq-item:last-child {
    border-bottom: none;
}
.profile-faq-item summary {
    padding: 14px 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.profile-faq-item summary::after {
    content: '+';
    font-size: 18px;
    font-weight: 400;
    color: var(--text-muted);
    transition: transform 0.15s;
}
.profile-faq-item[open] summary::after {
    content: '\2212';
}
.profile-faq-item summary::-webkit-details-marker {
    display: none;
}
.profile-faq-item p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    padding-bottom: 14px;
    margin: 0;
}

@media (max-width: 768px) {
    .profile-main {
        padding: 52px 20px 28px;
    }
    .profile-links {
        flex-wrap: wrap;
    }
    .profile-share-row {
        flex-wrap: wrap;
        justify-content: center;
    }
    .profile-banner {
        height: 100px;
    }
    .profile-avatar-lg {
        width: 72px;
        height: 72px;
        font-size: 26px;
        bottom: -36px;
    }
    .profile-main {
        padding-top: 44px;
    }
    .profile-cta-btn {
        font-size: 16px;
        padding: 16px 24px;
    }
    .profile-hero {
        padding: 56px 20px 40px;
    }
    .profile-hero-title {
        font-size: 36px;
        letter-spacing: -1.5px;
    }
    .profile-hero-sub {
        font-size: 16px;
    }
    .profile-hero-checks {
        gap: 8px;
    }
    .profile-hero-check {
        font-size: 13px;
    }
    .profile-hero-tools {
        gap: 8px;
    }
    .profile-hiw {
        max-width: 100%;
    }
    .profile-faq {
        max-width: 100%;
    }
    .profile-stats-row {
        flex-wrap: wrap;
        gap: 6px;
    }
}
