/* bayc.to — yacht club after dark */
:root {
    --bg-1: #0a0a0d;
    --bg-2: #14141a;
    --bg-3: #1d1d26;
    --gold: #d4af37;
    --gold-bright: #f0c75e;
    --banana: #ffd23f;
    --ape-blue: #1a3a5c;
    --jungle: #2d5a3d;
    --text: #f4f1ea;
    --text-dim: #9a958a;
    --line: rgba(212, 175, 55, 0.18);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    background: var(--bg-1);
    color: var(--text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100%;
}

body {
    background:
        radial-gradient(ellipse at top right, rgba(212, 175, 55, 0.10), transparent 55%),
        radial-gradient(ellipse at bottom left, rgba(26, 58, 92, 0.35), transparent 55%),
        var(--bg-1);
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-bottom: 78px; /* room for the fixed footer */
}

a { color: var(--gold-bright); text-decoration: none; }
a:hover { color: var(--banana); }

/* ---------- Hero ---------- */

.hero {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 72px 24px 60px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    opacity: 0.4;
    pointer-events: none;
}

.hero__inner {
    max-width: 720px;
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(212, 175, 55, 0.06);
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold-bright);
    margin-bottom: 28px;
}
.hero__badge::before {
    content: '🍌';
    font-size: 14px;
    line-height: 1;
    filter: drop-shadow(0 0 8px rgba(255, 210, 63, 0.55));
}

.hero h1 {
    font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
    font-size: clamp(48px, 9vw, 92px);
    font-weight: 600;
    line-height: 0.95;
    letter-spacing: -0.02em;
    margin-bottom: 18px;
}
.hero h1 em {
    font-style: italic;
    background: linear-gradient(120deg, var(--gold-bright), var(--banana));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero__lede {
    font-size: clamp(16px, 2.2vw, 19px);
    color: var(--text-dim);
    max-width: 560px;
    margin: 0 auto 40px;
}
.hero__lede strong { color: var(--text); font-weight: 600; }
.hero__lede code {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.92em;
    color: var(--gold-bright);
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.18);
    padding: 1px 6px;
    border-radius: 5px;
    white-space: nowrap;
}

/* ---------- Form ---------- */

.bayc-form {
    display: flex;
    align-items: center;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 6px;
    max-width: 520px;
    margin: 0 auto;
    box-shadow: 0 30px 60px -30px rgba(0,0,0,0.7), 0 0 0 1px rgba(212,175,55,0.04) inset;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.bayc-form:focus-within {
    border-color: rgba(212,175,55,0.5);
    box-shadow: 0 30px 60px -30px rgba(0,0,0,0.7), 0 0 0 4px rgba(212,175,55,0.10);
}

.bayc-form__prefix {
    padding: 0 6px 0 16px;
    color: var(--text-dim);
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 16px;
    user-select: none;
    white-space: nowrap;
}

.bayc-form__input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text);
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 16px; /* must be >=16px to prevent iOS Safari focus-zoom */
    padding: 14px 4px;
    min-width: 0;
}
.bayc-form__input::placeholder { color: rgba(154, 149, 138, 0.55); }

.bayc-form__btn {
    background: linear-gradient(135deg, var(--gold), var(--gold-bright));
    color: #1a1208;
    border: none;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.04em;
    padding: 12px 22px;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.1s, filter 0.2s;
    flex-shrink: 0;
}
.bayc-form__btn:hover  { filter: brightness(1.1); }
.bayc-form__btn:active { transform: scale(0.97); }

.bayc-form__hint {
    margin-top: 14px;
    font-size: 12.5px;
    color: var(--text-dim);
    text-align: center;
}

/* ---------- Search wrapper (form + suggest) ---------- */

.bayc-search {
    position: relative;
    max-width: 520px;
    margin: 0 auto;
}
.bayc-search .bayc-form { max-width: none; margin: 0; }

.suggest {
    list-style: none;
    margin: 6px 0 0 0;
    padding: 6px;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 24px 50px -20px rgba(0,0,0,0.7);
    position: absolute;
    left: 0; right: 0;
    z-index: 20;
    max-height: 380px;
    overflow-y: auto;
    text-align: left;
}
.suggest[hidden] { display: none; }

.suggest__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    color: var(--text);
    transition: background 0.1s;
}
.suggest__item.is-active,
.suggest__item:hover {
    background: rgba(212, 175, 55, 0.10);
}

.suggest__pfp {
    width: 32px; height: 32px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--bg-3);
    flex-shrink: 0;
}

