/* Frontend styles for Manager for Steam */

/* Base Steam Components */
.steam-game-block, 
.steam-enhanced-game-block {
    background: linear-gradient(135deg, #1b2838 0%, #2a475e 100%);
    border: 1px solid #3c5a78;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    color: #c7d5e0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

/* Game Image Placeholders and Error Handling */
.game-icon-placeholder,
.game-placeholder {
    background: linear-gradient(135deg, #3c5a78, #2a475e);
    border: 1px solid #5a7a9a;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c7d5e0;
    font-weight: bold;
    text-transform: uppercase;
    flex-shrink: 0;
}

.game-icon-placeholder {
    width: 32px;
    height: 32px;
    font-size: 14px;
}

.game-placeholder {
    width: 100%;
    height: 100%;
    min-height: 120px;
    font-size: 18px;
}

.library-grid-item .game-placeholder {
    min-height: 160px;
}

.library-card-item .game-placeholder {
    min-height: 120px;
}

.game-icon-placeholder .game-initial,
.game-placeholder .game-initial {
    color: #ffffff;
    font-family: Arial, sans-serif;
}

.game-icon {
    max-width: 32px;
    max-height: 32px;
    border-radius: 3px;
    transition: opacity 0.3s ease;
}

.game-icon[src*="data:image/svg"] {
    opacity: 0.6;
}

/* Steam image fallback styling - ensure consistent heights for fallback images */
.steam-library-block img[src*="/header.jpg"],
.steam-library img[src*="/header.jpg"],
.steam-wishlist-block img[src*="/header.jpg"],
.steam-wishlist img[src*="/header.jpg"] {
    object-fit: cover !important; /* Ensure fallback images fill their container properly */
}

.library-grid-item img[src*="/header.jpg"],
.library-grid-item img[src*="/library_600x900.jpg"],
.library-grid-item img[src*="/library_hero.jpg"] {
    height: 180px !important; /* Match the fixed height set above */
    object-fit: cover !important;
}

/* Additional styling for fallback images with CSS classes */
.fallback-image.header-fallback,
.fallback-image.library-fallback,
.fallback-image.library-hero-fallback {
    border: 1px solid rgba(102, 192, 244, 0.3); /* Subtle blue border to indicate fallback */
}

/* Smart fallback images look the same as regular images - no special styling */

.library-grid-item .fallback-image {
    height: 180px !important;
    object-fit: cover !important;
}

.library-card-item .fallback-image {
    height: 120px !important;
    object-fit: cover !important;
}

/* Preload optimization for faster fallback switching */
.steam-library-block img,
.steam-library img,
.steam-wishlist-block img, 
.steam-wishlist img {
    image-rendering: auto;
    image-rendering: crisp-edges;
    image-rendering: -webkit-optimize-contrast;
}

/* Enhanced library styles */
.steam-enhanced-library {
    background: linear-gradient(135deg, #1b2838 0%, #2a475e 100%);
    border: 1px solid #3c5a78;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    color: #c7d5e0;
}

.steam-enhanced-library h3 {
    color: #ffffff;
    margin: 0 0 15px 0;
}

.library-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.library-item {
    background: rgba(0,0,0,0.4);
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.2s;
}

.library-item:hover {
    transform: translateY(-2px);
}

.library-item .game-capsule {
    width: 100%;
    height: auto;
    display: block;
}

.library-item .game-info {
    padding: 10px;
}

.library-item .game-info h4 {
    margin: 0 0 5px 0;
    color: #ffffff;
    font-size: 0.9em;
}

.library-item .playtime {
    color: #c7d5e0;
    font-size: 0.8em;
    margin: 0 0 8px 0;
}

.library-item a {
    color: #66c0f4;
    text-decoration: none;
    font-size: 0.8em;
}

.library-item a:hover {
    color: #ffffff;
}

/* Enhanced friends styles */
.steam-enhanced-friends {
    background: linear-gradient(135deg, #1b2838 0%, #2a475e 100%);
    border: 1px solid #3c5a78;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    color: #c7d5e0;
}

.steam-enhanced-friends h3 {
    color: #ffffff;
    margin: 0 0 15px 0;
}

.friends-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.friend-item {
    background: rgba(0,0,0,0.4);
    border-radius: 4px;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.friend-avatar {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    flex-shrink: 0;
}

.friend-info h4 {
    margin: 0 0 4px 0;
    color: #ffffff;
    font-size: 0.9em;
}

.friend-info .status {
    font-size: 0.8em;
    margin: 0 0 4px 0;
    padding: 2px 6px;
    border-radius: 3px;
    display: inline-block;
}

.friend-info .status-0 { background: #898989; } /* Offline */
.friend-info .status-1 { background: #57cbde; } /* Online */
.friend-info .status-2 { background: #d32ce6; } /* Busy */
.friend-info .status-3 { background: #f5d735; } /* Away */
.friend-info .status-4 { background: #a077dc; } /* Snooze */
.friend-info .status-5 { background: #6dcff6; } /* Looking to trade */
.friend-info .status-6 { background: #beee11; } /* Looking to play */

.friend-info a {
    color: #66c0f4;
    text-decoration: none;
    font-size: 0.8em;
}

.friend-info a:hover {
    color: #ffffff;
}

/* User bans styles */
.steam-user-bans {
    background: linear-gradient(135deg, #1b2838 0%, #2a475e 100%);
    border: 1px solid #3c5a78;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    color: #c7d5e0;
}

.steam-user-bans h3 {
    color: #ffffff;
    margin: 0 0 15px 0;
}

.ban-info p {
    margin: 5px 0;
}

/* User groups styles */
.steam-user-groups {
    background: linear-gradient(135deg, #1b2838 0%, #2a475e 100%);
    border: 1px solid #3c5a78;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    color: #c7d5e0;
}

.steam-user-groups h3 {
    color: #ffffff;
    margin: 0 0 15px 0;
}

.groups-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.groups-list li {
    margin: 5px 0;
}

.groups-list a {
    color: #66c0f4;
    text-decoration: none;
}

.groups-list a:hover {
    color: #ffffff;
}

/* Profile customization styles */
.steam-profile-customization {
    background: linear-gradient(135deg, #1b2838 0%, #2a475e 100%);
    border: 1px solid #3c5a78;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    color: #c7d5e0;
}

.steam-profile-customization h3 {
    color: #ffffff;
    margin: 0 0 15px 0;
}

.customization-info p {
    margin: 5px 0;
}

/* ===== TEMPLATE SYSTEM STYLES ===== */

/* Base Profile Block Styles */
.steam-profile-block {
    background: linear-gradient(135deg, #1b2838 0%, #2a475e 100%);
    border: 1px solid #3c5a78;
    border-radius: 8px;
    color: #c7d5e0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    overflow: hidden;
    transition: all 0.3s ease;
}

.steam-profile-block:hover {
    box-shadow: 0 6px 12px rgba(0,0,0,0.4);
}

/* Avatar Sizes */
.steam-profile-block.avatar-small .profile-avatar {
    width: 32px;
    height: 32px;
}

.steam-profile-block.avatar-medium .profile-avatar {
    width: 64px;
    height: 64px;
}

.steam-profile-block.avatar-large .profile-avatar {
    width: 128px;
    height: 128px;
}

/* Clickable Avatar Links */
.profile-avatar-link {
    display: inline-block;
    transition: transform 0.2s ease, opacity 0.2s ease;
    border-radius: 4px;
    overflow: hidden;
}

.profile-avatar-link:hover {
    transform: scale(1.05);
    opacity: 0.9;
    text-decoration: none;
}

.profile-avatar-link img {
    display: block;
    border-radius: 4px;
}

.profile-avatar {
    border-radius: 4px;
    border: 2px solid rgba(255,255,255,0.1);
    transition: border-color 0.3s ease;
}

.profile-avatar:hover {
    border-color: #66c0f4;
}

/* Status Indicators */
.status-indicator, .status-text {
    font-size: 0.8em;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: bold;
    text-transform: uppercase;
}

.status-0 { background: #898989; color: #fff; } /* Offline */
.status-1 { background: #57cbde; color: #000; } /* Online */
.status-2 { background: #d32ce6; color: #fff; } /* Busy */
.status-3 { background: #f5d735; color: #000; } /* Away */
.status-4 { background: #a077dc; color: #fff; } /* Snooze */
.status-5 { background: #6dcff6; color: #000; } /* Looking to trade */
.status-6 { background: #beee11; color: #000; } /* Looking to play */

.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-left: 5px;
}

/* Level Badge */
.level-badge {
    background: linear-gradient(135deg, #ffd700 0%, #ffb347 100%);
    color: #000;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.level-text {
    color: #ffd700;
    font-weight: bold;
    font-size: 0.9em;
}

.level-minimal {
    color: #c7d5e0;
    font-size: 0.8em;
    opacity: 0.8;
}

/* Profile Links */
.steam-profile-link {
    background: linear-gradient(135deg, #66c0f4 0%, #4a9eda 100%);
    color: #ffffff !important;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    border: 1px solid rgba(255,255,255,0.2);
    letter-spacing: 0.5px;
}

.steam-profile-link:hover {
    background: linear-gradient(135deg, #4a9eda 0%, #66c0f4 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.9);
    text-decoration: none;
}

.steam-profile-link.primary {
    background: linear-gradient(135deg, #90c842 0%, #7bb934 100%);
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    border: 1px solid rgba(255,255,255,0.2);
}

.steam-profile-link.primary:hover {
    background: linear-gradient(135deg, #7bb934 0%, #90c842 100%);
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.9);
    text-decoration: none;
}

/* ===== CARD TEMPLATE ===== */
.steam-profile-block.template-card {
    padding: 20px;
}

.profile-card-content {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.steam-profile-block.layout-vertical .profile-card-content {
    flex-direction: column;
    text-align: center;
}

.profile-avatar-section {
    position: relative;
    flex-shrink: 0;
}

.profile-avatar-section .status-indicator {
    position: absolute;
    bottom: -5px;
    right: -5px;
    font-size: 0.7em;
    border: 2px solid #1b2838;
}

.profile-info-section {
    flex: 1;
}

.profile-name {
    margin: 0 0 8px 0;
    color: #ffffff;
    font-size: 1.2em;
    font-weight: bold;
}

.profile-realname {
    margin: 0 0 8px 0;
    color: #c7d5e0;
    font-style: italic;
    font-size: 0.9em;
}

.profile-level {
    margin: 8px 0;
}

.profile-location {
    margin: 8px 0;
    color: #c7d5e0;
    font-size: 0.9em;
}

.profile-actions {
    margin-top: 12px;
}

/* ===== BADGE TEMPLATE ===== */
.steam-profile-block.template-badge {
    padding: 12px 16px;
    display: inline-block;
    max-width: 100%;
}

.profile-badge-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-badge-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.template-badge .profile-name {
    margin: 0;
    font-size: 1em;
    white-space: nowrap;
}

.template-badge .status-text {
    font-size: 0.7em;
    padding: 1px 4px;
}

.template-badge .level-text {
    font-size: 0.8em;
}

.badge-link {
    color: #66c0f4;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.badge-link:hover {
    opacity: 1;
    color: #ffffff;
}

.steam-icon {
    font-size: 1.2em;
}

/* ===== DETAILED TEMPLATE ===== */
.steam-profile-block.template-detailed {
    padding: 25px;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.steam-profile-block.layout-vertical .profile-header {
    flex-direction: column;
    text-align: center;
}

.profile-title {
    flex: 1;
}

.template-detailed .profile-name {
    font-size: 1.4em;
    margin-bottom: 5px;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.stat-item {
    background: rgba(0,0,0,0.3);
    padding: 10px 12px;
    border-radius: 4px;
    border-left: 3px solid #66c0f4;
}

.stat-label {
    font-weight: bold;
    color: #ffffff;
    margin-right: 8px;
}

.stat-value {
    color: #c7d5e0;
}

/* ===== MINIMAL TEMPLATE ===== */
.steam-profile-block.template-minimal {
    padding: 8px 12px;
    display: inline-block;
    background: rgba(27, 40, 56, 0.8);
    border: 1px solid rgba(60, 90, 120, 0.5);
}

.profile-minimal-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.template-minimal .profile-name {
    margin: 0;
    font-size: 0.9em;
    font-weight: normal;
}

.template-minimal .profile-avatar {
    border: 1px solid rgba(255,255,255,0.2);
}

/* ===== COLOR SCHEMES ===== */

/* Steam Scheme (default) - already defined above */

/* Light Scheme */
.steam-profile-block.scheme-light {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-color: #dee2e6;
    color: #495057;
}

.scheme-light .profile-name {
    color: #212529;
}

.scheme-light .steam-profile-link {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
}

/* Dark Scheme */
.steam-profile-block.scheme-dark {
    background: linear-gradient(135deg, #212529 0%, #343a40 100%);
    border-color: #495057;
    color: #f8f9fa;
}

.scheme-dark .profile-name {
    color: #ffffff;
}

/* Auto scheme inherits from theme - no additional styles needed */

/* ===== SEAMLESS MODE ===== */
/* Removes backgrounds, borders, padding, border-radius and shadows for seamless theme integration */

.steam-profile-block.seamless-mode {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.steam-library-block.seamless-mode {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Remove border-radius and shadows from child elements in seamless mode */
.steam-profile-block.seamless-mode .profile-avatar,
.steam-profile-block.seamless-mode .profile-header,
.steam-profile-block.seamless-mode .profile-stats,
.steam-profile-block.seamless-mode .profile-card-content,
.steam-profile-block.seamless-mode .profile-badge-content {
    border-radius: 0 !important;
    box-shadow: none !important;
}

.steam-library-block.seamless-mode .library-grid-container,
.steam-library-block.seamless-mode .library-cards-container,
.steam-library-block.seamless-mode .library-list-container {
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* Individual game items keep their styling but remove container effects */
.steam-library-block.seamless-mode .library-grid-item,
.steam-library-block.seamless-mode .library-card,
.steam-library-block.seamless-mode .library-list-item {
    /* Individual game items keep their styling */
    position: relative;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .profile-card-content,
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-stats {
        grid-template-columns: 1fr;
    }
    
    .profile-badge-content {
        flex-wrap: wrap;
    }
    
    .steam-profile-block.template-badge {
        display: block;
    }
}

/* API Notice for disabled features */
.steam-api-notice {
    background: linear-gradient(135deg, #8b4513 0%, #a0522d 100%);
    border: 1px solid #d2691e;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 6px;
    color: #fff;
    text-align: center;
}

.steam-api-notice p {
    margin: 0;
    font-style: italic;
}

.steam-enhanced-game-block .game-header {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.steam-enhanced-game-block .game-header-image {
    max-width: 200px;
    border-radius: 4px;
    flex-shrink: 0;
}

.steam-enhanced-game-block .game-info h3 {
    color: #ffffff;
    margin: 0 0 10px 0;
    font-size: 1.4em;
}

.steam-enhanced-game-block .game-stats {
    background: rgba(0,0,0,0.3);
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.steam-enhanced-game-block .current-players,
.steam-enhanced-game-block .popular-achievements {
    margin-bottom: 10px;
}

.steam-enhanced-game-block .popular-achievements ul {
    list-style: none;
    padding-left: 0;
    margin: 5px 0;
}

.steam-enhanced-game-block .popular-achievements li {
    padding: 2px 0;
    color: #b8c7d9;
}

/* Buttons */
.steam-wishlist-button,
.steam-store-button {
    background: linear-gradient(90deg, #06BFFF 0%, #2D73FF 100%);
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.steam-wishlist-button:hover,
.steam-store-button:hover {
    background: linear-gradient(90deg, #1099D3 0%, #0F5FBF 100%);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

/* Profile Block */
.steam-profile-block {
    background: #1b2838;
    border: 1px solid #3c5a78;
    padding: 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.steam-profile-block img {
    border-radius: 4px;
    border: 2px solid #3c5a78;
}

.steam-profile-block h3 {
    color: #ffffff;
    margin: 0;
}

.steam-profile-block a {
    color: #66c0f4;
    text-decoration: none;
}

.steam-profile-block a:hover {
    color: #ffffff;
}

/* User Level */
.steam-user-level {
    text-align: center;
    margin: 20px 0;
}

.steam-user-level .level-badge {
    background: linear-gradient(135deg, #ffd700 0%, #ffb347 100%);
    color: #1b2838;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    display: inline-block;
    box-shadow: 0 2px 4px rgba(255,215,0,0.3);
}

/* Recently Played Games */
.steam-recently-played-block ul,
.steam-library-block ul,
.steam-friends-block ul,
.steam-achievements-block ul,
.steam-wishlist-block ul,
.steam-news-block ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recently-played-game {
    background: rgba(43, 71, 94, 0.5);
    border: 1px solid #3c5a78;
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.recently-played-game .game-icon {
    width: 32px;
    height: 32px;
    border-radius: 2px;
}

.recently-played-game .game-info strong {
    color: #ffffff;
    display: block;
    margin-bottom: 4px;
}

.recently-played-game .playtime-info,
.recently-played-game .total-playtime {
    font-size: 0.9em;
    color: #b8c7d9;
    line-height: 1.2;
}

/* Achievements */
.steam-achievements-block li {
    background: rgba(43, 71, 94, 0.3);
    border-left: 4px solid #3c5a78;
    padding: 10px;
    margin-bottom: 8px;
    border-radius: 0 4px 4px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.steam-achievements-block li.achieved {
    border-left-color: #90ba3c;
    background: rgba(144, 186, 60, 0.1);
}

.steam-achievements-block .achievement-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.steam-achievements-block strong {
    color: #ffffff;
}

.steam-achievements-block p {
    margin: 4px 0;
    color: #b8c7d9;
}

.steam-achievements-block small {
    color: #66c0f4;
}

/* Library */
.steam-library-block li {
    background: rgba(43, 71, 94, 0.3);
    padding: 8px 12px;
    margin-bottom: 4px;
    border-radius: 4px;
    border-left: 3px solid #66c0f4;
}

.steam-library-block a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
}

.steam-library-block a:hover {
    color: #66c0f4;
}

/* Friends */
.steam-friends-block li {
    background: rgba(43, 71, 94, 0.3);
    padding: 8px 12px;
    margin-bottom: 4px;
    border-radius: 4px;
}

.steam-friends-block a {
    color: #66c0f4;
    text-decoration: none;
}

.steam-friends-block a:hover {
    color: #ffffff;
}

/* News */
.steam-news-block li {
    background: rgba(43, 71, 94, 0.3);
    padding: 10px;
    margin-bottom: 8px;
    border-radius: 4px;
    border-left: 3px solid #f5a623;
}

.steam-news-block a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    line-height: 1.3;
}

.steam-news-block a:hover {
    color: #f5a623;
}

/* Wishlist */
.steam-wishlist-block .wishlist-item {
    background: rgba(43, 71, 94, 0.3);
    padding: 8px 12px;
    margin-bottom: 4px;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.steam-wishlist-block a {
    color: #66c0f4;
    text-decoration: none;
}

.steam-wishlist-block a:hover {
    color: #ffffff;
}

.steam-wishlist-block .priority {
    color: #f5a623;
    font-size: 0.9em;
}

/* ===== WISHLIST TEMPLATE SYSTEM - UNIFIED WITH LIBRARY ===== */

/* Wishlist Base Styles */
.steam-wishlist {
    background: linear-gradient(135deg, #1b2838 0%, #2a475e 100%);
    border: 1px solid #3c5a78;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    color: #c7d5e0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    width: 100%;
    max-width: none;
    box-sizing: border-box;
}

/* Wishlist Grid Container - FIXED */
.steam-wishlist.template-grid .wishlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
    width: 100%;
}

.steam-wishlist.template-grid .wishlist-game {
    background: rgba(0,0,0,0.4);
    border: 1px solid #3c5a78;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #c7d5e0;
}

.steam-wishlist.template-grid .wishlist-game:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.4);
    border-color: #66c0f4;
}

.steam-wishlist.template-grid .game-image {
    position: relative;
    overflow: hidden;
}

.steam-wishlist.template-grid .game-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.steam-wishlist.template-grid .wishlist-game:hover .game-image img {
    transform: scale(1.05);
}

.steam-wishlist.template-grid .game-content {
    padding: 12px;
}

.steam-wishlist.template-grid .game-name {
    font-size: 16px;
    font-weight: bold;
    margin: 0 0 8px 0;
    color: #ffffff;
    line-height: 1.3;
}

.steam-wishlist.template-grid .game-name a {
    color: inherit;
    text-decoration: none;
}

.steam-wishlist.template-grid .game-name a:hover {
    color: #66c0f4;
}

.steam-wishlist.template-grid .game-price {
    color: #b9a26b;
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 14px;
}

.steam-wishlist.template-grid .game-release-date,
.steam-wishlist.template-grid .game-platforms {
    font-size: 13px;
    color: #8f98a0;
    margin-bottom: 4px;
}

/* Wishlist Cards Template - GRID COLUMN SYSTEM */
.steam-wishlist.template-cards .wishlist-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); /* Default responsive */
    gap: 25px; /* More space between cards */
    width: 100%;
    padding: 5px; /* Small padding for visual breathing */
}

.steam-wishlist.template-cards .wishlist-game {
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.15); /* More visible border */
    border-radius: 10px; /* Slightly more rounded for Cards */
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 450px; /* Taller cards for more content */
    box-shadow: 0 4px 12px rgba(0,0,0,0.3); /* Initial shadow */
}

.steam-wishlist.template-cards .wishlist-game:hover {
    transform: translateY(-8px); /* More prominent hover lift */
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6); /* Dramatic shadow */
    border-color: #66c0f4;
}

.steam-wishlist.template-cards .game-image {
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.steam-wishlist.template-cards .game-image img {
    width: 100%;
    height: 220px; /* Increased height for taller cards */
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.3s ease;
}

.steam-wishlist.template-cards .wishlist-game:hover .game-image img {
    transform: scale(1.05);
}

.steam-wishlist.template-cards .game-content {
    padding: 18px; /* Increased padding for larger cards */
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
}

.steam-wishlist.template-cards .game-name {
    font-size: 16px;
    font-weight: bold;
    margin: 0 0 10px 0;
    color: #ffffff;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.steam-wishlist.template-cards .game-name a {
    color: inherit;
    text-decoration: none;
}

.steam-wishlist.template-cards .game-name a:hover {
    color: #66c0f4;
}

.steam-wishlist.template-cards .game-description {
    font-size: 13px;
    color: #8f98a0;
    line-height: 1.4;
    margin-bottom: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    flex: 1;
}

.steam-wishlist.template-cards .game-meta {
    margin-top: auto;
}

.steam-wishlist.template-cards .game-price {
    color: #b9a26b;
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 6px;
}

.steam-wishlist.template-cards .game-release-date,
.steam-wishlist.template-cards .game-platforms {
    font-size: 12px;
    color: #8f98a0;
    margin-bottom: 3px;
}

/* Cards without images - OPTIMIZED LAYOUT */
.steam-wishlist.template-cards .wishlist-game:not(:has(.game-image)) {
    height: 250px; /* Much shorter without image */
    min-height: 250px;
}

/* Fallback for browsers that don't support :has() */
.steam-wishlist.template-cards.no-images .wishlist-game {
    height: 250px !important;
    min-height: 250px !important;
}

.steam-wishlist.template-cards.no-images .game-content {
    justify-content: flex-start; /* Align content to top */
    padding-top: 25px; /* More top padding when no image */
    padding-bottom: 25px; /* Balanced padding */
}

.steam-wishlist.template-cards.no-images .game-name {
    font-size: 18px; /* Slightly larger title when no image */
    margin-bottom: 15px; /* More space after title */
}

/* Wishlist List Template - COMPLETELY FIXED */
.steam-wishlist.template-list .wishlist-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.steam-wishlist.template-list .wishlist-game {
    background: rgba(43, 71, 94, 0.4);
    border: 1px solid #3c5a78;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    min-height: 100px;
    width: 100%;
    box-sizing: border-box;
}

.steam-wishlist.template-list .wishlist-game:hover {
    background: rgba(43, 71, 94, 0.6);
    border-color: #66c0f4;
}

.steam-wishlist.template-list .game-image {
    flex-shrink: 0;
    width: 140px;
    height: 78px;
    overflow: hidden;
    border-radius: 6px;
    position: relative;
}

.steam-wishlist.template-list .game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.3s ease;
}

.steam-wishlist.template-list .wishlist-game:hover .game-image img {
    transform: scale(1.05);
}

.steam-wishlist.template-list .game-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 78px;
    gap: 8px;
}

.steam-wishlist.template-list .game-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    flex-wrap: wrap;
}

.steam-wishlist.template-list .game-name {
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    font-size: 18px;
    line-height: 1.3;
    margin: 0;
    flex: 1;
    min-width: 200px;
}

.steam-wishlist.template-list .game-name a {
    color: inherit;
    text-decoration: none;
}

.steam-wishlist.template-list .game-name a:hover {
    color: #66c0f4;
}

.steam-wishlist.template-list .game-price {
    color: #b9a26b;
    font-weight: bold;
    font-size: 16px;
    flex-shrink: 0;
}

.steam-wishlist.template-list .game-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.steam-wishlist.template-list .game-release-date,
.steam-wishlist.template-list .game-platforms {
    font-size: 14px;
    color: #8f98a0;
    margin: 0;
}

.steam-wishlist.template-list .game-description {
    font-size: 14px;
    color: #c7d5e0;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.steam-wishlist.template-list .game-name:hover {
    color: #ffffff;
}

.steam-wishlist.template-list .game-details {
    display: flex;
    gap: 20px;
    align-items: center;
    font-size: 14px;
    color: #8f98a0;
    flex-wrap: wrap;
}

.steam-wishlist.template-list .game-price {
    color: #b9a26b;
    font-weight: bold;
    white-space: nowrap;
}

.steam-wishlist.template-list .game-name {
    color: #66c0f4;
    font-weight: 500;
    text-decoration: none;
}

.steam-wishlist.template-list .game-name:hover {
    color: #ffffff;
}

.steam-wishlist.template-list .game-details {
    display: flex;
    gap: 15px;
    align-items: center;
    font-size: 14px;
    color: #8f98a0;
}

/* Wishlist Minimal Template */
/* Wishlist Minimal Template - ENHANCED DESIGN */
.steam-wishlist.template-minimal .wishlist-minimal {
    background: rgba(27, 40, 56, 0.3); /* Subtle background */
    border: 1px solid rgba(255, 255, 255, 0.05); /* Very subtle border */
    border-radius: 6px; /* Slight rounding */
    padding: 12px; /* Some breathing room */
    backdrop-filter: blur(5px); /* Modern glass effect */
}

.steam-wishlist.template-minimal .wishlist-game {
    background: none;
    border: none;
    padding: 12px 8px; /* More vertical padding */
    border-bottom: 1px solid rgba(199, 213, 224, 0.08); /* Even more subtle */
    display: flex;
    justify-content: flex-start; /* Align left */
    align-items: center;
    transition: all 0.2s ease; /* Smooth transitions */
    border-radius: 4px; /* Rounded rows */
    margin-bottom: 2px; /* Small gap between items */
    gap: 12px; /* Space between elements */
}

.steam-wishlist.template-minimal .wishlist-game:hover {
    background: rgba(102, 192, 244, 0.08); /* Subtle hover highlight */
    border-color: rgba(102, 192, 244, 0.15);
    transform: translateX(4px); /* Subtle slide effect */
}

.steam-wishlist.template-minimal .wishlist-game:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.steam-wishlist.template-minimal .game-name {
    color: #c7d5e0; /* Neutral color */
    text-decoration: none;
    font-weight: 500; /* Medium weight */
    font-size: 15px; /* Slightly larger */
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    flex: 1; /* Take available space */
}

.steam-wishlist.template-minimal .game-name:hover,
.steam-wishlist.template-minimal .wishlist-game:hover .game-name {
    color: #66c0f4; /* Steam blue on hover */
}

.steam-wishlist.template-minimal .game-price {
    color: #b9a26b; /* Keep gold color */
    font-size: 14px;
    font-weight: 600; /* Bolder price */
    padding: 4px 8px; /* Small padding around price */
    background: rgba(185, 162, 107, 0.1); /* Subtle price background */
    border-radius: 4px; /* Rounded price tag */
    transition: all 0.2s ease;
}

.steam-wishlist.template-minimal .wishlist-game:hover .game-price {
    background: rgba(185, 162, 107, 0.15);
    transform: scale(1.05); /* Slight scale on hover */
}

/* Enhanced platform icons in minimal template */
.steam-wishlist.template-minimal .game-platforms {
    margin-left: 12px;
    margin-right: 12px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.steam-wishlist.template-minimal .wishlist-game:hover .game-platforms {
    opacity: 1;
}

/* Platform Icons */
.game-platforms .platform-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 4px;
    opacity: 0.8;
    vertical-align: middle;
}

.platform-windows { color: #00adef; }
.platform-mac { color: #a3aaae; }
.platform-linux { color: #fcc624; }

/* Release Date Indicators */
.game-release-date.released {
    color: #90ba3c;
}

.game-release-date.upcoming {
    color: #66c0f4;
}

.game-release-date.tba {
    color: #8f98a0;
}

/* Wishlist Color Schemes */
.steam-wishlist.scheme-light {
    background: #f5f5f5;
    color: #333333;
}

.steam-wishlist.scheme-light .wishlist-game {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    color: #333333;
}

.steam-wishlist.scheme-light .wishlist-game:hover {
    border-color: #0066cc;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.1);
}

.steam-wishlist.scheme-light .game-name {
    color: #0066cc;
}

.steam-wishlist.scheme-light .game-price {
    color: #d67e00;
}

.steam-wishlist.scheme-light .game-release-date,
.steam-wishlist.scheme-light .game-platforms {
    color: #666666;
}

.steam-wishlist.scheme-dark {
    background: #000000;
    color: #cccccc;
}

.steam-wishlist.scheme-dark .wishlist-game {
    background: #1a1a1a;
    border: 1px solid #333333;
    color: #cccccc;
}

.steam-wishlist.scheme-dark .wishlist-game:hover {
    border-color: #555555;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

.steam-wishlist.scheme-dark .game-name {
    color: #ffffff;
}

.steam-wishlist.scheme-dark .game-price {
    color: #ffaa00;
}

.steam-wishlist.scheme-dark .game-release-date,
.steam-wishlist.scheme-dark .game-platforms {
    color: #aaaaaa;
}

.steam-wishlist.scheme-steam {
    background: linear-gradient(135deg, #1b2838 0%, #2a475e 100%);
    color: #c7d5e0;
}

.steam-wishlist.scheme-steam .wishlist-game {
    background: linear-gradient(135deg, #1b2838 0%, #2a475e 100%);
    border: 1px solid #3c5a78;
    color: #c7d5e0;
}

.steam-wishlist.scheme-steam .wishlist-game:hover {
    border-color: #66c0f4;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.steam-wishlist.scheme-steam .game-name {
    color: #66c0f4;
}

.steam-wishlist.scheme-steam .game-price {
    color: #b9a26b;
}

.steam-wishlist.scheme-steam .game-release-date,
.steam-wishlist.template-steam .game-platforms {
    color: #8f98a0;
}

/* ===== WISHLIST COLUMNS SYSTEM - FIXED TO WORK ===== */

/* Grid Template Columns */
.steam-wishlist.columns-2.template-grid .wishlist-grid {
    grid-template-columns: repeat(2, 1fr);
}

.steam-wishlist.columns-3.template-grid .wishlist-grid {
    grid-template-columns: repeat(3, 1fr);
}

.steam-wishlist.columns-4.template-grid .wishlist-grid {
    grid-template-columns: repeat(4, 1fr);
}

.steam-wishlist.columns-5.template-grid .wishlist-grid {
    grid-template-columns: repeat(5, 1fr);
}

.steam-wishlist.columns-6.template-grid .wishlist-grid {
    grid-template-columns: repeat(6, 1fr);
}

/* Cards Template Columns - MAXIMUM SPECIFICITY */
.steam-wishlist.template-cards.columns-2 .wishlist-cards {
    grid-template-columns: repeat(2, 1fr) !important;
}

.steam-wishlist.template-cards.columns-3 .wishlist-cards {
    grid-template-columns: repeat(3, 1fr) !important;
}

.steam-wishlist.template-cards.columns-4 .wishlist-cards {
    grid-template-columns: repeat(4, 1fr) !important;
}

.steam-wishlist.template-cards.columns-5 .wishlist-cards {
    grid-template-columns: repeat(5, 1fr) !important;
}

.steam-wishlist.template-cards.columns-6 .wishlist-cards {
    grid-template-columns: repeat(6, 1fr) !important;
}

/* Wishlist Seamless Mode Support */
.steam-wishlist.seamless-mode {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.steam-wishlist.seamless-mode .wishlist-game {
    border-radius: 4px !important;
    box-shadow: none !important;
}

.steam-wishlist.seamless-mode.template-grid,
.steam-wishlist.seamless-mode.template-cards {
    gap: 15px;
}

.steam-wishlist.seamless-mode.template-list {
    gap: 8px;
}

.steam-wishlist.seamless-mode.template-list .wishlist-game {
    background: rgba(43, 71, 94, 0.1) !important;
    border-color: rgba(60, 90, 120, 0.3) !important;
}

.steam-wishlist.seamless-mode .steam-wishlist-pagination {
    background: transparent !important;
    border-top: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* ===== WISHLIST RESPONSIVE DESIGN - COMPLETE FIX ===== 
   Breakpoints:
   - 1400px+: Up to 6 columns (desktop)
   - 1200-1400px: Max 5 columns 
   - 1000-1200px: Max 4 columns
   - 768-1000px: Max 3 columns
   - 480-768px: Max 2 columns (tablet)
   - 360-480px: Max 2 columns (mobile)
   - 360px-: 1 column (ultra-small)
*/

/* Large screens - reduce columns for better readability */
@media (max-width: 1400px) {
    .steam-wishlist.columns-6.template-grid .wishlist-grid,
    .steam-wishlist.columns-6.template-cards .wishlist-cards {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 1200px) {
    .steam-wishlist.columns-5.template-grid .wishlist-grid,
    .steam-wishlist.columns-5.template-cards .wishlist-cards,
    .steam-wishlist.columns-6.template-grid .wishlist-grid,
    .steam-wishlist.columns-6.template-cards .wishlist-cards {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1000px) {
    .steam-wishlist.columns-4.template-grid .wishlist-grid,
    .steam-wishlist.columns-4.template-cards .wishlist-cards,
    .steam-wishlist.columns-5.template-grid .wishlist-grid,
    .steam-wishlist.columns-5.template-cards .wishlist-cards,
    .steam-wishlist.columns-6.template-grid .wishlist-grid,
    .steam-wishlist.columns-6.template-cards .wishlist-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    /* All multi-column layouts become 2 columns on tablets */
    .steam-wishlist.columns-3.template-grid .wishlist-grid,
    .steam-wishlist.columns-3.template-cards .wishlist-cards,
    .steam-wishlist.columns-4.template-grid .wishlist-grid,
    .steam-wishlist.columns-4.template-cards .wishlist-cards,
    .steam-wishlist.columns-5.template-grid .wishlist-grid,
    .steam-wishlist.columns-5.template-cards .wishlist-cards,
    .steam-wishlist.columns-6.template-grid .wishlist-grid,
    .steam-wishlist.columns-6.template-cards .wishlist-cards {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* List template adjustments */
    .steam-wishlist.template-list .wishlist-game {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .steam-wishlist.template-list .game-image {
        width: 100%;
        max-width: 280px;
        height: 157px; /* Maintain 16:9 ratio */
        margin: 0 auto;
    }

    .steam-wishlist.template-list .game-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

@media (max-width: 768px) {
    /* Tablet adjustments for Cards */
    .steam-wishlist.template-cards .wishlist-cards {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
        gap: 20px;
    }
    
    .steam-wishlist.template-cards .wishlist-game {
        height: 380px;
    }
    
    /* Tablet - Cards without images */
    .steam-wishlist.template-cards.no-images .wishlist-game {
        height: 220px !important;
    }
}

@media (max-width: 480px) {
    /* Two columns max on mobile for better readability */
    .steam-wishlist.columns-3.template-grid .wishlist-grid,
    .steam-wishlist.columns-4.template-grid .wishlist-grid,
    .steam-wishlist.columns-5.template-grid .wishlist-grid,
    .steam-wishlist.columns-6.template-grid .wishlist-grid,
    .steam-wishlist.columns-3.template-cards .wishlist-cards,
    .steam-wishlist.columns-4.template-cards .wishlist-cards,
    .steam-wishlist.columns-5.template-cards .wishlist-cards,
    .steam-wishlist.columns-6.template-cards .wishlist-cards {
        grid-template-columns: repeat(2, 1fr) !important; /* Force 2 columns max on mobile */
        gap: 12px; /* Smaller gap for mobile */
    }
    
    /* Override any auto-fill rules on mobile for cards template */
    .steam-wishlist.template-cards .wishlist-cards {
        grid-template-columns: repeat(2, 1fr) !important; /* Force exactly 2 columns */
        gap: 15px;
    }
    
    /* 1-2 column layouts stay as they are */
    .steam-wishlist.columns-1.template-grid .wishlist-grid,
    .steam-wishlist.columns-1.template-cards .wishlist-cards {
        grid-template-columns: 1fr !important;
    }
    
    .steam-wishlist.columns-2.template-grid .wishlist-grid,
    .steam-wishlist.columns-2.template-cards .wishlist-cards {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .steam-wishlist.template-cards .wishlist-game {
        height: auto;
        min-height: 320px; /* Smaller on mobile */
    }
    
    /* Mobile - Cards without images */
    .steam-wishlist.template-cards.no-images .wishlist-game {
        height: auto !important;
        min-height: 200px !important;
    }

    .steam-wishlist.template-list .game-image {
        max-width: 100%;
        height: 140px;
    }
    
    .steam-wishlist.template-list {
        gap: 10px;
    }

    .steam-wishlist.template-list .wishlist-game {
        padding: 12px;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
    }
    
    .steam-wishlist.template-list .game-image {
        width: 140px;
        height: 79px;
    }
    
    .steam-wishlist.template-list .game-info {
        align-items: center;
    }
    
    .steam-wishlist.template-list .game-details {
        justify-content: center;
    }
    
    /* Mobile - Minimal template adjustments */
    .steam-wishlist.template-minimal {
        padding: 8px; /* Less padding on mobile */
    }
    
    .steam-wishlist.template-minimal .wishlist-game {
        padding: 10px 6px; /* Tighter mobile spacing */
        flex-direction: column; /* Stack on mobile */
        align-items: flex-start;
        gap: 6px;
    }
    
    .steam-wishlist.template-minimal .game-name {
        font-size: 14px; /* Smaller text on mobile */
    }
    
    .steam-wishlist.template-minimal .game-price {
        align-self: flex-end; /* Price to the right */
        font-size: 13px;
    }
}

/* Ultra-small screens (very old phones, narrow viewports) */
@media (max-width: 360px) {
    /* Hero template ultra compact */
    .hero-background {
        height: 220px;
    }
    
    .hero-overlay {
        padding: 12px 8px 8px 8px;
    }
    
    .hero-header .game-title {
        font-size: 1.2em;
        margin-bottom: 4px;
        line-height: 1.1;
        word-break: break-word; /* Better word breaking on ultra-small */
    }
    
    .hero-header .game-tagline {
        font-size: 0.85em;
        -webkit-line-clamp: 1; /* Only 1 line on ultra-small */
        margin-bottom: 6px;
    }
    
    .hero-meta span {
        font-size: 0.7em;
        padding: 2px 5px;
    }
    
    /* Wishlist single column on ultra-small */
    .steam-wishlist.template-grid .wishlist-grid,
    .steam-wishlist.template-cards .wishlist-cards {
        grid-template-columns: 1fr !important; /* Force single column */
        gap: 8px;
    }
    
    /* Ultra-specific override for cards on ultra-small screens */
    .steam-wishlist.template-cards .wishlist-cards {
        grid-template-columns: 1fr !important; /* Single column only */
    }
}

/* ===== WISHLIST SEAMLESS MODE SUPPORT ===== */
.steam-wishlist.seamless-mode {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.steam-wishlist.seamless-mode .wishlist-game {
    border-radius: 6px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2) !important;
}

.steam-wishlist.seamless-mode.template-grid .wishlist-grid,
.steam-wishlist.seamless-mode.template-cards .wishlist-cards {
    gap: 12px;
}

/* Seamless mode for minimal template */
.steam-wishlist.seamless-mode.template-minimal .wishlist-minimal {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

.steam-wishlist.seamless-mode.template-minimal .wishlist-game {
    background: rgba(27, 40, 56, 0.2) !important;
    backdrop-filter: blur(3px) !important;
}

.steam-wishlist.seamless-mode.template-list .wishlist-grid {
    gap: 10px;
}

.steam-wishlist.seamless-mode.template-list .wishlist-game {
    background: rgba(43, 71, 94, 0.2) !important;
    border-color: rgba(60, 90, 120, 0.4) !important;
}

.steam-wishlist.seamless-mode .steam-wishlist-pagination {
    background: transparent !important;
    border-top: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* ===== WISHLIST COLOR SCHEMES ===== */
.steam-wishlist.scheme-light {
    background: #f8f9fa;
    border-color: #e9ecef;
    color: #495057;
}

.steam-wishlist.scheme-light .wishlist-game {
    background: #ffffff;
    border-color: #dee2e6;
    color: #495057;
}

.steam-wishlist.scheme-light .game-name {
    color: #212529;
}

.steam-wishlist.scheme-dark {
    background: #2d2d30;
    border-color: #404040;
    color: #cccccc;
}

.steam-wishlist.scheme-dark .wishlist-game {
    background: #1e1e1e;
    border-color: #404040;
    color: #cccccc;
}

.steam-wishlist.scheme-dark .game-name {
    color: #ffffff;
}

/* Wishlist Pagination Styles */
.steam-wishlist-pagination {
    margin-top: 20px;
    padding: 15px;
    border-top: 1px solid #3c5a78;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    background: rgba(43, 71, 94, 0.1);
    border-radius: 0 0 8px 8px;
}

.steam-wishlist-pagination .pagination-info {
    color: #8f98a0;
    font-size: 0.9em;
}

.steam-wishlist-pagination .pagination-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.steam-wishlist-pagination .btn {
    display: inline-block;
    padding: 8px 16px;
    background: #2a475e;
    color: #c7d5e0;
    text-decoration: none;
    border: 1px solid #3c5a78;
    border-radius: 4px;
    font-size: 0.9em;
    transition: all 0.3s ease;
    cursor: pointer;
}

.steam-wishlist-pagination .btn:hover {
    background: #316282;
    border-color: #66c0f4;
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-1px);
}

.steam-wishlist-pagination .page-info {
    color: #c7d5e0;
    font-weight: 500;
    padding: 0 10px;
}

/* Wishlist Color Scheme Pagination Styles */
.steam-wishlist.scheme-light .steam-wishlist-pagination {
    border-top-color: #e0e0e0;
    background: rgba(0, 0, 0, 0.05);
}

.steam-wishlist.scheme-light .steam-wishlist-pagination .pagination-info {
    color: #666666;
}

.steam-wishlist.scheme-light .steam-wishlist-pagination .btn {
    background: #ffffff;
    color: #333333;
    border-color: #e0e0e0;
}

.steam-wishlist.scheme-light .steam-wishlist-pagination .btn:hover {
    background: #0066cc;
    border-color: #0066cc;
    color: #ffffff;
}

.steam-wishlist.scheme-light .steam-wishlist-pagination .page-info {
    color: #333333;
}

.steam-wishlist.scheme-dark .steam-wishlist-pagination {
    border-top-color: #333333;
    background: rgba(255, 255, 255, 0.05);
}

.steam-wishlist.scheme-dark .steam-wishlist-pagination .pagination-info {
    color: #aaaaaa;
}

.steam-wishlist.scheme-dark .steam-wishlist-pagination .btn {
    background: #1a1a1a;
    color: #cccccc;
    border-color: #333333;
}

.steam-wishlist.scheme-dark .steam-wishlist-pagination .btn:hover {
    background: #333333;
    border-color: #555555;
    color: #ffffff;
}

.steam-wishlist.scheme-dark .steam-wishlist-pagination .page-info {
    color: #cccccc;
}

/* Color scheme specific styles for Load More buttons */
.steam-wishlist.scheme-light .steam-wishlist-pagination .btn-load-more {
    background: linear-gradient(135deg, #0066cc 0%, #0052a6 100%);
    color: #ffffff;
    border: 1px solid #004080;
}

.steam-wishlist.scheme-light .steam-wishlist-pagination .btn-load-more:hover {
    background: linear-gradient(135deg, #0052a6 0%, #003d80 100%);
    border-color: #002d5c;
}

.steam-wishlist.scheme-dark .steam-wishlist-pagination .btn-load-more {
    background: linear-gradient(135deg, #444444 0%, #333333 100%);
    color: #ffffff;
    border: 1px solid #555555;
}

.steam-wishlist.scheme-dark .steam-wishlist-pagination .btn-load-more:hover {
    background: linear-gradient(135deg, #555555 0%, #444444 100%);
    border-color: #666666;
}

/* Color scheme for showing items text */
.steam-wishlist.scheme-light .steam-wishlist-pagination .showing-items {
    color: #666666;
}

.steam-wishlist.scheme-dark .steam-wishlist-pagination .showing-items {
    color: #aaaaaa;
}

/* Wishlist pagination loading styles */
.steam-wishlist-pagination .pagination-loading {
    text-align: center;
    padding: 15px 0;
    color: #c7d5e0;
    display: none;
}

.steam-wishlist-pagination .loading-spinner {
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-right: 8px;
}

/* Color scheme for loading text */
.steam-wishlist.scheme-light .steam-wishlist-pagination .pagination-loading {
    color: #666666;
}

.steam-wishlist.scheme-dark .steam-wishlist-pagination .pagination-loading {
    color: #aaaaaa;
}

/* Preview mode pagination for wishlist */
.steam-wishlist-pagination .pagination-controls.preview-mode {
    text-align: center;
    padding: 10px 0;
}

.steam-wishlist-pagination .pagination-note {
    color: #8f98a0;
    font-style: italic;
    font-size: 0.9em;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px dashed rgba(255, 255, 255, 0.2);
}

@media (max-width: 480px) {
    .steam-wishlist-pagination {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .steam-wishlist-pagination .pagination-controls {
        justify-content: center;
    }
}

/* Current Players */
.steam-current-players {
    background: #1b2838;
    color: #66c0f4;
    padding: 10px 15px;
    border-radius: 4px;
    text-align: center;
    font-weight: bold;
    margin: 10px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .steam-enhanced-game-block .game-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .steam-enhanced-game-block .game-header-image {
        max-width: 100%;
    }
    
    .steam-profile-block {
        flex-direction: column;
        text-align: center;
    }
    
    .recently-played-game {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
}

/* ===== LIBRARY TEMPLATE SYSTEM ===== */

/* Base Library Styles */
.steam-library-block {
    background: linear-gradient(135deg, #1b2838 0%, #2a475e 100%);
    border: 1px solid #3c5a78;
    border-radius: 8px;
    color: #c7d5e0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    overflow: hidden;
}

/* Grid Template */
.steam-library-block.template-grid {
    padding: 20px;
    width: 100%;
    max-width: none;
}

.library-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    width: 100%;
}

/* Ensure full width for library blocks */
.steam-library-block {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
}

.steam-library-block.template-cards,
.steam-library-block.template-list {
    width: 100%;
    max-width: none;
}

.library-grid-item {
    background: rgba(0,0,0,0.4);
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.library-grid-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}

.library-grid-item .game-image {
    position: relative;
    overflow: hidden;
}

.library-grid-item .game-image img {
    width: 100%;
    height: 180px; /* Fixed height for consistent layout */
    object-fit: cover; /* Maintain aspect ratio while filling container */
    display: block;
    transition: transform 0.3s ease;
}

.library-grid-item:hover .game-image img {
    transform: scale(1.05);
}

.library-grid-item .game-info {
    padding: 12px;
}

.library-grid-item .game-title {
    margin: 0 0 6px 0;
    font-size: 0.9em;
    line-height: 1.3;
}

.library-grid-item .game-title a {
    color: #ffffff;
    text-decoration: none;
    display: block;
}

.library-grid-item .game-title a:hover {
    color: #66c0f4;
}

.library-grid-item .game-playtime {
    margin: 0;
    font-size: 0.8em;
    color: #c7d5e0;
    opacity: 0.8;
}

/* List Template */
.steam-library-block.template-list {
    padding: 15px 0;
}

.library-list-container {
    display: flex;
    flex-direction: column;
}

.library-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: background-color 0.2s ease;
}

.library-list-item:hover {
    background: rgba(255,255,255,0.05);
}

.library-list-item:last-child {
    border-bottom: none;
}

.library-list-item .game-icon {
    width: 32px;
    height: 32px;
    border-radius: 3px;
    flex-shrink: 0;
}

.library-list-item .game-details {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 15px;
}

.library-list-item .game-title {
    margin: 0;
    font-size: 1em;
    flex: 1;
}

.library-list-item .game-title a {
    color: #ffffff;
    text-decoration: none;
}

.library-list-item .game-title a:hover {
    color: #66c0f4;
}

.library-list-item .game-playtime {
    font-size: 0.9em;
    color: #c7d5e0;
    opacity: 0.8;
    white-space: nowrap;
}

/* Cards Template */
.steam-library-block.template-cards {
    padding: 20px;
}

.library-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    width: 100%;
}

.library-card-item {
    background: rgba(0,0,0,0.4);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
}

.library-card-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    border-color: #66c0f4;
}

.library-card-item .card-image {
    position: relative;
    overflow: hidden;
}

.library-card-item .card-image img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.library-card-item:hover .card-image img {
    transform: scale(1.1);
}

.playtime-overlay {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0,0,0,0.8);
    color: #ffffff;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: bold;
    backdrop-filter: blur(4px);
}

.library-card-item .card-content {
    padding: 15px;
}

.library-card-item .game-title {
    margin: 0;
    font-size: 1em;
    line-height: 1.4;
}

.library-card-item .game-title a {
    color: #ffffff;
    text-decoration: none;
    display: block;
}

.library-card-item .game-title a:hover {
    color: #66c0f4;
}

/* Minimal Template */
.steam-library-block.template-minimal {
    padding: 15px 20px;
    background: rgba(27, 40, 56, 0.8);
}

.library-minimal-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.library-minimal-item {
    display: inline-block;
    color: #c7d5e0;
    text-decoration: none;
    padding: 6px 10px;
    background: rgba(0,0,0,0.3);
    border-radius: 15px;
    font-size: 0.85em;
    transition: all 0.2s ease;
    border: 1px solid rgba(255,255,255,0.1);
}

.library-minimal-item:hover {
    background: rgba(102, 192, 244, 0.2);
    color: #ffffff;
    border-color: #66c0f4;
    transform: translateY(-1px);
}

.minimal-playtime {
    opacity: 0.7;
    font-size: 0.9em;
}

/* Column System */
.steam-library-block.columns-2 .library-grid-container,
.steam-library-block.columns-2 .library-cards-container {
    grid-template-columns: repeat(2, 1fr);
}

.steam-library-block.columns-3 .library-grid-container,
.steam-library-block.columns-3 .library-cards-container {
    grid-template-columns: repeat(3, 1fr);
}

.steam-library-block.columns-4 .library-grid-container,
.steam-library-block.columns-4 .library-cards-container {
    grid-template-columns: repeat(4, 1fr);
}

.steam-library-block.columns-5 .library-grid-container,
.steam-library-block.columns-5 .library-cards-container {
    grid-template-columns: repeat(5, 1fr);
}

/* Library Color Schemes */
.steam-library-block.scheme-light {
    background: #f5f5f5;
    color: #333333;
    border: 1px solid #e0e0e0;
}

.steam-library-block.scheme-light .library-grid-item,
.steam-library-block.scheme-light .library-card,
.steam-library-block.scheme-light .library-list-item {
    background: #ffffff;
    color: #333333;
    border-color: #e0e0e0;
}

.steam-library-block.scheme-light .library-grid-item:hover,
.steam-library-block.scheme-light .library-card:hover,
.steam-library-block.scheme-light .library-list-item:hover {
    border-color: #0066cc;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.1);
}

/* Library light scheme text colors - matching wishlist */
.steam-library-block.scheme-light .game-name {
    color: #0066cc;
}

.steam-library-block.scheme-light .game-title a {
    color: #0066cc !important;
}

.steam-library-block.scheme-light .game-title a:hover {
    color: #004080 !important;
}

.steam-library-block.scheme-light .game-price {
    color: #d67e00;
}

.steam-library-block.scheme-light .game-info,
.steam-library-block.scheme-light .game-playtime,
.steam-library-block.scheme-light .game-last-played {
    color: #666666;
}

.steam-library-block.scheme-dark {
    background: #000000;
    color: #cccccc;
    border: 1px solid #333333;
}

.steam-library-block.scheme-dark .library-grid-item,
.steam-library-block.scheme-dark .library-card,
.steam-library-block.scheme-dark .library-list-item {
    background: #1a1a1a;
    color: #cccccc;
    border-color: #333333;
}

.steam-library-block.scheme-dark .library-grid-item:hover,
.steam-library-block.scheme-dark .library-card:hover,
.steam-library-block.scheme-dark .library-list-item:hover {
    border-color: #555555;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

/* Library dark scheme text colors - matching wishlist */
.steam-library-block.scheme-dark .game-name {
    color: #ffffff;
}

.steam-library-block.scheme-dark .game-title a {
    color: #ffffff !important;
}

.steam-library-block.scheme-dark .game-title a:hover {
    color: #66c0f4 !important;
}

.steam-library-block.scheme-dark .game-price {
    color: #ffaa00;
}

.steam-library-block.scheme-dark .game-info,
.steam-library-block.scheme-dark .game-playtime,
.steam-library-block.scheme-dark .game-last-played {
    color: #aaaaaa;
}

.steam-library-block.scheme-steam {
    background: #171a21;
    color: #c7d5e0;
    border: 1px solid #316282;
}

.steam-library-block.scheme-steam .library-grid-item,
.steam-library-block.scheme-steam .library-card,
.steam-library-block.scheme-steam .library-list-item {
    background: #1b2838;
    color: #c7d5e0;
    border-color: #316282;
}

.steam-library-block.scheme-steam .library-grid-item:hover,
.steam-library-block.scheme-steam .library-card:hover,
.steam-library-block.scheme-steam .library-list-item:hover {
    background: #2a475e;
    border-color: #417a9b;
}

.steam-library-block.scheme-steam .library-minimal-item {
    background: #316282;
    color: #ffffff;
}

.steam-library-block.scheme-steam .library-minimal-item:hover {
    background: #417a9b;
}

/* Steam scheme text colors */
.steam-library-block.scheme-steam .game-title a {
    color: #c7d5e0 !important;
}

.steam-library-block.scheme-steam .game-title a:hover {
    color: #66c0f4 !important;
}

/* Library Pagination Styles */
.steam-library-pagination {
    margin-top: 20px;
    padding: 15px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.steam-library-pagination .pagination-info {
    color: #666;
    font-size: 0.9em;
}

.steam-library-pagination .pagination-controls {
    display: flex;
    gap: 10px;
}

.steam-library-pagination .btn {
    display: inline-block;
    padding: 8px 16px;
    background: #2a475e;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
}

.steam-library-pagination .btn:hover {
    background: #316282;
    text-decoration: none;
    color: white;
}

.steam-library-pagination .btn-prev::before {
    content: "←";
    margin-right: 5px;
}

.steam-library-pagination .btn-next::after {
    content: "→";
    margin-left: 5px;
}

.steam-library-more-info {
    margin-top: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-left: 4px solid #2a475e;
    border-radius: 4px;
}

.steam-library-more-info .showing-games {
    color: #666;
    font-size: 0.9em;
}

.steam-library-more-info small {
    display: block;
    margin-top: 5px;
    color: #888;
    font-style: italic;
}

/* Library Color Scheme Pagination - Based on improved Wishlist styling */

/* Light theme pagination */
.steam-library-block.scheme-light .steam-library-pagination {
    border-top-color: #e0e0e0;
    background: rgba(0, 0, 0, 0.05);
}

.steam-library-block.scheme-light .steam-library-pagination .pagination-info {
    color: #666666;
}

.steam-library-block.scheme-light .steam-library-pagination .btn {
    background: #ffffff;
    color: #333333;
    border-color: #e0e0e0;
}

.steam-library-block.scheme-light .steam-library-pagination .btn:hover {
    background: #0066cc;
    border-color: #0066cc;
    color: #ffffff;
}

.steam-library-block.scheme-light .steam-library-pagination .page-info {
    color: #333333;
}

.steam-library-block.scheme-light .steam-library-pagination .btn-load-more {
    background: linear-gradient(135deg, #0066cc 0%, #0052a6 100%);
    color: #ffffff;
    border: 1px solid #004080;
}

.steam-library-block.scheme-light .steam-library-pagination .btn-load-more:hover {
    background: linear-gradient(135deg, #0052a6 0%, #003d80 100%);
    border-color: #002d5c;
}

.steam-library-block.scheme-light .steam-library-pagination .showing-games {
    color: #666666;
}

.steam-library-block.scheme-light .steam-library-pagination .pagination-loading {
    color: #666666;
}

/* Dark theme pagination */
.steam-library-block.scheme-dark .steam-library-pagination {
    border-top-color: #333333;
    background: rgba(255, 255, 255, 0.05);
}

.steam-library-block.scheme-dark .steam-library-pagination .pagination-info {
    color: #aaaaaa;
}

.steam-library-block.scheme-dark .steam-library-pagination .btn {
    background: #1a1a1a;
    color: #cccccc;
    border-color: #333333;
}

.steam-library-block.scheme-dark .steam-library-pagination .btn:hover {
    background: #333333;
    border-color: #555555;
    color: #ffffff;
}

.steam-library-block.scheme-dark .steam-library-pagination .page-info {
    color: #cccccc;
}

.steam-library-block.scheme-dark .steam-library-pagination .btn-load-more {
    background: linear-gradient(135deg, #444444 0%, #333333 100%);
    color: #ffffff;
    border: 1px solid #555555;
}

.steam-library-block.scheme-dark .steam-library-pagination .btn-load-more:hover {
    background: linear-gradient(135deg, #555555 0%, #444444 100%);
    border-color: #666666;
}

.steam-library-block.scheme-dark .steam-library-pagination .showing-games {
    color: #aaaaaa;
}

.steam-library-block.scheme-dark .steam-library-pagination .pagination-loading {
    color: #aaaaaa;
}

.steam-library-block.scheme-dark .steam-library-pagination .pagination-loading {
    color: #aaaaaa;
}

/* Steam theme pagination */
.steam-library-block.scheme-steam .steam-library-pagination {
    border-top-color: #316282;
    background: #1b2838;
}

.steam-library-block.scheme-steam .steam-library-pagination .pagination-info {
    color: #c7d5e0;
}

.steam-library-block.scheme-steam .steam-library-pagination .btn {
    background: #2a475e;
    color: #c7d5e0;
    border-color: #3c5a78;
}

.steam-library-block.scheme-steam .steam-library-pagination .btn:hover {
    background: #316282;
    border-color: #66c0f4;
    color: #ffffff;
}

.steam-library-block.scheme-steam .steam-library-pagination .page-info {
    color: #c7d5e0;
}

.steam-library-block.scheme-steam .steam-library-pagination .btn-load-more {
    background: linear-gradient(135deg, #90c842 0%, #7bb934 100%);
    color: #ffffff;
    border: none;
}

.steam-library-block.scheme-steam .steam-library-pagination .btn-load-more:hover {
    background: linear-gradient(135deg, #7bb934 0%, #6aa826 100%);
}

.steam-library-block.scheme-steam .steam-library-pagination .showing-games {
    color: #c7d5e0;
}

.steam-library-block.scheme-steam .steam-library-pagination .pagination-loading {
    color: #c7d5e0;
}

/* Preview mode pagination */
.steam-library-pagination .pagination-controls.preview-mode {
    text-align: center;
    padding: 10px 0;
}

.steam-library-pagination .pagination-note {
    color: #7c8a99;
    font-style: italic;
    font-size: 0.9em;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px dashed rgba(255, 255, 255, 0.2);
}

/* AJAX Pagination Styles */
.steam-library-pagination .pagination-loading {
    text-align: center;
    padding: 15px 0;
    color: #c7d5e0;
}

.steam-library-pagination .loading-spinner {
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-right: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.steam-library-pagination .page-info {
    color: #c7d5e0;
    margin: 0 15px;
    font-size: 0.9em;
    opacity: 0.8;
}

.steam-library-pagination .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Load More Button - Library and Wishlist */
.steam-library-pagination .btn-load-more,
.steam-wishlist-pagination .btn-load-more {
    background: linear-gradient(135deg, #90c842 0%, #7bb934 100%);
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.steam-library-pagination .btn-load-more:hover,
.steam-wishlist-pagination .btn-load-more:hover {
    background: linear-gradient(135deg, #7bb934 0%, #6aa826 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

/* Wishlist pagination styling */
.steam-wishlist-pagination {
    margin-top: 20px;
    padding: 15px;
    background: rgba(27, 40, 56, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    text-align: center;
}

.steam-wishlist-pagination .pagination-info {
    margin-bottom: 15px;
}

.steam-wishlist-pagination .showing-items {
    color: #8f98a0;
    font-size: 14px;
}

/* Notification System - More subtle positioning */
.steam-notification {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    padding: 8px 16px;
    border-radius: 20px;
    color: #ffffff;
    font-size: 14px;
    font-weight: normal;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    display: none;
    text-align: center;
    opacity: 0.9;
}

.steam-notification.info {
    background: linear-gradient(135deg, #66c0f4 0%, #4a9eda 100%);
}

.steam-notification.success {
    background: linear-gradient(135deg, #90c842 0%, #7bb934 100%);
}

.steam-notification.error {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

/* Smooth transitions for content replacement */
.steam-library-block {
    transition: opacity 0.3s ease;
}

/* Mobile responsiveness for notifications */
@media (max-width: 768px) {
    .steam-notification {
        left: 20px;
        right: 20px;
        bottom: 20px;
        transform: none;
        font-size: 13px;
        padding: 6px 12px;
    }
    
    .steam-library-pagination .page-info {
        display: block;
        margin: 10px 0;
    }
}

/* Responsive pagination */
@media (max-width: 768px) {
    .steam-library-pagination {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .steam-library-pagination .pagination-controls {
        margin-top: 10px;
    }
}

/* Responsive adjustments for library */
@media (max-width: 1200px) {
    .steam-library-block.columns-5 .library-grid-container,
    .steam-library-block.columns-5 .library-cards-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .steam-library-block.columns-4 .library-grid-container,
    .steam-library-block.columns-4 .library-cards-container,
    .steam-library-block.columns-5 .library-grid-container,
    .steam-library-block.columns-5 .library-cards-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .library-grid-container,
    .library-cards-container {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
    }
    
    .library-list-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .library-list-item .game-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        width: 100%;
    }
    
    .library-minimal-container {
        gap: 5px;
    }
    
    .library-minimal-item {
        font-size: 0.8em;
        padding: 4px 8px;
    }
}

@media (max-width: 480px) {
    .library-grid-container,
    .library-cards-container {
        grid-template-columns: 1fr !important;
    }
}

/* ===========================================
   CUSTOMIZER PREVIEW GRID FIXES
   Fix grid layout issues in narrow customizer preview
   =========================================== */
   
/* Fix for wishlist grid template in customizer preview */
#live-preview .steam-wishlist.template-grid .wishlist-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
    width: 100% !important;
}

/* Ensure grid items fill available space properly in narrow container */
#live-preview .steam-wishlist.template-grid .wishlist-game {
    min-width: 0 !important; /* Allow shrinking below content size */
    width: 100% !important;
}

/* Override specific column settings for better preview display */
#live-preview .steam-wishlist.columns-2.template-grid .wishlist-grid {
    grid-template-columns: repeat(2, 1fr) !important;
}

#live-preview .steam-wishlist.columns-3.template-grid .wishlist-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important;
}

#live-preview .steam-wishlist.columns-4.template-grid .wishlist-grid,
#live-preview .steam-wishlist.columns-5.template-grid .wishlist-grid,
#live-preview .steam-wishlist.columns-6.template-grid .wishlist-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)) !important;
}

/* Fix for library grid template in customizer preview */
#live-preview .steam-library.template-grid .library-grid-container {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
    width: 100% !important;
}

#live-preview .steam-library.template-grid .library-game {
    min-width: 0 !important;
    width: 100% !important;
}

/* Library column overrides for preview */
#live-preview .steam-library.columns-2.template-grid .library-grid-container {
    grid-template-columns: repeat(2, 1fr) !important;
}

#live-preview .steam-library.columns-3.template-grid .library-grid-container {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important;
}

#live-preview .steam-library.columns-4.template-grid .library-grid-container,
#live-preview .steam-library.columns-5.template-grid .library-grid-container,
#live-preview .steam-library.columns-6.template-grid .library-grid-container {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)) !important;
}

/* ============================================================================
   SINGLE GAME VIEW STYLES
   ============================================================================ */

/* Base Single Game View Container */
.steam-single-game-view {
    background: linear-gradient(135deg, #1b2838 0%, #2a475e 100%);
    border: 1px solid #3c5a78;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    margin-bottom: 30px;
    color: #c7d5e0;
    font-family: Arial, sans-serif;
}

/* Color Scheme Variations */
.steam-single-game-view.scheme-light {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-color: #d1d9e6;
    color: #2c3e50;
}

.steam-single-game-view.scheme-dark {
    background: linear-gradient(135deg, #0c0c0c 0%, #1a1a1a 100%);
    border-color: #333;
    color: #e0e0e0;
}

/* Steam Buttons */
.steam-button,
.steam-button-minimal {
    background: linear-gradient(135deg, #4c6c90 0%, #417a9b 50%, #4c6c90 100%);
    color: #ffffff;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.steam-button:hover,
.steam-button-minimal:hover {
    background: linear-gradient(135deg, #5a7da6 0%, #4a8bb3 50%, #5a7da6 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    color: #ffffff;
    text-decoration: none;
}

.steam-button-minimal {
    padding: 8px 16px;
    font-size: 12px;
    border-radius: 4px;
}

/* ============================================================================
   HERO TEMPLATE
   ============================================================================ */

.hero-template {
    position: relative;
}

.hero-background {
    position: relative;
    height: 400px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
    padding: 0;
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(27, 40, 56, 0.9) 50%, rgba(27, 40, 56, 0.95));
    padding: 40px;
}

.hero-header .game-title {
    font-size: 2.5em;
    margin: 0 0 10px 0;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    font-weight: bold;
    line-height: 1.1;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.hero-header .game-tagline {
    font-size: 1.2em;
    margin: 0 0 15px 0;
    color: #c7d5e0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Limit to 3 lines on desktop */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hero-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.hero-meta span {
    background: rgba(76, 108, 144, 0.8);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: 500;
}

.hero-media {
    padding: 30px;
    background: rgba(27, 40, 56, 0.5);
}

.hero-description {
    padding: 30px;
}

.hero-description h3 {
    color: #ffffff;
    margin-bottom: 15px;
    font-size: 1.5em;
    border-bottom: 2px solid #4c6c90;
    padding-bottom: 10px;
}

/* ============================================================================
   CARD TEMPLATE
   ============================================================================ */

.card-template {
    padding: 25px;
}

.card-header {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.card-header .game-image {
    width: 200px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    flex-shrink: 0;
}

.card-info {
    flex: 1;
}

.card-info .game-title {
    font-size: 1.8em;
    margin: 0 0 10px 0;
    color: #ffffff;
    font-weight: bold;
}

.card-info .game-developer {
    color: #c7d5e0;
    margin: 0 0 15px 0;
    font-size: 1.1em;
}

.game-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.discount {
    background: #4c971a;
    color: #ffffff;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.9em;
}

.original-price {
    text-decoration: line-through;
    color: #8F98A0;
    font-size: 0.9em;
}

.final-price {
    color: #ffffff;
    font-weight: bold;
    font-size: 1.2em;
}

.card-description {
    margin: 20px 0;
    padding: 15px;
    background: rgba(76, 108, 144, 0.2);
    border-radius: 8px;
    border-left: 4px solid #4c6c90;
}

.card-media {
    margin-top: 20px;
}

/* ============================================================================
   DETAILED TEMPLATE
   ============================================================================ */

.detailed-template {
    padding: 30px;
}

.detailed-header {
    margin-bottom: 30px;
}

.header-content {
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

.game-image-container {
    flex-shrink: 0;
}

.game-image-container .game-image {
    width: 250px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.game-info {
    flex: 1;
}

.detailed-template .game-title {
    font-size: 2.2em;
    margin: 0 0 10px 0;
    color: #ffffff;
    font-weight: bold;
}

.detailed-template .game-subtitle {
    font-size: 1.2em;
    color: #c7d5e0;
    margin-bottom: 20px;
    line-height: 1.4;
}

.game-meta {
    margin-bottom: 20px;
}

.meta-item {
    display: flex;
    margin-bottom: 8px;
    align-items: flex-start;
}

.meta-item strong {
    color: #ffffff;
    min-width: 120px;
    font-weight: bold;
    margin-right: 10px;
}

.meta-item span {
    color: #c7d5e0;
    line-height: 1.4;
}

.price-section {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.discount-badge {
    background: #4c971a;
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 1.1em;
}

.price-container {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.price-container .original-price {
    text-decoration: line-through;
    color: #8F98A0;
    font-size: 1em;
}

.price-container .final-price {
    color: #ffffff;
    font-weight: bold;
    font-size: 1.5em;
}

.detailed-media,
.detailed-description {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #3c5a78;
}

.detailed-description h3 {
    color: #ffffff;
    margin-bottom: 15px;
    font-size: 1.6em;
    font-weight: bold;
}

.description-content {
    line-height: 1.6;
    color: #c7d5e0;
}

/* ============================================================================
   MINIMAL TEMPLATE
   ============================================================================ */

.minimal-template {
    padding: 15px;
}

.minimal-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.game-thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

.minimal-info {
    flex: 1;
    min-width: 0;
}

.minimal-template .game-title {
    font-size: 1.2em;
    margin: 0 0 5px 0;
    color: #ffffff;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.minimal-template .game-developer {
    color: #c7d5e0;
    margin: 0 0 8px 0;
    font-size: 0.9em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.minimal-template .game-price {
    color: #ffffff;
    font-weight: bold;
    font-size: 1em;
}

/* ============================================================================
   MEDIA GALLERY
   ============================================================================ */

.media-gallery {
    display: grid;
    gap: 15px;
    margin: 20px 0;
}

.media-gallery.gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.media-gallery.gallery-carousel {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    overflow-x: auto;
}

.media-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #2a475e;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.media-item img,
.media-item video {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.media-item:hover img,
.media-item:hover video {
    transform: scale(1.05);
}

.media-item video {
    background: #000;
}

/* ============================================================================
   ADDITIONAL SECTIONS
   ============================================================================ */

.requirements-section,
.stats-section,
.achievements-section,
.news-section {
    margin-top: 30px;
    padding: 25px;
    background: rgba(76, 108, 144, 0.1);
    border-radius: 10px;
    border: 1px solid #3c5a78;
}

.requirements-section h3,
.stats-section h3,
.achievements-section h3,
.news-section h3 {
    color: #ffffff;
    margin-bottom: 15px;
    font-size: 1.4em;
    font-weight: bold;
    border-bottom: 2px solid #4c6c90;
    padding-bottom: 8px;
}

.requirements-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.requirements-minimum,
.requirements-recommended {
    background: rgba(27, 40, 56, 0.3);
    padding: 15px;
    border-radius: 8px;
}

.requirements-minimum h4,
.requirements-recommended h4 {
    color: #ffffff;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.stat-item {
    background: rgba(27, 40, 56, 0.3);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

.stat-label {
    display: block;
    color: #c7d5e0;
    font-size: 0.9em;
    margin-bottom: 5px;
}

.stat-value {
    display: block;
    color: #ffffff;
    font-size: 1.3em;
    font-weight: bold;
}

.achievements-preview {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.achievement-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(27, 40, 56, 0.3);
    padding: 10px;
    border-radius: 6px;
    flex: 1;
    min-width: 150px;
}

.achievement-item img {
    width: 32px;
    height: 32px;
    border-radius: 4px;
}

.achievement-item span {
    color: #c7d5e0;
    font-size: 0.9em;
}

.news-items {
    display: grid;
    gap: 20px;
}

.news-item {
    background: rgba(27, 40, 56, 0.3);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #4c6c90;
}

.news-item h4 {
    margin: 0 0 10px 0;
    font-size: 1.2em;
}

.news-item h4 a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-item h4 a:hover {
    color: #6db3f2;
}

.news-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    color: #8F98A0;
    font-size: 0.9em;
}

.news-item p {
    color: #c7d5e0;
    line-height: 1.5;
    margin: 0;
}

/* ============================================================================
   RESPONSIVE DESIGN
   ============================================================================ */

@media (max-width: 768px) {
    .steam-single-game-view {
        margin: 15px 0;
        border-radius: 8px;
    }
    
    /* Hero Template Mobile - Improved Responsiveness */
    .hero-background {
        height: 300px; /* Increased height for better proportions */
        background-attachment: scroll; /* Improve performance on mobile */
    }
    
    .hero-overlay {
        padding: 20px 15px 15px 15px; /* Adjusted padding */
        background: linear-gradient(transparent 20%, rgba(27, 40, 56, 0.85) 60%, rgba(27, 40, 56, 0.95)); /* Better gradient */
    }
    
    .hero-header .game-title {
        font-size: 1.6em; /* Slightly smaller but still prominent */
        line-height: 1.2;
        margin-bottom: 8px;
    }
    
    .hero-header .game-tagline {
        font-size: 1em; /* Reduced size for mobile */
        margin-bottom: 10px;
        display: -webkit-box;
        -webkit-line-clamp: 2; /* Limit to 2 lines */
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .hero-meta {
        flex-direction: row; /* Keep horizontal but wrap */
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 15px;
    }
    
    .hero-meta span {
        padding: 4px 8px;
        font-size: 0.8em;
    }
    
    .hero-media,
    .hero-description {
        padding: 15px;
    }
    
    .hero-description h3 {
        font-size: 1.2em;
        margin-bottom: 10px;
    }
    
    /* Card Template Mobile */
    .card-template {
        padding: 20px;
    }
    
    .card-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .card-header .game-image {
        width: 100%;
        max-width: 300px;
        align-self: center;
    }
    
    /* Detailed Template Mobile */
    .detailed-template {
        padding: 20px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .game-image-container .game-image {
        width: 100%;
        max-width: 300px;
    }
    
    .detailed-template .game-title {
        font-size: 1.8em;
    }
    
    .meta-item {
        flex-direction: column;
        margin-bottom: 12px;
    }
    
    .meta-item strong {
        min-width: auto;
        margin-bottom: 4px;
    }
    
    .price-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    /* Minimal Template Mobile */
    .minimal-content {
        gap: 10px;
    }
    
    .game-thumbnail {
        width: 60px;
        height: 60px;
    }
    
    .minimal-template .game-title {
        font-size: 1.1em;
    }
    
    /* Media Gallery Mobile */
    .media-gallery.gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .media-gallery.gallery-carousel {
        grid-template-columns: 1fr;
    }
    
    /* Additional Sections Mobile */
    .requirements-content {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .achievements-preview {
        flex-direction: column;
    }
    
    .achievement-item {
        min-width: auto;
    }
    
    /* Buttons Mobile */
    .steam-button,
    .steam-button-minimal {
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }
}

@media (max-width: 480px) {
    .steam-single-game-view {
        margin: 10px;
        border-radius: 6px;
    }
    
    /* Hero Template Small Mobile - Ultra Responsive */
    .hero-background {
        height: 250px; /* Optimal height for small screens */
    }
    
    .hero-overlay {
        padding: 15px 10px 10px 10px; /* Tighter padding */
        background: linear-gradient(transparent 15%, rgba(27, 40, 56, 0.9) 65%, rgba(27, 40, 56, 0.98)); /* Stronger gradient */
    }
    
    .hero-header .game-title {
        font-size: 1.3em; /* Compact but readable */
        line-height: 1.1;
        margin-bottom: 6px;
    }
    
    .hero-header .game-tagline {
        font-size: 0.9em;
        margin-bottom: 8px;
        display: -webkit-box;
        -webkit-line-clamp: 2; /* Strict 2-line limit */
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .hero-meta {
        gap: 6px;
        margin-bottom: 10px;
    }
    
    .hero-meta span {
        padding: 3px 6px;
        font-size: 0.75em;
        border-radius: 3px;
    }
    
    .card-template,
    .detailed-template {
        padding: 15px;
    }
    
    .detailed-template .game-title {
        font-size: 1.6em;
    }
    
    .requirements-section,
    .stats-section,
    .achievements-section,
    .news-section {
        padding: 15px;
        margin-top: 20px;
    }
    
    .news-item {
        padding: 15px;
    }
}

/* Light Theme Adjustments */
.steam-single-game-view.scheme-light .steam-button,
.steam-single-game-view.scheme-light .steam-button-minimal {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 50%, #4a90e2 100%);
}

.steam-single-game-view.scheme-light .hero-overlay {
    background: linear-gradient(transparent, rgba(245, 247, 250, 0.9) 50%, rgba(245, 247, 250, 0.95));
}

.steam-single-game-view.scheme-light .hero-header .game-title,
.steam-single-game-view.scheme-light .detailed-template .game-title,
.steam-single-game-view.scheme-light .card-info .game-title {
    color: #2c3e50;
}

.steam-single-game-view.scheme-light .final-price {
    color: #2c3e50;
}

/* Dark Theme Adjustments */
.steam-single-game-view.scheme-dark .hero-overlay {
    background: linear-gradient(transparent, rgba(12, 12, 12, 0.9) 50%, rgba(12, 12, 12, 0.95));
}

.steam-single-game-view.scheme-dark .requirements-section,
.steam-single-game-view.scheme-dark .stats-section,
.steam-single-game-view.scheme-dark .achievements-section,
.steam-single-game-view.scheme-dark .news-section {
    background: rgba(255, 255, 255, 0.05);
    border-color: #555;
}

/* Clickable Image Links */
.steam-single-game-view .card-header a,
.steam-single-game-view .game-image-container a {
    display: block;
    transition: all 0.3s ease;
    border-radius: 4px;
    overflow: hidden;
}

.steam-single-game-view .card-header a:hover,
.steam-single-game-view .game-image-container a:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.steam-single-game-view .hero-link {
    display: block;
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

.steam-single-game-view .hero-link:hover {
    transform: scale(1.02);
}

.steam-single-game-view .hero-link:hover .hero-overlay {
    background: linear-gradient(transparent, rgba(12, 12, 12, 0.7) 50%, rgba(12, 12, 12, 0.85));
}

/* Achievement Icons Fix */
.steam-single-game-view .achievement-item img {
    width: 32px;
    height: 32px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 8px;
}

.steam-single-game-view .achievement-icon-fallback {
    display: inline-block;
    width: 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    font-size: 20px;
    margin-right: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.steam-single-game-view .achievement-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

/* ============================================
   PERFORMANCE OPTIMIZED IMAGE SYSTEM v2.2.11
   ============================================ */

/* Enhanced placeholder for JavaScript-replaced failed images */
.game-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border: 2px solid #333;
    border-radius: 6px;
    color: #66c0f4;
    font-weight: bold;
    font-size: 16px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.game-image-placeholder:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 192, 244, 0.1), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.game-image-placeholder .game-initial {
    font-size: 1.2em;
    z-index: 1;
}

/* Fast loading optimization */
.steam-library img, .steam-wishlist img {
    transition: opacity 0.2s ease;
    background: #1a1a1a; /* Fallback color while loading */
}

/* Failed image styling (before JavaScript replacement) */
.steam-library img.failed-to-load, 
.steam-library-block img.failed-to-load, 
.steam-wishlist img.failed-to-load, 
.steam-wishlist-block img.failed-to-load {
    opacity: 0.3;
    filter: grayscale(100%);
}

/* Size-specific placeholders to match original images */
.template-grid .game-image-placeholder {
    width: 184px;
    height: 69px;
    font-size: 14px;
}

.template-list .game-image-placeholder {
    width: 120px;
    height: 45px;
    font-size: 12px;
}

.template-cards .game-image-placeholder {
    width: 200px;
    height: 300px;
    font-size: 24px;
}

.template-minimal .game-image-placeholder {
    width: 32px;
    height: 32px;
    font-size: 10px;
    border-radius: 50%;
}

/* Performance: Mobile responsive optimization */
@media (max-width: 768px) {
    .game-image-placeholder {
        font-size: 12px;
    }
    
    .template-cards .game-image-placeholder {
        width: 150px;
        height: 225px;
        font-size: 18px;
    }
    
    /* Disable shimmer animation on mobile for better performance */
    .game-image-placeholder:before {
        animation: none;
    }
}
