/* ========================================
   Steam Profile Query - Cyberpunk Style
   ======================================== */

/* 设备检测提示 */
.device-notice {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.device-notice.desktop {
    background: linear-gradient(90deg, rgba(0, 212, 255, 0.9), rgba(0, 255, 136, 0.9));
    color: #000;
}

.device-notice.mobile {
    background: linear-gradient(90deg, rgba(255, 170, 0, 0.95), rgba(255, 0, 255, 0.9));
    color: #fff;
}

.device-notice i {
    font-size: 1.1rem;
}

:root {
    --device-notice-height: 44px;
    --primary: #555555;
    --primary-dark: #333333;
    --secondary: #777777;
    --accent: #888888;
    --bg-dark: #ffffff;
    --bg-card: rgba(245, 245, 245, 0.95);
    --bg-glass: rgba(85, 85, 85, 0.05);
    --text-primary: #333333;
    --text-secondary: #666666;
    --text-muted: #999999;
    --border: rgba(85, 85, 85, 0.3);
    --glow: rgba(85, 85, 85, 0.3);
    --success: #4caf50;
    --warning: #ff9800;
    --error: #f44336;
    --offline: #999999;
    --online: #4caf50;
    --busy: #f44336;
    --away: #ff9800;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Rajdhani', 'Microsoft YaHei', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ========================================
   Loading Screen
   ======================================== */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    overflow: hidden;
}

.loading-content {
    text-align: center;
    z-index: 2;
}

.steam-logo {
    font-size: 5rem;
    color: var(--primary);
    margin-bottom: 2rem;
    animation: pulse 2s ease-in-out infinite;
    text-shadow: 0 0 30px var(--glow);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.loading-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.5rem;
    margin-bottom: 2rem;
}

.loading-text .letter {
    display: inline-block;
    animation: letterBounce 1s ease-in-out infinite;
    color: var(--primary);
    text-shadow: 0 0 10px var(--glow);
}

.loading-text .letter:nth-child(1) { animation-delay: 0s; }
.loading-text .letter:nth-child(2) { animation-delay: 0.1s; }
.loading-text .letter:nth-child(3) { animation-delay: 0.2s; }
.loading-text .letter:nth-child(4) { animation-delay: 0.3s; }
.loading-text .letter:nth-child(5) { animation-delay: 0.4s; }
.loading-text .letter:nth-child(6) { animation-delay: 0.5s; }
.loading-text .letter:nth-child(7) { animation-delay: 0.6s; }

@keyframes letterBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.loading-bar {
    width: 300px;
    height: 4px;
    background: rgba(85, 85, 85, 0.15);
    border: 1px solid rgba(85, 85, 85, 0.3);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto 1rem;
    position: relative;
    box-shadow: 0 0 15px rgba(85, 85, 85, 0.2);
}

.loading-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    width: 0%;
    animation: loadingProgress 2s ease-out forwards;
    box-shadow: 0 0 20px var(--glow);
}

@keyframes loadingProgress {
    0% { width: 0%; }
    100% { width: 100%; }
}

.loading-status {
    color: var(--text-secondary);
    font-size: 0.9rem;
    animation: statusBlink 1.5s ease-in-out infinite;
}

@keyframes statusBlink {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--primary);
    border-radius: 50%;
    animation: particleFloat 10s linear infinite;
    opacity: 0.5;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% { opacity: 0.5; }
    90% { opacity: 0.5; }
    100% {
        transform: translateY(-100px) translateX(100px);
        opacity: 0;
    }
}

/* ========================================
   Background Animation
   ======================================== */
.app {
    position: relative;
    min-height: 100vh;
}

.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: perspective(500px) rotateX(60deg) translateY(0); }
    100% { transform: perspective(500px) rotateX(60deg) translateY(50px); }
}

.bg-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
    animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.8; }
}

.bg-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.line {
    position: absolute;
    width: 1px;
    height: 100%;
    background: linear-gradient(180deg, transparent, var(--primary), transparent);
    opacity: 0.1;
    animation: lineMove 8s linear infinite;
}

