/* ═══════════════════════════════════════════════
   TRITON DIY Salt Mix Calculator — Page-Specific Styles
   Global design system: ../global.css
   Reference: infusion-dosage-calculator.css
   ═══════════════════════════════════════════════ */


/* ════════════════════════════════════════════════
   HERO — Compact static hero (shared with infusion page)
   hero-tool classes defined in infusion-dosage-calculator.css
   Duplicated here so each calculator page is self-contained.
   ════════════════════════════════════════════════ */
.hero-tool{
  min-height:60vh;height:auto;
  display:flex;flex-direction:column;justify-content:flex-end;
  background:
    radial-gradient(ellipse 70% 55% at 70% 35%, rgba(0,100,102,.3) 0%, transparent 60%),
    radial-gradient(ellipse 45% 50% at 15% 75%, rgba(3,47,79,.5) 0%, transparent 55%),
    var(--bp);
  padding-top:clamp(7rem,12vw,10rem)
}
.hero-tool .hero-ct{
  padding-bottom:clamp(4rem,6vw,6rem);
  display:grid;grid-template-columns:1fr 1fr;
  align-items:end;gap:clamp(2rem,4vw,5rem)
}
.hero-tool .hero-t{font-size:clamp(2.8rem,6.5vw,5.5rem);max-width:18ch}
.hero-tool .hero-sub{max-width:60ch}
.hero-tool-text{min-width:0;align-self:end}
.hero-tool-product{position:relative;z-index:2;align-self:center;justify-self:start}
.hero-tool-product img{
  max-height:55vh;width:auto;object-fit:contain;
  filter:drop-shadow(0 20px 60px rgba(0,0,0,.5));
  transition:transform .6s cubic-bezier(.16,1,.3,1)
}
.hero-tool-product:hover img{transform:translateY(-8px)}


/* ════════════════════════════════════════════════
   VOLUME INPUT — Shared top input for aquarium volume
   ════════════════════════════════════════════════ */
.diy-volume-shell{
  max-width:720px;
  background:rgba(1,24,39,.75);
  border:1px solid rgba(133,255,199,.15);
  padding:clamp(1.5rem,3vw,2rem);
  margin-bottom:clamp(2rem,4vw,3rem);
  position:relative;overflow:hidden
}
.diy-volume-shell::before{
  content:'';position:absolute;top:0;left:0;right:0;height:3px;
  background:linear-gradient(90deg,transparent,var(--aq),transparent);
  opacity:.6
}
.diy-volume-header{
  display:flex;align-items:center;gap:1rem;
  margin-bottom:1.5rem;padding-bottom:1rem;
  border-bottom:1px solid rgba(133,255,199,.06)
}
.diy-volume-icon{
  width:44px;height:44px;display:grid;place-items:center;
  background:rgba(133,255,199,.08);border:1px solid rgba(133,255,199,.15);flex-shrink:0
}
.diy-volume-icon i{font-size:1.2rem;color:var(--aq)}
.diy-volume-header h3{
  font-family:var(--h);font-weight:900;font-size:1rem;
  text-transform:uppercase;letter-spacing:.04em;line-height:1.2
}
.diy-volume-header span{
  font-size:1rem;color:rgba(255,255,255,.45);margin-top:.1rem;display:block
}
.diy-volume-field label{
  display:block;font-family:var(--h);font-weight:700;
  font-size:.72rem;letter-spacing:.14em;text-transform:uppercase;
  color:rgba(255,255,255,.85);margin-bottom:.5rem
}
.diy-volume-input-wrap{
  display:flex;align-items:center;gap:.8rem;max-width:280px
}
.diy-volume-input-wrap input{
  flex:1;padding:.9rem 1rem;
  background:rgba(1,24,39,.8);border:1px solid rgba(133,255,199,.18);
  color:var(--w);font-family:var(--h);font-size:1.3rem;font-weight:900;
  letter-spacing:.02em;transition:border-color .3s,box-shadow .3s;
  -moz-appearance:textfield
}
.diy-volume-input-wrap input::-webkit-outer-spin-button,
.diy-volume-input-wrap input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.diy-volume-input-wrap input::placeholder{color:rgba(255,255,255,.35);font-weight:400}
.diy-volume-input-wrap input:focus{
  outline:none;border-color:var(--aq);box-shadow:0 0 20px rgba(133,255,199,.1)
}
.diy-volume-input-wrap input.invalid{
  border-color:#ff5555;box-shadow:0 0 12px rgba(255,85,85,.12)
}
.diy-volume-unit{
  font-family:var(--h);font-weight:700;font-size:.82rem;
  letter-spacing:.1em;text-transform:uppercase;color:rgba(255,255,255,.5)
}


/* ════════════════════════════════════════════════
   CALCULATOR GRID — Three elements side by side
   ════════════════════════════════════════════════ */
.diy-grid{
  display:grid;grid-template-columns:repeat(3,1fr);
  gap:clamp(1rem,2vw,1.5rem);
  align-items:start
}


