/* ============================================================
   VOODOOPLAY - USER & PROFILE STYLESHEET
   Theme: Midnight Navy / Modern Gaming UI
   ============================================================ */

/* ── Sliding User Panel ───────────────────────────────────── */
.user-panel-overlay {
    position: fixed;
    inset: 0;
    background: rgba(7, 13, 29, 0.8);
    backdrop-filter: blur(8px);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.user-panel-overlay.show {
    opacity: 1;
    visibility: visible;
}

.user-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 360px;
    height: 100vh;
    background: var(--bg-surface);
    border-left: 1px solid var(--border-card);
    z-index: 2000;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0.35s;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.7);
}
.user-panel.show {
    transform: translateX(0);
    visibility: visible;
}
@media (max-width: 480px) {
    .user-panel {
        max-width: 88vw;
    }
}

.up-close {
    position: absolute;
    top: 18px;
    right: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all 0.2s ease;
}
.up-close:hover {
    color: #fff;
    background: var(--bg-elevated);
    border-color: var(--border-light);
}

.up-header {
    padding: 3rem 1.5rem 1.5rem;
    text-align: center;
    border-bottom: 1px solid var(--border-subtle);
}
.up-avatar-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 0.85rem;
}
.up-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--color-cyan);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.3);
}
.default-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    border: 2px solid var(--border-card);
}
.default-avatar-large svg {
    width: 36px;
    height: 36px;
}

.up-name {
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 2px;
}
.up-email {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.up-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 0.5rem;
}
.up-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--color-primary);
    color: #fff;
    padding: 0.65rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    text-decoration: none;
    border: none;
    font-size: 0.92rem;
    cursor: pointer;
    flex: 1;
    box-shadow: 0 4px 15px rgba(0, 112, 243, 0.35);
    transition: all 0.2s ease;
}
.up-btn-primary:hover {
    background: var(--color-primary-hover);
    transform: translateY(-1px);
}
.login-btn-google {
    background: #FFFFFF !important;
    color: #0F172A !important;
    margin-bottom: 0.75rem;
    width: 100%;
}
.login-btn-google:hover {
    background: #F1F5F9 !important;
}
.login-btn-meta {
    background: #1877F2 !important;
    color: #FFFFFF !important;
    width: 100%;
}
.login-btn-meta:hover {
    background: #0E65D9 !important;
}
.up-btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-card);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-card);
    cursor: pointer;
    transition: all 0.2s ease;
}
.up-btn-icon:hover {
    background: var(--bg-elevated);
    color: #fff;
    border-color: var(--border-light);
}

.up-progress {
    padding: 1.25rem 1.5rem;
    background: var(--bg-card);
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    border-bottom: 1px solid var(--border-subtle);
}
.up-progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
}
.up-progress-text a {
    color: var(--color-cyan);
    font-weight: 700;
}
.up-progress-bar {
    height: 6px;
    background: var(--bg-surface);
    border-radius: 3px;
    overflow: hidden;
}
.up-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #0070F3, #00E5FF);
    width: 60%;
    border-radius: 3px;
}

.up-menu {
    display: flex;
    flex-direction: column;
    padding: 0.75rem 0;
}
.up-menu a, .up-menu button {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0.85rem 1.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
}
.up-menu a:hover, .up-menu button:hover {
    background: var(--bg-card);
    color: #fff;
}
.up-menu svg {
    width: 18px;
    height: 18px;
    stroke: var(--text-muted);
    fill: none;
    stroke-width: 2;
    transition: stroke 0.2s ease;
}
.up-menu a:hover svg, .up-menu button:hover svg {
    stroke: var(--color-cyan);
}
.up-divider {
    height: 1px;
    background: var(--border-subtle);
}

.up-bottom {
    padding: 1.5rem;
    background: var(--bg-card);
    margin-top: auto;
    border-top: 1px solid var(--border-subtle);
}
.up-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.up-links a {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 500;
}
.up-links a:hover {
    color: var(--text-secondary);
}

