/**
 * upload.css - アップロードページ専用スタイル
 */

.main-container {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 0 2rem;
}

/* ========================================
   Credit Banner
======================================== */
.credit-banner {
  background: linear-gradient(135deg, var(--mhw-brown) 0%, var(--mhw-brown-dark) 100%);
  border: 2px solid var(--mhw-orange);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 12px rgba(233, 69, 96, 0.2);
}

.credit-info {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.credit-label {
  color: var(--mhw-text-muted);
  font-size: 1rem;
}

.credit-display {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.credit-number {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--mhw-orange);
  line-height: 1;
}

.credit-unit {
  color: var(--mhw-text);
  font-size: 1.2rem;
}

.btn-purchase-credit {
  background: var(--mhw-orange);
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-purchase-credit:hover {
  background: var(--mhw-gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(233, 69, 96, 0.4);
}

/* ========================================
   Page Header
======================================== */
.page-header {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--mhw-brown-light);
}

.page-header h1 {
  color: var(--mhw-orange);
  margin: 0 0 1rem 0;
  font-size: 2rem;
}

.page-description {
  color: var(--mhw-text-muted);
  margin: 0;
  line-height: 1.8;
}

/* ========================================
   Upload Section
======================================== */
.upload-section {
  background: var(--mhw-brown);
  border: 2px solid var(--mhw-brown-light);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 3rem;
}

.upload-area {
  border: 3px dashed var(--mhw-brown-light);
  border-radius: 12px;
  padding: 3rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: rgba(15, 52, 96, 0.1);
  margin-bottom: 2rem;
}

.upload-area:hover {
  background: rgba(15, 52, 96, 0.2);
  border-color: var(--mhw-orange);
  transform: scale(1.02);
}

.upload-area.active {
  background: rgba(233, 69, 96, 0.15);
  border-color: var(--mhw-orange);
  transform: scale(1.05);
}

.upload-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.upload-primary-text {
  color: var(--mhw-text);
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
}

.upload-secondary-text {
  color: var(--mhw-text-muted);
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.6;
}

/* Selected Files List */
.selected-files {
  margin-bottom: 2rem;
}

.file-item {
  background: rgba(15, 52, 96, 0.3);
  border: 1px solid var(--mhw-brown-light);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.file-info-text {
  color: var(--mhw-text);
  flex: 1;
}

.file-name {
  font-weight: 500;
  margin-bottom: 0.3rem;
}

.file-size {
  color: #888;
  font-size: 0.85rem;
}

.btn-remove-file {
  background: rgba(244, 67, 54, 0.1);
  color: #f44336;
  border: 1px solid #f44336;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.3s ease;
}

.btn-remove-file:hover {
  background: #f44336;
  color: white;
}

/* Upload Button */
.btn-upload {
  width: 100%;
  padding: 1.2rem;
  background: var(--mhw-orange);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 2rem;
}

.btn-upload:hover:not(:disabled) {
  background: var(--mhw-gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(233, 69, 96, 0.4);
}

.btn-upload:disabled {
  background: rgba(255, 255, 255, 0.1);
  color: #666;
  cursor: not-allowed;
}

/* Progress Section */
.progress-section {
  margin-bottom: 2rem;
}

.progress-bar {
  width: 100%;
  height: 12px;
  background: rgba(15, 52, 96, 0.3);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--mhw-orange) 0%, var(--mhw-gold) 100%);
  transition: width 0.3s ease;
  width: 0%;
}

.progress-text {
  color: var(--mhw-text-muted);
  text-align: center;
  font-size: 0.95rem;
  margin: 0;
}

/* Message Area */
.message-area {
  margin-top: 1rem;
}

.message {
  padding: 1rem;
  border-radius: 6px;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.message-success {
  background: rgba(76, 175, 80, 0.1);
  border: 1px solid #4caf50;
  color: #4caf50;
}

.message-error {
  background: rgba(244, 67, 54, 0.1);
  border: 1px solid #f44336;
  color: #f44336;
}

.message-warning {
  background: rgba(255, 193, 7, 0.1);
  border: 1px solid #ffc107;
  color: #ffc107;
}

/* ========================================
   Instructions Section
======================================== */
.instructions-section {
  margin-bottom: 3rem;
}

.instructions-section h2 {
  color: var(--mhw-orange);
  text-align: center;
  margin: 0 0 2rem 0;
  font-size: 1.8rem;
}

.instructions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.instruction-card {
  background: var(--mhw-brown);
  border: 2px solid var(--mhw-brown-light);
  border-radius: 12px;
  padding: 2rem;
}

.instruction-icon {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 1rem;
}

.instruction-card h3 {
  color: var(--mhw-text);
  margin: 0 0 1rem 0;
  font-size: 1.3rem;
  text-align: center;
}

.instruction-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.instruction-card li {
  color: var(--mhw-text-muted);
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.6;
}

.instruction-card li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--mhw-orange);
  font-weight: bold;
}

/* ========================================
   Quick Actions Section
======================================== */
.quick-actions-section {
  margin-bottom: 3rem;
}

.quick-actions-section h2 {
  color: var(--mhw-orange);
  text-align: center;
  margin: 0 0 2rem 0;
  font-size: 1.8rem;
}

.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.action-card {
  background: var(--mhw-brown);
  border: 2px solid var(--mhw-brown-light);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.action-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(233, 69, 96, 0.3);
  border-color: var(--mhw-orange);
}

.action-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.action-card h3 {
  color: var(--mhw-text);
  margin: 0 0 0.5rem 0;
  font-size: 1.2rem;
}

.action-card p {
  color: var(--mhw-text-muted);
  margin: 0;
  font-size: 0.95rem;
}

/* ========================================
   Responsive Design
======================================== */
@media (max-width: 768px) {
  .main-container {
    padding: 0 1rem;
  }

  .credit-banner {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .credit-info {
    flex-direction: column;
    gap: 0.5rem;
  }

  .btn-purchase-credit {
    width: 100%;
  }

  .page-header h1 {
    font-size: 1.5rem;
  }

  .upload-section {
    padding: 1.5rem;
  }

  .upload-area {
    padding: 2rem 1rem;
  }

  .upload-icon {
    font-size: 3rem;
  }

  .instructions-grid,
  .quick-actions-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .credit-number {
    font-size: 2rem;
  }

  .page-header h1 {
    font-size: 1.3rem;
  }

  .page-description {
    font-size: 0.9rem;
  }

  .upload-primary-text {
    font-size: 1.1rem;
  }

  .upload-secondary-text {
    font-size: 0.85rem;
  }

  .btn-upload {
    font-size: 1rem;
    padding: 1rem;
  }
}
