/* =========================================================
   Dream-Plan v2 — style.css (stable, horizontal centered icon row)
   ========================================================= */

/* ---------- Base / Background ---------- */
html, body { margin: 0; padding: 0; height: 100%; }
body {
  display: flex;
  flex-direction: column;
  font-family: Arial, sans-serif;
  background-image: url('Blue_Light.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: #111;
}

/* ---------- Top Nav (kept) ---------- */
#top-nav {
  background-color: #f8f8f8;
  padding: 5px;
  text-align: right;
  border-bottom: 1px solid #ccc;
  position: absolute;
  top: 0; right: 0;
  height: 20px;
  display: flex;
  border-radius: 10px;
}

/* ---------- Hamburger / slide menu (kept) ---------- */
#hamburger { padding: 5px; position: fixed; top: 0; left: 0; text-align: left; z-index: 1100; }
#leftMenu { transition: transform 0.5s ease; }
#leftMenu.hidden { transform: translateX(-100%); }

/* ---------- Tokens ---------- */
:root{ --glass: rgba(255,255,255,.08); --txt:#eaf6ff; --cyan1:#00d4ff; --cyan2:#00a3cc; }

/* ---------- Top Icon Menu (#menu) ---------- */
#menu {
  position: fixed;
  display: flex;
  top: 25px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  justify-content: center;      /* center the whole row */
  align-items: center;
  gap: 18px;
  padding: 8px 12px;
  z-index: 1001;
}

#menu.hidden { 
  display: none !important;
}

/* prevent wrapper forms from stacking vertically */
#menu form {
  display: flex;
  flex-direction: row;
  gap: 8px;
  flex-wrap: nowrap;
  margin: 0; padding: 0;
  background: transparent;
  border: 0;
}

/* round chips created by your JS: <button class="menu-chip"> */
#menu .menu-chip{
  width: 75px; height: 75px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px;
opacity: 0.8;  /* 70% visible = 30% transparent */
box-shadow: 0 0 10px rgba(150, 255, 255, 0.8);
  border: 2px solid rgba(255,255,255,.30);
  background: radial-gradient(120% 120% at 20% 20%, #0a4466, #052b42 60%);
  color: var(--txt);
  box-shadow: 0 6px 18px rgba(0,212,255,.18);
  transition: transform .2s ease, box-shadow .2s ease;
  padding: 0; margin: 0; line-height: 1;
  cursor: pointer;
}
#menu .menu-chip i{ font-size: 22px; opacity: .95; }
#menu .menu-chip img{ width: 28px; height: 28px; object-fit: contain; filter: drop-shadow(0 1px 2px rgba(0,0,0,.35)); }
#menu .menu-chip span{ font-size: 12px; line-height: 1; text-align: center; }
#menu .menu-chip:hover{ transform: translateY(-3px) scale(1.03); box-shadow: 0 10px 24px rgba(0,212,255,.28); }

/* ---------- Content Container as Responsive Grid ---------- */
#container{
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 20px;
  max-width: 1400px;
  margin: 110px auto 40px;      /* clear fixed menu + center */
  padding: 0 16px;
  align-content: start;
}

/* Cards / Figures */
#container figure{
  width: auto !important;       /* override any inline width to allow grid flow */
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: var(--glass);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
}

/* Uniform images without distortion */
#container img.CarMake{
  width: 100%;
  height: 250px;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Caption + action row */
#container figcaption{
  color:#fff; padding:10px 12px; font-weight:600; background:rgba(0,0,0,.30);
}
.icon-btn-group{ display:flex; gap:10px; padding:10px 12px; background:rgba(0,0,0,.15); }
.icon-btn{
  border:0; border-radius:10px; padding:8px 10px;
  background:rgba(255,255,255,.08); color:#fff; cursor:pointer;
  transition: transform .15s ease, background .15s ease;
}
.icon-btn:hover{ transform:translateY(-2px); background:rgba(255,255,255,.16); }

