/* ===================== KUKALA — FEATURED ARTISTS & PROFILES ===================== */

/* Featured Bid Cards */
.featured-bid-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    margin-bottom: 8px;
    transition: all 0.05s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeSlideIn 0.3s ease forwards;
    animation-delay: calc(var(--slot, 0) * 40ms);
    opacity: 0;
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.featured-bid-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 61, 0, 0.2);
    transform: translateX(4px);
}

.featured-bid-card.your-bid {
    border-color: rgba(255, 61, 0, 0.4);
    background: rgba(255, 61, 0, 0.06);
}

.featured-bid-card.empty-slot {
    border-style: dashed;
    opacity: 0.5;
}

.featured-bid-card.empty-slot:hover {
    opacity: 0.8;
}

.fbc-rank {
    font-family: var(--font-display);
    font-size: 28px;
    color: rgba(255, 255, 255, 0.2);
    min-width: 36px;
    text-align: center;
}

.featured-bid-card:nth-child(-n+3) .fbc-rank {
    color: var(--gold);
}

.featured-bid-card:first-child .fbc-rank {
    color: var(--ember);
    font-size: 32px;
}

.fbc-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 18px;
    color: #fff;
    flex-shrink: 0;
}

.fbc-avatar.empty {
    background: rgba(255, 255, 255, 0.06) !important;
    color: rgba(255, 255, 255, 0.2);
    border: 1px dashed rgba(255, 255, 255, 0.15);
}

.fbc-info {
    flex: 1;
    min-width: 0;
}

.fbc-name {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--paper);
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fbc-you {
    font-size: 9px;
    background: var(--ember);
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 6px;
    vertical-align: middle;
}

.fbc-handle {
    font-family: var(--font-mono);
    font-size: 10px;
    color: rgba(255, 255, 255, 0.35);
    margin-top: 2px;
}

.fbc-bid {
    font-family: var(--font-display);
    font-size: 22px;
    color: var(--gold);
    min-width: 70px;
    text-align: right;
}

.fbc-time {
    font-family: var(--font-mono);
    font-size: 12px;
    min-width: 60px;
    text-align: center;
    font-weight: 700;
}

.fbc-outbid-btn {
    padding: 8px 16px;
    background: rgba(255, 61, 0, 0.15);
    border: 1px solid rgba(255, 61, 0, 0.3);
    color: var(--ember);
    font-family: var(--font-mono);
    font-size: 10px;
    border-radius: 8px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.05s;
    white-space: nowrap;
}

.fbc-outbid-btn:hover {
    background: var(--ember);
    color: #fff;
    transform: scale(1.05);
}

/* Mobile: stack featured cards */
@media (max-width: 768px) {
    .featured-bid-card {
        flex-wrap: wrap;
        gap: 10px;
        padding: 14px;
    }

    .fbc-bid,
    .fbc-time {
        font-size: 14px;
    }

    .fbc-outbid-btn {
        width: 100%;
        text-align: center;
        padding: 10px;
    }
}

/* ===================== USER PROFILES ===================== */
.profile-cover {
    height: 200px;
    border-radius: 0 0 20px 20px;
    position: relative;
    overflow: hidden;
}

.profile-cover-pattern {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(45deg,
            transparent,
            transparent 20px,
            rgba(255, 255, 255, 0.02) 20px,
            rgba(255, 255, 255, 0.02) 40px);
}

.profile-header {
    display: flex;
    align-items: flex-start;
    gap: 28px;
    padding: 0 32px;
    margin-top: -50px;
    position: relative;
    z-index: 1;
}

.profile-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 42px;
    color: #fff;
    border: 4px solid var(--cream);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.profile-badge {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    background: var(--ember);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    border: 2px solid var(--cream);
}

.profile-info {
    flex: 1;
    padding-top: 56px;
}

.profile-name {
    font-family: var(--font-display);
    font-size: 36px;
    letter-spacing: 2px;
    margin-bottom: 4px;
}

.profile-handle {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--mid);
    margin-bottom: 12px;
}

.profile-bio {
    font-size: 15px;
    line-height: 1.6;
    max-width: 500px;
    margin-bottom: 20px;
    opacity: 0.8;
}

.profile-stats {
    display: flex;
    gap: 28px;
}

.profile-stat {
    text-align: center;
}