/* ════════════════════════════════════════════════
   CALCULATOR SHELL — Each element calculator
   ════════════════════════════════════════════════ */
.diy-shell{
  background:rgba(1,24,39,.75);
  border:1px solid rgba(133,255,199,.12);
  padding:clamp(1.5rem,2.5vw,2rem);
  position:relative;overflow:hidden
}
.diy-shell::before{
  content:'';position:absolute;top:0;left:0;right:0;height:3px;
  background:linear-gradient(90deg,transparent,var(--aq),transparent);
  opacity:.5
}
.diy-shell::after{
  content:'';position:absolute;bottom:0;right:0;width:140px;height:140px;
  background:radial-gradient(circle,rgba(133,255,199,.04) 0%,transparent 70%);pointer-events:none
}

/* Shell header */
.diy-header{
  display:flex;align-items:center;gap:.8rem;
  margin-bottom:1.5rem;padding-bottom:1rem;
  border-bottom:1px solid rgba(133,255,199,.06)
}
.diy-header-icon{
  width:40px;height:40px;display:grid;place-items:center;
  background:rgba(133,255,199,.08);border:1px solid rgba(133,255,199,.15);flex-shrink:0
}
.diy-header-icon i{font-size:1.1rem;color:var(--aq)}
.diy-header-text h3{
  font-family:var(--h);font-weight:900;font-size:.95rem;
  text-transform:uppercase;letter-spacing:.04em;line-height:1.2
}
.diy-header-text span{
  font-size:.88rem;color:rgba(255,255,255,.4);margin-top:.1rem;display:block
}

/* Product image */
.diy-products{
  display:flex;align-items:center;justify-content:flex-start;
  margin-bottom:1.5rem;padding:1rem;
  background:rgba(0,100,102,.06);border:1px solid rgba(133,255,199,.06)
}
.diy-product-card{
  display:flex;flex-direction:column;align-items:center;gap:.5rem;text-align:center
}
.diy-product-card img{
  width:100px;height:100px;object-fit:contain;
  filter:drop-shadow(0 6px 16px rgba(0,0,0,.3));
  transition:transform .4s cubic-bezier(.16,1,.3,1)
}
.diy-product-card:hover img{transform:scale(1.05)}
.diy-product-card span{
  font-family:var(--h);font-weight:700;font-size:.72rem;
  letter-spacing:.1em;text-transform:uppercase;color:rgba(255,255,255,.5)
}

/* Form — stacked in narrow shells */
.diy-form{
  display:grid;grid-template-columns:1fr;gap:1.2rem;margin-bottom:1.5rem
}
.diy-field label{
  display:block;font-family:var(--h);font-weight:700;
  font-size:.72rem;letter-spacing:.14em;text-transform:uppercase;
  color:rgba(255,255,255,.85);margin-bottom:.4rem
}
.diy-field input{
  width:100%;padding:.8rem .9rem;
  background:rgba(1,24,39,.8);border:1px solid rgba(133,255,199,.12);
  color:var(--w);font-family:var(--h);font-size:1.1rem;font-weight:700;
  letter-spacing:.02em;transition:border-color .3s,box-shadow .3s;
  -moz-appearance:textfield
}
.diy-field input::-webkit-outer-spin-button,
.diy-field input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.diy-field input::placeholder{color:rgba(255,255,255,.35);font-weight:400}
.diy-field input:focus{outline:none;border-color:var(--aq);box-shadow:0 0 20px rgba(133,255,199,.08)}
.diy-field input.invalid{border-color:#ff5555;box-shadow:0 0 12px rgba(255,85,85,.12)}
.diy-field .diy-hint{font-size:.88rem;color:rgba(255,255,255,.5);margin-top:.3rem;line-height:1.4}

/* Result display */
.diy-result{
  display:flex;align-items:center;gap:1rem;
  padding:1.2rem 1.5rem;
  background:rgba(0,100,102,.12);border:1px solid rgba(133,255,199,.18);
  position:relative
}
.diy-result::before{
  content:'';position:absolute;left:0;top:0;bottom:0;width:3px;background:var(--aq)
}
.diy-result-label{
  font-family:var(--h);font-weight:700;font-size:.72rem;
  letter-spacing:.14em;text-transform:uppercase;
  color:rgba(255,255,255,.85);white-space:nowrap
}
.diy-result-value{
  font-family:var(--h);font-weight:900;
  font-size:clamp(1.6rem,2.5vw,2rem);
  color:var(--aq);letter-spacing:-.01em;line-height:1
}
.diy-result-unit{
  font-size:.9rem;color:rgba(255,255,255,.7);font-weight:400;margin-left:.25rem
}

/* Max note */
.diy-max-note{
  display:flex;align-items:flex-start;gap:.6rem;
  margin-top:1rem;padding:.7rem 1rem;
  background:rgba(0,100,102,.06);border-left:2px solid rgba(133,255,199,.2)
}
.diy-max-note i{flex-shrink:0;color:var(--aq);opacity:.6;margin-top:.15rem;font-size:.85rem}
.diy-max-note p{font-size:.88rem;line-height:1.5;color:rgba(255,255,255,.55)}


/* ════════════════════════════════════════════════
   ABOUT SECTION — Product context
   ════════════════════════════════════════════════ */
.diy-about-grid{
  display:grid;grid-template-columns:1fr 260px;
  gap:clamp(3rem,6vw,5rem);align-items:center
}
.diy-about-products{
  display:flex;flex-direction:column;gap:1.5rem;align-items:center
}
.diy-about-products img{
  width:180px;height:auto;
  filter:drop-shadow(0 12px 30px rgba(0,0,0,.4));
  transition:transform .6s cubic-bezier(.16,1,.3,1)
}
.diy-about-products img:hover{transform:translateY(-6px)}
.diy-about-facts{display:grid;gap:1rem;margin-top:2rem}
.diy-fact{
  display:flex;align-items:flex-start;gap:1rem;
  padding:1rem 1.4rem;
  background:rgba(0,100,102,.08);border-left:3px solid rgba(133,255,199,.25)
}
.diy-fact i{flex-shrink:0;font-size:1.1rem;color:var(--aq);margin-top:.15rem}
.diy-fact p{font-size:1rem;line-height:1.6;color:rgba(255,255,255,.75)}
.diy-fact strong{color:var(--w)}


/* ════════════════════════════════════════════════
   EXPERT QUOTE
   ════════════════════════════════════════════════ */
.diy-quote{margin-top:clamp(2.5rem,5vw,3.5rem);max-width:720px}


/* ════════════════════════════════════════════════
   TIPS SECTION
   ════════════════════════════════════════════════ */
.diy-tips-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:2rem}
.diy-tip-icon{color:var(--aq);margin-right:.5rem}
.diy-tip-p{margin-top:.8rem}
.diy-tip-list{margin-top:.8rem}