/* ---------- 5-Point Plan Glass Block ---------- */
.plan-box{
  max-width:1200px;
  margin:18px auto;
  padding:16px 18px;
  background:linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border:1px solid rgba(255,255,255,.12);
  border-radius:18px;
  box-shadow:0 10px 30px rgba(0,0,0,.28);
  color:var(--txt);
  backdrop-filter:blur(10px);
}
.plan-list{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px 24px;
  margin:0; padding:0;
}
@media (max-width:700px){ .plan-list{ grid-template-columns:1fr; } }
.plan-list li{
  list-style:none; display:flex; gap:10px; align-items:flex-start;
  padding:10px 12px; border-radius:12px;
  background:rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.08);
}
.plan-list .num{
  min-width:28px; height:28px; border-radius:50%;
  background:radial-gradient(120% 120% at 20% 20%, var(--cyan1), var(--cyan2));
  display:inline-flex; align-items:center; justify-content:center;
  font-weight:700; color:#012331;
}
.plan-title{ font-weight:600; line-height:1.25; }
.plan-desc{ opacity:.85; font-size:.92rem; }

/* ---------- Modal & misc legacy (kept styles for safety) ---------- */
.modal{ display:none; position:fixed; z-index:1010; left:10%; right:10%; top:5%; bottom:5%;
  width:80%; height:80%; overflow:auto; background-color: rgba(173,216,230,.9); border-radius:10px; }
.modal-content{ background:#fff; margin:15% auto; padding:20px; border-radius:10px; border:1px solid #888; width:80%; text-align:center; }
.modal img{ max-width:90%; height:auto; padding:20px; margin:15px 0; border-radius:10px; }
.picture{ width:50px; height:50px; border-radius:10px; position:absolute; cursor:move; }
textarea{ width:100%; height:300px; background-color:#FFFFE0; }
#formContainer{ flex:0 0 450px; background-color:#fffacd; border-radius:10px; padding:10px; box-shadow:0 2px 5px rgba(0,0,0,.1); }
#stock_add{ position:fixed; top:40px; width:50px; background-color:Aqua; border-radius:10px; padding:10px; box-shadow:0 2px 5px rgba(0,0,0,.1); }
.menu-button{ /* legacy hook */ }
@keyframes flashing{ 0%{opacity:1} 50%{opacity:0} 100%{opacity:1} }
.flashing-text{ animation:flashing 1s infinite; color:#007bff; font-weight:bold; }
//.investment{ width:29%; background-color:#fffacd; border-radius:10px; padding:10px; box-shadow:0 2px 5px rgba(0,0,0,.1); border-style:solid; border-color:LightGray; }
#personalInfoSection{ width:95%; background-color:LightBlue; border-radius:10px; padding:10px; box-shadow:0 2px 5px rgba(0,0,0,.1); border-style:solid; border-color:LightGray; }
#goalsSection{ width:95%; background-color:LightYellow; border-radius:10px; padding:10px; box-shadow:0 2px 5px rgba(0,0,0,.1); border-style:solid; border-color:LightGray; }

#menu[style]{display:flex !important;}                 /* override inline display:block */
#menu form{display:flex;flex-direction:row;flex-wrap:nowrap;gap:8px;}  /* keep items in a row */

.hidden {
  display: none !important;
}

/* ===== Investments: Blue Glass (CSS-only, no HTML/DB changes) ===== */

/* Container spacing (keeps your existing layout engine, just adds air) */
body[type="Investments"] #container,
#container.investments,
#container[data-page="Investments"] {
  width: min(1280px, 94vw);
  margin: 120px auto 80px;        /* clears the fixed top menu */
  padding: 0 6px;
}

/* Card look: replace yellow box with blue glass */
.investment{
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.05)), rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 18px;
  box-shadow: 0 8px 30px rgba(0,0,0,.25);
  color: var(--txt);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-style: none;
  padding: 0;                      /* we’ll pad sections below */
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}

/* Hover polish */
.investment:hover{
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(0,0,0,.32);
}

