/**
 * Steam Profile Pro - Frontend Styles
 */

/* Inventory Page */
.steam-inventory-page {
    max-width: 1200px;
}

.inventory-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e1e1e1;
    flex-wrap: wrap;
    gap: 20px;
}

.inventory-stats {
    display: flex;
    gap: 30px;
}

.inventory-stats .stat {
    text-align: center;
}

.inventory-stats .stat-value {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: #333;
}

.inventory-stats .stat-label {
    font-size: 13px;
    color: #666;
}

.inventory-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.inventory-actions .last-sync {
    font-size: 13px;
    color: #888;
}

/* Inventory Grid */
.inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.inventory-item {
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.inventory-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.inventory-item.not-tradable {
    opacity: 0.7;
}

.inventory-item .item-image {
    position: relative;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 10px;
    text-align: center;
}

.inventory-item .item-image img {
    max-width: 100%;
    height: auto;
}

.not-tradable-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #dc3545;
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 3px;
}

.inventory-item .item-info {
    padding: 10px;
}

.inventory-item .item-name {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.inventory-item .item-exterior {
    display: block;
    font-size: 11px;
    color: #666;
    margin-top: 3px;
}

.inventory-item .item-rarity {
    display: inline-block;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 3px;
    margin-top: 5px;
    background: #e9ecef;
    color: #666;
}

/* Rarity colors */
.item-rarity.rarity-consumer-grade { background: #b0c3d9; color: #333; }
.item-rarity.rarity-industrial-grade { background: #5e98d9; color: #fff; }
.item-rarity.rarity-mil-spec-grade { background: #4b69ff; color: #fff; }
.item-rarity.rarity-restricted { background: #8847ff; color: #fff; }
.item-rarity.rarity-classified { background: #d32ce6; color: #fff; }
.item-rarity.rarity-covert { background: #eb4b4b; color: #fff; }
.item-rarity.rarity-contraband { background: #e4ae39; color: #333; }

/* Status Page */
.steam-status-page {
    max-width: 800px;
}

.status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.status-profile {
    display: flex;
    align-items: center;
    gap: 15px;
}

.status-avatar {
    width: 64px;
    height: 64px;
    border-radius: 8px;
}

.status-profile-info h3 {
    margin: 0 0 5px;
}

.status-profile-info code {
    font-size: 12px;
    color: #666;
}

/* Status Card */
.status-card {
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.status-card h4 {
    margin: 0 0 15px;
    font-size: 16px;
    color: #333;
}

.status-card.status-ok {
    border-left: 4px solid #28a745;
}

.status-card.status-error {
    border-left: 4px solid #dc3545;
}

.status-message {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 15px;
}

.status-message.status-success {
    color: #28a745;
}

.status-message.status-error {
    color: #dc3545;
}

.status-message .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

/* Checklist */
.status-checklist {
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.status-checklist h4 {
    margin: 0 0 15px;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.checklist-item .check-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checklist-item.check-ok .check-icon {
    background: #28a745;
}

.checklist-item.check-ok .check-icon::after {
    content: '✓';
    color: #fff;
    font-size: 12px;
}

.checklist-item.check-fail .check-icon {
    background: #dc3545;
}

.checklist-item.check-fail .check-icon::after {
    content: '✗';
    color: #fff;
    font-size: 12px;
}

.checklist-item.check-warn .check-icon {
    background: #ffc107;
}

.checklist-item.check-warn .check-icon::after {
    content: '!';
    color: #333;
    font-size: 12px;
    font-weight: bold;
}

.checklist-item .check-label {
    flex: 1;
}

.checklist-item .check-action {
    font-size: 13px;
}

/* Status Table */
.status-table {
    width: 100%;
    border-collapse: collapse;
}

.status-table td {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.status-table tr:last-child td {
    border-bottom: none;
}

.status-table td:first-child {
    color: #666;
}

.status-table td:last-child {
    text-align: right;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
}

.badge-success {
    background: #d4edda;
    color: #155724;
}

.badge-danger {
    background: #f8d7da;
    color: #721c24;
}

.badge-warning {
    background: #fff3cd;
    color: #856404;
}

/* Dashboard Widget */
.steam-dashboard-widget {
    background: #f8f9fa;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.steam-dashboard-widget h3 {
    margin: 0 0 15px;
    font-size: 16px;
}

.steam-dashboard-widget .widget-status {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
}

.steam-dashboard-widget .widget-status.status-ok {
    color: #28a745;
}

.steam-dashboard-widget .widget-status.status-error {
    color: #dc3545;
}

.steam-dashboard-widget .widget-status .status-icon {
    font-size: 24px;
}

.steam-dashboard-widget .widget-stats {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.steam-dashboard-widget .widget-links {
    display: flex;
    gap: 15px;
}

.steam-dashboard-widget .widget-links a {
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .inventory-header {
        flex-direction: column;
        text-align: center;
    }
    
    .inventory-actions {
        flex-direction: column;
    }
    
    .inventory-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    .status-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .status-profile {
        flex-direction: column;
    }
}
