/* Admin styles for Manager for Steam */

/* Status indicators in admin */
.status-indicator {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    margin-right: 5px;
}

.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 */

/* Cache management section */
#clear-profile-cache {
    margin-right: 10px;
}

#cache-status {
    font-weight: bold;
    transition: opacity 0.3s ease;
}

/* Tooltip improvements */
.shortcode-tooltip {
    cursor: help;
    text-decoration: underline;
    text-decoration-style: dotted;
    color: #0073aa;
}

.shortcode-tooltip:hover {
    color: #005177;
}

/* jQuery UI Tooltip override */
.ui-tooltip {
    background: #333;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    padding: 8px 12px;
    max-width: 300px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 9999;
}

.ui-tooltip-content {
    position: relative;
}

/* Base admin styling */
.steam-manager-admin .wrap {
    max-width: 1200px;
}

/* Search Results */
.search-results {
    margin-top: 20px;
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    padding: 15px;
}

.search-loading {
    text-align: center;
    padding: 20px;
    font-style: italic;
    color: #666;
}

.steam-games-list {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
    max-height: 400px;
    overflow-y: auto;
}

.steam-game-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    margin: 5px 0;
    background: #f8f9fa;
    border: 1px solid #e1e3e6;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.steam-game-item:hover {
    background: #e9ecef;
    border-color: #0073aa;
}

.steam-game-item .game-name {
    flex: 1;
    font-weight: 500;
}

.steam-game-item .game-appid {
    color: #666;
    font-size: 0.9em;
    margin-right: 10px;
}

.copy-appid {
    background: #0073aa !important;
    color: white !important;
    border: none !important;
    padding: 4px 8px !important;
    font-size: 12px !important;
    border-radius: 3px !important;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.copy-appid:hover {
    background: #005a87 !important;
}

/* Form styling */
#steam-manager-search-form {
    margin-bottom: 20px;
    padding: 15px;
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
}

#steam_game_query {
    margin-right: 10px;
    min-width: 300px;
}

#steam-manager-search-btn {
    background: #0073aa;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
}

#steam-manager-search-btn:hover {
    background: #005a87;
}

/* Shortcode examples styling */
.shortcode-examples {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    padding: 20px;
    margin-top: 20px;
}

.shortcode-examples ul {
    list-style: none;
    padding: 0;
}

.shortcode-examples li {
    margin-bottom: 10px;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 4px;
    border-left: 4px solid #0073aa;
}

.shortcode-examples code {
    background: #1e1e1e;
    color: #569cd6;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-weight: bold;
}

/* Tab content styling */
.nav-tab-wrapper {
    margin-bottom: 20px;
    border-bottom: 1px solid #ccd0d4;
}

.nav-tab {
    position: relative;
    padding: 12px 16px;
    font-weight: 500;
}

.nav-tab-active {
    background: #fff;
    border-bottom-color: #fff;
}

.nav-tab-active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: #0073aa;
}

/* Steam data display styling */
.steam-data-table {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    overflow: hidden;
}

.steam-data-table table {
    width: 100%;
    border-collapse: collapse;
}

.steam-data-table th,
.steam-data-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e1e3e6;
    text-align: left;
}

.steam-data-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.steam-data-table tr:last-child td {
    border-bottom: none;
}

/* Status messages */
.steam-status-message {
    padding: 10px 15px;
    margin: 15px 0;
    border-radius: 4px;
    border-left: 4px solid;
}

.steam-status-message.success {
    background: #d4edda;
    color: #155724;
    border-left-color: #28a745;
}

.steam-status-message.error {
    background: #f8d7da;
    color: #721c24;
    border-left-color: #dc3545;
}

.steam-status-message.warning {
    background: #fff3cd;
    color: #856404;
    border-left-color: #ffc107;
}

/* Profile avatar styling */
.steam-profile-avatar {
    border: 2px solid #0073aa;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Responsive design */
@media (max-width: 768px) {
    .steam-game-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .steam-game-item .game-appid {
        margin-right: 0;
        margin-bottom: 5px;
    }
    
    #steam_game_query {
        min-width: 100%;
        margin-bottom: 10px;
        margin-right: 0;
    }
    
    #steam-manager-search-form {
        text-align: left;
    }
    
    .nav-tab-wrapper .nav-tab {
        display: block;
        margin: 0;
        border-radius: 0;
    }
}

/* Steam game blocks in admin */
.steam-game-block, 
.steam-profile-block,
.steam-library-block,
.steam-friends-block,
.steam-achievements-block,
.steam-news-block {
    background: #f8f8f8; 
    border: 1px solid #ddd; 
    padding: 16px; 
    margin-bottom: 16px; 
    border-radius: 8px;
}

.steam-wishlist-button { 
    background: #171a21; 
    color: #fff; 
    padding: 8px 16px; 
    border-radius: 4px; 
    text-decoration: none; 
    font-weight: bold;
    display: inline-block;
    transition: all 0.3s ease;
}

.steam-wishlist-button:hover { 
    background: #2a475e;
    color: #fff;
    text-decoration: none;
}
