/* Profile / Prestige Tab Styles */

#prestige-tab {
    padding: 20px;
    padding-bottom: 80px; /* Space for bottom nav */
    color: var(--text-color);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    background: linear-gradient(135deg, rgba(20, 20, 30, 0.8), rgba(188, 19, 254, 0.1));
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(188, 19, 254, 0.3);
    margin-bottom: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #000;
    border: 2px solid var(--neon-cyan);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    color: var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
    position: relative;
    overflow: hidden;
}

.profile-avatar::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: avatarShine 3s infinite;
}

@keyframes avatarShine {
    0% { transform: translate(-100%, -100%) rotate(45deg); }
    100% { transform: translate(100%, 100%) rotate(45deg); }
}

.profile-info h2 {
    color: var(--neon-cyan);
    margin-bottom: 5px;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.profile-rank {
    color: #888;
    font-size: 0.9rem;
    background: rgba(0, 0, 0, 0.5);
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #333;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.stat-card {
    background: rgba(26, 31, 38, 0.6);
    padding: 15px;
    border-radius: 8px;
    border-left: 3px solid var(--neon-purple);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    background: rgba(26, 31, 38, 0.8);
}

.stat-label {
    font-size: 0.8rem;
    color: #aaa;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 1.1rem;
    font-weight: bold;
    color: #fff;
}

.stat-value.highlight {
    color: var(--neon-orange);
    text-shadow: 0 0 5px rgba(255, 140, 0, 0.3);
}

/* Leaderboard */
.leaderboard-section {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #333;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 25px;
}

.leaderboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 5px;
}

.leaderboard-header h3 {
    color: var(--neon-purple);
    font-size: 1.1rem;
}

.leaderboard-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 200px;
    overflow-y: auto;
}

.leaderboard-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
}

.leaderboard-item:nth-child(1) { color: #ffd700; text-shadow: 0 0 5px rgba(255, 215, 0, 0.5); font-weight: bold; }
.leaderboard-item:nth-child(2) { color: #c0c0c0; font-weight: bold; }
.leaderboard-item:nth-child(3) { color: #cd7f32; font-weight: bold; }

/* Actions */
.profile-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.action-group {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
}

.action-group h4 {
    color: #888;
    font-size: 0.8rem;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.btn-full {
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.prestige-btn {
    background: rgba(188, 19, 254, 0.1);
    border: 1px solid var(--neon-purple);
    color: var(--neon-purple);
}

.prestige-btn:hover {
    background: rgba(188, 19, 254, 0.2);
    box-shadow: 0 0 15px rgba(188, 19, 254, 0.3);
}

.logout-btn {
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid #ff4444;
    color: #ff4444;
}

.logout-btn:hover {
    background: rgba(255, 68, 68, 0.2);
    box-shadow: 0 0 10px rgba(255, 68, 68, 0.3);
}

.ascension-btn {
    background: linear-gradient(45deg, #330000, #800000);
    border: 1px solid #ff0000;
    color: #ffaaaa;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.2);
    animation: dangerPulse 2s infinite;
}

@keyframes dangerPulse {
    0% { box-shadow: 0 0 5px rgba(255, 0, 0, 0.2); }
    50% { box-shadow: 0 0 20px rgba(255, 0, 0, 0.6); }
    100% { box-shadow: 0 0 5px rgba(255, 0, 0, 0.2); }
}
