/* ========================================
   COMMISSION PAGE STYLES
   Commission-specific layout and components
   ======================================== */

/* Commission Section */
.commission-section {
  padding: var(--spacing-xl, 48px) 0;
  background: var(--color-bg-dark);
}

/* Commission Hero */
.commission-hero {
  text-align: center;
  margin-bottom: var(--spacing-xl, 48px);
}

.commission-hero-title {
  font-family: var(--font-family-display);
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: var(--spacing-md);
  background: linear-gradient(135deg, var(--color-primary) 0%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.commission-hero-subtitle {
  font-size: 1.125rem;
  color: var(--color-text-muted, #777);
  margin-bottom: var(--spacing-lg);
}

/* Status Badge */
.commission-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: rgba(74, 198, 255, 0.1);
  border: 2px solid var(--color-primary);
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.commission-status--open {
  color: #10b981;
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.1);
}

.commission-status--closed {
  color: #ef4444;
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

.commission-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 2s ease-in-out infinite;
}

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

/* Service Cards Grid */
.commission-services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xl, 48px);
}

.service-card {
  background: var(--color-bg-secondary, #18181b);
  border: 2px solid var(--color-border, #2d2d31);
  border-radius: 12px;
  padding: var(--spacing-lg);
  text-align: center;
  transition: all var(--transition-normal);
  cursor: pointer;
}

.service-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(74, 198, 255, 0.2);
}

.service-card--selected {
  border-color: var(--color-primary);
  background: rgba(74, 198, 255, 0.05);
}

.service-card-icon {
  font-size: 3rem;
  margin-bottom: var(--spacing-md);
}

.service-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
  color: var(--color-text);
}

.service-card-description {
  font-size: 0.875rem;
  color: var(--color-text-muted, #777);
  margin-bottom: var(--spacing-md);
  line-height: 1.6;
}

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

.service-card-features {
  list-style: none;
  padding: 0;
  margin: var(--spacing-md) 0;
  text-align: left;
}

.service-card-features li {
  padding: 8px 0;
  font-size: 0.875rem;
  color: var(--color-text-muted, #777);
  border-bottom: 1px solid var(--color-border, #2d2d31);
}

.service-card-features li:last-child {
  border-bottom: none;
}

.service-card-features li::before {
  content: "✓ ";
  color: var(--color-primary);
  font-weight: 700;
  margin-right: 8px;
}

/* Portfolio Grid */
.commission-portfolio {
  margin-bottom: var(--spacing-xl, 48px);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--spacing-md);
}

.portfolio-item {
  position: relative;
  aspect-ratio: 1;
  background: var(--color-bg-secondary, #18181b);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition-normal);
}

.portfolio-item:hover {
  transform: scale(1.05);
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portfolio-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: var(--spacing-md);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.portfolio-item:hover .portfolio-item-overlay {
  opacity: 1;
}

.portfolio-item-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: white;
}

/* Placeholder for empty portfolio */
.portfolio-placeholder {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--spacing-xl, 48px);
  background: var(--color-bg-secondary, #18181b);
  border: 2px dashed var(--color-border, #2d2d31);
  border-radius: 12px;
  color: var(--color-text-muted, #777);
}

/* Commission Form */
.commission-form-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.commission-form-card {
  background: var(--color-bg-secondary, #18181b);
  border: 2px solid var(--color-border, #2d2d31);
  border-radius: 12px;
  padding: var(--spacing-xl, 48px);
}

.commission-form-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
  color: var(--color-text);
}

.commission-form-description {
  font-size: 1rem;
  color: var(--color-text-muted, #777);
  margin-bottom: var(--spacing-xl, 48px);
  line-height: 1.6;
}

/* Price Tier Selection */
.price-tier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.price-tier-card {
  position: relative;
  padding: var(--spacing-lg);
  background: var(--color-bg-dark);
  border: 2px solid var(--color-border, #2d2d31);
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.price-tier-card:hover {
  border-color: var(--color-primary);
}

.price-tier-card input[type="radio"] {
  position: absolute;
  opacity: 0;
}

.price-tier-card input[type="radio"]:checked ~ .price-tier-content {
  border-color: var(--color-primary);
}

.price-tier-card input[type="radio"]:checked ~ .price-tier-content::after {
  content: "✓";
  position: absolute;
  top: 12px;
  right: 12px;
  width: 24px;
  height: 24px;
  background: var(--color-primary);
  border-radius: 50%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}

.price-tier-content {
  position: relative;
  border: 2px solid transparent;
  border-radius: 6px;
  padding: var(--spacing-md);
  transition: border-color var(--transition-fast);
}

.price-tier-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--spacing-sm);
}

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

.price-tier-description {
  font-size: 0.875rem;
  color: var(--color-text-muted, #777);
}

/* Success Message */
.form-success-message {
  padding: var(--spacing-lg);
  background: rgba(16, 185, 129, 0.1);
  border: 2px solid #10b981;
  border-radius: 8px;
  text-align: center;
}

.form-success-message h3 {
  color: #10b981;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
}

.form-success-message p {
  color: var(--color-text);
  font-size: 1rem;
}

/* Responsive Adjustments */
@media (max-width: 767px) {
  .commission-hero-title {
    font-size: 2rem;
  }

  .commission-services {
    grid-template-columns: 1fr;
  }

  .commission-form-card {
    padding: var(--spacing-lg);
  }

  .portfolio-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  .price-tier-grid {
    grid-template-columns: 1fr;
  }
}
