/* Modern Orders Page Styles */
.orders-container {
  background-color: #f8f9fa;
  min-height: 75vh;
  padding: 2rem 0;
}

.orders-header {
  background: linear-gradient(135deg, #cd743d, #b6632d);
  color: white;
  padding: 3rem 0;
  margin-bottom: 2rem;
}

.orders-header h1 {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.orders-header p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 0;
}

/* Filter Controls */
.filter-controls {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.filter-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 1rem;
}

.filter-group {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.filter-select {
  min-width: 160px;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  background: white;
  transition: all 0.3s ease;
}

.filter-select:focus {
  border-color: #cd743d;
  box-shadow: 0 0 0 3px rgba(205, 116, 61, 0.1);
  outline: none;
}

.clear-filters {
  background: #6c757d;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.clear-filters:hover {
  background: #5a6268;
}

/* Modern Order Cards */
.orders-grid {
  display: grid;
  gap: 1.5rem;
}

.order-card {
  background: white;
  border-radius: 16px;
  padding: 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  overflow: hidden;
  border: 1px solid #f0f0f0;
}

.order-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.order-card-header {
  flex-direction: column;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  padding: 1.5rem;
  border-bottom: 1px solid #eee;
}

.order-card-header-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  width: 100%;
}

.order-info-left {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.order-price-right {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}

.order-number {
  font-size: 0.9rem;
  color: #6c757d;
  font-weight: 500;
}

.order-date {
  font-size: 0.9rem;
  color: #6c757d;
}

.order-status {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-beklemede {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffeaa7;
}

.status-fulfilled {
  background: #d1e7dd;
  color: #0f5132;
  border: 1px solid #a3cfbb;
}

.status-cancelled {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f1aeb5;
}

.order-total {
  font-size: 1.4rem;
  font-weight: 700;
  color: #cd743d;
  margin: 0;
  display: flex;
  flex-direction: column-reverse;
}

.order-original-price {
  font-size: 1rem;
  color: #6c757d;
  text-decoration: line-through;
  margin-left: 0.5rem;
}

/* Discount Information */
.discount-info {
  background: #e8f5e8;
  border: 1px solid #c3e6c3;
  border-radius: 8px;
  padding: 0.75rem;
  margin-top: 1rem;
  font-size: 0.9rem;
}

.discount-info-title {
  font-weight: 600;
  color: #155724;
  margin-bottom: 0.25rem;
}

.discount-amount {
  color: #28a745;
  font-weight: 600;
}

/* Order Items */
.order-card-body {
  padding: 1.5rem;
}

.order-items {
  list-style: none;
  padding: 1rem;
  margin: 0;
  background: #fafbfc;
  border-radius: 8px;
  border: 1px solid #f0f0f0;
}

.order-item {
  display: flex;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid #f0f0f0;
}

.order-item-image {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  margin-right: 1rem;
  border: 1px solid #eee;
}

.order-item-details {
  flex: 1;
}

.order-item-title {
  font-weight: 600;
  color: #333;
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
}

.order-item-meta {
  font-size: 0.85rem;
  color: #6c757d;
}

.order-item-price {
  font-weight: 600;
  color: #cd743d;
  font-size: 1rem;
}

/* Empty State */
.empty-orders {
  text-align: center;
  padding: 4rem 2rem;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.empty-orders-icon {
  font-size: 4rem;
  color: #dee2e6;
  margin-bottom: 1rem;
}

.empty-orders h3 {
  color: #6c757d;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.empty-orders p {
  color: #868e96;
  margin-bottom: 2rem;
}

.shop-now-btn {
  background: #cd743d;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 0.75rem 2rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
}

.shop-now-btn:hover {
  background: #b6632d;
  color: white;
  text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
  .orders-header {
    padding: 2rem 0;
  }
  
  .orders-header h1 {
    font-size: 2rem;
  }
  
  .filter-controls {
    padding: 1rem;
  }
  
  .filter-group {
    flex-direction: column;
    align-items: stretch;
  }
  
  .filter-select {
    min-width: auto;
    width: 100%;
  }
  
  .order-card-header-top {
    flex-direction: column;
    gap: 1rem;
  }
  
  .order-info-left {
    gap: 0.75rem;
  }
  
  .order-price-right {
    text-align: left;
    align-items: flex-start;
  }
  
  .order-item {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
  
  .order-item-image {
    margin-right: 0;
    margin-bottom: 0.5rem;
  }
  
  .order-total {
    font-size: 1.2rem;
  }
  
  .order-items {
    padding: 0.75rem;
  }
}

@media (max-width: 576px) {
  .orders-container {
    padding: 1rem 0;
  }
  
  .filter-controls {
    margin-bottom: 1rem;
  }
  
  .order-card {
    border-radius: 12px;
  }
  
  .order-card-header,
  .order-card-body {
    padding: 1rem;
  }
}

/* Loading Animation */
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #cd743d;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 0.5rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Filter Active State */
.filter-active {
  background-color: #cd743d !important;
  color: white !important;
  border-color: #cd743d !important;
} 