/* ==========================================
   PROFILE HERO
========================================== */
.profile-hero {
    position: relative;
    padding: 160px 8% 60px;
    text-align: center;
    overflow: hidden;
}

.profile-hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(255,255,255,.06), transparent 70%);
    pointer-events: none;
}

.profile-hero-content {
    position: relative;
    z-index: 1;
}

/* Avatar */
.profile-avatar-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 24px;
}

.profile-avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    border: 2px solid rgba(255,255,255,.2);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    transition: transform .3s ease;
}

.profile-avatar:hover {
    transform: scale(1.08);
}

.profile-avatar-icon {
    font-size: 44px;
    line-height: 1;
}

.profile-avatar-ring {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,.1);
    animation: ringRotate 8s linear infinite;
    pointer-events: none;
}

.profile-avatar-ring::after {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #D0D0D0;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 12px rgba(255,255,255,.6);
}

@keyframes ringRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.profile-avatar-pulse {
    position: absolute;
    inset: -14px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.06);
    animation: avatarPulse 3s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes avatarPulse {
    from { transform: scale(1); opacity: .4; }
    to { transform: scale(1.08); opacity: 0; }
}

/* Name & Tagline */
.profile-name {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(28px, 5vw, 42px);
    color: #F5F5F5;
    margin-bottom: 8px;
    animation: heroGlow 3s ease-in-out infinite alternate;
}

.profile-tagline {
    color: #A0A0A0;
    font-size: 16px;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

/* Badges */
.profile-badge-row {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.profile-badge {
    padding: 8px 18px;
    border-radius: 20px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    font-size: 13px;
    color: #cfd4dc;
    letter-spacing: .5px;
    backdrop-filter: blur(8px);
    transition: all .3s ease;
}

.profile-badge:hover {
    background: rgba(255,255,255,.14);
    transform: translateY(-2px);
}

/* ==========================================
   STATS GRID
========================================== */
.profile-stats {
    padding: 20px 8% 10px;
}

.profile-stats-grid {
    grid-template-columns: repeat(4, 1fr);
}

.stat-card--pop {
    position: relative;
    overflow: hidden;
}

.stat-card--pop::before {
    content: "";
    position: absolute;
    top: 0;
    left: -130%;
    width: 60%;
    height: 100%;
    background: linear-gradient(115deg, transparent, rgba(255,255,255,.08), transparent);
    transform: skewX(-22deg);
    transition: left .7s ease;
    pointer-events: none;
}

.stat-card--pop:hover::before {
    left: 160%;
}

.stat-card-icon {
    font-size: 28px;
    margin-bottom: 12px;
}

/* ==========================================
   PROFILE CONTENT
========================================== */
.profile-content {
    padding: 10px 8% 40px;
}

.profile-actions-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.profile-section {
    margin-bottom: 48px;
}

.profile-section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 20px;
    color: #F5F5F5;
    margin-bottom: 24px;
    letter-spacing: 2px;
    position: relative;
    padding-bottom: 12px;
}

.profile-section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #F5F5F5, transparent);
}

.profile-empty-text {
    color: #606060;
    font-size: 14px;
    text-align: center;
    padding: 30px 0;
    letter-spacing: .5px;
}

/* ==========================================
   GENRE BARS
========================================== */
.genre-bars {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.genre-bar-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.genre-bar-name {
    min-width: 100px;
    color: #A0A0A0;
    font-size: 14px;
    font-weight: 600;
    text-align: right;
    letter-spacing: .5px;
}

.genre-bar-track {
    flex: 1;
    height: 10px;
    background: rgba(255,255,255,.06);
    border-radius: 10px;
    overflow: hidden;
}

.genre-bar-fill {
    height: 100%;
    border-radius: 10px;
    transition: width .8s cubic-bezier(.22,.8,.28,1);
    position: relative;
}

.genre-bar-fill::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.2) 50%, transparent 70%);
    animation: barShimmer 3s ease-in-out infinite;
}

