/* ═══════════════════════════════════
   ZOORT — Graffiti AI Agent Page
   ═══════════════════════════════════ */

/* ── Theme tokens ── */
[data-theme="dark"] {
    --bg: #111;
    --bg2: #1a1a1a;
    --card: #1e1e1e;
    --text: #f1f1f1;
    --muted: #888;
    --dim: #555;
    --border: #2a2a2a;
    --accent: #ff3cac;
    --accent2: #00f0ff;
    --accent3: #c6ff00;
    --shadow: rgba(0,0,0,0.5);
}
[data-theme="light"] {
    --bg: #f4f0eb;
    --bg2: #e8e2d9;
    --card: #fff;
    --text: #1a1a1a;
    --muted: #666;
    --dim: #999;
    --border: #d5d0c8;
    --accent: #e6195a;
    --accent2: #0078d4;
    --accent3: #5a9a00;
    --shadow: rgba(0,0,0,0.1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Patrick Hand', cursive;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    transition: background 0.4s, color 0.4s;
}

/* ── CA TICKER BAR ── */
.ca-bar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    height: 44px;
    background: var(--bg2);
    border-bottom: 2px dashed var(--border);
    font-family: 'DM Mono', monospace;
    font-size: 0.82rem;
    backdrop-filter: blur(12px);
}
.ca-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
    white-space: nowrap;
}
.ca-label {
    font-family: 'Bangers', cursive;
    font-size: 1.05rem;
    color: var(--accent);
    letter-spacing: 2px;
}
.ca-divider { color: var(--dim); }
.ca-chain { color: var(--muted); }
.ca-address { color: var(--accent2); }
.ca-copy {
    padding: 4px 10px;
    border: 1px solid var(--accent2);
    border-radius: 6px;
    background: transparent;
    color: var(--accent2);
    font-family: 'DM Mono', monospace;
    font-size: 0.75rem;
    cursor: pointer;
    transition: 0.15s;
}
.ca-copy:hover { background: var(--accent2); color: var(--bg); }
.ca-right { display: flex; align-items: center; gap: 12px; }
.theme-toggle {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: var(--card);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: 0.2s;
}
.theme-toggle:hover { border-color: var(--accent); transform: rotate(20deg); }

/* ── WALL (main) ── */
.wall {
    max-width: 900px;
    margin: 0 auto;
    padding: 64px 20px 0;
}

