/* Baemin UI Components - PC Desktop Optimized (Design.md 1280px Grid) */

/* PC Desktop Container (1280px Max Width) */
.app-viewport {
  max-width: 1280px;
  width: 95%;
  margin: 20px auto;
  min-height: calc(100vh - 40px);
  background-color: var(--colors-bg-page);
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  border-radius: var(--rounded-2xl);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-bottom: 90px;
}

/* Wide PC Mint Header */
.mint-header {
  background-color: var(--colors-primary);
  padding: 20px 32px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-1);
}

.header-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.brand-logo .logo-text {
  font-family: var(--font-display-bold); /* BM DOHYEON */
  font-size: 30px;
  color: var(--colors-fg-1);
  letter-spacing: -0.02em;
  line-height: 1.0;
}

/* Wide PC Search Bar */
.search-bar {
  background-color: var(--colors-bg-surface);
  border-radius: var(--rounded-pill);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-1);
  cursor: pointer;
  flex-grow: 1;
  max-width: 600px;
}

.search-bar input {
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--colors-fg-1);
}

.search-bar input::placeholder {
  color: var(--colors-fg-3);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.icon-btn {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(0, 0, 0, 0.05);
  font-size: 22px;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: var(--rounded-circle);
  color: var(--colors-fg-1);
  transition: transform var(--dur-fast), background var(--dur-fast);
}

.icon-btn:hover {
  background: #FFFFFF;
  transform: scale(1.05);
}

.cart-badge-count {
  position: absolute;
  top: 0px;
  right: 0px;
  background-color: var(--colors-red);
  color: white;
  font-size: 11px;
  font-weight: 800;
  width: 20px;
  height: 20px;
  border-radius: var(--rounded-circle);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Content Padding Area */
.app-content {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* PC Delivery Hero Card */
.delivery-hero-card {
  background: linear-gradient(135deg, #0CEFD3 0%, #05D6BD 100%);
  border-radius: var(--rounded-2xl);
  padding: 36px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 10px 24px rgba(12, 239, 211, 0.25);
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-out);
}

.delivery-hero-card:hover {
  transform: translateY(-2px);
}

.delivery-hero-badge {
  background-color: var(--colors-fg-1);
  color: var(--colors-primary);
  font-size: 13px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: var(--rounded-pill);
  display: inline-block;
  margin-bottom: 8px;
}

.delivery-hero-title {
  font-family: var(--font-display-bold);
  font-size: 42px;
  color: var(--colors-fg-1);
  line-height: 1.0;
}

.delivery-hero-sub {
  font-size: 16px;
  color: var(--colors-fg-1);
  font-weight: 600;
  margin-top: 8px;
  line-height: 1.4;
}

.delivery-hero-illust {
  font-size: 80px;
}

/* Footer Styling */
.app-footer {
  text-align: center;
  padding: 32px 16px;
  font-size: 13px;
  color: var(--colors-fg-3);
  border-top: 1px solid var(--colors-border-1);
  margin-top: 40px;
}

.footer-admin-link {
  color: var(--colors-fg-3);
  font-size: 12px;
  text-decoration: underline;
  cursor: pointer;
  opacity: 0.7;
}

.footer-admin-link:hover {
  opacity: 1;
  color: var(--colors-fg-1);
}

.coupon-card-text {
  font-size: 16px;
  color: var(--colors-fg-1);
}

.coupon-card-text strong {
  color: var(--colors-fg-1);
  font-weight: 800;
}

/* Section Header */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.section-title {
  font-family: var(--font-display-bold);
  font-size: 24px;
  color: var(--colors-fg-1);
}

.section-sub {
  font-size: 14px;
  color: var(--colors-fg-3);
  margin-left: 12px;
}

/* Category Grid */
.category-grid {
  background-color: var(--colors-bg-surface);
  border-radius: var(--rounded-xl);
  padding: 12px;
  box-shadow: var(--shadow-1);
}

.category-tile {
  cursor: pointer;
}

.category-icon-circle {
  transition: transform var(--dur-fast);
}

.category-icon-circle:hover {
  transform: scale(1.02);
}

/* Filter Chip Row */
.filter-chip-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 0;
}

.filter-chip {
  background-color: var(--colors-bg-surface);
  border: 1px solid var(--colors-border-2);
  border-radius: var(--rounded-pill);
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--colors-fg-1);
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--dur-fast);
}

