/*
Theme Name: i said ayo!
Theme URI: https://isaidayo.com
Author: d'Orleans
Description: Neon home screen for isaidayo.com: photo that opens the chat, plus Read, Listen and Watch.
Version: 1.0.6
Requires at least: 6.4
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: isaidayo
*/

:root {
  --ink: #0B0B12;
  --ink-2: #0E0E16;
  --paper: #FFFFFF;
  --text: #111111;
  --muted: #55555F;
  --pink: #FF3EC8;
  --cyan: #22E4FF;
  --lime: #B6FF3B;
  --purple: #A77BFF;
  --col: 480px;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
html { scrollbar-width: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar { display: none; width: 0; height: 0; }
body {
  background: var(--ink);
  color: var(--text);
  font-family: 'Inter Tight', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }

.ayo-app {
  max-width: var(--col);
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--ink);
  position: relative;
  overflow: hidden;
}

/* ---------- Home hero ---------- */
.ayo-hero {
  position: relative;
  isolation: isolate;
  height: min(62vh, 560px);
  min-height: 440px;
  background: #1A0A22;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 24px 56px;
  color: #FFFFFF;
}
.ayo-hero__blur {
  position: absolute; top: -20px; left: -20px;
  width: calc(100% + 40px); height: calc(100% + 40px);
  object-fit: cover; filter: blur(18px) brightness(0.7); z-index: -3;
}
.ayo-hero__photo {
  position: absolute; top: 28px; left: 6%;
  width: 88%; height: calc(100% - 28px);
  object-fit: contain; object-position: 75% top; z-index: -2;
}
.ayo-hero__fade {
  position: absolute; left: 0; right: 0; bottom: 0; height: 45%;
  background: linear-gradient(to bottom, rgba(11,11,18,0), rgba(11,11,18,0.9));
  z-index: -1;
}
.ayo-sticker {
  position: absolute; top: 40px; left: 20px;
  transform: rotate(-8deg);
  background: var(--pink); color: #111111;
  border: 3px solid #111111; border-radius: 14px;
  padding: 7px 13px; font-size: 14px; font-weight: 800;
  box-shadow: 0 0 18px rgba(255,62,200,0.7);
}
.ayo-name {
  margin-top: 6px; font-size: 46px; font-weight: 800;
  letter-spacing: -1.4px; line-height: 1; color: #FFFFFF;
}
.ayo-pill {
  margin-top: 16px; align-self: flex-start;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); border: 2px solid var(--cyan);
  box-shadow: 0 0 16px var(--cyan);
  border-radius: 999px; padding: 10px 16px;
  font-size: 15px; font-weight: 600; color: #FFFFFF;
}
.ayo-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--lime); box-shadow: 0 0 8px var(--lime);
  display: inline-block;
}
.ayo-hero:focus-visible { outline: 3px solid var(--cyan); outline-offset: -3px; }

/* ---------- Panel ---------- */
.ayo-panel {
  flex: 1;
  margin-top: -30px;
  background: var(--paper);
  border-radius: 30px 30px 0 0;
  padding: 30px 22px 26px;
  display: flex; flex-direction: column; gap: 22px;
  position: relative;
}
.ayo-headline {
  margin: 0; font-size: 32px; font-weight: 800;
  letter-spacing: -1px; line-height: 1.05;
}
.ayo-buttons {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px;
}
.ayo-btn {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 4px 0; border-radius: 16px;
}
.ayo-btn__tile {
  width: 74px; height: 74px; border-radius: 22px;
  background: var(--ink-2); border: 2px solid currentColor;
  display: flex; align-items: center; justify-content: center;
  transition: transform .15s ease, box-shadow .15s ease;
}
.ayo-btn__label { font-size: 15px; font-weight: 600; color: var(--text); }
.ayo-btn--read   { color: var(--pink); }
.ayo-btn--listen { color: var(--cyan); }
.ayo-btn--watch  { color: var(--purple); }
.ayo-btn--read .ayo-btn__tile   { box-shadow: 0 0 14px rgba(255,62,200,0.55); }
.ayo-btn--listen .ayo-btn__tile { box-shadow: 0 0 14px rgba(34,228,255,0.55); }
.ayo-btn--watch .ayo-btn__tile  { box-shadow: 0 0 14px rgba(167,123,255,0.55); }
.ayo-btn:hover .ayo-btn__tile, .ayo-btn:focus-visible .ayo-btn__tile { transform: translateY(-2px); }
.ayo-btn:focus-visible { outline: 3px solid var(--text); outline-offset: 2px; }