.suggest__name {
    flex: 1;
    min-width: 0;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.suggest__name mark {
    background: transparent;
    color: var(--gold-bright);
    font-weight: 600;
}

.suggest__id {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--text-dim);
    flex-shrink: 0;
}

@keyframes shake {
    0%,100% { transform: translateX(0); }
    25%     { transform: translateX(-4px); }
    75%     { transform: translateX(4px); }
}
.bayc-form__input.shake { animation: shake 0.3s ease; }

/* ---------- Result ---------- */

@keyframes resultIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.result[hidden] { display: none !important; }
.result {
    margin-top: 22px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(212,175,55,0.08), rgba(212,175,55,0.02));
    border: 1px solid rgba(212,175,55,0.35);
    border-radius: 12px;
    padding: 6px 6px 6px 16px;
    box-shadow: 0 0 0 4px rgba(212,175,55,0.06), 0 18px 40px -20px rgba(0,0,0,0.6);
    gap: 8px;
}
.result--in { animation: resultIn 0.25s ease both; }

.result__url {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 14px;
    color: var(--gold-bright);
    padding: 8px 0;
    user-select: all;
    -webkit-user-select: all;
}

.result__actions { display: flex; gap: 6px; flex-shrink: 0; }

.result__btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.03);
    color: var(--text);
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.1s;
    text-decoration: none;
    padding: 0;
}
.result__btn:hover {
    background: rgba(212,175,55,0.12);
    border-color: rgba(212,175,55,0.5);
    color: var(--gold-bright);
}
.result__btn:active { transform: scale(0.94); }

.result__btn .check {
    position: absolute;
    inset: 0;
    margin: auto;
    color: #6dd58f;
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 0.18s, transform 0.18s;
}
.result__btn.is-copied { background: rgba(109,213,143,0.10); border-color: rgba(109,213,143,0.45); }
.result__btn.is-copied svg:first-child { opacity: 0; }
.result__btn.is-copied .check { opacity: 1; transform: scale(1); }

/* ---------- Examples ---------- */

.examples {
    margin-top: 56px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}
.examples__label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-dim);
    width: 100%;
    margin-bottom: 4px;
}
.examples a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(244, 241, 234, 0.04);
    border: 1px solid rgba(244, 241, 234, 0.08);
    border-radius: 999px;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 13px;
    color: var(--text);
    transition: background 0.2s, border-color 0.2s;
}
.examples a:hover {
    background: rgba(212, 175, 55, 0.10);
    border-color: rgba(212, 175, 55, 0.30);
    color: var(--gold-bright);
}
.examples a::before {
    content: '/';
    color: var(--text-dim);
}

/* ---------- Footer ---------- */

.bayc-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    border-top: 1px solid var(--line);
    background: rgba(10, 10, 13, 0.78);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    backdrop-filter: blur(14px) saturate(140%);
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--text-dim);
}

.bayc-footer__credit {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    transition: opacity 0.2s;
}
.bayc-footer__credit:hover { opacity: 0.8; color: var(--text); }

.bayc-footer__credit img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gold);
    box-shadow: 0 0 0 2px var(--bg-1), 0 0 16px rgba(212, 175, 55, 0.4);
}
.bayc-footer__credit em {
    font-style: normal;
    font-size: 18px;
    line-height: 1;
    vertical-align: -2px;
}

.bayc-footer__home {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-style: italic;
    font-size: 22px;
    color: var(--gold-bright);
    letter-spacing: 0.01em;
}
.bayc-footer__home:hover { color: var(--banana); }

.bayc-footer__meta {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 11.5px;
    letter-spacing: 0.05em;
}

/* ---------- 404 ---------- */

.notfound { text-align: center; }
.notfound h1 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(64px, 14vw, 140px);
    font-weight: 600;
    background: linear-gradient(120deg, var(--gold-bright), var(--banana));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1;
}
.notfound p { color: var(--text-dim); margin: 14px 0 28px; }
.notfound a.btn {
    display: inline-block;
    padding: 12px 22px;
    background: linear-gradient(135deg, var(--gold), var(--gold-bright));
    color: #1a1208;
    border-radius: 10px;
    font-weight: 600;
}

@media (max-width: 768px) {
    .hero { align-items: flex-start; padding-top: 110px; }
}
@media (max-width: 480px) {
    .hero { padding: 96px 18px 40px; align-items: flex-start; }
    .bayc-form { flex-wrap: wrap; }
    .bayc-form__prefix { padding-left: 12px; }
    .bayc-form__btn { width: 100%; margin-top: 4px; }
}