/* ── HERO ── */
.hero {
    position: relative;
    text-align: center;
    padding: 20px 0 24px;
}
.hero-logo {
    width: 140px;
    height: auto;
    display: block;
    margin: 0 auto 8px;
    filter: drop-shadow(0 4px 24px rgba(255, 60, 172, 0.35));
    animation: logoBob 3s ease-in-out infinite;
}
@keyframes logoBob {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-6px) rotate(2deg); }
    75% { transform: translateY(4px) rotate(-2deg); }
}
.hero-title {
    font-family: 'Permanent Marker', cursive;
    font-size: clamp(2.2rem, 7vw, 4rem);
    line-height: 1;
    letter-spacing: 3px;
    user-select: none;
}
.word { display: inline-block; transition: transform 0.2s; }
.word:hover { transform: scale(1.15) rotate(-4deg); }
.word-z { color: var(--accent); }
.word-o1 { color: var(--accent2); }
.word-o2 { color: var(--accent3); }
.word-r { color: #ff9800; }
.word-t { color: #e040fb; }

.has-eye {
    position: relative;
    display: inline-block;
    overflow: hidden;
}
.eye-img {
    position: absolute;
    top: 55%;
    left: 50%;
    width: 24%;
    height: auto;
    pointer-events: none;
    filter: drop-shadow(0 0 2px rgba(0,0,0,0.4));
}
.word-o1 .eye-img {
    animation: eyeL 14s ease-in-out infinite;
}
.word-o2 .eye-img {
    animation: eyeR 14s ease-in-out infinite 0.3s;
}
@keyframes eyeL {
    0%   { transform: translate(-50%, -50%); }
    /* still — looking forward */
    30%  { transform: translate(-50%, -50%); }
    /* glance down */
    33%  { transform: translate(-50%, -50%) translateY(18%); }
    38%  { transform: translate(-50%, -50%) translateY(18%); }
    /* back to center */
    41%  { transform: translate(-50%, -50%); }
    /* still */
    55%  { transform: translate(-50%, -50%); }
    /* blink */
    56%  { transform: translate(-50%, -50%) scaleY(0.05); }
    57%  { transform: translate(-50%, -50%) scaleY(1); }
    /* still */
    70%  { transform: translate(-50%, -50%); }
    /* glance right */
    73%  { transform: translate(-50%, -50%) translateX(14%); }
    78%  { transform: translate(-50%, -50%) translateX(14%); }
    /* back */
    81%  { transform: translate(-50%, -50%); }
    100% { transform: translate(-50%, -50%); }
}
@keyframes eyeR {
    0%   { transform: translate(-50%, -50%); }
    /* still */
    25%  { transform: translate(-50%, -50%); }
    /* blink once */
    26%  { transform: translate(-50%, -50%) scaleY(0.05); }
    27%  { transform: translate(-50%, -50%) scaleY(1); }
    /* still */
    45%  { transform: translate(-50%, -50%); }
    /* glance down */
    48%  { transform: translate(-50%, -50%) translateY(18%); }
    53%  { transform: translate(-50%, -50%) translateY(18%); }
    /* back */
    56%  { transform: translate(-50%, -50%); }
    /* still */
    75%  { transform: translate(-50%, -50%); }
    /* glance left */
    78%  { transform: translate(-50%, -50%) translateX(-14%); }
    82%  { transform: translate(-50%, -50%) translateX(-14%); }
    /* back */
    85%  { transform: translate(-50%, -50%); }
    100% { transform: translate(-50%, -50%); }
}

.hero-tag {
    font-family: 'Caveat', cursive;
    font-size: 1.45rem;
    color: var(--muted);
    margin-top: 16px;
    line-height: 1.5;
}

/* Stickers */
.sticker {
    position: absolute;
    font-family: 'Bangers', cursive;
    font-size: 0.9rem;
    padding: 6px 14px;
    border-radius: 4px;
    transform: rotate(var(--r, -3deg));
    white-space: nowrap;
    letter-spacing: 1px;
    pointer-events: none;
}
.sticker-1 { top: 10%; left: 2%; --r: -6deg; background: var(--accent); color: #fff; }
.sticker-2 { top: 5%; right: 3%; --r: 4deg; background: var(--accent2); color: #000; }
.sticker-3 { bottom: 15%; left: 5%; --r: -2deg; background: var(--accent3); color: #000; }
.sticker-4 { bottom: 8%; right: 2%; --r: 3deg; background: #ff9800; color: #000; font-size: 0.78rem; }


/* ── TAGS WALL ── */
.tags-wall {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    padding: 30px 0;
}
.tag {
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 1rem;
    line-height: 1.3;
    transition: transform 0.15s;
}
.tag:hover { transform: scale(1.04) rotate(-1deg); }

.tag-spray  { font-family: 'Permanent Marker', cursive; background: var(--accent); color: #fff; transform: rotate(-2deg); }
.tag-marker { font-family: 'Bangers', cursive; background: var(--accent2); color: #000; transform: rotate(1deg); letter-spacing: 1px; }
.tag-drip   { font-family: 'Caveat', cursive; font-size: 1.15rem; background: var(--accent3); color: #000; transform: rotate(-1deg); }
.tag-chalk  { font-family: 'Patrick Hand', cursive; background: #ff9800; color: #000; transform: rotate(2deg); }
.tag-neon   { font-family: 'DM Mono', monospace; font-size: 0.85rem; background: transparent; border: 2px solid var(--accent); color: var(--accent); }
.tag-tape   { font-family: 'Lilita One', cursive; background: #e040fb; color: #fff; transform: rotate(-3deg); }
.tag-scratch { font-family: 'Caveat', cursive; font-size: 1.2rem; background: var(--card); border: 2px dashed var(--dim); color: var(--text); }
.tag-bold   { font-family: 'Bangers', cursive; background: #00e676; color: #000; transform: rotate(1.5deg); letter-spacing: 1px; }

/* ── ABOUT ── */
.about-block {
    padding: 50px 0;
    text-align: center;
}
.about-title {
    font-family: 'Permanent Marker', cursive;
    font-size: 2.4rem;
    margin-bottom: 20px;
    color: var(--accent2);
}
.about-text {
    font-family: 'Patrick Hand', cursive;
    font-size: 1.15rem;
    color: var(--muted);
    line-height: 1.7;
    max-width: 640px;
    margin: 0 auto 16px;
}
.about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 30px;
}
.stat-block {
    background: var(--card);
    border: 2px solid var(--border);
    border-radius: 14px;
    padding: 20px 10px;
    text-align: center;
}
.stat-num {
    display: block;
    font-family: 'Bangers', cursive;
    font-size: 2.2rem;
    color: var(--accent);
    letter-spacing: 2px;
}
.stat-label {
    font-family: 'Caveat', cursive;
    font-size: 0.95rem;
    color: var(--muted);
    margin-top: 4px;
}

/* ── LINKS ── */
.links-row {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 10px 0 30px;
}
.link-card {
    font-family: 'Bangers', cursive;
    font-size: 1.05rem;
    padding: 12px 24px;
    border: 2px solid var(--border);
    border-radius: 12px;
    background: var(--card);
    color: var(--text);
    text-decoration: none;
    letter-spacing: 1.5px;
    transition: 0.2s;
}
.link-card:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

/* ── CHAT BAR ── */
.chat-bar {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 100;
    background: var(--bg2);
    border-top: 3px solid var(--accent);
    backdrop-filter: blur(12px);
}
.chat-bar-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 12px 20px;
}
.chat-label {
    font-family: 'Caveat', cursive;
    font-size: 1rem;
    color: var(--muted);
    margin-bottom: 8px;
}
.chat-row {
    display: flex;
    gap: 10px;
}
.chat-input {
    flex: 1;
    padding: 12px 18px;
    border: 2px solid var(--border);
    border-radius: 14px;
    background: var(--card);
    color: var(--text);
    font-family: 'Patrick Hand', cursive;
    font-size: 1.05rem;
    outline: none;
    transition: border-color 0.2s;
}
.chat-input:focus { border-color: var(--accent); }
.chat-input::placeholder { color: var(--dim); }
.chat-send {
    padding: 12px 24px;
    border: none;
    border-radius: 14px;
    background: var(--accent);
    color: #fff;
    font-family: 'Bangers', cursive;
    font-size: 1.1rem;
    letter-spacing: 2px;
    cursor: pointer;
    transition: 0.15s;
}
.chat-send:hover { transform: scale(1.04); }
.chat-send:disabled { opacity: 0.4; }

/* ── CHAT RESPONSE ── */
.chat-response {
    border-top: 2px dashed var(--border);
}
.chat-response-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 16px 20px;
}
.chat-response-label {
    font-family: 'Bangers', cursive;
    font-size: 1rem;
    color: var(--accent);
    letter-spacing: 2px;
    margin-bottom: 8px;
}
.chat-response-text {
    font-family: 'Patrick Hand', cursive;
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text);
    white-space: pre-wrap;
}
.chat-dismiss {
    margin-top: 12px;
    padding: 8px 20px;
    border: 2px solid var(--dim);
    border-radius: 10px;
    background: transparent;
    color: var(--muted);
    font-family: 'Caveat', cursive;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.15s;
}
.chat-dismiss:hover { border-color: var(--accent); color: var(--accent); }

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
    .hero-logo { width: 100px; }
    .hero-title { font-size: clamp(2rem, 8vw, 3rem); }
    .sticker { display: none; }
    .about-stats { grid-template-columns: repeat(2, 1fr); }
    .tags-wall { gap: 10px; }
    .tag { font-size: 0.88rem; padding: 8px 14px; }
    .ca-chain { display: none; }
}
