/* ═══════════════════════════════════════════════════
   all.css  —  ОБЩИЕ стили проекта

   Страничные стили вынесены в отдельные файлы:
     css/market_search.css
     css/market_search_my.css
     css/spy_ducks_list.css
     css/corn_calc.css
     css/profile.css
═══════════════════════════════════════════════════ */

/* ── Dropdown ───────────────────────────────────── */
.dropdown-menu { padding: 0; }

/* ── Duck banner (toast) ────────────────────────── */
.duck-banner {
    position: relative;
    margin: 1rem auto;
    min-height: 50px;
    padding: 1rem 1.5rem;
    color: white;
    text-align: center;
    z-index: 10;
    opacity: 0;
    max-width: 500px;
    width: 500px;
    border-radius: 0.5rem;
    background-color: white;
    box-shadow:
        inset 0 0 0 1px rgba(var(--duck-color), 1),
        inset 0 0 12px 6px rgba(var(--duck-color), 0.88),
        inset 0 0 24px 14px rgba(var(--duck-color), 0.66),
        inset 0 0 40px 28px rgba(var(--duck-color), 0.5);
    transform: translateY(-20px);
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.duck-banner.show {
    transform: translateY(0);
    opacity: 1;
}
@media (max-width: 576px) {
    .duck-banner {
        width: 100%;
        max-width: 100%;
        border-radius: 0;
        margin: 0 auto 1rem auto;
    }
}

/* ── Duck cell ──────────────────────────────────── */
.duck-cell {
    position: relative;
    border-radius: 18px;
    padding: 10px;
    background: #fff;
    box-shadow:
        inset 0 0 0 1px rgba(var(--duck-color), 1),
        inset 0 0 12px 6px rgba(var(--duck-color), 0.88),
        inset 0 0 24px 14px rgba(var(--duck-color), 0.66),
        inset 0 0 40px 28px rgba(var(--duck-color), 0.5);
}

.duck-cell.duck-w-122 { width: 122px; min-width: 122px; }

/* figure внутри duck-cell */
.duck-cell figure {
    position: relative;
    width: 100%;
    min-width: 100px;
    aspect-ratio: 1 / 1;
    margin: 0;
}

.duck-cell img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* зеркало */
.duck-mirror { transform: scaleX(-1); }

/* badge */
.badge.duck-badge { background-color: rgba(var(--duck-color)); }

/* хэш */
.duck-hash {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 11px;
    color: rgba(0,0,0,.4);
    font-family: monospace;
    z-index: 20;
}

/* ── Rarity colour variables ────────────────────── */
.duck-common    { --duck-color: 128, 128, 128; }
.duck-uncommon  { --duck-color: 100, 147, 40;  }
.duck-rare      { --duck-color: 0, 112, 221;   }
.duck-epic      { --duck-color: 163, 53, 237;  }
.duck-legendary { --duck-color: 255, 168, 64;  }
.duck-unique    { --duck-color: 187, 58, 66;   }

/* ── Action buttons ─────────────────────────────── */
.btn-duck {
    color: white !important;
    background-color: rgb(var(--duck-color)) !important;
    border: none;
    transition: filter 0.2s ease, transform 0.1s ease;
}
.btn-duck:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

/* ── Bell toggle ────────────────────────────────── */
.bell-toggle input { display: none; }

.bell-toggle label {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 8px;
    font-size: 15px;
}

.bell-toggle .icon {
    width: 42px;
    height: 22px;
    border-radius: 20px;
    background: #ccc;
    position: relative;
    transition: .3s;
    flex-shrink: 0;
}

.bell-toggle .icon::before {
    content: "🔕";
    position: absolute;
    width: 22px;
    height: 22px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: .3s;
    border: 1px solid red;
}

.bell-toggle input:checked + label .icon { background: #28a745; }
.bell-toggle input:checked + label .icon::before {
    transform: translateX(20px);
    content: "🔔";
    border: 1px solid green;
}

/* ── Collection item ────────────────────────────── */
.collection-item {
    background: rgba(var(--duck-color), .12);
    box-shadow:
        inset 0 0 0 1px rgba(var(--duck-color), .9),
        inset 0 0 8px 3px rgba(var(--duck-color), .5);
}
.collection-item.active {
    background: rgba(var(--duck-color), .18);
    box-shadow:
        inset 0 0 0 2px rgba(var(--duck-color), 1),
        inset 0 0 12px 6px rgba(var(--duck-color), .6);
}

/* ── Shimmer animation (shared across pages) ────── */
@keyframes duckShimmer {
    0%   { background-position: -600px 0; }
    100% { background-position:  600px 0; }
}

/* ── Bold icon helper ───────────────────────────── */
.bi-bold { text-shadow: 0 0 1px currentColor; }