/* css/public-profile.css */
#publicProfileScreen {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #09090b;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    padding-bottom: 100px;
}

/* ⚡ EFEITO DE FUNDO (INICIA INVISÍVEL) ⚡ */
.pp-fullscreen-effect {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: contain;
    z-index: 9999; 
    pointer-events: none; 
    opacity: 0; /* Só fica visível quando terminar de carregar */
}

/* ⚡ QUANDO A IMAGEM CARREGA, ESSA CLASSE É ATIVADA ⚡ */
.pp-fullscreen-effect.animate {
    animation: effectFadeOut 6s forwards; 
}

@keyframes effectFadeOut {
    0% { opacity: 1; }
    65% { opacity: 1; }
    100% { opacity: 0; visibility: hidden; }
}

.pp-gradient-overlay {
    position: fixed;
    inset: 0;
    background: linear-gradient(to bottom, rgba(9,9,11,0.3) 0%, rgba(9,9,11,0.8) 60%, #09090b 100%);
    z-index: 1;
    pointer-events: none;
}

.pp-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: transparent;
}

.pp-back-btn {
    background: rgba(0,0,0,0.5);
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    margin-right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.pp-header h2 {
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.pp-content {
    position: relative;
    padding: 0 20px 40px 20px;
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
}

.pp-avatar-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin-bottom: 16px;
}

.pp-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 4px solid #09090b;
    background: #333;
    object-fit: cover;
    position: relative;
    z-index: 2;
}

.pp-frame {
    position: absolute;
    top: -15%;
    left: -15%;
    width: 130%;
    height: 130%;
    z-index: 3;
    pointer-events: none;
    object-fit: contain;
}

.pp-name {
    color: #fff;
    font-size: 26px;
    font-weight: 900;
    margin: 0 0 4px 0;
    display: flex;
    align-items: center;
    gap: 6px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.pp-username {
    color: #aaa;
    font-size: 14px;
    margin-bottom: 16px;
}

.pp-xp-container {
    width: 100%;
    max-width: 400px;
    background: rgba(28,28,30,0.9);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 16px;
    border-radius: 16px;
    margin-bottom: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
}
.pp-xp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 10px;
}
.pp-xp-level {
    background: linear-gradient(90deg, #a855f7, #E50914);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 18px;
    font-weight: 900;
}
.pp-xp-track {
    width: 100%;
    height: 10px;
    background: #000;
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid #333;
}
.pp-xp-fill {
    height: 100%;
    background: linear-gradient(90deg, #a855f7, #E50914);
    border-radius: 5px;
    transition: width 0.5s ease;
    box-shadow: 0 0 10px rgba(229,9,20,0.5);
}

.pp-rewards-btn {
    width: 100%;
    max-width: 400px;
    background: rgba(251,191,36,0.1);
    border: 1px solid rgba(251,191,36,0.4);
    color: #fbbf24;
    padding: 14px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
    transition: 0.2s;
    backdrop-filter: blur(10px);
}
.pp-rewards-btn:active { transform: scale(0.97); background: rgba(251,191,36,0.2); }

.pp-section {
    width: 100%;
    max-width: 400px;
    margin-bottom: 24px;
    text-align: left;
}
.pp-section-title {
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.pp-carousel {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 8px;
}
.pp-carousel::-webkit-scrollbar { display: none; }

.pp-carousel-item {
    flex: none;
    width: 90px;
    cursor: pointer;
}
.pp-carousel-img {
    width: 90px;
    height: 130px;
    border-radius: 8px;
    object-fit: cover;
    background: #222;
    border: 1px solid #333;
}
.pp-carousel-text {
    color: #ccc;
    font-size: 11px;
    font-weight: 600;
    margin-top: 6px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pp-empty-text {
    color: #666;
    font-size: 13px;
    padding: 10px 0;
}

.pp-btn-edit {
    background: #fff;
    color: #000;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 15px;
    cursor: pointer;
    width: 100%;
    max-width: 400px;
    margin-top: 10px;
    margin-bottom: 40px;
    transition: 0.2s;
    box-shadow: 0 4px 15px rgba(255,255,255,0.1);
}
.pp-btn-edit:active { transform: scale(0.98); }

/* MODAL DE RECOMPENSAS (BATTLE PASS) */
#rewardsModal {
    position: fixed; inset: 0; background: rgba(0,0,0,0.95); z-index: 999999;
    display: flex; align-items: center; justify-content: center; padding: 20px;
    backdrop-filter: blur(5px); opacity: 0; transition: opacity 0.3s;
}
#rewardsModal.visible { opacity: 1; }

.rewards-box {
    background: #09090b; border-radius: 20px; width: 100%; max-width: 420px;
    border: 1px solid #27272a; display: flex; flex-direction: column;
    height: 85vh; max-height: 800px;
    transform: scale(0.9); transition: transform 0.3s;
}
#rewardsModal.visible .rewards-box { transform: scale(1); }

.rewards-header {
    padding: 20px;
    border-bottom: 1px solid #27272a;
    display: flex; justify-content: space-between; align-items: center;
    background: #121212;
    border-radius: 20px 20px 0 0;
}

.rewards-tabs {
    display: flex;
    gap: 8px;
    padding: 12px 20px;
    background: #09090b;
    border-bottom: 1px solid #27272a;
    overflow-x: auto;
}
.rewards-tab {
    background: #18181b; border: 1px solid #27272a; color: #a1a1aa;
    padding: 8px 16px; border-radius: 20px; font-size: 12px; font-weight: 800;
    white-space: nowrap; cursor: pointer;
}
.rewards-tab.active { background: #fff; color: #000; border-color: #fff; }

.rewards-list {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.reward-card {
    display: flex; align-items: center; gap: 16px;
    background: #121212; border-radius: 12px; padding: 12px;
    border: 1px solid #27272a; position: relative; overflow: hidden;
    transition: 0.2s;
}

.reward-card.locked { opacity: 0.6; filter: grayscale(1); }
.reward-card.locked .reward-level-circle { background: #27272a; color: #71717a; border-color: #3f3f46; }

.reward-card.unlocked { border-color: rgba(70, 211, 105, 0.4); background: rgba(70, 211, 105, 0.05); }
.reward-card.unlocked .reward-level-circle { background: rgba(70, 211, 105, 0.2); color: #46d369; border-color: #46d369; box-shadow: 0 0 10px rgba(70,211,105,0.3); }

.reward-level-circle {
    width: 44px; height: 44px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; font-weight: 900; border: 2px solid;
    flex-shrink: 0;
}

.reward-icon-box {
    width: 60px; height: 60px; border-radius: 8px;
    background: #1c1c1c; display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; border: 1px solid #333; overflow: hidden; padding: 4px;
}
.reward-icon-box img { max-width: 100%; max-height: 100%; object-fit: contain; }
.reward-icon-box i { font-size: 24px; }

.reward-info { flex: 1; }
.reward-title { color: #fff; font-size: 14px; font-weight: 800; margin-bottom: 2px; }
.reward-desc { color: #888; font-size: 12px; }