﻿:root{
  --gold:#e6c36a;
  --gold-soft:#f5deb0;
  --gold-strong:#f2c66d;
  --dark-bg:#0b1320;
  --panel-bg:#152238;
  --panel-bg-strong:rgba(21,34,56,0.96);
  --panel-alt:#1b2d47;
  --border:#2a3a50;
  --text-light:#e0e0e0;
  --text-muted:#a9b1bc;
  --shadow:0 18px 40px rgba(0,0,0,0.45);
}

*{
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  margin:0;
  min-height:100vh;
  font-family:'Inter',sans-serif;
  color:var(--text-light);
  background-color:var(--dark-bg);
  background-image:url('../textura.png');
  background-size:1024px 1024px;
  background-repeat:repeat;
  position:relative;
}

body::after{
  content:"";
  position:fixed;
  inset:0;
  background:rgba(11,19,32,0.34);
  pointer-events:none;
  z-index:-1;
}

header{
  position:sticky;
  top:0;
  z-index:100;
  height:70px;
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  padding:0 40px;
  background:
    linear-gradient(rgba(10,20,35,0.95), rgba(5,10,20,0.98)),
    url('../textura.png');
  border-bottom:2px solid var(--gold);
  box-shadow:0 5px 20px rgba(0,0,0,0.5);
}

.logo img{
  height:50px;
}

header[data-shared-header="true"] nav{
  justify-self:center;
  display:flex;
  flex-wrap:wrap;
}

header[data-shared-header="true"] nav > a{
  padding:10px 20px;
  font-size:14px;
  font-weight:600;
  color:#bbb;
  text-decoration:none;
  text-transform:uppercase;
  letter-spacing:1px;
  transition:0.3s;
}

header[data-shared-header="true"] nav > a:hover,
header[data-shared-header="true"] nav > a.is-active{
  color:var(--gold);
  text-shadow:0 0 10px rgba(230,195,106,0.5);
}

.search-box{
  display:flex;
  align-items:center;
}

.search-box input{
  padding:8px 15px;
  border:1px solid #334;
  border-radius:4px 0 0 4px;
  background:rgba(255,255,255,0.1);
  color:#fff;
  outline:none;
}

.search-box button{
  background:#334;
  border:1px solid #334;
  border-left:none;
  border-radius:0 4px 4px 0;
  color:var(--gold);
  padding:8px 12px;
  cursor:pointer;
}

.page-shell{
  width:min(1180px, calc(100% - 32px));
  margin:0 auto;
  padding:34px 0 60px;
  position:relative;
  z-index:1;
}

.breadcrumbs{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
  margin-bottom:20px;
  font-size:13px;
  color:var(--text-muted);
}

.breadcrumbs a{
  color:var(--gold-soft);
  text-decoration:none;
}

.section-hero{
  margin-bottom:28px;
  padding:32px;
  border:1px solid rgba(230,195,106,0.22);
  border-radius:28px;
  background:
    radial-gradient(circle at top left, rgba(230,195,106,0.12), transparent 28%),
    radial-gradient(circle at top right, rgba(120,210,140,0.11), transparent 25%),
    linear-gradient(135deg, rgba(17,25,37,0.98), rgba(14,18,27,0.9));
  box-shadow:var(--shadow);
  position:relative;
  overflow:hidden;
}

.section-hero::after{
  content:"";
  position:absolute;
  inset:0;
  background-image:url('https://www.transparenttextures.com/patterns/noise.png');
  opacity:0.08;
  pointer-events:none;
}

.eyebrow{
  margin:0 0 10px;
  color:var(--gold-strong);
  text-transform:uppercase;
  letter-spacing:0.16em;
  font-size:0.78rem;
  font-weight:700;
}

.section-hero h1,
.hero-card h2,
.panel-heading h2,
.result-block-header h3,
.side-panel h2{
  font-family:'Cinzel',serif;
}

.section-hero h1{
  margin:0;
  font-size:clamp(2.4rem, 4vw, 4.5rem);
  line-height:1.05;
}

.hero-copy{
  width:min(760px, 100%);
  margin:14px 0 0;
  color:var(--text-muted);
  line-height:1.7;
  font-size:1rem;
}

.hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  margin-top:24px;
}

