/* =========================================================
   AIWICKI • All-Access — Global styles
   ========================================================= */

/* ---- Color tokens ---- */
:root{
  --bg: #0b1220;        /* page bg (deep blue) */
  --ink: #eaf6ff;       /* default text on dark bg */
  --mut: #b2c6d1;       /* muted text */
  --brand: #00a3ff;     /* brand blue */
  --brand2: #22d3ee;    /* cyan */
  --hint: #67e8f9;      /* helper/cyan */
  --panel: rgba(255,255,255,.06);
  --panel-border: rgba(255,255,255,.10);
  --shadow: rgba(0,0,0,.25);
}

/* ---- Base ---- */
*{ box-sizing: border-box; }
html, body{
  margin:0; padding:0;
  background: linear-gradient(180deg, #0a101b 0%, var(--bg) 100%);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";
}
a{ color: inherit; text-decoration: none; }
.wrap{ max-width: 1100px; margin: 0 auto; padding: 16px; }

/* =========================================================
   Topbar (logo + actions)
   ========================================================= */
.topbar{
  display:flex; align-items:center; justify-content:space-between;
  gap:12px; padding:12px 0;
}
.brand{ display:flex; align-items:center; gap:10px; font-weight:800; }
.logo{
  height:36px;           /* bigger logo */
  width:auto; display:block; image-rendering:-webkit-optimize-contrast;
}
.actions .btn{
  display:inline-flex; align-items:center; gap:8px;
  padding:8px 14px; border-radius:10px;
  background: var(--panel); border:1px solid var(--panel-border);
  color: var(--ink); font-weight:700;
}
.actions .btn:hover{ transform: translateY(-1px); box-shadow:0 6px 20px -8px var(--shadow); }

/* =========================================================
   Gate (login) – styles kept in case they’re used on /allaccess/index.php
   ========================================================= */
.gate{
  max-width: 520px; margin: 24px auto; padding: 28px;
  border-radius: 14px; background: rgba(255,255,255,.03);
  border:1px solid var(--panel-border);
}
.gate .logo{ height: 40px; margin: 0 auto 16px; opacity:.95; }
.gate input[type="password"], .gate input[type="text"]{
  width:100%; padding:12px 14px; border-radius:10px;
  border:1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.05); color: var(--ink);
}
.gate .err{ color:#ff6b6b; font-weight:700; margin-top:8px; }
.gate button{
  margin-top: 10px; padding:10px 16px; border-radius:10px;
  border:1px solid rgba(255,255,255,.25);
  background: linear-gradient(180deg, #22d3ee, #06b6d4);
  color:#00131a; font-weight:800; cursor:pointer;
}

/* =========================================================
   Category grid
   ========================================================= */
.grid6{
  display:grid; grid-template-columns: repeat(3, 1fr);
  gap:14px; margin-top:16px;
}
@media (max-width: 900px){ .grid6{ grid-template-columns:1fr 1fr; } }
@media (max-width: 560px){ .grid6{ grid-template-columns:1fr; } }

.cat{
  display:block; padding:12px 18px; border-radius:12px;
  border:1px solid var(--panel-border);
  background: var(--panel); position:relative;
}
.cat:hover{ transform: translateY(-2px); background: rgba(255,255,255,.05); }
.cat b{ font-weight:800; display:block; }
.cat small{ display:block; margin-top:2px; color: var(--mut); }

/* ---- Category icons (CSS-only) ---- */
.cat::before{
  content:""; position:absolute; left:14px; top:50%; transform:translateY(-50%);
  width:22px; height:22px; opacity:.95;
  background-size:contain; background-repeat:no-repeat;
}
.cat b, .cat small{ padding-left:28px; } /* room for icon */

.cat.business::before{  /* briefcase */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='%23ffb86b'%3E%3Cpath d='M9 6V5a3 3 0 0 1 3-3h0a3 3 0 0 1 3 3v1h3a3 3 0 0 1 3 3v4h-9v1a1 1 0 0 1-2 0v-1H3V9a3 3 0 0 1 3-3h3Zm2 0h2V5a1 1 0 0 0-2 0v1Z'/%3E%3C/svg%3E");
}
.cat.marketing::before{ /* bullhorn */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='%23ffd166'%3E%3Cpath d='M3 10v4a2 2 0 0 0 2 2h2l3 4v-6h2l8 3V7l-8 3H10V4L7 8H5a2 2 0 0 0-2 2Z'/%3E%3C/svg%3E");
}
.cat.ecom::before{     /* cart */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='%2390ee90'%3E%3Cpath d='M5 5h2l1 7h8l2-5H8'/%3E%3Ccircle cx='10' cy='19' r='2'/%3E%3Ccircle cx='17' cy='19' r='2'/%3E%3C/svg%3E");
}
.cat.creative::before{  /* palette */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='%23ff7eb6'%3E%3Cpath d='M12 3a9 9 0 1 0 9 9c0-1.7-1.3-3-3-3h-2a2 2 0 0 1-2-2V6c0-1.7-1.3-3-3-3Z'/%3E%3C/svg%3E");
}
.cat.social::before{    /* tiles */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='%239de1ff'%3E%3Cpath d='M3 3h8v8H3zM13 3h8v8h-8zM3 13h8v8H3zM13 13h8v8h-8z'/%3E%3C/svg%3E");
}
.cat.personal::before{  /* user */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='%23ffc078'%3E%3Cpath d='M12 12a5 5 0 1 0-5-5 5 5 0 0 0 5 5Zm0 2c-5 0-9 3-9 6v1h18v-1c0-3-4-6-9-6Z'/%3E%3C/svg%3E");
}

/* =========================================================
/* ===== Hero (thank-you banner) ===== */
.hero {
  background: linear-gradient(90deg, #22d3ee, #06b6d4); /* turkos gradient */
  border-radius: 14px;
  padding: 22px;
  margin: 10px 0 24px;
  text-align: left;
}

.hero h1 {
  margin: 0 0 8px;
  font-weight: 800;
  font-size: 28px;
  color: #00131a;
}

.hero .lead {
  margin: 0;
  font-size: 14px;
  color: #00131a;
}


   Prompt cards + helper text
   ========================================================= */
.prompt-grid{ display:grid; gap:14px; }
.card{
  background: var(--panel);
  border:1px solid var(--panel-border);
  padding:14px; border-radius:12px; position:relative;
}
.card-head{
  display:flex; justify-content:space-between; align-items:center; margin-bottom:8px;
}
.prompt-text, .card pre{ 
  white-space: pre-wrap; 
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, "Liberation Mono", Consolas, monospace;
  font-size: 13px; line-height: 1.5;
}

/* “💡 Why this works” helper line */
.helper-text{
  display:block; margin-top:6px; font-size:.93rem;
  color: var(--hint); font-style: italic; opacity:.95;
}

/* Small “Pro Tips” callout */
.tips{ margin:14px 0 18px; padding:14px; border:1px dashed rgba(255,255,255,.25); border-radius:12px; background: rgba(255,255,255,.05); }
.tips b{ color:#9ae6b4; }

/* =========================================================
   Copy buttons — always readable
   ========================================================= */
.copy-btn, button.copy-btn{
  background: linear-gradient(180deg, #22d3ee, #06b6d4) !important;
  color:#ffffff !important;
  border:1px solid rgba(0,0,0,.25);
  padding:6px 12px; font-size:12px; font-weight:700;
  border-radius:10px; cursor:pointer; line-height:1;
  box-shadow:0 2px 0 rgba(0,0,0,.25);
  transition: transform .06s ease, filter .06s ease, box-shadow .06s ease;
}
.copy-btn:hover{ filter:brightness(1.08); transform:translateY(-1px); box-shadow:0 3px 0 rgba(0,0,0,.25); }
.copy-btn:active{ transform:translateY(0); box-shadow:0 1px 0 rgba(0,0,0,.3) inset; }
.copy-btn:focus-visible{ outline:2px solid #22d3ee; outline-offset:2px; box-shadow:0 0 3px rgba(34,211,238,.35); }

/* If the button lives inside narrow cards, prevent wrapping */
.prompt-grid .copy-btn, .card .copy-btn, .prompt .copy-btn{ white-space: nowrap; }

/* =========================================================
   Toast (Copied!)
   ========================================================= */
#ai-toast{ 
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%);
  background: #0b1220; color: var(--ink); border:1px solid var(--panel-border);
  padding:10px 14px; border-radius:10px; z-index: 9999; box-shadow: 0 8px 24px -10px var(--shadow);
}

/* =========================================================
   Utilities
   ========================================================= */
.kicker{ color: var(--mut); }
.muted{ color: var(--mut); }
.hidden{ display:none !important; }
/* ===== Hero (thank-you banner) ===== */
.hero {
  background: linear-gradient(90deg, #22d3ee, #06b6d4); /* turkos gradient */
  border-radius: 14px;
  padding: 22px;
  margin: 10px 0 24px;
  text-align: left;
}

.hero h1 {
  margin: 0 0 8px;
  font-weight: 800;
  font-size: 28px;
  color: #00131a;
}

.hero .lead {
  margin: 0;
  font-size: 14px;
  color: #00131a;
}
/* Fixed Close Button – top right */
.close-btn-fixed {
  position: fixed;
  top: 20px;
  right: 20px;
  background: linear-gradient(180deg,#22d3ee,#06b6d4);
  color: #00131a;
  border: 1px solid rgba(0,0,0,.25);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 2px 0 rgba(0,0,0,.25);
  transition: transform .06s ease, filter .06s ease, box-shadow .06s ease;
}

.close-btn-fixed:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 3px 0 rgba(0,0,0,.25);
}

.close-btn-fixed:active {
  transform: translateY(0);
  box-shadow: 0 1px 0 rgba(0,0,0,.3) inset;
}

.close-btn-fixed:focus-visible {
  outline: 2px solid #22d3ee;
  outline-offset: 2px;
}
/* Copy button alignment fix */
.prompt .copy {
  float: right;   /* force to right side */
  margin-left: auto;
  margin-right: 0;
  display: inline-block;
}
/* ==== Fix: placera Copy-knappen alltid uppe till höger i kortet ==== */
.card { position: relative; }

/* träffa alla varianter av copy-knappen */
.card .copy-btn,
.prompt .copy-btn,
button.copy-btn,
a.copy-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  float: none !important;        /* neutralisera ev. float-vänster */
  margin: 0 !important;
  z-index: 2;
}

/* om kort-huvuden används, lämna lite luft så inget krockar med knappen */
.card-head { padding-right: 64px; }
/* Make "Pro Tips" label green across all categories */
.tips strong,
.tips b{
  color:#22c55e !important; /* clean, readable green */
}