/* ════════════════════════════════════════════════
   CTA SECTION
   ════════════════════════════════════════════════ */
.diy-cta{
  background:linear-gradient(180deg,var(--bp) 0%,rgba(0,100,102,.25) 50%,var(--bp) 100%);
  text-align:center;position:relative
}
.diy-cta::before{
  content:'';position:absolute;inset:0;pointer-events:none;opacity:.03;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97'%3E%3Cpath d='M28 1l27 15.5v31L28 63 1 47.5v-31z' fill='none' stroke='%2385FFC7' stroke-width='.4'/%3E%3C/svg%3E");
  background-size:56px 97px
}
.diy-cta .section-h{margin-bottom:1rem}
.diy-cta .s-sub{margin-bottom:clamp(2rem,4vw,3rem)}
.diy-cta-btns{display:flex;gap:1.2rem;justify-content:center;flex-wrap:wrap}
.diy-cta-sub{max-width:55ch;margin-left:auto;margin-right:auto}


/* ════════════════════════════════════════════════
   RESPONSIVE — Tablet (<=1024px)
   ════════════════════════════════════════════════ */
@media(max-width:1024px){
  .hero-tool .hero-ct{grid-template-columns:1fr}
  .hero-tool-product{justify-self:start;order:-1;margin-bottom:1.5rem}
  .hero-tool-product img{max-height:none;width:min(50vw,240px);height:auto}

  .diy-grid{grid-template-columns:1fr 1fr}

  .diy-about-grid{grid-template-columns:1fr;text-align:center}
  .diy-about-products{flex-direction:row;justify-content:center;gap:2rem}
  .diy-about-products img{width:140px}

  .diy-tips-grid{grid-template-columns:1fr 1fr}
}


/* ════════════════════════════════════════════════
   RESPONSIVE — Mobile (<=768px)
   ════════════════════════════════════════════════ */
@media(max-width:768px){
  .hero-tool{min-height:auto;padding-top:clamp(6rem,10vw,8rem)}
  .hero-tool .hero-ct{padding-bottom:clamp(3rem,5vw,4rem)}
  .hero-tool-product img{width:min(50vw,220px)}

  .diy-grid{grid-template-columns:1fr}
  .diy-shell{max-width:none}

  .diy-result{flex-direction:column;align-items:flex-start;gap:.6rem}

  .diy-about-grid{gap:2rem}
  .diy-about-products{gap:1.5rem}
  .diy-about-products img{width:120px}
  .diy-about-facts{gap:.8rem}

  .diy-tips-grid{grid-template-columns:1fr}

  .diy-cta-btns{flex-direction:column;align-items:center}
  .diy-cta-btns .btn{width:100%}
}


/* ════════════════════════════════════════════════
   RESPONSIVE — Small mobile (<=480px)
   ════════════════════════════════════════════════ */
@media(max-width:480px){
  .diy-volume-shell{padding:1.2rem}
  .diy-shell{padding:1.2rem}
  .diy-header{flex-direction:column;align-items:flex-start;gap:.6rem}
  .diy-volume-input-wrap{max-width:none}
}