.filter-chip:hover {
  border-color: var(--colors-primary);
}

.filter-chip.active {
  background-color: var(--colors-red-tint);
  border-color: var(--colors-red);
  color: var(--colors-red);
  font-weight: 700;
}

/* PC Responsive Multi-Column Restaurant Grid */
.restaurant-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  .restaurant-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .restaurant-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

.restaurant-row {
  background-color: var(--colors-bg-surface);
  border-radius: var(--rounded-xl);
  padding: 20px;
  display: flex;
  gap: 16px;
  position: relative;
  cursor: pointer;
  box-shadow: var(--shadow-1);
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast);
}

.restaurant-row:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2);
}

.restaurant-thumb-box {
  position: relative;
  width: 96px;
  height: 96px;
  flex-shrink: 0;
}

.club-mini-badge {
  position: absolute;
  bottom: -4px;
  left: 4px;
  background-color: var(--colors-primary);
  color: var(--colors-fg-1);
  font-family: var(--font-display-bold);
  font-size: 11px;
  padding: 3px 8px;
  border-radius: var(--rounded-xs);
  box-shadow: var(--shadow-1);
}

.restaurant-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  flex-grow: 1;
}

.restaurant-name {
  font-weight: 800;
  font-size: 18px;
  color: var(--colors-fg-1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.restaurant-rating {
  font-size: 14px;
  color: var(--colors-fg-2);
  display: flex;
  align-items: center;
  gap: 4px;
}

.star-icon {
  color: var(--colors-yellow);
}

.restaurant-eta {
  font-size: 14px;
  color: var(--colors-fg-2);
  display: flex;
  align-items: center;
  gap: 8px;
}

.pill-free-delivery {
  background-color: var(--colors-red);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--rounded-pill);
}

.restaurant-min {
  font-size: 13px;
  color: var(--colors-fg-3);
}

/* PC Navigation Bottom / Floating Bar */
.bottom-tab-bar {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 640px;
  height: 64px;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid var(--colors-border-2);
  border-radius: var(--rounded-pill);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 200;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--colors-fg-3);
  font-size: 12px;
  cursor: pointer;
  background: transparent;
  border: none;
  width: 20%;
  transition: color var(--dur-fast);
}

.tab-item.active, .tab-item:hover {
  color: var(--colors-fg-1);
  font-weight: 700;
}

.tab-item .tab-icon {
  font-size: 20px;
}

.center-baemin-btn {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 58px;
  height: 58px;
  border-radius: var(--rounded-circle);
  background-color: var(--colors-primary);
  color: var(--colors-fg-1);
  font-family: var(--font-display-bold);
  font-size: 19px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(12, 239, 211, 0.4);
  border: 3px solid #FFFFFF;
  cursor: pointer;
  transition: transform var(--dur-fast);
}

.center-baemin-btn:hover {
  transform: translateX(-50%) scale(1.08);
}

/* Modals Centered for PC Desktop */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-base) var(--ease-out);
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.bottom-sheet {
  background: var(--colors-bg-surface);
  width: 90%;
  max-width: 600px;
  max-height: 85vh;
  border-radius: var(--rounded-2xl);
  padding: 28px;
  overflow-y: auto;
  transform: scale(0.95);
  transition: transform var(--dur-base) var(--ease-out);
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.modal-overlay.open .bottom-sheet {
  transform: scale(1);
}

.sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--colors-border-1);
}

.sheet-title {
  font-family: var(--font-display-bold);
  font-size: 22px;
}

.close-btn {
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
  color: var(--colors-fg-3);
}

/* Menu Items List inside store sheet */
.menu-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--colors-border-1);
}

.menu-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.menu-name {
  font-weight: 800;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.menu-desc {
  font-size: 13px;
  color: var(--colors-fg-3);
}

.menu-price {
  font-size: 15px;
  font-weight: 800;
  color: var(--colors-fg-1);
}

.add-item-btn {
  background-color: var(--colors-primary-tint);
  color: var(--colors-primary-hover);
  border: 1.5px solid var(--colors-primary);
  font-family: var(--font-body);
  font-weight: 700;
  padding: 8px 18px;
  border-radius: var(--rounded-pill);
  cursor: pointer;
  transition: all var(--dur-fast);
}

.add-item-btn:hover {
  background-color: var(--colors-primary);
  color: var(--colors-fg-1);
}

/* Admin Delete Button */
.btn-delete-item {
  background-color: #FFF2F1;
  color: var(--colors-red);
  border: 1px solid var(--colors-red);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--rounded-pill);
  cursor: pointer;
  transition: background var(--dur-fast);
}

