/* WashTag - Laundry Care Symbol Decoder Mobile Styling */
:root {
  --bg-primary: #090e1a;
  --bg-card: #121828;
  --bg-input: #0e1322;
  --border-color: #1f2b44;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --accent-cyan: #38bdf8;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
}

* {
  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(18, 24, 40, 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;
}

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

.brand-icon {
  font-size: 20px;
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 14px rgba(56, 189, 248, 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);
}

.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: #0284c7;
  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);
}

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

/* Big Hero Summary Card */
.hero-summary-card {
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.hero-summary-card.safe { background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), #0e1920); border-color: rgba(16, 185, 129, 0.35); }
.hero-summary-card.danger { background: linear-gradient(135deg, rgba(244, 63, 94, 0.22), #1c1018); border-color: rgba(244, 63, 94, 0.45); }

.summary-badge {
  font-size: 13px;
  font-weight: 850;
  display: flex;
  align-items: center;
  gap: 6px;
}
.hero-summary-card.safe .summary-badge { color: #34d399; }
.hero-summary-card.danger .summary-badge { color: #fb7185; }

.action-rules-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(10, 14, 24, 0.6);
  border-radius: 10px;
  padding: 12px;
}

.action-rule-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  padding: 4px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.action-rule-row:last-child { border-bottom: none; }

.rule-label { color: #94a3b8; }
.rule-value { font-weight: 750; color: #fff; font-family: monospace; }

.warning-callout {
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid rgba(244, 63, 94, 0.3);
  color: #fca5a5;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.4;
}

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

.card-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 12px;
}

/* Symbols Options Scroller / Grid */
.symbols-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

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

.symbol-option-btn.active {
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
}

.symbol-icon {
  font-size: 20px;
  min-width: 28px;
  text-align: center;
}

.symbol-label {
  font-size: 13px;
  font-weight: 600;
}

/* 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;
}
