﻿@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Press+Start+2P&display=swap');

:root {
  /* Brand colors */
  --grass-green: #5FAF3C;
  --grass-green-dark: #4A8C2F;
  --dirt-brown: #8B5A2B;
  --dirt-brown-dark: #6B4420;
  --diamond-blue: #4FC3F7;
  --emerald-green: #2ECC71;
  --gold: #F1C40F;
  --redstone-red: #E74C3C;

  /* Surfaces */
  --bg: #F4F7F2;
  --card-bg: #FFFFFF;
  --input-bg: #FAFCF9;
  --border-color: #D4DCCF;
  --border-dark: #8B5A2B;

  /* Text */
  --text-primary: #2C3E2D;
  --text-secondary: #5A6B5C;
  --text-muted: #8A9A8C;
  --text-inverse: #FFFFFF;

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(44, 62, 45, 0.08);
  --shadow-md: 0 4px 12px rgba(44, 62, 45, 0.12);
  --shadow-block: 0 4px 0 var(--dirt-brown-dark);

  /* Layout */
  --header-height: 64px;
  --bottom-nav-height: 64px;
  --ad-banner-height: 100px;
  --tool-panel-gap: 1rem;
  --border-radius: 8px;
  --border-radius-lg: 12px;

  /* Typography */
  --font-pixel: 'Press Start 2P', monospace;
  --font-body: 'Inter', sans-serif;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;

  /* Z-index */
  --z-sticky: 100;
  --z-header: 200;
  --z-bottom-nav: 300;
  --z-toast: 400;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg);
  min-height: 100vh;
  min-height: 100dvh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-pixel);
  line-height: 1.4;
  margin-top: 0;
  color: var(--text-primary);
}

h1 { font-size: clamp(1rem, 2.5vw, 1.5rem); }
h2 { font-size: clamp(0.875rem, 2vw, 1.125rem); }
h3 { font-size: clamp(0.75rem, 1.5vw, 0.875rem); }

p { margin-top: 0; }

a {
  color: var(--diamond-blue);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--grass-green);
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: var(--font-body);
  cursor: pointer;
}

input, select, textarea {
  font-family: var(--font-body);
  font-size: 1rem;
}

:focus-visible {
  outline: 3px solid var(--diamond-blue);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.pixel-text {
  font-family: var(--font-pixel);
}
/* Cards */
.mc-card {
  background: var(--card-bg);
  border: 3px solid var(--border-dark);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-block);
  padding: 1.25rem;
}

.mc-card-inventory {
  background: linear-gradient(180deg, #C6C6C6 0%, #8B8B8B 100%);
  border: 3px solid #373737;
  border-radius: var(--border-radius);
  padding: 1rem;
}

.mc-card-inventory .inventory-inner {
  background: var(--input-bg);
  border: 2px solid #555;
  border-radius: 4px;
  padding: 1rem;
}

/* Buttons */
.btn-mc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 1rem;
  border: 3px solid transparent;
  border-radius: var(--border-radius);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  min-height: 44px;
  min-width: 44px;
}

.btn-mc:active {
  transform: translateY(2px);
}

.btn-mc-primary {
  background: var(--grass-green);
  color: var(--text-inverse);
  border-color: var(--grass-green-dark);
  box-shadow: 0 4px 0 var(--grass-green-dark);
}

.btn-mc-primary:hover {
  background: #6BC04A;
  color: var(--text-inverse);
}

.btn-mc-secondary {
  background: var(--dirt-brown);
  color: var(--text-inverse);
  border-color: var(--dirt-brown-dark);
  box-shadow: 0 4px 0 var(--dirt-brown-dark);
}

.btn-mc-secondary:hover {
  background: #9D6B35;
  color: var(--text-inverse);
}

.btn-mc-outline {
  background: var(--card-bg);
  color: var(--text-primary);
  border-color: var(--border-dark);
  box-shadow: 0 3px 0 var(--border-dark);
}

.btn-mc-outline:hover {
  background: var(--input-bg);
  color: var(--text-primary);
}

.btn-mc-danger {
  background: var(--redstone-red);
  color: var(--text-inverse);
  border-color: #C0392B;
  box-shadow: 0 4px 0 #C0392B;
}