/* Header strip: targets a heading at the top (h2/h3/span) without HTML changes */
.investment > h1,
.investment > h2,
.investment > h3,
.investment > .title,
.investment > .header {
  margin: 0;
  padding: 14px 16px 10px 16px;
  font-weight: 800;
  letter-spacing: .5px;
  font-size: 20px;
  border-bottom: 1px solid rgba(255,255,255,.18);
  background: radial-gradient(120% 160% at 0% 0%, rgba(255,255,255,.20) 0%, rgba(255,255,255,0) 60%);
}

/* If you print the latest price right under the title, make it bold and aligned */
.investment .latest, 
.investment .price {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  opacity: .95;
}

/* Chart area: keep all TradingView blocks the same height */
.investment .tradingview-widget-container,
.investment .chart,
.investment iframe {
  width: 100%;
  height: 360px;                   /* pick your uniform height */
  border: 0;
  display: block;
}

/* Meta row (vol, session tag, etc.) */
.investment .meta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding: 12px 16px 0 16px;
  font-size:14px;
  opacity:.9;
}

/* News list */
.investment .news{
  padding: 8px 16px 16px 16px;
  max-height: 180px;
  overflow:auto;
}
.investment .news ul{ margin:0; padding-left:18px; }
.investment .news li{ margin:6px 0; }
.investment .news a{ text-decoration:none; }
.investment .news a:hover{ text-decoration:underline; }

/* Responsive tweaks (keeps three → two → one columns if your container is flex) */
@media (max-width: 1200px){
  .investment{ min-width: 320px; } /* lets them wrap to 2 columns in your existing flex/grid */
}
@media (max-width: 720px){
  .investment{ min-width: auto; }  /* single column on phones */
  body[type="Investments"] #container,
  #container.investments,
  #container[data-page="Investments"] { margin-top: 98px; }
}

/* ===== GOALS — Blue-glass look (CSS-only) ===== */

/* the three panels */
#personalInfoSection,
#goalsSection,
#addGoalSection,
#yourPersonalInfoSection,
#selectGoalsSection {
  /* glass card */
  background: linear-gradient(180deg, rgba(200,200,255,.10), rgba(200,200,255,.05)), rgba(255,255,255,.06) !important;
  border: 1px solid rgba(255,255,255,.18) !important;
  border-radius: 18px !important;
  box-shadow: 0 8px 30px rgba(0,0,0,.25);
  color: #eaf6ff;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 14px 16px 16px;
}

/* headings inside those panels */
#personalInfoSection > h1, #personalInfoSection > h2, #personalInfoSection > h3,
#goalsSection > h1,        #goalsSection > h2,        #goalsSection > h3,
#addGoalSection > h1,      #addGoalSection > h2,      #addGoalSection > h3,
#yourPersonalInfoSection > h1, #yourPersonalInfoSection > h2, #yourPersonalInfoSection > h3,
#selectGoalsSection > h1,  #selectGoalsSection > h2,  #selectGoalsSection > h3{
  margin: 0 0 8px 0;
  padding: 6px 0 10px 0;
  border-radius: 10px;
  font-weight: 800;
  letter-spacing: .5px;
  border-bottom: 1px solid rgba(255,255,255,.18);
  background: radial-gradient(120% 160% at 0% 0%, rgba(200,200,255,.20) 0%, rgba(200,200,255,.10) 60%);
}

/* inputs / selects / textareas inside those panels */
#personalInfoSection input, #personalInfoSection select, #personalInfoSection textarea,
#goalsSection input,       #goalsSection select,       #goalsSection textarea,
#addGoalSection input,     #addGoalSection select,     #addGoalSection textarea,
#yourPersonalInfoSection input, #yourPersonalInfoSection select, #yourPersonalInfoSection textarea,
#selectGoalsSection input, #selectGoalsSection select, #selectGoalsSection textarea{
  width: 95%;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.22);
  padding: 10px 12px;
  background: rgba(0,0,25,.35);
  color: #eaf6ff;
  outline: none;
}

#personalInfoSection input::placeholder,
#goalsSection input::placeholder,
#addGoalSection input::placeholder,
#yourPersonalInfoSection input::placeholder,
#selectGoalsSection input::placeholder{
  color: rgba(255,255,255,.95);
}

