/* Sneaker Identifier — deliberately self-contained (no dependency on the
   Sneaker of the Day plugin's own .sotd-* styles), since this plugin has
   to look reasonable even when that plugin isn't active. Inherits the
   theme's font/colors via `inherit`/`currentColor` rather than hardcoding
   a font-family, same convention the sister plugin uses. */

.sni-tool { max-width: 640px; }

.sni-form {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.sni-input {
    flex: 1;
    min-width: 0;
    padding: 10px 14px;
    border: 1px solid rgba(0, 0, 0, .2);
    border-radius: 6px;
    font-size: 15px;
    color: inherit;
    background: #fff;
}

.sni-btn {
    padding: 10px 18px;
    border: 1px solid #111;
    background: #111;
    color: #fff;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}
.sni-btn:hover { background: #000; }
.sni-btn:disabled { opacity: .6; cursor: default; }

.sni-result { margin-top: 16px; }

.sni-loading,
.sni-error {
    font-size: 14px;
    margin: 0;
}
.sni-loading { opacity: .7; }
.sni-error   { color: #c0392b; }

.sni-hit {
    border: 1px solid rgba(0, 0, 0, .12);
    border-radius: 8px;
    padding: 16px;
}

.sni-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 4px;
    margin-bottom: 10px;
}
.sni-badge--catalog { background: #e6f4ea; color: #1e7d34; }
.sni-badge--guess   { background: #fff4e5; color: #8a5a00; }

.sni-hit__img {
    display: block;
    max-width: 220px;
    max-height: 160px;
    object-fit: contain;
    margin-bottom: 10px;
    background: rgba(0, 0, 0, .03);
    border-radius: 6px;
    padding: 8px;
}

.sni-hit__name {
    display: block;
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
    color: inherit;
    text-decoration: none;
}
.sni-hit__name:hover { text-decoration: underline; }

.sni-guess-grid {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 6px 12px;
    margin: 0;
    font-size: 14px;
}
.sni-guess-grid dt { font-weight: 700; opacity: .7; }
.sni-guess-grid dd { margin: 0; }

.sni-disclaimer {
    font-size: 12px;
    opacity: .65;
    margin-top: 14px;
    line-height: 1.5;
}

@media (max-width: 480px) {
    .sni-form { flex-direction: column; }
    .sni-guess-grid { grid-template-columns: 1fr; }
}

@media (prefers-color-scheme: dark) {
    .sni-input { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .18); }
}
