/* Button Components */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  cursor: pointer;
  border: none;
  text-align: center;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, #b5b5b5 100%);
  color: var(--color-primary-foreground);
  box-shadow: 0 4px 15px rgba(160, 160, 160, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(160, 160, 160, 0.3);
}

.btn-secondary {
  background-color: var(--color-secondary);
  color: var(--color-secondary-foreground);
  border: 1px solid var(--color-border);
}

.btn-secondary:hover {
  background-color: var(--color-muted);
  border-color: var(--color-primary);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-foreground);
  border: 2px solid var(--color-border);
}

.btn-outline:hover {
  background-color: var(--color-primary);
  color: var(--color-primary-foreground);
  border-color: var(--color-primary);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.0625rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* Card Components */
.card {
  background: linear-gradient(135deg, rgba(32, 32, 32, 0.8) 0%, rgba(26, 26, 26, 0.9) 100%);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(126, 156, 160, 0.15);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(126, 156, 160, 0.1), transparent);
  transition: left 0.5s ease;
}

.card:hover::after {
  left: 100%;
}

.card:hover {
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(126, 156, 160, 0.3);
  transform: translateY(-6px);
  border-color: rgba(126, 156, 160, 0.4);
}

.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-md);
  background-color: var(--color-muted);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
  color: var(--color-foreground);
}

.card-description {
  color: var(--color-muted-foreground);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* Product Card */
.product-card {
  background: linear-gradient(135deg, rgba(32, 32, 32, 0.9) 0%, rgba(26, 26, 26, 0.95) 100%);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(126, 156, 160, 0.2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  position: relative;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(126, 156, 160, 0.5), transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.product-card:hover {
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(126, 156, 160, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(126, 156, 160, 0.5);
}

.product-card:hover::before {
  opacity: 1;
}

.product-card-image {
  width: 100%;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 30% 30%, rgba(126, 156, 160, 0.15) 0%, transparent 60%),
    linear-gradient(135deg, #2a2a2a 0%, #1f1f1f 100%);
  padding: var(--spacing-2xl);
  position: relative;
  overflow: hidden;
}

.product-card-image::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(126, 156, 160, 0.1) 0%, transparent 70%);
  animation: rotate 20s linear infinite;
}

.product-card-image img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
  transition: transform var(--transition-base);
}

.product-card:hover .product-card-image img {
  transform: scale(1.1) translateY(-5px);
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.product-card-content {
  padding: var(--spacing-lg);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
  color: var(--color-foreground);
}

.product-card-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--spacing-md);
}

.product-card-features {
  list-style: none;
  margin-bottom: var(--spacing-md);
  flex: 1;
}

.product-card-features li {
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
  padding: 0.375rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.product-card-features li::before {
  content: '✓';
  color: var(--color-accent);
  font-weight: 700;
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  border: 1px solid transparent;
  transition: all var(--transition-base);
}

.badge::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.badge:hover::before {
  opacity: 1;
}

.badge-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, #8a8a8a 100%);
  color: var(--color-primary-foreground);
  border-color: rgba(160, 160, 160, 0.3);
  box-shadow: 0 2px 8px rgba(160, 160, 160, 0.2);
}