#personalInfoSection input:focus, #personalInfoSection select:focus, #personalInfoSection textarea:focus,
#goalsSection input:focus,       #goalsSection select:focus,       #goalsSection textarea:focus,
#addGoalSection input:focus,     #addGoalSection select:focus,     #addGoalSection textarea:focus,
#yourPersonalInfoSection input:focus, #yourPersonalInfoSection select:focus, #yourPersonalInfoSection textarea:focus,
#selectGoalsSection input:focus, #selectGoalsSection select:focus, #selectGoalsSection textarea:focus{
  border-color: rgba(255,255,255,.36);
  box-shadow: 0 0 0 3px rgba(255,255,255,.12);
}

/* buttons */
#personalInfoSection button, #personalInfoSection input[type="submit"],
#goalsSection button,       #goalsSection input[type="submit"],
#addGoalSection button,     #addGoalSection input[type="submit"],
#yourPersonalInfoSection button, #yourPersonalInfoSection input[type="submit"],
#selectGoalsSection button, #selectGoalsSection input[type="submit"]{
  border: 1px solid rgba(255,255,255,.28);
  background: linear-gradient(180deg, rgba(50,50,90,.70), rgba(50,50,80,.40));
  color: #eaf6ff;
  border-radius: 12px;
  padding: 8px 12px;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: transform .18s ease, box-shadow .18s ease;
}
#personalInfoSection button:hover,
#goalsSection button:hover,
#addGoalSection button:hover,
#yourPersonalInfoSection button:hover,
#selectGoalsSection button:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0,0,0,.25);
}

/* nicer checkboxes for the goal list */
#yourPersonalInfoSection input[type="checkbox"],
#selectGoalsSection    input[type="checkbox"],
#goalsSection          input[type="checkbox"]{
  transform: scale(1.1);
  accent-color: #5fdcff;
}

/* optional: give those three panels some top spacing under the round icon bar */
#personalInfoSection, #goalsSection, #yourPersonalInfoSection, #selectGoalsSection, #addGoalSection{
  margin-top: 16px;
}

/* ===== Goals list polish ===== */
#goalsList{
  background: linear-gradient(180deg, rgba(0,0,50,.38), rgba(0,0,30,.28));
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 14px;
  padding: 10px;
  max-height: 260px;      /* scroll if many goals */
  overflow: auto;
}

/* each goal row */
#goalsList > div{
  display: flex;
  align-items: center;     /* keep checkbox vertically centered with text */
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(200,200,255,.04);
  margin: 6px 0;
}

/* fix: don't let the global input styles make checkboxes full width */
#goalsList input[type="checkbox"]{
  width: auto !important;
  min-width: 18px;
  margin: 0;
  transform: scale(1.1);
  accent-color: #5fdcff;
}

/* label readability */
#goalsList label{
  color: #eaf6ff;
  line-height: 1.35;
  user-select: none;
}

/* hover + selected feedback */
#goalsList > div:hover{
  background: rgba(255,255,255,.07);
}
#goalsList input[type="checkbox"]:checked + label{
  font-weight: 600;
  text-shadow: 0 0 6px rgba(95,220,255,.35);
}

/* Mobile: show icon+label only, no circle */
@media (max-width: 768px) {
  #menu .menu-chip{
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    width: auto !important;
    height: auto !important;
    border-radius: 0 !important;
    padding: 6px 8px;            /* keep tap area comfy */
    gap: 4px;
  }
  #menu .menu-chip i { font-size: 22px; }
  #menu .menu-chip span { font-size: 12px; }
}


/* Optimize menu spacing for small screens */
@media (max-width: 768px) {
  #menu {
    top: 45px;
    justify-content: space-between; /* fill width evenly */
    gap: 0;                         /* no gap between icons */
    padding: 2px 6px;               /* tighter top/bottom space */
  }

  #menu .menu-chip {
    padding: 2px 4px;
  }

  #menu .menu-chip i {
    font-size: 20px;                /* smaller icon */
    margin-bottom: 1px;
  }

  #menu .menu-chip span {
    font-size: 10px;                /* smaller label */
    letter-spacing: 0.2px;
  }
  
  #container figure{
  width: 94% !important;       /* make pictures fit smaller screens horizontally */
  }

}

