/* ===== STEAM-LIKE GAMES LIBRARY ===== */
.games-library-container {
    display: none;
    flex-direction: column;
    height: 100%;
    background: #1b2838;
    color: #c6d4df;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.games-library-container.active {
    display: flex;
}

.games-library-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: #171a21;
    border-bottom: 1px solid #2a475e;
    height: 56px;
    flex-shrink: 0;
}

.games-library-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

.games-library-title .material-icons-round {
    color: #66c0f4;
    font-size: 24px;
}

.games-library-actions {
    display: flex;
    gap: 8px;
}

.gl-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 4px;
    border: none;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    background: rgba(255,255,255,0.1);
    color: #c6d4df;
}

.gl-btn:hover {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

.gl-btn-secondary {
    background: transparent;
    padding: 8px;
}

.gl-btn-secondary:hover {
    background: rgba(255,255,255,0.1);
}

.games-library-layout {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.games-library-sidebar {
    width: 280px;
    background: #2a475e;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.games-library-search {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #1b2838;
    border-bottom: 1px solid #1b2838;
}

.games-library-search .material-icons-round {
    color: #66c0f4;
    font-size: 18px;
}

.games-library-search input {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 13px;
    outline: none;
}

.games-library-search input::placeholder {
    color: #8f98a0;
}

.games-library-categories {
    padding: 8px;
    border-bottom: 1px solid #1b2838;
}

.gl-category {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s;
    font-size: 13px;
    color: #c6d4df;
    margin-bottom: 2px;
}

.gl-category:hover {
    background: rgba(102, 192, 244, 0.1);
    color: #fff;
}

.gl-category.active {
    background: rgba(102, 192, 244, 0.2);
    color: #66c0f4;
}

.gl-category .material-icons-round {
    font-size: 18px;
}

.gl-count {
    margin-left: auto;
    background: rgba(0,0,0,0.3);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    color: #8f98a0;
}

.gl-category.active .gl-count {
    background: rgba(102, 192, 244, 0.3);
    color: #66c0f4;
}

.games-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}

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

.games-list::-webkit-scrollbar-track {
    background: transparent;
}

.games-list::-webkit-scrollbar-thumb {
    background: #3d6b8f;
    border-radius: 4px;
}

.games-list::-webkit-scrollbar-thumb:hover {
    background: #66c0f4;
}

.gl-game-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s;
    margin-bottom: 2px;
}

.gl-game-item:hover {
    background: rgba(102, 192, 244, 0.1);
}

.gl-game-item.active {
    background: rgba(102, 192, 244, 0.2);
}

