/* ============================================
   TICKETALAY - Order History Page Styles
   ============================================ */

/* Order Stats */
.order-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 1rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--gray-500);
}

/* Filter Tabs */
.filter-tabs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    margin-bottom: 1.5rem;
    padding-bottom: 0.25rem;
    -webkit-overflow-scrolling: touch;
}

.filter-tabs::-webkit-scrollbar {
    display: none;
}

.filter-tab {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    border: none;
    background: var(--gray-100);
    color: var(--gray-600);
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-tab:hover {
    background: var(--gray-200);
}

.filter-tab.active {
    background: var(--primary);
    color: white;
}

/* Orders List */
.orders-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

/* Order Card */
.order-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
    overflow: hidden;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1rem 1.25rem 0.75rem;
    border-bottom: 1px solid var(--gray-100);
}

.order-id {
    display: flex;
    flex-direction: column;
}

.order-number {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-900);
}

.order-date {
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-top: 0.125rem;
}

.order-status {
    padding: 0.25rem 0.625rem;
    border-radius: var(--radius-full);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.status-completed {
    background: #dcfce7;
    color: #166534;
}

.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.status-cancelled {
    background: #fee2e2;
    color: #991b1b;
}

.order-content {
    display: flex;
    gap: 1rem;
    padding: 1rem 1.25rem;
}

.order-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.order-icon svg {
    color: white;
}

.order-icon.movie {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.order-icon.voucher {
    background: linear-gradient(135deg, var(--secondary) 0%, #f9a825 100%);
}

.order-icon.event {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.order-icon.merch {
    background: linear-gradient(135deg, #89f7fe 0%, #66a6ff 100%);
}

.order-details {
    flex: 1;
    min-width: 0;
}

.order-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.order-subtitle {
    font-size: 0.8125rem;
    color: var(--gray-600);
    margin-bottom: 0.125rem;
}

.order-meta {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.order-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.25rem;
    background: var(--gray-50);
}

.order-points {
    font-size: 0.875rem;
    font-weight: 600;
}

.points-used {
    color: var(--gray-600);
}

.points-refunded {
    color: #16a34a;
}

/* Load More Button */
.load-more-btn {
    margin-bottom: 6rem;
}

/* Responsive */
@media (min-width: 480px) {
    .order-stats {
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1.25rem;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
}

@media (min-width: 768px) {
    .orders-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
}