.btn-mc-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  min-height: 36px;
}

.btn-mc-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn-mc:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Form controls */
.mc-form-group {
  margin-bottom: 1rem;
}

.mc-form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.375rem;
  color: var(--text-primary);
  font-size: 0.9375rem;
}

.mc-form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  background: var(--input-bg);
  color: var(--text-primary);
  transition: border-color var(--transition-fast);
  min-height: 44px;
}

.mc-form-control:focus {
  border-color: var(--grass-green);
  outline: none;
  box-shadow: 0 0 0 3px rgba(95, 175, 60, 0.2);
}

.mc-form-control-sm {
  padding: 0.375rem 0.625rem;
  min-height: 36px;
  font-size: 0.875rem;
}

.mc-form-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  min-height: 44px;
}

.mc-form-check input[type="checkbox"],
.mc-form-check input[type="radio"] {
  width: 20px;
  height: 20px;
  accent-color: var(--grass-green);
}

/* Searchable dropdown */
.mc-search-select {
  position: relative;
}

.mc-search-select input {
  width: 100%;
}

.mc-search-select .dropdown-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: 200px;
  overflow-y: auto;
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  z-index: 50;
  display: none;
  box-shadow: var(--shadow-md);
}

.mc-search-select .dropdown-list.show {
  display: block;
}

.mc-search-select .dropdown-item {
  padding: 0.625rem 1rem;
  cursor: pointer;
  border-bottom: 1px solid var(--border-color);
}

.mc-search-select .dropdown-item:hover,
.mc-search-select .dropdown-item.active {
  background: rgba(95, 175, 60, 0.15);
}

/* Output panel */
.output-panel {
  background: var(--card-bg);
  border: 3px solid var(--border-dark);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.output-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: var(--dirt-brown);
  color: var(--text-inverse);
  font-weight: 600;
}

.output-body {
  padding: 1rem;
  min-height: 120px;
}

.output-code {
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 0.875rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-all;
  background: #1E1E1E;
  color: #D4D4D4;
  padding: 1rem;
  border-radius: 4px;
  max-height: 300px;
  overflow-y: auto;
}

.output-code .cmd { color: #569CD6; }
.output-code .arg { color: #CE9178; }
.output-code .flag { color: #9CDCFE; }
.output-code .number { color: #B5CEA8; }
.output-code .bracket { color: #FFD700; }

.output-explanation {
  margin-top: 1rem;
  padding: 0.75rem;
  background: rgba(79, 195, 247, 0.1);
  border-left: 4px solid var(--diamond-blue);
  border-radius: 0 4px 4px 0;
  font-size: 0.9375rem;
}

.output-preview {
  margin-top: 1rem;
  font-family: 'Consolas', monospace;
  font-size: 0.625rem;
  line-height: 1;
  background: #2C3E2D;
  color: var(--grass-green);
  padding: 1rem;
  border-radius: 4px;
  overflow-x: auto;
  white-space: pre;
}

/* Toast */
.mc-toast {
  position: fixed;
  bottom: calc(var(--bottom-nav-height) + 1rem);
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--text-primary);
  color: var(--text-inverse);
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  z-index: var(--z-toast);
  opacity: 0;
  transition: transform var(--transition-normal), opacity var(--transition-normal);
  pointer-events: none;
}

.mc-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Ad slots */
.ad-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(
    45deg,
    #E8EDE5,
    #E8EDE5 10px,
    #DFE5DC 10px,
    #DFE5DC 20px
  );
  border: 2px dashed var(--border-color);
  border-radius: var(--border-radius);
  color: var(--text-muted);
  font-size: 0.75rem;
  text-align: center;
  margin: 0 auto;
}

.ad-slot-header { width: 728px; max-width: 100%; height: 90px; }
.ad-slot-sidebar { width: 300px; height: 250px; }
.ad-slot-below-output { width: 336px; max-width: 100%; height: 280px; }
.ad-slot-footer { width: 100%; max-width: 970px; height: 90px; }

/* Badges */
.mc-badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  font-size: 0.6875rem;
  font-weight: 600;
  border-radius: 4px;
  text-transform: uppercase;
}

.mc-badge-coming-soon {
  background: var(--gold);
  color: #5D4E00;
}

.mc-badge-new {
  background: var(--emerald-green);
  color: white;
}

/* Quick access cards */
.tool-card {
  display: block;
  background: var(--card-bg);
  border: 3px solid var(--border-dark);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  text-align: center;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  color: var(--text-primary);
  text-decoration: none;
  box-shadow: var(--shadow-block);
}

.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 0 var(--dirt-brown-dark);
  color: var(--text-primary);
  text-decoration: none;
}

.tool-card.disabled {
  opacity: 0.7;
  cursor: not-allowed;
  pointer-events: none;
}

.tool-card-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.tool-card-title {
  font-family: var(--font-pixel);
  font-size: 0.75rem;
  margin-bottom: 0.5rem;
}

.tool-card-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0;
}