.line:nth-child(1) { left: 10%; animation-delay: 0s; }
.line:nth-child(2) { left: 30%; animation-delay: 2s; }
.line:nth-child(3) { left: 50%; animation-delay: 4s; }
.line:nth-child(4) { left: 70%; animation-delay: 6s; }
.line:nth-child(5) { left: 90%; animation-delay: 1s; }

@keyframes lineMove {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

/* ========================================
   Navigation
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 3rem;
    background: linear-gradient(180deg, rgba(10, 10, 15, 0.9) 0%, transparent 100%);
    z-index: 100;
    backdrop-filter: blur(10px);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.nav-brand i {
    font-size: 2rem;
    color: var(--primary);
    text-shadow: 0 0 20px var(--glow);
}

.nav-brand .highlight {
    color: var(--primary);
    text-shadow: 0 0 10px var(--glow);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.3s;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
    box-shadow: 0 0 10px var(--glow);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* ========================================
   Main Content
   ======================================== */
.main {
    position: relative;
    z-index: 1;
    padding-top: 100px;
    min-height: 100vh;
}

/* ========================================
   Search Page
   ======================================== */
.search-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 100px);
    padding: 2rem;
}

.search-container {
    text-align: center;
    max-width: 600px;
    width: 100%;
}

.title-section {
    margin-bottom: 3rem;
}

.glitch {
    font-family: 'Orbitron', sans-serif;
    font-size: 3.5rem;
    font-weight: 900;
    position: relative;
    color: var(--text-primary);
    text-shadow: 0 0 20px var(--glow);
    animation: glitch 3s infinite;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    color: var(--secondary);
    animation: glitch-1 2s infinite linear alternate-reverse;
    clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
}

.glitch::after {
    color: var(--primary);
    animation: glitch-2 3s infinite linear alternate-reverse;
    clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
}

@keyframes glitch {
    0%, 90%, 100% { transform: translate(0); }
    92% { transform: translate(-2px, 2px); }
    94% { transform: translate(2px, -2px); }
    96% { transform: translate(-2px, -2px); }
    98% { transform: translate(2px, 2px); }
}

@keyframes glitch-1 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-3px, 0); }
    40% { transform: translate(3px, 0); }
    60% { transform: translate(-3px, 0); }
    80% { transform: translate(3px, 0); }
}

@keyframes glitch-2 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(3px, 0); }
    40% { transform: translate(-3px, 0); }
    60% { transform: translate(3px, 0); }
    80% { transform: translate(-3px, 0); }
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-top: 1rem;
}

/* Search Card */
.search-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 3rem;
    backdrop-filter: blur(20px);
    margin-bottom: 2rem;
}

.card-glow {
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(45deg, var(--primary), var(--secondary), var(--primary));
    border-radius: 20px;
    opacity: 0;
    z-index: -1;
    filter: blur(20px);
    transition: opacity 0.3s;
}

.search-card:hover .card-glow {
    opacity: 0.3;
}

.search-input-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.input-icon {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    font-size: 1.2rem;
    z-index: 2;
}

.search-input {
    width: 100%;
    padding: 1.25rem 1.5rem 1.25rem 3.5rem;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    outline: none;
    transition: all 0.3s;
}

.search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.input-border {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    transition: width 0.3s;
}

.search-input:focus ~ .input-border {
    width: 100%;
}

/* Search Button */
.search-btn {
    position: relative;
    width: 100%;
    padding: 1.25rem 2rem;
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
    border-radius: 12px;
    color: var(--bg-dark);
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.4);
}

.search-btn:active {
    transform: translateY(0);
}

.btn-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.search-btn:hover .btn-glow {
    left: 100%;
}

.btn-icon {
    transition: transform 0.3s;
}

.search-btn:hover .btn-icon {
    transform: translateX(5px);
}

/* Error Message */
.error-message {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 51, 102, 0.1);
    border: 1px solid var(--error);
    border-radius: 10px;
    color: var(--error);
    margin-bottom: 2rem;
    animation: shake 0.5s;
}

