/* ══════════════════════════════════════
   Create Page — create.css
   New Study Card UI (web adaptation)
   ══════════════════════════════════════ */

/* ── Page layout ── */
.create-wrapper {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

.create-heading {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--kv-text);
  margin-bottom: 24px;
}

/* ── Mode selector ── */
.mode-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.mode-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--kv-mode-card-bg);
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  position: relative;
}

.mode-card:hover {
  background: var(--kv-mode-card-hover);
}

.mode-card.active-quick {
  border-color: #10B981;
  background: rgba(16, 185, 129, 0.08);
}

.mode-card.active-style {
  border-color: #6366F1;
  background: rgba(99, 102, 241, 0.08);
}

.mode-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mode-icon.quick {
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
}

.mode-icon.style {
  background: rgba(99, 102, 241, 0.15);
  color: #6366F1;
}

.mode-info {
  flex: 1;
  min-width: 0;
}

.mode-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--kv-text);
}

.mode-subtitle {
  font-size: 0.75rem;
  color: var(--kv-text-sub);
  margin-top: 1px;
}

.mode-badge {
  flex-shrink: 0;
  color: #10B981;
}

.mode-badge.chevron {
  color: #6366F1;
}

/* ── Action buttons grid ── */
.action-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.action-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 12px 20px;
  border-radius: 16px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s;
  text-decoration: none;
  border: none;
  outline: none;
}

.action-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--kv-shadow);
}

.action-card:active {
  transform: translateY(0);
}

.action-card.camera {
  background: linear-gradient(135deg, #059669, #10B981);
}

.action-card.record {
  background: linear-gradient(135deg, #7c3aed, #8b5cf6);
}

.action-card.text {
  background: linear-gradient(135deg, #0284c7, #0ea5e9);
}

.action-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-bottom: 10px;
}

.action-icon svg {
  width: 28px;
  height: 28px;
}

.action-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
}

.action-desc {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 3px;
  text-align: center;
}

/* ── Smart Upload ── */
.smart-upload {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px;
  border-radius: 14px;
  border: 2px dashed var(--kv-dashed-border);
  background: transparent;
  color: var(--kv-text-sub);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  margin-bottom: 20px;
}

.smart-upload:hover {
  border-color: var(--kv-border-strong);
  color: var(--kv-text);
  background: var(--kv-hover-subtle);
}

.smart-upload svg {
  width: 18px;
  height: 18px;
}

/* ── Divider ── */
.create-divider {
  height: 1px;
  background: var(--kv-hover-tint);
  margin-bottom: 20px;
}

/* ── Live Mode ── */
.live-mode {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 16px 20px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0d9488, #10B981);
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s;
  text-decoration: none;
}

.live-mode:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.25);
}

.live-mode:active {
  transform: translateY(0);
}

.live-mode-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-right: 14px;
  flex-shrink: 0;
}

.live-mode-icon svg {
  width: 20px;
  height: 20px;
}

.live-mode-info {
  flex: 1;
}

.live-mode-title {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
}

.live-mode-desc {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 2px;
}

.live-mode-chevron {
  color: rgba(255, 255, 255, 0.7);
  flex-shrink: 0;
}

.live-mode-chevron svg {
  width: 20px;
  height: 20px;
}

/* ── Toast ── */
.create-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--kv-toast-bg);
  border: 1px solid var(--kv-border-mid);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--kv-text);
  padding: 14px 24px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  z-index: 9999;
  white-space: nowrap;
  box-shadow: 0 8px 32px var(--kv-shadow-lg);
}

.create-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.create-toast-icon {
  display: inline-block;
  margin-right: 8px;
  vertical-align: middle;
}

/* ── Loading gate ── */
.create-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 0;
  color: var(--kv-text-sub);
  gap: 12px;
}

/* ── Responsive ── */
@media (max-width: 480px) {
  .create-wrapper {
    padding: 0 16px 48px;
  }

  .action-card {
    padding: 20px 8px 16px;
  }

  .mode-card {
    padding: 12px 14px;
  }
}
