/* 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 {
    width: 32px;
    height: 32px;
    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;
    font-size: 14px;
    text-transform: uppercase;
    flex-shrink: 0;
}

.game-icon-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;
}

/* 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: 0px solid #3c5a78;
    border-radius: 8px;
    color: #c7d5e0;
    box-shadow: 0 0px 0px rgba(0,0,0,0.3);
    overflow: hidden;
    transition: all 0.3s ease;
}

.steam-profile-block:hover {
    box-shadow: 0 0px 0px 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: 59;
    height: 63px;
}

.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: 0px 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 - only container is seamless */
}

/* ===== 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;
}

/* 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: auto;
    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: #ffffff;
    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: #f8f9fa;
    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 {
    background: #e9ecef;
    border-color: #c0c0c0;
}

.steam-library-block.scheme-dark {
    background: #1e1e1e;
    color: #ffffff;
    border: 1px solid #404040;
}

.steam-library-block.scheme-dark .library-grid-item,
.steam-library-block.scheme-dark .library-card,
.steam-library-block.scheme-dark .library-list-item {
    background: #2d2d30;
    color: #ffffff;
    border-color: #404040;
}

.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 {
    background: #3e3e42;
    border-color: #606060;
}

.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;
}

/* 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;
}

/* Dark theme pagination */
.steam-library-block.scheme-dark .steam-library-pagination {
    border-top-color: #404040;
    background: #2d2d30;
}

.steam-library-block.scheme-dark .pagination-info {
    color: #ccc;
}

.steam-library-block.scheme-steam .steam-library-pagination {
    border-top-color: #316282;
    background: #1b2838;
}

.steam-library-block.scheme-steam .pagination-info {
    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 */
.steam-library-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 {
    background: linear-gradient(135deg, #7bb934 0%, #6aa826 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

/* 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;
    }
}
