/* zqoyoxz.com - Recipe & Cooking Tools Styles */
:root {
  --primary: #E85D04;
  --secondary: #370617;
  --accent: #F48C06;
  --background: #FDF8F4;
  --card: #FFFFFF;
  --text: #2D2D2D;
  --text-light: #666666;
  --border: #E8E0D8;
  --success: #2E7D32;
  --warning: #F9A825;
  --danger: #C62828;
  --danger-light: #FFEBEE;
  --warning-light: #FFF8E1;
  --success-light: #E8F5E9;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--background);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

/* Navigation */
nav {
  background: var(--secondary);
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

nav .nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

nav .logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: -0.5px;
}

nav .logo span { color: var(--accent); }

nav ul {
  display: flex;
  list-style: none;
  gap: 0.25rem;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.95rem;
  transition: all 0.2s;
}

nav ul li a:hover, nav ul li a.active {
  background: var(--primary);
  color: #fff;
}

/* Mobile nav */
.mobile-menu-btn { display: none; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; }

@media (max-width: 768px) {
  nav ul { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--secondary); padding: 1rem; }
  nav ul.show { display: flex; }
  nav ul li a { display: block; }
  .mobile-menu-btn { display: block; }
}

/* Layout */
.container { max-width: 1200px; margin: 0 auto; padding: 2rem 1.5rem; }
.page-header { text-align: center; margin-bottom: 2.5rem; }
.page-header h1 { font-size: 2.2rem; color: var(--secondary); margin-bottom: 0.5rem; }
.page-header p { color: var(--text-light); font-size: 1.1rem; }

/* Cards */
.card {
  background: var(--card);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border: 1px solid var(--border);
}

.card h2 { font-size: 1.3rem; color: var(--secondary); margin-bottom: 1rem; }
.card h3 { font-size: 1.1rem; color: var(--secondary); margin: 1rem 0 0.5rem; }

/* Grid */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }

@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* Forms */
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: 0.4rem; color: var(--text); font-size: 0.9rem; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s;
  background: #fff;
  color: var(--text);
  font-family: inherit;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.form-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.form-row .form-group { flex: 1; min-width: 200px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  text-decoration: none;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: #c44d03; transform: translateY(-1px); }
.btn-secondary { background: var(--accent); color: #fff; }
.btn-secondary:hover { background: #d97706; }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #b71c1c; }
.btn-sm { padding: 0.4rem 0.8rem; font-size: 0.85rem; }
.btn-block { width: 100%; }

.btn-group { display: flex; gap: 0.5rem; flex-wrap: wrap; }

/* Checkbox & Radio */
.checkbox-group, .radio-group { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.checkbox-item, .radio-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  border: 2px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.9rem;
}
.checkbox-item:hover, .radio-item:hover { border-color: var(--primary); }
.checkbox-item input, .radio-item input { display: none; }
.checkbox-item.selected, .radio-item.selected {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* Tabs */
.tabs { display: flex; gap: 0.25rem; margin-bottom: 1.5rem; border-bottom: 2px solid var(--border); }
.tab-btn {
  padding: 0.75rem 1.25rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-light);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
  font-family: inherit;
}
.tab-btn:hover { color: var(--primary); }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* Results */
.result-box {
  background: var(--card);
  border-radius: 12px;
  padding: 1.5rem;
  border-left: 4px solid var(--primary);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  margin: 1rem 0;
}

.result-box h3 { color: var(--secondary); margin-bottom: 0.75rem; }

.result-item {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
}
.result-item:last-child { border-bottom: none; }
.result-item .label { color: var(--text-light); font-size: 0.9rem; }
.result-item .value { font-weight: 700; font-size: 1.1rem; color: var(--primary); }

/* Stat cards */
.stat-card {
  background: var(--card);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.stat-card .number { font-size: 2.5rem; font-weight: 700; color: var(--primary); }
.stat-card .label { color: var(--text-light); font-size: 0.9rem; margin-top: 0.25rem; }

/* Tags */
.tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}
.tag-success { background: var(--success-light); color: var(--success); }
.tag-warning { background: var(--warning-light); color: #f57f17; }
.tag-danger { background: var(--danger-light); color: var(--danger); }
.tag-primary { background: #FFF3E0; color: var(--primary); }
.tag-info { background: #E3F2FD; color: #1565C0; }

/* Lists */
.food-list { list-style: none; }
.food-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
}
.food-list li:last-child { border-bottom: none; }

/* Table */
.table-wrapper { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 0.75rem 1rem; text-align: left; border-bottom: 1px solid var(--border); }
th { background: var(--secondary); color: #fff; font-weight: 600; font-size: 0.9rem; }
tr:hover { background: rgba(232, 93, 4, 0.04); }

/* Info boxes */
.info-box {
  background: #FFF8E1;
  border-left: 4px solid var(--accent);
  padding: 1rem 1.25rem;
  border-radius: 0 8px 8px 0;
  margin: 1rem 0;
}
.info-box.blue { background: #E3F2FD; border-left-color: #1565C0; }
.info-box.green { background: var(--success-light); border-left-color: var(--success); }
.info-box h4 { margin-bottom: 0.5rem; }

/* Health rating */
.health-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.health-bar .bar {
  height: 8px;
  width: 80px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.health-bar .fill { height: 100%; border-radius: 4px; transition: width 0.3s; }
.health-5 .fill { background: var(--success); }
.health-4 .fill { background: #66BB6A; }
.health-3 .fill { background: var(--warning); }
.health-2 .fill { background: #FF8A65; }
.health-1 .fill { background: var(--danger); }

/* Progress ring */
.progress-ring { position: relative; width: 120px; height: 120px; margin: 0 auto; }
.progress-ring svg { transform: rotate(-90deg); }
.progress-ring circle { fill: none; stroke-width: 10; }
.progress-ring .bg { stroke: var(--border); }
.progress-ring .fg { stroke: var(--primary); stroke-linecap: round; transition: stroke-dashoffset 0.5s; }
.progress-ring .text { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 1.5rem; font-weight: 700; color: var(--primary); }

/* Input list (dynamic rows) */
.input-list { display: flex; flex-direction: column; gap: 0.75rem; }
.input-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
  background: #FAFAFA;
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border);
}
.input-row input, .input-row select { flex: 1; min-width: 100px; }
.input-row .remove-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--danger-light);
  color: var(--danger);
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.input-row .remove-btn:hover { background: var(--danger); color: #fff; }

/* Divider */
.divider { height: 1px; background: var(--border); margin: 1.5rem 0; }

/* Alerts */
.alert {
  padding: 1rem 1.25rem;
  border-radius: 8px;
  margin: 1rem 0;
}
.alert-danger { background: var(--danger-light); color: var(--danger); border: 1px solid #FFCDD2; }
.alert-success { background: var(--success-light); color: var(--success); border: 1px solid #C8E6C9; }
.alert-warning { background: var(--warning-light); color: #f57f17; border: 1px solid #FFE082; }

/* Cuisine cards */
.cuisine-section { margin-bottom: 1.5rem; }
.cuisine-section h3 { display: flex; align-items: center; gap: 0.5rem; color: var(--secondary); margin-bottom: 0.75rem; }
.dish-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; margin-top: 0.5rem; }
.dish-card {
  background: #FAFAFA;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  transition: all 0.2s;
}
.dish-card:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.dish-card .name { font-weight: 600; color: var(--secondary); margin-bottom: 0.25rem; }
.dish-card .desc { font-size: 0.85rem; color: var(--text-light); }

/* Footer */
footer {
  background: var(--secondary);
  color: #fff;
  padding: 3rem 2rem 1.5rem;
  margin-top: 4rem;
}
footer .footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
}
footer h4 { color: var(--accent); margin-bottom: 1rem; font-size: 1rem; }
footer p, footer a { color: rgba(255,255,255,0.7); font-size: 0.9rem; line-height: 1.8; }
footer a { text-decoration: none; transition: color 0.2s; }
footer a:hover { color: var(--accent); }
footer .footer-bottom { max-width: 1200px; margin: 2rem auto 0; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.1); text-align: center; color: rgba(255,255,255,0.5); font-size: 0.85rem; }

@media (max-width: 768px) {
  footer .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  footer .footer-grid { grid-template-columns: 1fr; }
}

/* Misc */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.w-full { width: 100%; }

/* Related tools */
.related-tools {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.related-tool {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s;
}
.related-tool:hover { border-color: var(--primary); box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.related-tool .icon { width: 40px; height: 40px; background: var(--primary); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.2rem; }
.related-tool .name { font-weight: 600; font-size: 0.9rem; }
.related-tool .desc { font-size: 0.8rem; color: var(--text-light); }

/* Filter bar */
.filter-bar { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.filter-btn {
  padding: 0.4rem 0.9rem;
  border: 2px solid var(--border);
  background: #fff;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.85rem;
  font-family: inherit;
  transition: all 0.2s;
  color: var(--text);
}
.filter-btn:hover { border-color: var(--primary); }
.filter-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* Portion visual */
.portion-visual {
  display: flex;
  align-items: flex-end;
  gap: 2rem;
  justify-content: center;
  padding: 1.5rem;
}
.portion-bar {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.portion-bar .bar {
  width: 40px;
  background: var(--accent);
  border-radius: 6px 6px 0 0;
  transition: height 0.3s;
}
.portion-bar .label { font-size: 0.8rem; color: var(--text-light); }
.portion-bar .value { font-weight: 600; font-size: 0.9rem; }

/* ========== ARTICLE CARD GRID ========== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  padding: 0;
}

.card {
  background: var(--card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.card-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-tag {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 8px;
  width: fit-content;
}

.card-title {
  font-size: 1.05rem !important;
  font-weight: 700;
  color: var(--secondary) !important;
  margin: 0 0 8px !important;
  line-height: 1.4;
}

.card-title a {
  color: var(--secondary);
  text-decoration: none;
}

.card-title a:hover {
  color: var(--primary);
}

.card-excerpt {
  color: var(--text-light);
  font-size: 0.88rem;
  line-height: 1.6;
  margin: 0 0 14px;
  flex: 1;
}

.card-link {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  margin-top: auto;
}

.card-link:hover {
  text-decoration: underline;
}

/* ========== HEADER OVERRIDE (white bg style) ========== */
.header {
  background: #fff;
  border-bottom: 3px solid var(--primary);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header > .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  padding-bottom: 14px;
  flex-wrap: wrap;
  gap: 12px;
}

.header .logo {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  background: none;
  padding: 0;
  box-shadow: none;
  position: static;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 6px;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: var(--text);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s;
}

.nav-link:hover {
  background: var(--background);
  color: var(--primary);
}

.nav-link.active {
  color: var(--primary);
  font-weight: 700;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  padding: 4px;
  color: var(--secondary);
}

@media (max-width: 768px) {
  .nav { display: none; }
  .nav.show { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: #fff; padding: 16px; border-top: 3px solid var(--primary); box-shadow: var(--shadow); }
  .nav-list { flex-direction: column; }
  .menu-toggle { display: block; }
}

/* ========== ARTICLE BODY STYLES ========== */
.article-body { font-size: 1.05rem; line-height: 1.8; color: var(--text); }
.article-body h2 { font-size: 1.5rem; font-weight: 700; color: var(--secondary); margin: 2rem 0 0.75rem; padding-top: 0.5rem; }
.article-body h3 { font-size: 1.2rem; font-weight: 700; color: var(--secondary); margin: 1.5rem 0 0.5rem; }
.article-body p { margin: 0 0 1.2rem; }
.article-body ul, .article-body ol { margin: 0 0 1.2rem 1.5rem; }
.article-body li { margin-bottom: 0.4rem; }
.article-body blockquote { border-left: 4px solid var(--primary); padding: 12px 20px; background: #FFF8F0; margin: 1.5rem 0; font-style: italic; color: var(--text-light); }
.article-body strong { color: var(--secondary); }
.article-body a { color: var(--primary); }

/* ========== RELATED TOOLS/ARTICLES BOX ========== */
.related-box { background: #FFF8F0; border: 2px solid var(--primary); border-radius: var(--radius-lg); padding: 24px; margin-top: 40px; }
.related-box h3 { font-size: 1.1rem; font-weight: 700; color: var(--secondary); margin: 0 0 12px; }
.related-box a { display: block; color: var(--primary); font-weight: 600; text-decoration: none; margin-bottom: 6px; }
.related-box a:hover { text-decoration: underline; }

/* ========== READING TIME / META ========== */
.reading-meta { color: var(--text-light); font-size: 0.9rem; margin-bottom: 24px; display: flex; gap: 16px; flex-wrap: wrap; }

/* ========== TOOL CARD STYLES (for tool pages) ========== */
.tool-card-form { background: var(--card); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow); border: 1px solid var(--border); margin-bottom: 24px; }
.result-box { background: var(--card); border-radius: var(--radius-lg); padding: 24px; border: 2px solid var(--primary); display: none; margin-top: 20px; }
.info-box { background: #FFF8F0; border: 1px solid #F48C06; border-radius: var(--radius); padding: 16px; margin-top: 16px; font-size: 0.9rem; color: var(--secondary); }
