﻿/* ───────── ROOT ───────────────────────────────────────────── */
:root {
    --bg: #0d0d0d;
    --bg2: #111;
    --bg3: #181818;
    --fg: #f1f1f1;
    --weak: #bdbdbd;
    --accent: #00c5ff;
    --accent2: #ff26a6;
    --radius: 14px;
    --fade: 0.4s;
    font-family: "Inter", "Segoe UI", Tahoma, sans-serif;
}

html, body {
    margin: 0;
    height: 100%;
    background: var(--bg);
    color: var(--fg);
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    animation: fadeIn var(--fade) ease
}

@keyframes fadeIn {
    from {
        opacity: 0
    }

    to {
        opacity: 1
    }
}

/* ───────── NAV ────────────────────────────────────────────── */
nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 64px;
    padding: 0 30px;
    display: flex;
    align-items: center;
    gap: 2rem;
    background: #000c;
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #222;
}

    nav::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(90deg,var(--accent) 0%,var(--accent2) 33%,#5d3bff 66%,var(--accent) 100%);
        background-size: 400% 100%;
        mix-blend-mode: overlay;
        opacity: .15;
        pointer-events: none;
        animation: glow 18s linear infinite;
    }

@keyframes glow {
    to {
        background-position: 400% 0
    }
}

nav img {
    width: 42px;
    height: 42px
}

nav a {
    font-weight: 600;
    font-size: .93rem;
    text-decoration: none;
    transition: .2s
}

    nav a:hover {
        color: var(--accent2)
    }

nav .spacer {
    flex: 1
}

nav button {
    padding: .55rem 1.35rem;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    color: #000;
    background: linear-gradient(45deg,var(--accent),var(--accent2));
    transition: .2s;
}

    nav button:hover {
        filter: brightness(1.08)
    }

/* ───────── WRAPPER & HERO ────────────────────────────────── */
.wrapper {
    width: min(960px,92%);
    margin: auto;
    padding: 3rem 0;
    flex: 1
}

header.hero {
    text-align: center;
    margin-bottom: 2.5rem
}

    header.hero img {
        width: 100px;
        height: 100px
    }

    header.hero h1 {
        margin: .4rem 0 0;
        font-size: 2.2rem;
        background: linear-gradient(45deg,var(--accent),var(--accent2));
        -webkit-background-clip: text;
        color: transparent
    }

    header.hero h2 {
        margin: .3rem 0;
        font-size: 1rem;
        font-weight: 400;
        color: var(--weak)
    }

/* ───────── CARD (Mint) ───────────────────────────────────── */
.card {
    background: var(--bg2);
    padding: 2.2rem 2.6rem;
    border: 1px solid #222;
    border-radius: var(--radius);
    box-shadow: 0 0 30px #0008;
    text-align: center;
    width: 360px;
    margin: auto;
    transition: .25s
}

    .card:hover {
        transform: translateY(-4px)
    }

    .card select, .card button {
        width: 100%;
        padding: .8rem;
        border: none;
        border-radius: 8px;
        font-weight: 700
    }

    .card select {
        margin-top: .55rem;
        background: var(--bg3);
        color: var(--fg)
    }

    .card button {
        margin-top: 1.25rem;
        background: linear-gradient(45deg,var(--accent),var(--accent2));
        color: #000;
        cursor: pointer;
        transition: .25s
    }

        .card button:disabled {
            opacity: .4;
            cursor: not-allowed
        }

    .card .price {
        margin: .95rem 0 .35rem;
        font-size: .93rem;
        color: var(--accent)
    }

    .card #status {
        min-height: 1.4rem;
        margin-top: 1rem;
        font-size: .9rem
    }

        .card #status a {
            color: var(--accent2)
        }

/* ───────── FACTS BOX ─────────────────────────────────────── */
.facts {
    max-width: 760px;
    line-height: 1.5;
    background: var(--bg2);
    padding: 1.7rem 2.2rem;
    border: 1px solid #222;
    border-radius: var(--radius);
    margin: auto
}

    .facts h3 {
        margin: 0 0 .5rem;
        background: linear-gradient(45deg,var(--accent),var(--accent2));
        -webkit-background-clip: text;
        color: transparent
    }

    .facts li {
        margin: .4rem 0;
        color: var(--weak)
    }