/* Breadcrumb */
.breadcrumb-mc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.875rem;
  margin-bottom: 1rem;
  padding: 0;
  list-style: none;
}

.breadcrumb-mc li::after {
  content: 'â€º';
  margin-left: 0.5rem;
  color: var(--text-muted);
}

.breadcrumb-mc li:last-child::after {
  content: '';
}

.breadcrumb-mc a {
  color: var(--diamond-blue);
}

/* FAQ */
.faq-section {
  margin-top: 2rem;
}

.faq-section .accordion-button {
  font-weight: 600;
}

/* Native FAQ (no Bootstrap JS) */
.faq-details-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.faq-details {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.faq-details__summary {
  font-weight: 600;
  padding: 1rem 1.25rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.faq-details__summary::-webkit-details-marker {
  display: none;
}

.faq-details__summary::after {
  content: '+';
  float: right;
  font-weight: 700;
  color: var(--grass-green);
}

.faq-details[open] .faq-details__summary::after {
  content: 'âˆ’';
}

.faq-details__body {
  padding: 0 1.25rem 1rem;
  color: var(--text-secondary);
}

.faq-details__body p:last-child {
  margin-bottom: 0;
}

/* Minimal utilities (homepage â€” avoids Bootstrap CSS) */
.u-flex { display: flex; }
.u-gap-2 { gap: 0.5rem; }
.u-mb-3 { margin-bottom: 1rem; }
.u-hidden-md-up { display: block; }
@media (min-width: 768px) {
  .u-hidden-md-up { display: none; }
}

.ad-slot-footer {
  content-visibility: auto;
  contain-intrinsic-size: 0 90px;
}

/* SEO content block */
.seo-content {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--card-bg);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--border-color);
}

.seo-content h2 {
  margin-bottom: 1rem;
}

.seo-content p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--text-muted);
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

/* Install banner */
.install-banner {
  position: fixed;
  bottom: calc(var(--bottom-nav-height) + 0.5rem);
  left: 1rem;
  right: 1rem;
  background: var(--grass-green);
  color: white;
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  z-index: var(--z-toast);
  box-shadow: var(--shadow-md);
  transform: translateY(150%);
  transition: transform var(--transition-normal);
}

.install-banner.show {
  transform: translateY(0);
}

@media (min-width: 768px) {
  .install-banner {
    left: auto;
    right: 1rem;
    max-width: 400px;
    bottom: 1rem;
  }

  .mc-toast {
    bottom: 2rem;
  }
}
.app-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: var(--card-bg);
  border-bottom: 4px solid var(--grass-green);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  max-width: 1400px;
  margin: 0 auto;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
}

.logo:hover {
  color: var(--text-primary);
  text-decoration: none;
}

