/**
 * Steam XMR Store - Component Styles
 * Support System Components
 */

/* ===== BADGES ===== */
.badge {
    display: inline-block;
    padding: 0.25em 0.4em;
    font-size: 0.75em;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-open {
    color: #fff;
    background: linear-gradient(to bottom, #27ae60 5%, #229954 95%);
}

.badge-in_progress,
.badge-in-progress {
    color: #fff;
    background: linear-gradient(to bottom, #4c90d3 5%, #3e7bc3 95%);
}

.badge-resolved {
    color: #fff;
    background: linear-gradient(to bottom, #f7931e 5%, #e07a0d 95%);
}

.badge-closed {
    color: #fff;
    background: linear-gradient(to bottom, #6c757d 5%, #5a6268 95%);
}

.badge-urgent {
    color: #fff;
    background: linear-gradient(to bottom, #e74c3c 5%, #c0392b 95%);
    animation: pulse 2s infinite;
}

.badge-high {
    color: #fff;
    background: linear-gradient(to bottom, #f7931e 5%, #e07a0d 95%);
}

.badge-medium {
    color: #fff;
    background: linear-gradient(to bottom, #4c90d3 5%, #3e7bc3 95%);
}

.badge-low {
    color: #fff;
    background: linear-gradient(to bottom, #6c757d 5%, #5a6268 95%);
}

/* Badge animations */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* ===== TICKET CARDS ===== */
.ticket-card {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    padding: 12px;
    margin-bottom: 10px;
    transition: all 0.2s ease;
}

.ticket-card:hover {
    background: rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.2);
}

.ticket-title {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    margin: 0 0 5px 0;
    text-decoration: none;
}

.ticket-title:hover {
    color: #4c90d3;
}

.ticket-meta {
    font-size: 11px;
    color: #8f98a0;
    margin-bottom: 8px;
}

.ticket-actions {
    display: flex;
    gap: 5px;
}

/* ===== STATS CARDS ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.stat-card {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    padding: 15px;
    text-align: center;
}

.stat-number {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 12px;
    color: #8f98a0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== FILTERS ===== */
.filter-bar {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    padding: 10px;
    margin-bottom: 15px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.filter-select {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    color: #fff;
    padding: 5px 8px;
    font-size: 12px;
}

.filter-select:focus {
    outline: none;
    border-color: #4c90d3;
}

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 20px;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 5px 10px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    border-radius: 2px;
    transition: all 0.2s ease;
}

.pagination a:hover {
    background: rgba(0, 0, 0, 0.6);
    border-color: #4c90d3;
}

.pagination .current {
    background: linear-gradient(to bottom, #4c90d3 5%, #3e7bc3 95%);
    border-color: #4c90d3;
}

/* ===== RESPONSE THREAD ===== */
.response-thread {
    margin-top: 20px;
}

.response-item {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    padding: 10px;
    margin-bottom: 10px;
    position: relative;
}

.response-item.admin-response {
    border-left: 3px solid #4c90d3;
    background: rgba(76, 144, 211, 0.1);
}

.response-item.user-response {
    border-left: 3px solid #27ae60;
    background: rgba(39, 174, 96, 0.1);
}

.response-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 11px;
    color: #8f98a0;
}

.response-author {
    font-weight: 500;
    color: #fff;
}

.response-content {
    color: #fff;
    font-size: 13px;
    line-height: 1.4;
    white-space: pre-wrap;
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .ticket-actions {
        flex-direction: column;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
}