/* ── Profile Page ────────────────────────────────────────── */
.profile-wrap {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}
.profile-banner {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-xl);
    padding: 2rem 2.5rem;
    box-shadow: var(--shadow-card);
}
.profile-header {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 2rem;
}
.profile-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    border: 3px solid var(--color-cyan);
    background: var(--bg-surface);
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.35);
}
.profile-info {
    flex: 1;
    min-width: 0;
}
.profile-name {
    font-size: 1.85rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.35rem;
    letter-spacing: -0.5px;
}
.profile-location {
    font-size: 0.92rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}
.profile-location svg {
    color: var(--color-cyan);
}
.profile-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-shrink: 0;
}
.profile-btn {
    background: var(--bg-surface);
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
    padding: 0.65rem 1.35rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}
.profile-btn:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 112, 243, 0.35);
}

.profile-content {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    align-items: flex-start;
}
@media (max-width: 900px) {
    .profile-content { grid-template-columns: 1fr; }
}

.profile-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Stat Cards */
.stat-box {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 1px solid var(--border-card);
    box-shadow: var(--shadow-card);
}
.stat-box h3 {
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1.25rem;
    letter-spacing: -0.2px;
}
.stat-item {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 1.25rem;
}
.stat-item:last-child { margin-bottom: 0; }
.stat-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    color: var(--color-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.stat-details {
    display: flex;
    flex-direction: column;
}
.stat-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
}
.stat-value {
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
}
.stat-sub {
    font-size: 0.78rem;
    color: var(--color-gold);
    font-weight: 600;
    margin-top: 2px;
}

/* Liked Games on Profile */
.profile-main {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    border: 1px solid var(--border-card);
    box-shadow: var(--shadow-card);
}
.profile-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.75rem;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 1rem;
}
.profile-tab {
    background: none;
    border: 1px solid var(--border-card);
    color: var(--text-secondary);
    padding: 0.55rem 1.4rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}
.profile-tab.active {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
    box-shadow: 0 4px 15px rgba(0, 112, 243, 0.35);
}

.liked-games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.25rem;
}
.liked-game-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    position: relative;
    transition: all 0.25s ease;
}
.liked-game-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}
.liked-game-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}
.liked-game-info {
    padding: 0.85rem;
}
.liked-game-title {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.liked-card-del-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(7, 13, 29, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--color-pink);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.liked-card-del-btn:hover {
    background: rgba(236, 72, 153, 0.2);
    transform: scale(1.1);
}

/* Activity last played */
.activity-card-link {
    display: block;
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-card);
    transition: all 0.2s ease;
}
.activity-card-link:hover {
    border-color: var(--color-cyan);
    transform: scale(1.02);
}
.activity-card-img {
    width: 100%;
    height: 130px;
    object-fit: cover;
}
.activity-badge-overlay {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(7, 13, 29, 0.85);
    backdrop-filter: blur(6px);
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(0, 229, 255, 0.3);
}

/* ── Settings Page ───────────────────────────────────────── */
.settings-wrap {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}
.settings-header {
    margin-bottom: 2rem;
}
.settings-header h1 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}
.settings-section {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid var(--border-card);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-card);
}
.settings-section h2 {
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.5rem;
}
.settings-subtext {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-bottom: 1.75rem;
}
.settings-btn-danger {
    background: var(--color-red);
    color: #fff;
    border: none;
    padding: 0.8rem 1.75rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.92rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.35);
}
.settings-btn-danger:hover {
    background: #DC2626;
    transform: translateY(-2px);
}
.settings-btn-outline {
    background: transparent;
    border: 1px solid var(--border-light);
    color: #fff;
    padding: 0.8rem 1.75rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.92rem;
    cursor: pointer;
    transition: all 0.2s ease;
}
.settings-btn-outline:hover {
    background: var(--bg-elevated);
    border-color: var(--color-primary);
}

.profile-auth-prompt {
    padding: 5rem 2rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
}
