/* Design Page Layout */
.design-page {
  padding: 16px 24px;
  padding-top: 80px;
  min-height: 100vh;
  background: #000000;
}

.design-page .container {
  max-width: none;
  padding: 0;
}

/* Design page header override */
body:has(.design-page) .header {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
}

.design-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  min-height: calc(100vh - 112px);
}

@media (max-width: 900px) {
  .design-layout {
    grid-template-columns: 1fr;
    min-height: auto;
  }
}

/* Panel Styles */
.panel {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 16px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.panel h2 {
  font-size: 1rem;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
  color: white;
  flex-shrink: 0;
}

/* Upload Area */
.upload-area {
  position: relative;
  border: 2px dashed rgba(212, 175, 55, 0.3);
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.upload-area:hover {
  border-color: rgba(212, 175, 55, 0.6);
  background: rgba(255, 255, 255, 0.06);
}

.upload-area.has-file {
  border-style: solid;
  border-color: var(--success);
  padding: 12px;
}

.upload-area.has-file strong,
.upload-area.has-file p {
  display: none;
}

.upload-area input {
  display: none;
}

.upload-area strong {
  color: white;
  font-size: 0.9rem;
}

.upload-area p {
  color: rgba(255, 255, 255, 0.6);
  margin-top: 6px;
  font-size: 0.8rem;
}

/* Preview Image and Delete Button */
.preview-image {
  max-width: 100%;
  max-height: 150px;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
}

.delete-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.9);
  border: none;
  color: white;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 10;
}

.delete-btn:hover {
  background: rgba(239, 68, 68, 1);
  transform: scale(1.1);
}

/* Form Elements */
.form-group {
  margin-bottom: 12px;
  flex-shrink: 0;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 4px;
  color: white;
  font-size: 0.85rem;
}

.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  font-size: 0.85rem;
  resize: vertical;
  min-height: 80px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.form-group textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.15);
}

/* Result Area */
.result-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.result-placeholder {
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  font-size: 0.9rem;
}

.result-image {
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  object-fit: contain;
}

/* Progress */
.progress-container {
  width: 100%;
  max-width: 300px;
  text-align: center;
}

.progress-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 12px;
}

.progress-fill {
  height: 100%;
  background: var(--primary-color);
  transition: width 0.3s;
}

.progress-text {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
}

/* Action Buttons */
.action-buttons {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.btn-full {
  width: 100%;
}

/* Showcase Section - Horizontal Scroll */
.showcase-section {
  margin-top: 20px;
  padding-bottom: 16px;
}

.showcase-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.showcase-header h2 {
  font-size: 1rem;
  color: white;
  margin: 0;
}

.showcase-view-more {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 0.85rem;
  transition: opacity 0.2s;
}

.showcase-view-more:hover {
  opacity: 0.8;
}

.showcase-scroll-container {
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 8px;
  margin: 0 -24px;
  padding-left: 24px;
  padding-right: 24px;
}

.showcase-scroll-container::-webkit-scrollbar {
  height: 6px;
}

.showcase-scroll-container::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.showcase-scroll-container::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.4);
  border-radius: 3px;
}

.showcase-scroll-container::-webkit-scrollbar-thumb:hover {
  background: rgba(212, 175, 55, 0.6);
}

.showcase-scroll-list {
  display: flex;
  gap: 16px;
  padding-right: 24px;
}

.showcase-card-mini {
  flex-shrink: 0;
  width: 280px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
}

.showcase-card-mini:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(212, 175, 55, 0.4);
  transform: translateY(-2px);
}

.showcase-card-mini img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.showcase-card-mini .showcase-info {
  padding: 12px;
}

.showcase-card-mini .showcase-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: white;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.showcase-card-mini .showcase-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.showcase-card-mini .tag {
  font-size: 0.7rem;
  padding: 2px 6px;
  background: rgba(212, 175, 55, 0.15);
  color: var(--primary-color);
  border-radius: 4px;
}

/* RTL Support for Design Page */
html[dir="rtl"] .design-layout {
  direction: rtl;
}

html[dir="rtl"] .form-group label {
  text-align: right;
}

html[dir="rtl"] .form-group textarea {
  text-align: right;
}

html[dir="rtl"] .delete-btn {
  right: auto;
  left: 8px;
}

html[dir="rtl"] .showcase-header {
  flex-direction: row-reverse;
}

html[dir="rtl"] .showcase-scroll-container {
  direction: rtl;
}