.error-message.show {
    display: flex;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

/* Features */
.features {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: var(--text-secondary);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    padding: 1.5rem;
    border-radius: 15px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
}

.feature-item:hover {
    color: var(--accent);
    transform: translateY(-6px) scale(1.05);
    background: rgba(0, 255, 136, 0.1);
    border-color: var(--accent);
    box-shadow: 0 12px 30px rgba(0, 255, 136, 0.25);
}

.feature-item i {
    font-size: 2rem;
    color: var(--primary);
    transition: all 0.3s ease;
}

.feature-item:hover i {
    transform: scale(1.2) rotate(10deg);
    color: var(--accent);
    text-shadow: 0 0 20px var(--accent);
}

.feature-item span {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.feature-item:hover span {
    color: var(--accent);
    text-shadow: 0 0 10px var(--accent);
}

/* ========================================
   Querying Page
   ======================================== */
.querying-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 100px);
    padding: 2rem;
}

.querying-container {
    text-align: center;
}

.cyber-spinner {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 3rem;
}

.spinner-ring {
    position: absolute;
    border: 2px solid transparent;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 2s linear infinite;
}

.spinner-ring:nth-child(1) {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    animation-duration: 2s;
}

.spinner-ring:nth-child(2) {
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border-top-color: var(--secondary);
    animation-duration: 1.5s;
    animation-direction: reverse;
}

.spinner-ring:nth-child(3) {
    top: 30px;
    left: 30px;
    right: 30px;
    bottom: 30px;
    border-top-color: var(--accent);
    animation-duration: 1s;
}

.spinner-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5rem;
    color: var(--primary);
    text-shadow: 0 0 20px var(--glow);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.querying-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.typing-text {
    color: var(--primary);
}

.cursor {
    color: var(--primary);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.querying-steps {
    display: flex;
    justify-content: center;
    gap: 3rem;
}

.step {
    text-align: center;
    opacity: 0.3;
    transition: all 0.3s;
}

.step.active {
    opacity: 1;
}

.step.completed {
    opacity: 0.6;
}

.step-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px var(--glow);
}

.step-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ========================================
   Result Page
   ======================================== */
.result-page {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-secondary);
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 2rem;
}

.back-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

/* Profile Hero */
.profile-hero {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 3rem;
    margin-bottom: 2rem;
    overflow: hidden;
}

.profile-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(255, 0, 255, 0.1) 100%);
}

.profile-content {
    position: relative;
    display: flex;
    gap: 2rem;
    align-items: flex-end;
}

.avatar-section {
    position: relative;
}

.avatar-frame {
    position: relative;
    width: 150px;
    height: 150px;
    border-radius: 20px;
    overflow: hidden;
}

.avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-glow {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    border-radius: 25px;
    z-index: -1;
    opacity: 0.5;
    filter: blur(10px);
}

.status-ring {
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border: 3px solid var(--offline);
    border-radius: 23px;
}

.status-ring.online { border-color: var(--online); box-shadow: 0 0 20px var(--online); }
.status-ring.away { border-color: var(--away); box-shadow: 0 0 20px var(--away); }
.status-ring.busy { border-color: var(--busy); box-shadow: 0 0 20px var(--busy); }
.status-ring.offline { border-color: var(--offline); }

.status-badge {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--offline);
}

.status-dot.online { background: var(--online); box-shadow: 0 0 10px var(--online); }
.status-dot.away { background: var(--away); box-shadow: 0 0 10px var(--away); }
.status-dot.busy { background: var(--busy); box-shadow: 0 0 10px var(--busy); }

.profile-info {
    flex: 1;
    padding-bottom: 1rem;
}

.profile-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    text-shadow: 0 0 20px var(--glow);
}

.profile-id {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.id-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 0.1rem;
}

.id-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    color: var(--primary);
    background: rgba(0, 212, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.copy-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 5px;
    transition: all 0.3s;
}

.copy-btn:hover {
    color: var(--primary);
    background: rgba(0, 212, 255, 0.1);
}