.button-link,
.primary-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  min-height:50px;
  padding:0 20px;
  border-radius:14px;
  text-decoration:none;
  font:inherit;
  font-weight:800;
  cursor:pointer;
  transition:transform 0.18s ease, filter 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.button-link.primary,
.primary-button{
  border:0;
  background:linear-gradient(135deg, var(--gold) 0%, var(--gold-strong) 100%);
  color:#24180b;
  box-shadow:0 12px 24px rgba(214,170,82,0.2);
}

.button-link.secondary{
  border:1px solid rgba(230,195,106,0.3);
  background:rgba(255,255,255,0.04);
  color:var(--text-light);
}

.button-link:hover,
.primary-button:hover,
.button-link:focus-visible,
.primary-button:focus-visible{
  transform:translateY(-1px);
  filter:brightness(1.03);
  outline:none;
}

.cards-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:20px;
}

.hero-card,
.panel-card,
.side-panel,
.stat-card,
.result-block,
.flour-card{
  border-radius:24px;
  border:1px solid rgba(227,194,116,0.2);
  background:var(--panel-bg-strong);
  box-shadow:var(--shadow);
}

.hero-card{
  display:block;
  padding:26px;
  text-decoration:none;
  color:inherit;
  transition:transform 0.2s ease, border-color 0.2s ease;
  position:relative;
  overflow:hidden;
}

.hero-card:hover{
  transform:translateY(-4px);
  border-color:rgba(242,198,109,0.45);
}

.hero-card::before{
  content:"";
  position:absolute;
  top:0;
  left:0;
  right:0;
  height:4px;
  background:linear-gradient(90deg, rgba(230,195,106,0.95), rgba(242,198,109,0.18));
}

.hero-card::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at top right, rgba(255,230,160,0.08), transparent 24%),
    linear-gradient(to top, rgba(255,255,255,0.02), transparent 45%);
  pointer-events:none;
}

.card-tag{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-bottom:14px;
  padding:6px 12px;
  border-radius:999px;
  background:rgba(230,195,106,0.1);
  color:var(--gold-soft);
  border:1px solid rgba(230,195,106,0.22);
  font-size:11px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:1px;
}

.hero-card h2{
  margin:0 0 12px;
  font-size:28px;
  color:#fff4cd;
  position:relative;
  z-index:1;
}

.hero-card p{
  margin:0 0 18px;
  color:var(--text-muted);
  line-height:1.7;
  position:relative;
  z-index:1;
}

.hero-card .card-link{
  color:var(--gold-soft);
  font-weight:700;
  position:relative;
  z-index:1;
}

.layout{
  display:grid;
  grid-template-columns:minmax(0, 1fr) 300px;
  gap:24px;
}

.panel-card{
  padding:28px;
  backdrop-filter:blur(12px);
  position:relative;
  overflow:hidden;
}

.panel-card::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at top right, rgba(255,215,120,0.08), transparent 18%),
    linear-gradient(to bottom, rgba(255,255,255,0.02), transparent 22%);
  pointer-events:none;
}

.panel-heading{
  margin-bottom:24px;
}

.panel-heading h2{
  margin:0 0 10px;
  font-size:clamp(1.65rem, 2vw, 2.2rem);
}

.panel-heading{
  position:relative;
  padding-bottom:16px;
  border-bottom:1px solid rgba(230,195,106,0.12);
}

.panel-heading p,
.result-block-header p,
.field small,
.empty-state,
.stat-note,
.side-panel p{
  color:var(--text-muted);
  line-height:1.6;
}

.form-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:18px;
  align-items:end;
}

.field{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.field span{
  font-weight:700;
}

.field input,
.field select{
  width:100%;
  min-height:50px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,0.12);
  background:rgba(9,14,22,0.85);
  color:var(--text-light);
  padding:0 14px;
  font:inherit;
  transition:border-color 0.18s ease, box-shadow 0.18s ease;
}

.field input:focus,
.field select:focus{
  outline:none;
  border-color:rgba(242,198,109,0.6);
  box-shadow:0 0 0 4px rgba(214,170,82,0.12);
}

.actions{
  display:flex;
  align-items:end;
}

.results-stack{
  margin-top:28px;
  display:grid;
  gap:20px;
}