/* Save-to-phone tip (shown by JS only when not installed) */
.ayo-save {
  align-self: center;
  display: none; align-items: center; gap: 8px;
  border: 2px solid #111111; border-radius: 14px;
  padding: 10px 16px; font-size: 13px; font-weight: 500;
  background: #FFFFFF;
}
.ayo-save.is-visible { display: flex; }
.ayo-save__close {
  border: 0; background: transparent; cursor: pointer;
  width: 32px; height: 32px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #111111;
}
.ayo-save__close:hover { background: #F1F1F4; }
.ayo-save__install {
  border: 0; background: transparent; padding: 0; font: inherit;
  font-weight: 700; text-decoration: underline; cursor: pointer; color: inherit;
}

.ayo-footer {
  text-align: center; font-size: 12px; color: #6A6A74; padding: 4px 0 0;
}

/* ---------- Archive & single (Read / Listen / Watch) ---------- */
.ayo-top {
  display: flex; align-items: center; gap: 14px;
  padding: 44px 20px 40px; color: #FFFFFF;
}
.ayo-back {
  width: 44px; height: 44px; border-radius: 14px;
  border: 2px solid #2A2A36;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.ayo-back:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
.ayo-top__title { margin: 0; font-size: 30px; font-weight: 800; letter-spacing: -0.8px; }
.ayo-top__sub { margin: 4px 0 0; font-size: 14px; color: #C9C9D3; }
.ayo-accent { color: var(--accent, var(--cyan)); text-shadow: 0 0 10px var(--accent, var(--cyan)); }

.ayo-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.ayo-card {
  display: block; border: 2px solid #111111; border-radius: 20px;
  padding: 16px 18px; background: #FFFFFF;
  transition: box-shadow .15s ease, transform .15s ease;
}
.ayo-card:hover, .ayo-card:focus-visible {
  box-shadow: 0 0 0 2px var(--accent, var(--cyan)), 0 0 16px var(--accent, var(--cyan));
  outline: none;
}
.ayo-card__title { margin: 0 0 6px; font-size: 19px; font-weight: 800; letter-spacing: -0.3px; line-height: 1.2; }
.ayo-card__meta { font-size: 12px; color: #6A6A74; font-weight: 600; text-transform: uppercase; letter-spacing: .6px; }
.ayo-card__excerpt { margin: 8px 0 0; font-size: 15px; color: var(--muted); line-height: 1.5; }
.ayo-empty { font-size: 16px; color: var(--muted); line-height: 1.5; }

.ayo-pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; }
.ayo-pager a {
  border: 2px solid #111111; border-radius: 14px; padding: 10px 14px; font-weight: 700; font-size: 14px;
}

.ayo-article { font-size: 17px; line-height: 1.65; color: #1C1C22; }
.ayo-article h1 { font-size: 30px; line-height: 1.1; letter-spacing: -0.8px; margin: 0 0 8px; color: var(--text); }
.ayo-article h2, .ayo-article h3 { line-height: 1.2; letter-spacing: -0.4px; color: var(--text); }
.ayo-article a { color: #0A63C9; text-decoration: underline; }
.ayo-article img, .ayo-article video { border-radius: 16px; }
.ayo-article iframe { max-width: 100%; border-radius: 16px; }
.ayo-article .wp-block-embed__wrapper { position: relative; }
.ayo-article .wp-embed-aspect-16-9 .wp-block-embed__wrapper { aspect-ratio: 16 / 9; }
.ayo-article .wp-embed-aspect-16-9 .wp-block-embed__wrapper iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.ayo-article blockquote { margin: 1.2em 0; padding: 4px 0 4px 16px; border-left: 4px solid var(--accent, var(--cyan)); }
.ayo-article figure { margin: 1.2em 0; }
.ayo-article pre { overflow-x: auto; background: #F1F1F4; padding: 14px; border-radius: 12px; }

.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link:focus {
  position: fixed; top: 8px; left: 8px; z-index: 1000; width: auto; height: auto; clip: auto;
  background: #FFFFFF; color: #111111; padding: 10px 14px; border-radius: 10px; font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