.current-game {
    color: var(--accent);
    font-weight: 600;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}

.stat-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.3rem;
    color: var(--primary);
}

.stat-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.stat-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.stat-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    width: 0%;
    transition: width 1s ease-out;
}

/* Games Section */
.games-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-header h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-header h3 i {
    color: var(--primary);
}

.sort-controls {
    display: flex;
    gap: 0.75rem;
}

.sort-btn {
    padding: 0.6rem 1.2rem;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-secondary);
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sort-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.sort-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--bg-dark);
}

.games-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 500px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.games-list::-webkit-scrollbar {
    width: 6px;
}

.games-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.games-list::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

.game-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-glass);
    border: 1px solid transparent;
    border-radius: 12px;
    transition: all 0.3s;
}

.game-item:hover {
    border-color: var(--border);
    background: rgba(0, 212, 255, 0.05);
    transform: translateX(5px);
}

.game-icon {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

.game-info {
    flex: 1;
    min-width: 0;
}

.game-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-playtime {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.game-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin-top: 0.5rem;
    overflow: hidden;
}

.game-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
    transition: width 0.5s ease-out;
}

.game-comment {
    font-size: 0.85rem;
    color: var(--accent);
    margin-top: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: rgba(0, 255, 136, 0.1);
    border-left: 3px solid var(--accent);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    display: block;
}

.game-comment i {
    margin-right: 0.5rem;
    font-size: 0.75rem;
    color: var(--accent);
}

/* ========================================
   Comments Section
   ======================================== */
.comments-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.comment-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: all 0.3s;
}

.comment-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.15);
}

.comment-card i {
    font-size: 1.5rem;
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.comment-card span {
    color: var(--text-secondary);
    line-height: 1.6;
}

.comment-card.playtime-comment {
    border-left: 4px solid var(--accent);
}

.comment-card.style-comment {
    border-left: 4px solid var(--primary);
}

.comment-card.style-comment i {
    color: var(--primary);
}

.comment-card.account-comment {
    border-left: 4px solid var(--secondary);
}

/* ========================================
   About Page
   ======================================== */

.about-page {
    min-height: 100vh;
    padding: 4rem 1rem;
    animation: fadeInUp 0.8s ease-out;
}

.about-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.about-header {
    text-align: center;
    margin-bottom: 4rem;
    animation: fadeIn 1s ease-out;
}

.about-header h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.about-header .subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-top: 1rem;
}

.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.about-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.about-card:nth-child(1) {
    animation-delay: 0.1s;
}

.about-card:nth-child(2) {
    animation-delay: 0.2s;
}

.about-card:nth-child(3) {
    animation-delay: 0.3s;
}

.about-card:nth-child(4) {
    animation-delay: 0.4s;
}

.about-card:nth-child(5) {
    animation-delay: 0.5s;
}

.about-card:nth-child(6) {
    animation-delay: 0.6s;
}

.about-card:hover {
    border-color: var(--primary);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.25);
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--secondary));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.about-card:hover::before {
    transform: scaleX(1);
}