.logo-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-pixel);
  font-size: 0.75rem;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.header-nav {
  display: none;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.app-header .header-nav a {
  display: block;
  padding: 0.5rem 0.75rem;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: var(--border-radius);
  text-decoration: none;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.app-header .header-nav a:hover,
.app-header .header-nav a.active,
.app-header .header-nav a[aria-current="page"] {
  background: rgba(95, 175, 60, 0.15);
  color: var(--grass-green);
  text-decoration: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.theme-toggle {
  background: none;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 0.5rem;
  font-size: 1.25rem;
  line-height: 1;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ad-banner-wrap {
  padding: 0.5rem 1rem;
  background: var(--bg);
  border-bottom: 1px solid var(--border-color);
}

.app-main {
  flex: 1;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 1rem;
  padding-bottom: calc(var(--bottom-nav-height) + 1rem);
}

.app-footer {
  background: var(--dirt-brown);
  color: var(--text-inverse);
  padding: 2rem 1rem 1rem;
  margin-top: auto;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-grid h4 {
  font-family: var(--font-pixel);
  font-size: 0.625rem;
  margin-bottom: 1rem;
  color: var(--gold);
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-grid li {
  margin-bottom: 0.5rem;
}

.footer-grid a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.875rem;
}

.footer-grid a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 1rem;
  text-align: center;
  font-size: 0.8125rem;
  opacity: 0.8;
}

/* Hero */
.hero {
  text-align: center;
  padding: 2rem 1rem 3rem;
  background: linear-gradient(180deg, rgba(95, 175, 60, 0.1) 0%, transparent 100%);
  border-radius: var(--border-radius-lg);
  margin-bottom: 2rem;
}

.hero h1 {
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 1.5rem;
}

.hero-cta {
  margin-bottom: 1rem;
}

/* Quick access grid */
.quick-access {
  margin-bottom: 2rem;
}

.quick-access h2 {
  text-align: center;
  margin-bottom: 1.5rem;
}

.quick-access-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}

/* Tool layout */
.tool-page {
  display: flex;
  flex-direction: column;
}

.tool-header {
  margin-bottom: 1rem;
}

.tool-header h1 {
  margin-bottom: 0.5rem;
}

.tool-description {
  color: var(--text-secondary);
  margin: 0;
}

.tool-workspace {
  display: flex;
  flex-direction: column;
  gap: var(--tool-panel-gap);
}

.tool-panels {
  display: flex;
  flex-direction: column;
  gap: var(--tool-panel-gap);
}

.tool-input-panel {
  flex: 0 0 auto;
}

.tool-output-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--tool-panel-gap);
}

.tool-output-with-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--tool-panel-gap);
}

.tool-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.tool-actions-mobile-sticky {
  position: sticky;
  bottom: calc(var(--bottom-nav-height) + 0.5rem);
  background: var(--bg);
  padding: 0.75rem 0;
  z-index: var(--z-sticky);
  margin-top: 0;
}

.tool-extras {
  margin-top: 2rem;
}

/* Generators listing */
.generators-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.category-section {
  margin-bottom: 2.5rem;
}

.category-section h2 {
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--grass-green);
}

/* Favorites / History lists */
.saved-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.saved-item {
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1rem;
}

.saved-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.saved-item-meta {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.saved-item-output {
  font-family: monospace;
  font-size: 0.8125rem;
  background: #1E1E1E;
  color: #D4D4D4;
  padding: 0.75rem;
  border-radius: 4px;
  max-height: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.saved-item-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

/* Desktop tool layout - no scroll goal */
@media (min-width: 992px) {
  .header-nav {
    display: flex;
  }

  .app-main {
    padding-bottom: 1rem;
  }

  .tool-workspace {
    height: calc(100vh - var(--header-height) - var(--ad-banner-height) - 4rem);
    min-height: 500px;
    overflow: hidden;
  }

  .tool-panels {
    flex-direction: row;
    flex: 1;
    min-height: 0;
  }

  .tool-input-panel {
    flex: 0 0 40%;
    overflow-y: auto;
  }

  .tool-output-area {
    flex: 0 0 60%;
    min-height: 0;
    overflow-y: auto;
  }

  .tool-output-with-sidebar {
    flex-direction: row;
  }

  .tool-output-with-sidebar .output-main {
    flex: 1;
    min-width: 0;
  }

  .tool-output-with-sidebar .sidebar-ad-wrap {
    flex: 0 0 300px;
  }

  .tool-actions-mobile-sticky {
    position: static;
    padding: 0;
  }

  .quick-access-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1200px) {
  .logo-text {
    font-size: 0.875rem;
  }
}
/* Minecraft-inspired UI elements */

/* Grass block pattern for decorative headers */
.mc-grass-pattern {
  background: linear-gradient(180deg,
    var(--grass-green) 0%,
    var(--grass-green) 30%,
    var(--dirt-brown) 30%,
    var(--dirt-brown) 100%
  );
  height: 8px;
  border-radius: 2px 2px 0 0;
}

/* Inventory slot style */
.inventory-slot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: #8B8B8B;
  border: 2px solid #373737;
  border-radius: 4px;
  box-shadow: inset 2px 2px 0 #555, inset -2px -2px 0 #222;
}

/* Block-style button variant */
.btn-block-style {
  position: relative;
  background: var(--grass-green);
  border: none;
  border-bottom: 4px solid var(--grass-green-dark);
  border-right: 4px solid var(--grass-green-dark);
}

.btn-block-style::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
}

