/* FoodThaw - Mobile Kitchen Meat Thawing Assistant */
:root {
  --bg-primary: #0b0f17;
  --bg-card: #131926;
  --bg-input: #0e1420;
  --border-color: #232d42;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --accent-coral: #f43f5e;
  --accent-emerald: #10b981;
  --accent-cyan: #38bdf8;
  --accent-amber: #f59e0b;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.5;
  padding-bottom: 40px;
}

/* Header */
header {
  background: rgba(19, 25, 38, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 16px;
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lang-switcher {
  display: flex;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 2px;
  gap: 2px;
}

.lang-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
}

.lang-btn.active {
  background: #f43f5e;
  color: #fff;
}

.header-link {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: none;
  padding: 5px 8px;
  border-radius: 6px;
  background: rgba(255,255,255,0.05);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-icon {
  font-size: 20px;
  background: linear-gradient(135deg, #e11d48, #f43f5e);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 14px rgba(244, 63, 94, 0.35);
}

.brand-title {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.3px;
}

.brand-sub {
  font-size: 11px;
  color: var(--text-muted);
}

/* Container */
.container {
  max-width: 580px;
  margin: 0 auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Card */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 16px;
}

.card-title {
  font-size: 14px;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Meat Type Grid */
.meat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.meat-btn {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
  color: var(--text-main);
}

.meat-btn:active {
  transform: scale(0.98);
}

.meat-btn.active {
  border-color: var(--accent-coral);
  background: rgba(244, 63, 94, 0.12);
}

.meat-icon {
  font-size: 22px;
}

.meat-label {
  font-size: 12px;
  font-weight: 600;
}

/* Slider Controls */
.slider-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.slider-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.slider-header {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  color: #cbd5e1;
}

.slider-val {
  color: var(--accent-coral);
  font-family: monospace;
  font-size: 15px;
  font-weight: 800;
}

.range-slider {
  width: 100%;
  accent-color: var(--accent-coral);
  height: 6px;
  cursor: pointer;
}

/* Results Methods */
.method-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
  background: var(--bg-input);
  padding: 4px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
}

.tab-btn {
  flex: 1;
  border: none;
  background: transparent;
  padding: 8px 4px;
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
}

.tab-btn.active {
  background: #25334c;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.method-panel {
  background: linear-gradient(135deg, #182236, #111726);
  border: 1px solid #2d3b55;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.method-hero {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.method-big-time {
  font-size: 32px;
  font-weight: 900;
  color: #38bdf8;
  font-family: monospace;
}

.method-tag {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 700;
}
.method-tag.emerald { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.method-tag.cyan { background: rgba(56, 189, 248, 0.2); color: #7dd3fc; }
.method-tag.amber { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }

.instruction-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12.5px;
  color: #cbd5e1;
}

.instruction-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.4;
}

.step-num {
  background: rgba(255, 255, 255, 0.1);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* 30-min Cold Water Interval Timer */
.water-timer-box {
  background: rgba(15, 23, 42, 0.7);
  border: 1px dashed #38bdf8;
  border-radius: 10px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.timer-left {
  display: flex;
  flex-direction: column;
}

.timer-title {
  font-size: 12px;
  font-weight: 700;
  color: #e2e8f0;
}

.timer-sub {
  font-size: 11px;
  color: var(--text-muted);
}

.timer-clock {
  font-family: monospace;
  font-size: 20px;
  font-weight: 800;
  color: #38bdf8;
}

.btn-timer {
  background: #0284c7;
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.btn-timer:active {
  background: #0369a1;
}

/* Danger Alert */
.danger-notice {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 10px;
  padding: 12px;
  font-size: 12px;
  color: #cbd5e1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.danger-title {
  color: #f87171;
  font-weight: 750;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Ad slots */
.ad-mobile-slot {
  margin: 12px 0;
  text-align: center;
}

.ad-mobile-box {
  min-height: 90px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ad-subtext {
  font-size: 10px;
  color: #64748b;
  text-transform: uppercase;
  margin-top: 4px;
}