.btn-delete-item:hover {
  background-color: var(--colors-red);
  color: white;
}

/* Form Styles */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--colors-fg-2);
}

.form-input {
  height: 52px;
  border-radius: var(--rounded-md);
  background-color: var(--colors-bg-subtle);
  border: 1px solid var(--colors-border-2);
  padding: 0 18px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--colors-fg-1);
  outline: none;
  transition: all var(--dur-fast);
}

.form-input:focus {
  background-color: var(--colors-bg-surface);
  border-color: var(--colors-border-strong);
  border-width: 1.5px;
}

/* Skin Preview Box */
.skin-preview-box {
  display: flex;
  align-items: center;
  gap: 14px;
  background-color: var(--colors-primary-tint);
  border-radius: var(--rounded-md);
  padding: 12px 18px;
  margin-top: 6px;
}

.skin-head-img {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  image-rendering: pixelated;
  background-color: #fff;
  box-shadow: var(--shadow-1);
}

.skin-nick-text {
  font-family: var(--font-display-bold);
  font-size: 16px;
  color: var(--colors-fg-1);
}

/* Upload Area */
.upload-area {
  border: 2px dashed var(--colors-border-2);
  border-radius: var(--rounded-md);
  padding: 24px;
  text-align: center;
  background-color: var(--colors-bg-subtle);
  cursor: pointer;
  transition: border-color var(--dur-fast);
}

.upload-area:hover, .upload-area.dragover {
  border-color: var(--colors-primary);
  background-color: var(--colors-primary-tint);
}

.upload-hint {
  font-size: 13px;
  color: var(--colors-fg-3);
  margin-top: 4px;
}

.image-preview-container {
  max-height: 220px;
  overflow: hidden;
  border-radius: var(--rounded-md);
  margin-top: 10px;
}

.image-preview-container img {
  width: 100%;
  object-fit: contain;
  max-height: 220px;
  border-radius: var(--rounded-md);
}

/* Buttons */
.btn-primary {
  height: 56px;
  background-color: var(--colors-fg-1);
  color: var(--colors-bg-surface);
  border: none;
  border-radius: var(--rounded-pill);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 16px;
  width: 100%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: opacity var(--dur-fast);
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-mint {
  height: 56px;
  background-color: var(--colors-primary);
  color: var(--colors-fg-1);
  border: none;
  border-radius: var(--rounded-pill);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 16px;
  width: 100%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background var(--dur-fast);
}

.btn-mint:hover {
  background-color: var(--colors-primary-hover);
  color: white;
}

/* Admin Dashboard Table */
.admin-badge {
  background-color: var(--colors-red);
  color: white;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: var(--rounded-xs);
  margin-left: 6px;
}

.ledger-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 13px;
}

.ledger-table th, .ledger-table td {
  border: 1px solid var(--colors-border-2);
  padding: 10px 12px;
  text-align: left;
}

.ledger-table th {
  background-color: var(--colors-bg-subtle);
  font-weight: 700;
}

/* Status Tracker Progress Bar */
.status-tracker {
  display: flex;
  justify-content: space-between;
  margin: 20px 0;
  position: relative;
}

.status-tracker::before {
  content: '';
  position: absolute;
  top: 16px;
  left: 30px;
  right: 30px;
  height: 4px;
  background: var(--colors-border-2);
  z-index: 1;
}

.status-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
}

.status-node {
  width: 36px;
  height: 36px;
  border-radius: var(--rounded-circle);
  background: var(--colors-border-2);
  color: var(--colors-fg-3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
}

.status-step.active .status-node {
  background: var(--colors-primary);
  color: var(--colors-fg-1);
  box-shadow: 0 0 0 4px var(--colors-primary-tint);
}

.status-step.done .status-node {
  background: var(--colors-fg-1);
  color: #fff;
}

.status-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--colors-fg-3);
}

.status-step.active .status-label {
  color: var(--colors-fg-1);
  font-weight: 800;
}