.badge-accent {
  background: linear-gradient(135deg, var(--color-accent) 0%, #5a7a7e 100%);
  color: var(--color-background);
  border-color: rgba(126, 156, 160, 0.3);
  box-shadow: 0 2px 8px rgba(126, 156, 160, 0.3);
}

.badge-secondary {
  background: linear-gradient(135deg, rgba(32, 32, 32, 0.8) 0%, rgba(26, 26, 26, 0.9) 100%);
  color: var(--color-foreground);
  border-color: rgba(126, 156, 160, 0.2);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Form Components */
.form-group {
  margin-bottom: var(--spacing-md);
}

.form-label {
  display: block;
  font-weight: 500;
  margin-bottom: var(--spacing-xs);
  color: var(--color-foreground);
  font-size: 0.9375rem;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(32, 32, 32, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(126, 156, 160, 0.2);
  border-radius: var(--radius-md);
  color: var(--color-foreground);
  font-size: 0.9375rem;
  transition: all var(--transition-base);
  position: relative;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--color-accent);
  background: rgba(32, 32, 32, 0.8);
  box-shadow:
    0 0 0 3px rgba(126, 156, 160, 0.15),
    0 4px 12px rgba(126, 156, 160, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transform: translateY(-1px);
}

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

.form-error {
  color: #e06666;
  font-size: 0.875rem;
  margin-top: var(--spacing-xs);
}

/* Icon */
.icon {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.icon-sm {
  width: 16px;
  height: 16px;
}

.icon-lg {
  width: 32px;
  height: 32px;
}

.icon-xl {
  width: 48px;
  height: 48px;
}

/* Feature Box */
.feature-box {
  text-align: center;
  padding: var(--spacing-lg);
  position: relative;
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--spacing-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-primary) 100%);
  border-radius: var(--radius-lg);
  color: var(--color-background);
  box-shadow:
    0 8px 20px rgba(126, 156, 160, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  transition: all var(--transition-base);
}

.feature-icon::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, var(--color-accent), var(--color-primary));
  border-radius: var(--radius-lg);
  opacity: 0;
  transition: opacity var(--transition-base);
  z-index: -1;
  filter: blur(8px);
}

.feature-box:hover .feature-icon {
  transform: translateY(-4px) scale(1.05);
  box-shadow:
    0 12px 30px rgba(126, 156, 160, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.feature-box:hover .feature-icon::before {
  opacity: 0.6;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
  color: var(--color-foreground);
}

.feature-description {
  color: var(--color-muted-foreground);
  line-height: 1.6;
}

/* Accordion */
.accordion-item {
  border: 1px solid rgba(126, 156, 160, 0.15);
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-sm);
  overflow: hidden;
  background: linear-gradient(135deg, rgba(32, 32, 32, 0.6) 0%, rgba(26, 26, 26, 0.8) 100%);
  backdrop-filter: blur(10px);
  transition: all var(--transition-base);
}

.accordion-item:hover {
  border-color: rgba(126, 156, 160, 0.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.accordion-header {
  width: 100%;
  padding: var(--spacing-md) var(--spacing-lg);
  background: transparent;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
}

.accordion-header::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: linear-gradient(90deg, rgba(126, 156, 160, 0.2), transparent);
  transition: width var(--transition-base);
}

.accordion-header:hover::before {
  width: 100%;
}

.accordion-item.active {
  border-color: rgba(126, 156, 160, 0.4);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.accordion-title {
  font-weight: 600;
  color: var(--color-foreground);
  font-size: 1rem;
}

.accordion-icon {
  transition: transform var(--transition-base);
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base);
}

.accordion-item.active .accordion-content {
  max-height: 500px;
}

.accordion-body {
  padding: var(--spacing-md) var(--spacing-lg);
  color: var(--color-muted-foreground);
  line-height: 1.7;
}

/* Table */
.table-container {
  overflow-x: auto;
  border: 1px solid rgba(126, 156, 160, 0.2);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(32, 32, 32, 0.6) 0%, rgba(26, 26, 26, 0.8) 100%);
  backdrop-filter: blur(10px);
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: var(--spacing-md);
  text-align: left;
  border-bottom: 1px solid rgba(126, 156, 160, 0.1);
}

.table th {
  background: linear-gradient(135deg, rgba(42, 42, 42, 0.8) 0%, rgba(32, 32, 32, 0.9) 100%);
  font-weight: 600;
  color: var(--color-foreground);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
}

.table th::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(126, 156, 160, 0.5), transparent);
}

.table td {
  color: var(--color-muted-foreground);
  font-size: 0.9375rem;
}

.table tbody tr {
  transition: all var(--transition-base);
  position: relative;
}

.table tbody tr::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: linear-gradient(90deg, rgba(126, 156, 160, 0.15), transparent);
  transition: width var(--transition-base);
}

.table tbody tr:hover {
  background: rgba(126, 156, 160, 0.05);
}

.table tbody tr:hover::before {
  width: 100%;
}

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

/* Alert */
.alert {
  padding: var(--spacing-md) var(--spacing-lg);
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-md);
  border-left: 4px solid;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.alert::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.03) 100%);
  pointer-events: none;
}

.alert-success {
  background: linear-gradient(135deg, rgba(126, 156, 160, 0.15) 0%, rgba(126, 156, 160, 0.05) 100%);
  border-color: var(--color-accent);
  color: var(--color-accent);
  box-shadow: 0 4px 12px rgba(126, 156, 160, 0.2);
}

.alert-error {
  background: linear-gradient(135deg, rgba(224, 102, 102, 0.15) 0%, rgba(224, 102, 102, 0.05) 100%);
  border-color: #e06666;
  color: #e06666;
  box-shadow: 0 4px 12px rgba(224, 102, 102, 0.2);
}

/* Loading Spinner */
.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(126, 156, 160, 0.2);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  box-shadow: 0 0 20px rgba(126, 156, 160, 0.3);
  position: relative;
}

.spinner::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 4px solid transparent;
  border-top-color: var(--color-primary);
  animation: spin 1.5s linear infinite reverse;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Divider */
.divider {
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(126, 156, 160, 0.2) 10%,
    rgba(126, 156, 160, 0.5) 50%,
    rgba(126, 156, 160, 0.2) 90%,
    transparent 100%
  );
  margin: var(--spacing-xl) 0;
  position: relative;
}

.divider::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-primary) 100%);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(126, 156, 160, 0.6);
}