/* Fix product card scaling on mobile */
.card, .property-card {
  width: 500px;
  max-width: 500px;
  box-sizing: border-box;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 12px;
}

/* Ensure images never overflow */
.card img, .property-card img {
  width: 500px;
  height: auto;
  display: block;
  border-radius: 12px 12px 0 0;
}

/* Optional: keep padding consistent on small screens */
@media (max-width: 768px) {
  .card, .property-card {
    margin: 3px 0;
    border-radius: 10px;
  }
}


/* Blue Glass recommendation panel */
#recommendationResult{
  --glass: rgba(10, 40, 60, 0.55);
  --edge: rgba(255,255,255,0.14);
  --glow: rgba(0,180,255,0.35);
  //background: linear-gradient(180deg, rgba(14, 52, 78, 0.55), rgba(6, 26, 40, 0.55));
   background: linear-gradient(180deg, rgba(200,200,255,.10), rgba(200,200,255,.05)), rgba(255,255,255,.06) !important;
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  border: 1px solid var(--edge);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35), inset 0 0 0 1px rgba(0,180,255,0.12);
  color: #E6F6FF;
  border-radius: 18px;
  padding: 16px 18px;
  max-width: 1330px;   /* cap */
  width: 100%;         /* fill available space */
  margin-inline: auto; /* center it */
  //width: 95%;
  //width: clamp(320px, 95%, 900px);
}

#recommendationResult h3{
  margin: 0 0 8px;
  font-size: 22px;
  letter-spacing: .3px;
  color: black;
  text-shadow: 0 0 8px var(--glow);
}

/* Step list */
#recommendationResult .steps{ display: grid; gap: 10px; }

#recommendationResult .step{
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(18,70,100,0.55), rgba(8,34,52,0.45));
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: inset 0 0 0 1px rgba(0,150,255,0.12);
}

#recommendationResult .badge{
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 700; color: black;
  background: radial-gradient(ellipse at 30% 30%, #6fe3ff, #0a7bbf);
  box-shadow: 0 0 12px rgba(80,210,255,.7);
}

#recommendationResult p{ margin: 0; line-height: 1.45; }

/* Loading / subtle pulse */
.flashing-text{
  color:#C8EEFF;
  text-shadow:0 0 10px rgba(0,180,255,.5);
  animation: pulse 1.2s ease-in-out infinite;
}
@keyframes pulse{
  0%,100%{ opacity:.75 }
  50%{ opacity:1 }
}

/* Error state */
#recommendationResult.is-error{
  border-color: rgba(255,95,95,.4);
  box-shadow: 0 0 0 1px rgba(255,95,95,.25), 0 10px 30px rgba(0,0,0,.35);
  background: linear-gradient(180deg, rgba(70,20,20,.55), rgba(40,10,10,.55));
}
/* If #container is a CSS GRID with 3 columns */
#recommendationResult.full-span {
  grid-column: 1 / -1;   /* span all columns */
  width: 100%;
}

/* If #container is FLEX instead of grid, this makes it a full row */
#recommendationResult.full-span { 
  flex: 0 0 100%;
}

/* let the container wrap so a child can occupy a whole row */
#container { flex-wrap: wrap !important; }

/* force the recommendations panel to occupy a full row */
#recommendationResult{
  grid-column: 1 / -1 !important;   /* if #container is CSS Grid */
  flex: 0 0 100% !important;        /* if #container is Flexbox */
  width: 99% !important;           
  max-width: none !important;
  display: block !important;
  float: none !important;            /* if old float columns */
  clear: both !important;            /* break below floated cols */
  order: 999 !important;             /* stay after the three cards (Flex) */
  margin-inline: auto;
}

#recommendationResult { 
  color: #111 !important;
}
#recommendationResult h3 { 
  color: #111 !important; 
  text-shadow: none !important;
}

/* optional: link color when using dark text */
//#recommendationResult a { color: #0b5cab; }

//#recommendationResult p, 
//#recommendationResult li, 
//#recommendationResult span { color: #111 !important; }