.ps-value {
    font-family: var(--font-display);
    font-size: 24px;
    letter-spacing: 1px;
}

.ps-label {
    font-family: var(--font-mono);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.45;
    margin-top: 2px;
}

.profile-actions {
    display: flex;
    gap: 10px;
    padding-top: 60px;
    flex-shrink: 0;
}

.profile-follow-btn {
    padding: 12px 32px;
    background: var(--ember);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: var(--font-mono);
    font-size: 11px;
    cursor: pointer;
    letter-spacing: 1px;
    transition: all 0.05s;
}

.profile-follow-btn:hover {
    background: #ff6030;
    transform: translateY(-2px);
}

.profile-follow-btn.following {
    background: transparent;
    border: 1px solid rgba(255, 61, 0, 0.3);
    color: var(--ember);
}

.profile-share-btn {
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.6);
    border-radius: 10px;
    font-family: var(--font-mono);
    font-size: 11px;
    cursor: pointer;
    transition: all 0.05s;
}

.profile-share-btn:hover {
    border-color: var(--ember);
    color: var(--ember);
}

.profile-link-bar {
    margin: 16px 32px;
    padding: 10px 16px;
    background: rgba(126, 184, 154, 0.1);
    border: 1px solid rgba(126, 184, 154, 0.2);
    border-radius: 8px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--sage);
    align-items: center;
    gap: 12px;
}

.profile-link-copied {
    font-weight: 700;
    color: var(--sage);
}

/* Profile Tabs */
.profile-tabs {
    display: flex;
    gap: 4px;
    padding: 0 32px;
    margin: 32px 0 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.profile-tab {
    padding: 12px 24px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    color: var(--mid);
    transition: all 0.05s;
}

.profile-tab:hover {
    color: var(--ink);
}

.profile-tab.active {
    color: var(--ember);
    border-bottom-color: var(--ember);
}

.profile-tab-content {
    display: none;
    padding: 0 24px;
}

.profile-tab-content.active {
    display: block;
}

/* About grid */
.profile-about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.profile-about-card {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    padding: 20px;
}

.pac-label {
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.45;
    margin-bottom: 6px;
}

.pac-value {
    font-family: var(--font-display);
    font-size: 20px;
    letter-spacing: 1px;
}

/* Mobile profile */
@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0 16px;
    }

    .profile-info {
        padding-top: 16px;
    }

    .profile-stats {
        justify-content: center;
    }

    .profile-actions {
        padding-top: 16px;
        justify-content: center;
    }

    .profile-tabs {
        padding: 0 16px;
    }

    .profile-tab-content {
        padding: 0 16px;
    }

    .profile-link-bar {
        margin: 16px;
    }
}

/* ===================== LIGHT MODE OVERRIDES ===================== */
body.light-mode .featured-bid-card {
    background: #fff;
    border-color: #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

body.light-mode .featured-bid-card:hover {
    border-color: var(--ember);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

body.light-mode .featured-bid-card.your-bid {
    background: rgba(255, 61, 0, 0.05);
    border-color: rgba(255, 61, 0, 0.3);
}

body.light-mode .fbc-rank {
    color: #cbd5e1;
}

body.light-mode .fbc-name {
    color: #0f172a;
}

body.light-mode .fbc-handle {
    color: #64748b;
}

body.light-mode .fbc-time {
    color: #475569;
}

body.light-mode .profile-cover-pattern {
    opacity: 0.1;
}

body.light-mode .profile-name {
    color: #0f172a;
}

body.light-mode .profile-handle,
body.light-mode .profile-bio {
    color: #475569;
}

body.light-mode .ps-value {
    color: #0f172a;
}

body.light-mode .ps-label {
    color: #94a3b8;
}

body.light-mode .profile-tab {
    color: #64748b;
}

body.light-mode .profile-tab:hover {
    color: #0f172a;
}

body.light-mode .profile-tab.active {
    color: var(--ember);
}

body.light-mode .profile-about-card {
    background: #fff;
    border-color: #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

body.light-mode .pac-label {
    color: #94a3b8;
}

body.light-mode .pac-value {
    color: #0f172a;
}

body.light-mode .profile-share-btn {
    border-color: #e2e8f0;
    color: #64748b;
}

body.light-mode .profile-share-btn:hover {
    border-color: var(--ember);
    color: var(--ember);
}