.about-card.hero-card {
    grid-column: 1 / -1;
    text-align: center;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(0, 255, 136, 0.1));
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.card-header {
    padding: 2rem;
    background: rgba(0, 212, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 1.25rem;
    border-bottom: 1px solid var(--border);
}

.about-card.hero-card .card-header {
    justify-content: center;
    border-bottom: none;
    background: transparent;
}

.card-header i {
    font-size: 2rem;
    color: var(--primary);
    transition: transform 0.3s ease;
}

.about-card:hover .card-header i {
    transform: scale(1.1) rotate(5deg);
}

.card-header h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-body {
    padding: 2rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.about-card.hero-card .card-body {
    padding: 3rem;
}

.about-card.hero-card .card-body p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.card-body p {
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
}

.card-body p:last-child {
    margin-bottom: 0;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    padding-left: 1rem;
}

.feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 20px;
    background: var(--accent);
}

.feature-list li i {
    color: var(--accent);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.feature-list li span {
    transition: color 0.3s ease;
}

.feature-list li:hover span {
    color: var(--text-primary);
}

.api-list {
    list-style: none;
    padding: 0;
}

.api-list li {
    padding: 0.75rem 0;
    font-family: monospace;
    color: var(--primary);
    background: rgba(0, 212, 255, 0.05);
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.api-list li:hover {
    background: rgba(0, 212, 255, 0.15);
    transform: translateX(5px);
}

.api-list li code {
    background: rgba(0, 212, 255, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 500;
}

.note {
    font-style: italic;
    color: var(--text-muted);
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(255, 170, 0, 0.1);
    border-left: 4px solid var(--warning);
    border-radius: 0 6px 6px 0;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.tech-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.tech-item:hover {
    background: rgba(0, 212, 255, 0.1);
    transform: translateY(-5px) scale(1.05);
    border-color: var(--primary);
    box-shadow: 0 10px 20px rgba(0, 212, 255, 0.2);
}

.tech-item i {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    color: var(--primary);
    transition: transform 0.3s ease;
}

.tech-item:hover i {
    transform: scale(1.1) rotate(5deg);
}

.tech-item span {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 15px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--warning);
    background: rgba(255, 170, 0, 0.05);
    transform: translateY(-2px);
}

.faq-item h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.faq-item h4 i {
    color: var(--warning);
    font-size: 1.2rem;
}

.faq-item p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.thanks-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.thanks-list li {
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    color: var(--text-secondary);
    background: rgba(255, 0, 255, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.thanks-list li:hover {
    background: rgba(255, 0, 255, 0.1);
    transform: translateX(5px);
    border-color: var(--secondary);
}

.thanks-list li i {
    color: var(--secondary);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.thanks-list li span {
    font-size: 1.05rem;
    color: var(--text-primary);
}

.author-profile {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(85, 85, 85, 0.03);
    border-radius: 20px;
    border: 1px solid var(--border);
}

.author-avatar {
    flex-shrink: 0;
}

.avatar-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
    box-shadow: 0 0 15px var(--glow);
    transition: all 0.3s ease;
}

.avatar-image:hover {
    transform: scale(1.05) rotate(5deg);
    box-shadow: 0 0 30px var(--glow);
}

.author-info {
    flex: 1;
}

.author-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.contact-list li {
    padding: 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.05rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

.contact-list li:hover {
    color: var(--text-primary);
    transform: translateX(5px);
}

.contact-list li i {
    font-size: 1.2rem;
    color: var(--primary);
    flex-shrink: 0;
}

.github-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--glow);
}

.github-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px var(--glow);
}

.github-btn i {
    font-size: 1.2rem;
}

.email-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    position: relative;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.email-link:hover {
    color: var(--primary-dark);
    border-bottom-color: var(--primary);
}

.copyright {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 1rem;
    background: rgba(85, 85, 85, 0.02);
    border-radius: 12px;
    animation: fadeIn 1s ease-out 1s forwards;
    opacity: 0;
}

.copyright::before,
.copyright::after {
    content: '⚡';
    margin: 0 1rem;
    opacity: 0.5;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .about-header h1 {
        font-size: 2.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-card.hero-card {
        grid-column: 1;
    }
    
    .about-header {
        margin-bottom: 3rem;
    }
    
    .card-header {
        padding: 1.5rem;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    .about-card.hero-card .card-body {
        padding: 2rem;
    }
    
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========================================
   Footer
   ======================================== */
.footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid var(--border);
    margin-top: 3rem;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .comments-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 1rem 1.5rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .glitch {
        font-size: 2rem;
    }
    
    .search-card {
        padding: 2rem;
    }
    
    .profile-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .profile-id {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .querying-steps {
        flex-direction: column;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .features {
        gap: 1rem;
    }
    
    .feature-item span {
        font-size: 0.75rem;
    }
    
    .game-item {
        flex-direction: column;
        text-align: center;
    }
    
    .game-info {
        width: 100%;
    }
}
