
/* ===============================
   Trend Anatolia — FULL STYLE (drop-in)
   One file to replace your static/style.css
   =============================== */

/* --- Theme tokens --- */
:root{
  --bg:#FFF8E7;
  --card:#ffffff;
  --text:#222;
  --muted:#6b7280;
  --accent:#ffcc00;
  --accent-dark:#f3b400;
  --ring: rgba(255,204,0,.3);

  --bubble-user:#eef7ff;   /* backup, not used with gradient now */
  --bubble-bot:#f6f6f8;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0; background:var(--bg); color:var(--text);
  font:15px/1.5 ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
  /* slightly bolder, crisp text */
  font-weight:560;
  -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale;
}

/* --- Header --- */
.site-header{
  max-width:1100px;margin:16px auto 0;padding:8px 18px;
  display:flex;align-items:center;gap:12px;
}
.site-header .logo{
  height:24px; max-height:24px; width:auto;
  object-fit:contain;
  image-rendering:-webkit-optimize-contrast;
  image-rendering:crisp-edges;
  display:block;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.08));
}
.site-header .brand-link{
  margin-left:auto;color:#222;text-decoration:none;font-weight:600;border-bottom:2px solid transparent
}
.site-header .brand-link:hover{border-color:var(--accent)}

/* --- Landing grid (selector) --- */
.landing-grid{
  max-width:1100px;margin:28px auto; padding:0 18px;
  display:grid; grid-template-columns:1fr 1fr; gap:18px;
}
.tile{
  background:var(--card); border-radius:18px; padding:26px;
  display:flex; flex-direction:column; align-items:center; text-align:center; gap:14px;
  text-decoration:none; color:var(--text); font-weight:700;
  box-shadow:0 10px 30px rgba(0,0,0,.06), inset 0 0 0 1px rgba(0,0,0,.04);
  transition:transform .16s ease, box-shadow .16s ease;
}
.tile:hover{ transform:translateY(-2px); box-shadow:0 14px 44px rgba(0,0,0,.08), inset 0 0 0 1px rgba(0,0,0,.06); }
.tile .tile-icon{ width:84px; height:84px; object-fit:contain; image-rendering:auto; filter: drop-shadow(0 3px 10px rgba(0,0,0,.08)); }
.tile.chat .tile-icon{ width:78px; height:78px; border-radius:50%; background: radial-gradient(circle at 30% 30%, rgba(0,0,0,.06), rgba(0,0,0,0)); padding:4px; }
.tile .tile-title{ display:block; margin-top:8px; font-weight:700; border-bottom:3px solid var(--accent); padding-bottom:2px }
@media (max-width:860px){ .landing-grid{grid-template-columns:1fr} .tile .tile-icon{height:60px;width:60px} }

/* --- Chat page layout --- */
.chat-wrap{max-width:1100px;margin:14px auto 26px;padding:0 18px}
.chat-card{
  background:var(--card); border-radius:20px; padding:14px;
  box-shadow:0 10px 30px rgba(0,0,0,.06), inset 0 0 0 1px rgba(0,0,0,.04);
  display:flex; flex-direction:column; gap:12px;
  height:72vh; min-height:420px;
}
.messages{
  flex:1 1 auto; min-height:0; overflow:auto;
  display:flex; flex-direction:column; gap:10px; padding:6px; border-radius:14px;
  scrollbar-width: thin; scrollbar-color: var(--accent) #eee;
}
.messages::-webkit-scrollbar{width:10px}
.messages::-webkit-scrollbar-track{background:#eee; border-radius:10px}
.messages::-webkit-scrollbar-thumb{background:linear-gradient(180deg, var(--accent), var(--accent-dark)); border-radius:10px; border:2px solid #eee;}

.msg{display:flex;width:100%}
.msg .bubble{
  display:inline-block; max-width:78%;
  padding:11px 13px; border-radius:12px;
  white-space:pre-wrap; word-wrap:break-word;
  line-height:1.45; letter-spacing:.1px;
  box-shadow:0 6px 16px rgba(0,0,0,.06);
}
/* USER — gradient like Send button */
.msg.user{justify-content:flex-end}
.msg.user .bubble{
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color:#2a2100; text-shadow:0 1px 0 rgba(255,255,255,.25);
  border-top-right-radius:6px; outline:1px solid rgba(0,0,0,.02);
  box-shadow:0 6px 16px rgba(243,180,0,.28);
}
/* BOT — maroon */
.msg.bot{justify-content:flex-start}
.msg.bot .bubble{
  background:#800000; color:#FFF8E7; text-shadow:0 1px 0 rgba(0,0,0,.22);
  border-top-left-radius:6px; outline:1px solid rgba(255,255,255,.04);
  box-shadow:0 6px 16px rgba(128,0,0,.25);
}

/* --- Composer --- */
.composer{ display:flex; gap:10px; padding:8px; border-radius:14px; background:#fafafa; box-shadow: inset 0 0 0 1px rgba(0,0,0,.05); }
.composer-input{ flex:1; padding:12px 14px; border-radius:10px; background:#fff; border:1px solid #e5e7eb; color:#111; outline:none; font-size:14.5px; font-weight:560; }
.composer-input:focus{ border-color:var(--accent); box-shadow:0 0 0 4px var(--ring); }
.composer-input::placeholder{ color: rgba(17,17,17,.55); }
.btn-send{ padding:12px 16px; border:none; border-radius:10px; background:linear-gradient(135deg, var(--accent), var(--accent-dark)); color:#2a2100; font-weight:800; cursor:pointer; box-shadow:0 8px 26px rgba(255,204,0,.3); font-size:14px; }
.btn-send:disabled{opacity:.6;cursor:not-allowed}
.hint{margin-top:6px;color:#7b8491;font-size:12.5px;text-align:center}

/* --- Typing dots --- */
.typing{display:inline-flex; gap:4px; align-items:center}
.typing .dot{ width:6px; height:6px; border-radius:50%; background:#333; animation: dotWave 1.4s infinite ease-in-out; }
.typing .dot:nth-child(2){animation-delay:.15s} .typing .dot:nth-child(3){animation-delay:.3s}
@keyframes dotWave{ 0%,80%,100%{transform:translateY(0); opacity:.5} 40%{transform:translateY(-5px); opacity:1} }


/* === Icon frame utilities (scoped, non-breaking) === */
.tile .tile-icon.icon-frame--auto{
  width:84px; height:84px;
  border-radius:0 !important;
  background:none !important;
  padding:0 !important;
  object-fit:contain;
  box-shadow:none;
  filter: drop-shadow(0 3px 10px rgba(0,0,0,.08));
}
.tile .tile-icon.icon-frame--square{
  width:84px; height:84px;
  border-radius:12px;
  background:var(--card);
  padding:6px;
  object-fit:contain;
}
.tile .tile-icon.icon-frame--circle{
  width:78px; height:78px;
  border-radius:50%;
  background: radial-gradient(circle at 30% 30%, rgba(0,0,0,.06), rgba(0,0,0,0));
  padding:4px;
  object-fit:contain;
}
/* Optional: diamond frame via wrapper (keep image upright) */
.icon-diamond{ width:84px; height:84px; transform:rotate(45deg); border-radius:14px; overflow:hidden; background:var(--card); display:inline-flex; align-items:center; justify-content:center; }
.icon-diamond > img{ transform:rotate(-45deg); width:68px; height:68px; object-fit:contain; }