.gl-game-item img,
.gl-game-item .gl-game-icon {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    object-fit: cover;
    background: linear-gradient(135deg, #5D9638 0%, #3D6E22 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.gl-game-item .gl-game-icon .material-icons-round {
    font-size: 20px;
    color: white;
}

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

.gl-game-title {
    font-size: 13px;
    font-weight: 500;
    color: #c6d4df;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gl-game-item:hover .gl-game-title,
.gl-game-item.active .gl-game-title {
    color: #fff;
}

.gl-game-meta {
    font-size: 11px;
    color: #8f98a0;
    margin-top: 2px;
}

.gl-game-playtime {
    font-size: 11px;
    color: #66c0f4;
}

.games-library-content {
    flex: 1;
    overflow-y: auto;
    background: #1b2838;
    position: relative;
}

.games-library-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #8f98a0;
    gap: 16px;
}

.gl-game-detail {
    min-height: 100%;
}

.gl-game-hero {
    position: relative;
    height: 350px;
    background: linear-gradient(180deg, #2a475e 0%, #1b2838 100%);
    overflow: hidden;
}

.gl-game-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.gl-game-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    background: linear-gradient(0deg, #1b2838 0%, transparent 100%);
}

.gl-game-hero-content {
    display: flex;
    align-items: flex-end;
    gap: 24px;
}

.gl-game-poster {
    width: 180px;
    height: 240px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    flex-shrink: 0;
    background: linear-gradient(135deg, #5D9638 0%, #3D6E22 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gl-game-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gl-game-poster .material-icons-round {
    font-size: 80px;
    color: rgba(255,255,255,0.5);
}

.gl-game-hero-info {
    flex: 1;
    padding-bottom: 10px;
}

.gl-game-hero-title {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.gl-game-hero-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.gl-game-tag {
    background: rgba(255,255,255,0.1);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    color: #c6d4df;
}

.gl-game-hero-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.gl-play-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: linear-gradient(180deg, #5ba845 0%, #4a8a38 100%);
    border: none;
    border-radius: 4px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(91, 168, 69, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gl-play-btn:hover {
    background: linear-gradient(180deg, #6bc552 0%, #5ba845 100%);
    box-shadow: 0 6px 20px rgba(91, 168, 69, 0.4);
    transform: translateY(-1px);
}

.gl-play-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(91, 168, 69, 0.3);
}

.gl-play-btn .material-icons-round {
    font-size: 24px;
}

.gl-secondary-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 4px;
    color: #c6d4df;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.gl-secondary-btn:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border-color: rgba(255,255,255,0.3);
}

.gl-game-details {
    padding: 30px 40px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.gl-game-description {
    color: #c6d4df;
    font-size: 14px;
    line-height: 1.6;
}

.gl-game-description h3 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 12px;
    font-weight: 600;
}

.gl-game-description p {
    margin-bottom: 16px;
}

.gl-game-stats {
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
    padding: 20px;
}

.gl-stat-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.gl-stat-item:last-child {
    border-bottom: none;
}

.gl-stat-label {
    color: #8f98a0;
    font-size: 13px;
}

.gl-stat-value {
    color: #66c0f4;
    font-size: 13px;
    font-weight: 500;
}

.gl-game-achievements {
    margin-top: 24px;
}

.gl-achievement-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.gl-achievement-header h4 {
    color: #fff;
    font-size: 14px;
}

.gl-achievement-progress {
    font-size: 12px;
    color: #8f98a0;
}

.gl-progress-bar {
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    overflow: hidden;
}

.gl-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #5ba845, #8bc34a);
    border-radius: 3px;
    transition: width 0.3s;
}

.gl-friends-playing {
    margin-top: 24px;
}

.gl-friends-playing h4 {
    color: #fff;
    font-size: 14px;
    margin-bottom: 12px;
}

.gl-friends-avatars {
    display: flex;
}

.gl-friend-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #5865F2, #7289DA);
    border: 2px solid #1b2838;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    margin-left: -8px;
}

.gl-friend-avatar:first-child {
    margin-left: 0;
}

.gl-friend-avatar.more {
    background: rgba(255,255,255,0.1);
    font-size: 10px;
}

@media (max-width: 1024px) {
    .games-library-sidebar {
        width: 240px;
    }
    
    .gl-game-hero {
        height: 280px;
    }
    
    .gl-game-hero-overlay {
        padding: 30px;
    }
    
    .gl-game-poster {
        width: 140px;
        height: 190px;
    }
    
    .gl-game-hero-title {
        font-size: 28px;
    }
    
    .gl-game-details {
        grid-template-columns: 1fr;
        padding: 24px;
    }
}

@media (max-width: 768px) {
    .games-library-sidebar {
        display: none;
    }
    
    .gl-game-hero-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .gl-game-poster {
        width: 120px;
        height: 160px;
    }
}


/* ===== TABS ===== */
.gl-tabs {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    background: #1b2838;
    border-bottom: 1px solid #1b2838;
}

.gl-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s;
    font-size: 13px;
    color: #8f98a0;
    background: transparent;
}

.gl-tab:hover {
    background: rgba(102, 192, 244, 0.1);
    color: #c6d4df;
}

.gl-tab.active {
    background: rgba(102, 192, 244, 0.2);
    color: #66c0f4;
}

.gl-tab .material-icons-round {
    font-size: 18px;
}

/* ===== SECTION HEADERS ===== */
.gl-section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    color: #8f98a0;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-weight: 600;
}

.gl-section-header.gl-custom-games-header {
    margin-top: 8px;
    background: rgba(250, 166, 26, 0.05);
    color: #FAA61A;
    border-left: 3px solid #FAA61A;
}

.gl-section-header .material-icons-round {
    font-size: 14px;
    vertical-align: middle;
}

