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

body {
    font-family: 'Segoe UI', 'Motiva Sans', Arial, sans-serif;
    background: linear-gradient(to bottom, #1b2838 0%, #2a475e 100%);
    color: #c7d5e0;
    min-height: 100vh;
}

/* Top Navigation Bar */
.steam-header {
    background: #171a21;
    height: 34px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    border-bottom: 1px solid #000;
    gap: 20px;
}

.steam-header a {
    color: #b8b6b4;
    text-decoration: none;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    transition: color 0.2s;
}

.steam-header a:hover {
    color: #fff;
}

.steam-header a.active {
    color: #fff;
}

/* Main Navigation */
.main-nav {
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, transparent 100%);
    padding: 15px 20px;
    display: flex;
    gap: 30px;
    align-items: center;
    border-bottom: 1px solid rgba(0,0,0,0.3);
}

.main-nav-item {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 400;
    letter-spacing: 0.03em;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.main-nav-item:hover {
    color: #66c0f4;
    border-bottom-color: #66c0f4;
}

.main-nav-item.active {
    color: #66c0f4;
    border-bottom-color: #66c0f4;
}

/* Container Layout */
.steam-container {
    display: flex;
    height: calc(100vh - 100px);
}

/* Sidebar */
.steam-sidebar {
    width: 240px;
    background: rgba(0, 0, 0, 0.2);
    padding: 20px 15px;
    overflow-y: auto;
    border-right: 1px solid rgba(0,0,0,0.3);
}

.sidebar-section {
    margin-bottom: 25px;
}

.sidebar-title {
    color: #556772;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 10px;
    font-weight: 600;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    color: #acb2b8;
    background: transparent;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.15s;
    width: 100%;
    text-align: left;
}

.sidebar-item:hover {
    background: rgba(103, 193, 245, 0.1);
    color: #fff;
}

.sidebar-item.active {
    background: #67c1f5;
    color: #fff;
}

/* Main Content */
.steam-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

/* Stats Overview */
.stats-overview {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(135deg, rgba(103, 193, 245, 0.1) 0%, rgba(103, 193, 245, 0.05) 100%);
    padding: 20px;
    border-radius: 3px;
    border: 1px solid rgba(0, 0, 0, 0.3);
}

.stat-label {
    color: #556772;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 8px;
}

.stat-value {
    color: #fff;
    font-size: 28px;
    font-weight: 300;
}

.stat-subtext {
    color: #67c1f5;
    font-size: 12px;
    margin-top: 5px;
}

/* Recent Activity Section */
.activity-section {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
    padding: 20px;
    margin-bottom: 25px;
    border: 1px solid rgba(0, 0, 0, 0.3);
}

.section-header {
    color: #fff;
    font-size: 16px;
    font-weight: 300;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.recent-achievements-carousel {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 0;
}

.recent-ach-item {
    min-width: 200px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.4));
    border: 1px solid rgba(0,0,0,0.5);
    border-radius: 3px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.2s;
}

.recent-ach-item:hover {
    transform: translateY(-3px);
    background: linear-gradient(to bottom, rgba(103, 193, 245, 0.1), rgba(103, 193, 245, 0.05));
    border-color: rgba(103, 193, 245, 0.3);
}

.recent-ach-icon {
    width: 64px;
    height: 64px;
    border-radius: 3px;
    margin-bottom: 10px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.recent-ach-name {
    color: #fff;
    font-size: 13px;
    text-align: center;
    margin-bottom: 4px;
}

.recent-ach-game {
    color: #556772;
    font-size: 11px;
    text-align: center;
    margin-bottom: 6px;
}

.recent-ach-date {
    color: #67c1f5;
    font-size: 10px;
    text-align: center;
}

/* Games Grid */
.games-section {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
    padding: 20px;
    border: 1px solid rgba(0, 0, 0, 0.3);
}

.controls-bar {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;
}

.search-box {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 0, 0, 0.5);
    padding: 8px 12px;
    border-radius: 3px;
    color: #acb2b8;
    font-size: 13px;
    flex: 1;
    max-width: 300px;
}

.search-box:focus {
    outline: none;
    border-color: #67c1f5;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
}

.steam-select {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 0, 0, 0.5);
    padding: 8px 12px;
    border-radius: 3px;
    color: #c7d5e0;
    font-size: 13px;
    cursor: pointer;
}

.steam-select:focus {
    outline: none;
    border-color: #67c1f5;
}

.steam-select option {
    background: #1b2838;
    color: #c7d5e0;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.game-card {
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.5));
    border: 1px solid rgba(0,0,0,0.5);
    border-radius: 3px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
    border-color: rgba(103, 193, 245, 0.5);
}

.game-card:hover .game-cover {
    opacity: 0.8;
}

.game-cover {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: opacity 0.2s;
}

.game-info {
    padding: 12px;
}

.game-title {
    color: #fff;
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    position: relative;
}

.game-title-text {
    display: inline-block;
}

.game-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.game-playtime {
    color: #556772;
    font-size: 11px;
}

.game-achievements {
    color: #67c1f5;
    font-size: 11px;
}

.game-progress {
    width: 100%;
    height: 4px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 2px;
    overflow: hidden;
}

.game-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #67c1f5 0%, #4a9fd8 100%);
    transition: width 0.3s;
}

.completion-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #5cb85c;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

::-webkit-scrollbar-thumb {
    background: rgba(103, 193, 245, 0.3);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(103, 193, 245, 0.5);
}

/* Loading State */
.loading {
    text-align: center;
    padding: 40px;
    color: #556772;
    font-size: 14px;
}
