/* DigiMarket Premium Design System - Solid Dark UI, NO Glassmorphism */

:root {
  --color-bg: #0A0E1A;
  --color-surface: #111827;
  --color-card: #1A2234;
  --color-card-hover: #1F2942;
  --color-border: #2D3A52;
  --color-text: #F1F5F9;
  --color-text-muted: #94A3B8;
  --color-primary: #F59E0B;
  --color-primary-hover: #FBBF24;
  --color-primary-ink: #0A0E1A;
  --color-accent: #6366F1;
  --color-success: #10B981;
  --color-error: #EF4444;
  --color-warning: #F59E0B;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --transition: 150ms ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
}

/* ==================== Layout ==================== */
.surface {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: all var(--transition);
}

.card:hover {
  background: var(--color-card-hover);
  border-color: #3D4A63;
  transform: translateY(-2px);
}

.card-static:hover {
  transform: none;
}

/* ==================== Buttons ==================== */
.btn-primary {
  background: var(--color-primary);
  color: var(--color-primary-ink);
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: 0.65rem 1.4rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.btn-primary:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.65rem 1.4rem;
  cursor: pointer;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.btn-secondary:hover {
  border-color: var(--color-primary);
  background: rgba(245, 158, 11, 0.08);
  color: var(--color-primary);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text-muted);
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: all var(--transition);
  font-size: 0.875rem;
}

.btn-ghost:hover {
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.05);
}

.btn-danger {
  background: var(--color-error);
  color: white;
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: 0.65rem 1.4rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-danger:hover {
  background: #DC2626;
}

/* ==================== Forms ==================== */
.input-field {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  padding: 0.65rem 0.9rem;
  width: 100%;
  font-size: 0.9rem;
  transition: all var(--transition);
}

.input-field:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.input-field::placeholder {
  color: var(--color-text-muted);
}

textarea.input-field {
  min-height: 120px;
  resize: vertical;
}

label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

/* ==================== Badges ==================== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-approved { background: rgba(16, 185, 129, 0.15); color: var(--color-success); }
.badge-pending { background: rgba(245, 158, 11, 0.15); color: var(--color-warning); }
.badge-rejected { background: rgba(239, 68, 68, 0.15); color: var(--color-error); }
.badge-seller { background: rgba(99, 102, 241, 0.15); color: var(--color-accent); }

/* ==================== Product Card ==================== */
.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card-image {
  aspect-ratio: 16/10;
  background: var(--color-surface);
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  position: relative;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}

.product-card:hover .product-card-image img {
  transform: scale(1.05);
}

.product-card-body {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.product-card-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-seller {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.product-card-price {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-primary);
  margin-top: auto;
}

.product-card-original-price {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-decoration: line-through;
  margin-left: 0.5rem;
}

/* ==================== Hero Section ==================== */
.hero-gradient {
  background: linear-gradient(135deg, #0A0E1A 0%, #111827 50%, #1A2234 100%);
  position: relative;
  overflow: hidden;
}

.hero-gradient::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-gradient::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

/* ==================== Rating Stars ==================== */
.rating-stars {
  display: inline-flex;
  gap: 2px;
  color: var(--color-primary);
}

.rating-stars svg {
  width: 14px;
  height: 14px;
}

/* ==================== Tables ==================== */
.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.data-table th {
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  background: var(--color-surface);
}

.data-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* ==================== Pagination ==================== */
.pagination {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.pagination a,
.pagination span {
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  border: 1px solid var(--color-border);
  background: var(--color-card);
  color: var(--color-text);
  text-decoration: none;
  transition: all var(--transition);
}

.pagination a:hover {
  border-color: var(--color-primary);
  background: rgba(245, 158, 11, 0.08);
}

.pagination .active {
  background: var(--color-primary);
  color: var(--color-primary-ink);
  border-color: var(--color-primary);
}

/* ==================== Animations ==================== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.animate-fade-in {
  animation: fadeIn 0.4s ease-out;
}

.animate-slide-up {
  animation: slideUp 0.5s ease-out;
}

/* ==================== Utilities ==================== */
.text-primary { color: var(--color-primary); }
.text-muted { color: var(--color-text-muted); }
.text-success { color: var(--color-success); }
.text-error { color: var(--color-error); }

.bg-surface { background: var(--color-surface); }
.bg-card { background: var(--color-card); }

.border { border: 1px solid var(--color-border); }
.border-t { border-top: 1px solid var(--color-border); }
.border-b { border-bottom: 1px solid var(--color-border); }

.rounded { border-radius: var(--radius); }
.rounded-lg { border-radius: var(--radius-lg); }

.shadow { box-shadow: var(--shadow); }
.shadow-lg { box-shadow: var(--shadow-lg); }

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: none; }

/* ==================== Responsive ==================== */
@media (max-width: 768px) {
  :root {
    --radius: 8px;
    --radius-lg: 12px;
  }
}

/* ==================== Reduced Motion ==================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