.stat-card,
.result-block,
.flour-card,
.side-panel{
  padding:22px;
  background:rgba(255,255,255,0.03);
  border:1px solid rgba(255,255,255,0.08);
}

.stat-label{
  margin:0;
  color:var(--gold-strong);
  text-transform:uppercase;
  letter-spacing:0.14em;
  font-size:0.75rem;
  font-weight:800;
}

.stat-value{
  margin:10px 0 8px;
  font-size:clamp(2rem, 3vw, 3.4rem);
  font-weight:800;
}

.stat-note{
  margin:0;
}

.result-block-header{
  margin-bottom:16px;
}

.result-block-header h3{
  margin:0 0 8px;
  font-size:1.2rem;
}

.result-block-header p{
  margin:0;
}

.table-wrap{
  overflow-x:auto;
}

table{
  width:100%;
  border-collapse:collapse;
  min-width:580px;
}

thead th{
  padding:12px 14px;
  text-align:left;
  font-size:0.92rem;
  color:var(--gold-strong);
  border-bottom:1px solid rgba(255,255,255,0.1);
}

tbody td{
  padding:14px;
  border-bottom:1px solid rgba(255,255,255,0.08);
}

tbody tr:last-child td{
  border-bottom:0;
}

.ingredient-list,
.flour-ingredient-list,
.quick-list{
  list-style:none;
  margin:0;
  padding:0;
}

.ingredient-list li,
.flour-ingredient-list li{
  display:flex;
  justify-content:space-between;
  gap:16px;
  padding:12px 0;
  border-bottom:1px solid rgba(255,255,255,0.08);
}

.ingredient-list li:last-child,
.flour-ingredient-list li:last-child{
  border-bottom:0;
}

.ingredient-name{
  color:var(--text-light);
}

.ingredient-qty{
  color:var(--gold-strong);
  font-weight:700;
  white-space:nowrap;
}

.flour-stack{
  display:grid;
  gap:14px;
}

.flour-card-header{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:baseline;
  margin-bottom:12px;
}

.flour-card-header h4{
  margin:0;
  font-size:1rem;
}

.flour-total{
  color:var(--gold-strong);
  font-weight:700;
}

.empty-state{
  margin:24px 0 0;
  padding:18px 20px;
  border-radius:18px;
  background:rgba(255,255,255,0.03);
  border:1px dashed rgba(255,255,255,0.12);
}

.side-panel h2{
  margin:0 0 14px;
  font-size:1.2rem;
  color:var(--gold);
}

.side-panel{
  position:sticky;
  top:96px;
}

.quick-list{
  display:grid;
  gap:12px;
}

.quick-list li{
  padding:12px 14px;
  border-radius:14px;
  background:#1b2d47;
  color:#ecdfc0;
}

footer{
  margin-top:44px;
  padding:30px 20px;
  text-align:center;
  border-top:2px solid var(--gold);
  background:linear-gradient(to top, #050a10, #0b1320);
}

footer p{
  margin:6px 0;
  font-size:13px;
  color:#888;
}

footer a{
  color:var(--gold);
  text-decoration:none;
}

.visually-hidden{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0, 0, 0, 0);
  white-space:nowrap;
  border:0;
}

@keyframes fade-slide{
  from{
    opacity:0;
    transform:translateY(8px);
  }

  to{
    opacity:1;
    transform:translateY(0);
  }
}

@media (max-width: 980px){
  .layout{
    grid-template-columns:1fr;
  }

  .cards-grid{
    grid-template-columns:1fr;
  }
}

@media (max-width: 860px){
  .form-grid{
    grid-template-columns:1fr;
  }
}

@media (max-width: 640px){
  header{
    grid-template-columns:1fr;
    height:auto;
    padding:10px;
    gap:10px;
  }

  header[data-shared-header="true"] nav{
    justify-content:center;
  }

  .search-box{
    justify-content:center;
  }

  .page-shell{
    width:min(100% - 20px, 1180px);
    padding-top:20px;
    padding-bottom:40px;
  }

  .section-hero,
  .panel-card,
  .hero-card{
    padding:22px;
    border-radius:22px;
  }

  .stat-card,
  .result-block,
  .flour-card,
  .side-panel{
    padding:18px;
  }

  table{
    min-width:520px;
  }
}
