/* ============================================================
   Theme picker modal + cookie consent banner + theme toggle FAB
   Injected by js/theme-consent.js — kept in its own file so it's
   easy to find/remove independently of the main stylesheet.
   ============================================================ */

.tmf-overlay{
  position: fixed;
  inset: 0;
  background: rgba(6,12,24,0.55);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
  animation: tmf-fade-in .25s ease both;
}

@keyframes tmf-fade-in{ from{ opacity:0; } to{ opacity:1; } }

.tmf-modal{
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-soft);
  max-width: 380px;
  width: 100%;
  padding: 28px 26px 24px;
  text-align: center;
}

.tmf-modal h3{
  margin: 0 0 8px;
  font-family: var(--f-display);
  font-size: 20px;
}

.tmf-modal p{
  margin: 0 0 20px;
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.55;
}

.tmf-theme-choices{
  display: flex;
  gap: 12px;
}

.tmf-theme-choice{
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 10px;
  border-radius: var(--radius-m);
  border: 1.5px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
  font-family: var(--f-body);
  font-size: 14px;
  font-weight: 600;
  transition: border-color .15s ease, transform .15s ease;
}

.tmf-theme-choice:hover{
  border-color: var(--blue);
  transform: translateY(-2px);
}

.tmf-theme-choice svg{ width: 22px; height: 22px; }

/* ---------- Cookie consent banner ---------- */
.tmf-cookie-banner{
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 9998;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-soft);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  max-width: 620px;
  margin: 0 auto;
  animation: tmf-slide-up .3s ease both;
}

@keyframes tmf-slide-up{ from{ opacity:0; transform: translateY(16px); } to{ opacity:1; transform: translateY(0); } }

.tmf-cookie-banner p{
  margin: 0;
  font-size: 13.5px;
  color: var(--text-dim);
  line-height: 1.5;
  flex: 1;
  min-width: 200px;
}

.tmf-cookie-banner .tmf-btn{
  border: none;
  background: var(--grad-gold);
  color: #fff;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 13.5px;
  padding: 9px 18px;
  border-radius: var(--radius-s);
  cursor: pointer;
  white-space: nowrap;
}

.tmf-cookie-banner .tmf-btn-outline{
  background: transparent;
  border: 1.5px solid var(--border-strong);
  color: var(--text);
}

/* ---------- Floating theme toggle ---------- */
.tmf-theme-fab{
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9997;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.tmf-theme-fab svg{ width: 20px; height: 20px; }

@media (max-width: 480px){
  .tmf-theme-choices{ flex-direction: column; }
  .tmf-cookie-banner{ flex-direction: column; align-items: stretch; text-align: center; }
}