/* ───────── GALLERY ───────────────────────────────────────── */
#grid {
    display: grid;
    gap: 1.1rem;
    grid-template-columns: repeat(auto-fill,96px)
}

.catTile {
    cursor: pointer;
    transition: .2s
}

    .catTile img {
        width: 96px;
        height: 96px;
        border: 2px solid transparent;
        border-radius: 6px
    }

    .catTile:hover img {
        border-color: var(--accent)
    }

    .catTile span {
        position: absolute;
        bottom: 6px;
        right: 6px;
        background: #000c;
        padding: 2px 6px;
        border-radius: 4px;
        font-size: .66rem
    }

.rarityBar {
    height: 4px;
    border-radius: 2px;
    margin-top: 4px;
    background: #555
}

    .rarityBar[data-rank="rare"] {
        background: #ffe600
    }

    .rarityBar[data-rank="epic"] {
        background: #00ffa1
    }

    .rarityBar[data-rank="legendary"] {
        background: #ff6600
    }

/* ───────── SINGLE KITTY ──────────────────────────────────── */
.details {
    display: flex;
    flex-wrap: wrap;
    gap: 2.8rem
}

    .details img {
        width: 260px;
        height: 260px;
        border: 4px solid var(--accent);
        border-radius: var(--radius)
    }

.meta {
    flex: 1;
    min-width: 240px
}

    .meta h2 {
        margin-top: 0;
        background: linear-gradient(45deg,var(--accent2),var(--accent));
        -webkit-background-clip: text;
        color: transparent
    }

    .meta table {
        border-collapse: collapse;
        margin-top: 1.2rem;
        width: 100%;
        font-size: .92rem
    }

    .meta td {
        padding: .5rem .85rem;
        border-bottom: 1px solid #333
    }

        .meta td:first-child {
            color: var(--weak)
        }

/* ───────── SPINNER ───────────────────────────────────────── */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 3px solid var(--accent);
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin .9s linear infinite
}

@keyframes spin {
    to {
        transform: rotate(360deg)
    }
}

/* ───────── RESP ­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­ */
@media(max-width:540px) {
    .card {
        width: 95%
    }

    nav {
        gap: 1rem;
        padding: 0 16px
    }

        nav a {
            font-size: .82rem
        }

    header.hero h1 {
        font-size: 1.8rem
    }
}


/* Footer Styles */
footer {
    margin-top: 4rem;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid #333;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem 1.5rem 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.footer-section h3 {
    margin-top: 0.5rem;
    font-size: 1.3rem;
    color: #fff;
}

.footer-section h4 {
    color: #8a65ff;
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-section p {
    color: #b0b0b0;
    line-height: 1.5;
}

.footer-logo {
    width: 48px;
    height: 48px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .footer-links li {
        margin-bottom: 0.75rem;
    }

    .footer-links a {
        color: #e0e0e0;
        text-decoration: none;
        transition: color 0.2s ease;
    }

        .footer-links a:hover {
            color: #8a65ff;
        }

.social-links {
    display: flex;
    gap: 1rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    color: #e0e0e0;
    transition: all 0.3s ease;
}

    .social-icon:hover {
        background: #8a65ff;
        color: #ffffff;
        transform: translateY(-3px);
    }

.footer-disclaimer {
    padding: 1.25rem;
    background: rgba(30,30,30,0.5);
    border-radius: 8px;
    margin-bottom: 2rem;
    text-align: center;
    border: 1px solid #444;
}

    .footer-disclaimer p {
        color: #b0b0b0;
        margin: 0;
        font-size: 0.95rem;
    }

    .footer-disclaimer a {
        color: #8a65ff;
        text-decoration: underline;
    }

.footer-copyright {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid #333;
    color: #777;
    font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-section:first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 480px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
}