/* ========================================================
   HOOKIT88 AFFILIATE HUB — PUBLIC BIO THEME (MOBILE-FIRST)
   Identitas Angler: Dark Carbon + Electric Ember Orange
   ======================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
    --bg-dark: #0B0E14;
    --bg-card: #161B22;
    --bg-card-hover: #1C232D;
    --border-color: #262D38;
    --border-glow: rgba(255, 85, 0, 0.4);
    
    --primary-orange: #FF5500;
    --primary-orange-hover: #FF6A1A;
    --primary-glow: rgba(255, 85, 0, 0.35);

    --text-white: #FFFFFF;
    --text-muted: #94A3B8;
    --text-dim: #64748B;

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --radius-full: 9999px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(255, 85, 0, 0.12) 0%, transparent 70%),
        radial-gradient(circle at 80% 80%, rgba(255, 51, 0, 0.05) 0%, transparent 50%);
    background-attachment: fixed;
    color: var(--text-white);
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 24px 16px 48px;
}

.bio-container {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 1. PROFILE HEADER */
.bio-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.avatar-wrapper {
    position: relative;
    width: 96px;
    height: 96px;
    margin-bottom: 4px;
}

.avatar-img {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 3px solid var(--primary-orange);
    box-shadow: 0 0 20px var(--primary-glow);
    background-color: var(--bg-card);
}

.verified-badge {
    position: absolute;
    bottom: 2px;
    right: 2px;
    background: var(--primary-orange);
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-dark);
    font-size: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.bio-title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 800;
    color: var(--text-white);
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.platform-tag {
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    background: rgba(255, 85, 0, 0.15);
    color: var(--primary-orange);
    border: 1px solid rgba(255, 85, 0, 0.3);
    letter-spacing: 1px;
}

.bio-description {
    color: var(--text-muted);
    font-size: 13px;
    max-width: 380px;
    line-height: 1.5;
}

/* 2. SOCIAL LINKS BAR */
.social-bar {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 4px 0 8px;
}

.social-btn {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-full);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s ease;
}

.social-btn:hover, .social-btn:active {
    background: var(--primary-orange);
    color: #fff;
    border-color: var(--primary-orange);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--primary-glow);
}

.social-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* 3. CATEGORY FILTER TABS */
.category-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 2px 8px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.category-tabs::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    white-space: nowrap;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-btn:hover {
    color: var(--text-white);
    border-color: var(--border-glow);
}

.tab-btn.active {
    background: var(--primary-orange);
    color: var(--text-white);
    border-color: var(--primary-orange);
    box-shadow: 0 2px 10px var(--primary-glow);
}

/* 4. PRODUCT LIST & CARDS */
.product-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 14px;
    display: flex;
    gap: 14px;
    align-items: center;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-orange);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.product-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-glow);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.product-card:hover::before {
    opacity: 1;
}

.product-img-wrapper {
    width: 84px;
    height: 84px;
    min-width: 84px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #0B0E14;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-img {
    transform: scale(1.05);
}

.product-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.badge-wrapper {
    display: flex;
    gap: 6px;
    margin-bottom: 2px;
}

.product-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 7px;
    border-radius: var(--radius-sm);
    background: rgba(255, 85, 0, 0.15);
    color: var(--primary-orange);
    border: 1px solid rgba(255, 85, 0, 0.3);
}

.product-title {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    color: var(--text-white);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-desc {
    color: var(--text-muted);
    font-size: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

/* CTA BUTTON */
.btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: linear-gradient(135deg, var(--primary-orange) 0%, #E64500 100%);
    color: #fff;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: var(--radius-full);
    text-decoration: none;
    margin-top: 4px;
    width: fit-content;
    box-shadow: 0 2px 8px var(--primary-glow);
    transition: all 0.2s ease;
}

.btn-cta:hover, .btn-cta:active {
    background: linear-gradient(135deg, #FF6A1A 0%, var(--primary-orange) 100%);
    transform: scale(1.03);
    box-shadow: 0 4px 14px rgba(255, 85, 0, 0.5);
}

.btn-cta svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
    transition: transform 0.2s ease;
}

.btn-cta:hover svg {
    transform: translateX(2px);
}

/* 5. FOOTER & BRAND */
.bio-footer {
    text-align: center;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-dim);
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.5px;
}

.footer-brand:hover {
    color: var(--primary-orange);
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px dashed var(--border-color);
    color: var(--text-muted);
}