@keyframes barShimmer {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

.genre-bar-count {
    min-width: 28px;
    color: #808080;
    font-size: 13px;
    text-align: left;
}

/* ==========================================
   RATING CHART
========================================== */
.rating-chart {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rating-bar-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.rating-bar-label {
    min-width: 80px;
    color: #808080;
    font-size: 14px;
    text-align: right;
    letter-spacing: 2px;
}

.rating-bar-track {
    flex: 1;
    height: 8px;
    background: rgba(255,255,255,.06);
    border-radius: 8px;
    overflow: hidden;
}

.rating-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #888, #D0D0D0);
    border-radius: 8px;
    transition: width .8s cubic-bezier(.22,.8,.28,1);
}

.rating-bar-count {
    min-width: 24px;
    color: #606060;
    font-size: 13px;
}

/* ==========================================
   ACTIVITY TIMELINE
========================================== */
.activity-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,.04);
    transition: background .2s ease;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-item:hover {
    background: rgba(255,255,255,.02);
}

.activity-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,.06);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.activity-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.activity-label {
    font-size: 13px;
    color: #808080;
    letter-spacing: .5px;
}

.activity-movie {
    font-size: 15px;
    color: #E9EBEF;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.activity-time {
    font-size: 12px;
    color: #505050;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ==========================================
   EDIT PROFILE
========================================== */
.profile-edit-section {
    padding: 0 8% 40px;
    animation: cardReveal .4s cubic-bezier(.22,.8,.28,1);
}

.profile-edit-card {
    background: rgba(17,17,17,.85);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 20px;
    padding: 36px;
    backdrop-filter: blur(12px);
    max-width: 500px;
}

.profile-edit-card h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 22px;
    color: #F5F5F5;
    margin-bottom: 24px;
}

.profile-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.profile-label {
    font-size: 12px;
    color: #808080;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.profile-input {
    padding: 14px 18px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 12px;
    background: rgba(255,255,255,.05);
    color: #F5F5F5;
    font-family: 'Rajdhani', sans-serif;
    font-size: 16px;
    outline: none;
    transition: border-color .3s ease;
}

.profile-input:focus {
    border-color: rgba(255,255,255,.3);
}

/* Emoji Picker */
.emoji-picker {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.emoji-option {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    cursor: pointer;
    transition: all .2s ease;
}

.emoji-option:hover {
    background: rgba(255,255,255,.12);
    transform: scale(1.1);
}

.emoji-option.selected {
    background: rgba(255,255,255,.16);
    border-color: #D0D0D0;
    transform: scale(1.15);
    box-shadow: 0 0 16px rgba(255,255,255,.15);
}

.profile-edit-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.profile-edit-actions .btn-primary,
.profile-edit-actions .btn-ghost {
    flex: 1;
}

/* ==========================================
   MOBILE RESPONSIVE
========================================== */
@media (max-width: 768px) {
    .profile-hero {
        padding: 120px 5% 40px;
    }

    .profile-avatar {
        width: 90px;
        height: 90px;
    }

    .profile-avatar-icon {
        font-size: 36px;
    }

    .profile-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .stat-card {
        padding: 24px 16px;
    }

    .stat-card h2 {
        font-size: 32px;
    }

    .profile-content {
        padding: 10px 4% 100px;
    }

    .profile-section-title {
        font-size: 17px;
    }

    .genre-bar-name {
        min-width: 70px;
        font-size: 12px;
    }

    .rating-bar-label {
        min-width: 60px;
        font-size: 12px;
    }

    .activity-item {
        padding: 12px 0;
    }

    .profile-edit-card {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .profile-badge {
        font-size: 11px;
        padding: 6px 14px;
    }

    .profile-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .stat-card h2 {
        font-size: 26px;
    }

    .profile-edit-card {
        padding: 20px;
    }
}