/* Crafting table grid aesthetic */
.crafting-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 8px;
  background: #8B6914;
  border: 3px solid #5D4A0F;
  border-radius: 4px;
  max-width: 180px;
}

.crafting-cell {
  aspect-ratio: 1;
  background: #C6C6C6;
  border: 2px solid #555;
}

/* Stone texture panel */
.stone-panel {
  background: linear-gradient(135deg, #9E9E9E 0%, #757575 50%, #616161 100%);
  border: 3px solid #424242;
  color: white;
  padding: 1rem;
  border-radius: var(--border-radius);
}

/* Dirt path divider */
.dirt-divider {
  height: 4px;
  background: repeating-linear-gradient(
    90deg,
    var(--dirt-brown) 0px,
    var(--dirt-brown) 8px,
    var(--dirt-brown-dark) 8px,
    var(--dirt-brown-dark) 16px
  );
  margin: 1.5rem 0;
  border-radius: 2px;
}

/* XP bar style progress */
.xp-bar {
  height: 8px;
  background: #333;
  border: 2px solid #111;
  border-radius: 4px;
  overflow: hidden;
}

.xp-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--emerald-green), var(--grass-green));
  transition: width var(--transition-normal);
}

/* Hotbar-style bottom accent */
.hotbar-accent {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 4px;
}

.hotbar-slot {
  width: 40px;
  height: 40px;
  background: #8B8B8B;
  border: 2px solid #555;
  border-radius: 2px;
}

.hotbar-slot.active {
  border-color: white;
  box-shadow: 0 0 0 2px white;
}

/* Related tools strip */
.related-tools {
  margin-top: 2rem;
}

.related-tools h3 {
  margin-bottom: 1rem;
}

.related-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
}

.related-tool-link {
  display: block;
  padding: 0.75rem;
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  text-align: center;
  color: var(--text-primary);
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color var(--transition-fast);
}

.related-tool-link:hover {
  border-color: var(--grass-green);
  color: var(--grass-green);
  text-decoration: none;
}

.related-tool-link.disabled {
  opacity: 0.6;
  pointer-events: none;
  cursor: not-allowed;
}
[data-theme="dark"] {
  --bg: #1A1F1A;
  --card-bg: #2C332C;
  --input-bg: #232923;
  --border-color: #3D4A3D;
  --border-dark: #5A6B5C;
  --text-primary: #E8EDE5;
  --text-secondary: #B0BDB2;
  --text-muted: #7A8A7C;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-block: 0 4px 0 #1A1F1A;
}

[data-theme="dark"] .mc-card-inventory {
  background: linear-gradient(180deg, #555 0%, #333 100%);
  border-color: #222;
}

[data-theme="dark"] .mc-card-inventory .inventory-inner {
  background: var(--input-bg);
  border-color: #444;
}

[data-theme="dark"] .ad-slot {
  background: repeating-linear-gradient(
    45deg,
    #2C332C,
    #2C332C 10px,
    #232923 10px,
    #232923 20px
  );
}

[data-theme="dark"] .app-header {
  background: var(--card-bg);
  border-bottom-color: var(--grass-green-dark);
}

[data-theme="dark"] .hero {
  background: linear-gradient(180deg, rgba(95, 175, 60, 0.15) 0%, transparent 100%);
}

[data-theme="dark"] .output-code,
[data-theme="dark"] .saved-item-output {
  background: #0D0D0D;
}

[data-theme="dark"] .output-preview {
  background: #0D120D;
}

[data-theme="dark"] .seo-content {
  border-color: var(--border-color);
}

[data-theme="dark"] .theme-toggle {
  border-color: var(--border-color);
}
/* Bottom navigation - mobile app style */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bottom-nav-height);
  background: var(--card-bg);
  border-top: 3px solid var(--grass-green);
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  z-index: var(--z-bottom-nav);
  padding-bottom: env(safe-area-inset-bottom, 0);
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
}

