/**
 * Profile Page Styles - Linear/Vercel Inspired
 *
 * Note: Header and profile dropdown styles are in components/header.css
 * Base styles are in base/index.css
 */

/* Body styles for profile page */
/* Scoped to profile page — prevents bleed across SPA navigation */
body:has(.profile-container) {
    font-family: var(--font-family-base);
    background: var(--bg-base);
    color: var(--text-primary);
    min-height: 100vh;
}

/* Main Content */
.profile-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
    flex: 1;
}

/* ============================================
   Circular XP Visualization
   ============================================ */
.xp-circle-section {
    margin-bottom: 4rem;
}

.xp-circle-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem 0;
    cursor: pointer;
    transition: transform var(--duration-normal) var(--ease-out);
}

.xp-circle-container:hover {
    transform: scale(1.02);
}

.xp-circle-wrapper {
    position: relative;
    width: 360px;
    height: 360px;
}

/* Background icon behind the XP circle */
.xp-circle-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233b82f6' stroke-width='1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 15l-2 5l9-13h-6l2-5l-9 13h6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.08;
    z-index: 0;
    pointer-events: none;
}

.xp-circle {
    position: relative;
    width: 100%;
    height: 100%;
}

.xp-circle svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.circle-bg {
    fill: none;
    stroke: rgba(var(--accent-rgb), 0.15);
    stroke-width: 6;
}

.circle-progress {
    fill: none;
    stroke: var(--accent);
    stroke-width: 6;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s ease;
}

.xp-circle-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
}

.xp-circle-level {
    font-size: 4rem;
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1;
    min-height: 4rem;
}

.xp-circle-title {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 300;
    min-height: 1.5rem;
}

.xp-circle-xp {
    font-size: 1rem;
    color: var(--text-tertiary);
    font-weight: 300;
    min-height: 1.25rem;
}

.xp-circle-hint {
    text-align: center;
    color: var(--text-tertiary);
    font-size: 0.875rem;
    margin-top: 1rem;
    opacity: 0.6;
}

/* Stats Row */
.xp-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-subtle);
}

.xp-stat {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    transition: var(--transition-normal);
}

.xp-stat:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border-medium);
}

.xp-stat-value {
    font-size: 2.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    min-height: 3rem;
    line-height: 1.2;
}

.xp-stat-label {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 300;
}

/* ============================================
   Profile Sections
   ============================================ */
.profile-section {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-tertiary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title svg {
    width: 18px;
    height: 18px;
}

.section-content {
    background: transparent;
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    overflow: hidden;
}

/* Belt Display */
.belt-display-row {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    border-bottom: 1px solid var(--border-subtle);
}

.belt-visual {
    width: 140px;
    height: 28px;
    border-radius: 6px;
    position: relative;
    flex-shrink: 0;
}

.belt-visual.white { background: linear-gradient(180deg, #f5f5f5, #e0e0e0); }
.belt-visual.blue { background: linear-gradient(180deg, #2563eb, #1d4ed8); }
.belt-visual.purple { background: linear-gradient(180deg, #9333ea, #7c3aed); }
.belt-visual.brown { background: linear-gradient(180deg, #92400e, #78350f); }
.belt-visual.black { background: linear-gradient(180deg, #1f2937, #111827); }

.belt-stripes {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 4px;
}

.stripe {
    width: 5px;
    height: 20px;
    background: white;
    border-radius: 2px;
}

.belt-info {
    flex: 1;
}

.belt-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    font-weight: 500;
    min-height: 1.5rem;
}

.belt-info p {
    color: var(--text-tertiary);
    font-size: 0.875rem;
    min-height: 1.25rem;
}

/* Settings Row */
.setting-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-subtle);
    transition: background var(--duration-normal) var(--ease-out);
}

.setting-row:last-child {
    border-bottom: none;
}

.setting-row:hover {
    background: rgba(255, 255, 255, 0.02);
}

.setting-info {
    flex: 1;
}

.setting-label {
    font-size: 0.9375rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.setting-description {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
}

select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: white;
    padding: 0.625rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    outline: none;
    transition: var(--transition-colors);
    cursor: pointer;
    min-width: 180px;
}

select:focus {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 2px rgba(var(--accent-rgb), 0.2);
}

select option {
    background: #1a1a1a;
    color: white;
}

/* Achievements */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1.5rem;
    padding: 2rem;
}

.achievement {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition-normal);
}

.achievement.locked {
    opacity: 0.4;
}

.achievement:not(.locked):hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border-medium);
    transform: translateY(-2px);
}

.achievement-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.achievement-name {
    font-size: 0.9375rem;
    font-weight: var(--font-weight-medium);
    margin-bottom: 0.375rem;
    color: var(--text-primary);
}

.achievement-desc {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
}

/* Mobile Performance */
.no-animations,
.no-animations * {
    animation: none !important;
    transition: none !important;
}

/* Responsive Design */