.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.5rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.625rem;
  font-weight: 600;
  border: none;
  background: none;
  min-height: 44px;
  transition: color var(--transition-fast), background var(--transition-fast);
}

.bottom-nav-item:hover,
.bottom-nav-item.active {
  color: var(--grass-green);
  background: rgba(95, 175, 60, 0.1);
  text-decoration: none;
}

.bottom-nav-icon {
  font-size: 1.25rem;
  line-height: 1;
}

/* Hide bottom nav on desktop */
@media (min-width: 992px) {
  .bottom-nav {
    display: none;
  }

  .app-main {
    padding-bottom: 1rem;
  }
}

/* Mobile-specific tool layout */
@media (max-width: 991px) {
  .sidebar-ad-wrap {
    display: none;
  }

  .tool-input-panel .mc-card-inventory {
    margin-bottom: 0;
  }

  .tool-actions .btn-mc-lg {
    flex: 1;
    min-width: 120px;
  }

  .header-nav {
    display: none;
  }

  .logo-text {
    display: none;
  }

  .ad-slot-header {
    height: 60px;
  }
}

/* Safe area for notched devices */
@supports (padding: max(0px)) {
  .app-header {
    padding-top: env(safe-area-inset-top, 0);
  }

  .bottom-nav {
    padding-bottom: max(env(safe-area-inset-bottom, 0), 0px);
  }
}

/* Touch-friendly spacing */
@media (pointer: coarse) {
  .mc-form-control {
    min-height: 48px;
    font-size: 16px; /* Prevents iOS zoom */
  }

  .btn-mc {
    min-height: 48px;
  }
}
.coming-soon-page {
  max-width: 900px;
  margin: 0 auto;
}

.coming-soon-hero {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: linear-gradient(180deg, rgba(241, 196, 15, 0.12) 0%, transparent 100%);
  border: 3px solid var(--gold);
  border-radius: var(--border-radius-lg);
  margin-bottom: 2rem;
  position: relative;
}

.coming-soon-hero-tool {
  background: linear-gradient(180deg, rgba(95, 175, 60, 0.08) 0%, transparent 100%);
  border-color: var(--grass-green);
}

.coming-soon-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  line-height: 1;
}

.coming-soon-badge {
  margin-bottom: 1rem;
  font-size: 0.75rem;
  padding: 0.375rem 0.75rem;
}

.coming-soon-hero h1 {
  margin-bottom: 0.75rem;
}

.coming-soon-desc {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
}

.coming-soon-body {
  padding-bottom: 2rem;
}

.coming-soon-section {
  margin-bottom: 2.5rem;
}

.coming-soon-section h2 {
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--grass-green);
}

.coming-soon-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.coming-soon-features li {
  padding: 0.875rem 1rem 0.875rem 2.5rem;
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  position: relative;
}

.coming-soon-features li::before {
  content: 'â›';
  position: absolute;
  left: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
}

.coming-soon-status {
  border-color: var(--gold);
}

.coming-soon-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 2px solid var(--border-color);
}

.blog-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
}

.blog-category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: center;
}

.blog-category-icon {
  font-size: 1.5rem;
}

[data-theme="dark"] .coming-soon-hero {
  background: linear-gradient(180deg, rgba(241, 196, 15, 0.08) 0%, transparent 100%);
}

[data-theme="dark"] .coming-soon-hero-tool {
  background: linear-gradient(180deg, rgba(95, 175, 60, 0.1) 0%, transparent 100%);
}
