/* ============================================================
   zh-cn-grid.css — Aggiungere a style.css
   ============================================================ */

.zh-series-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255,255,255,.28);
    margin: 24px 0 10px;
    padding-left: 2px;
}
.zh-series-label:first-child { margin-top: 0; }

.zh-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(152px, 1fr));
    gap: 10px;
}

/* ── Tile ── */
.zh-set-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    transition: border-color .18s, transform .18s;
    animation: set-reveal .35s both;
    animation-delay: var(--reveal-delay, 0s);
}
.zh-set-tile:hover {
    border-color: rgba(129,140,248,.4);
    transform: translateY(-2px);
}

/* ── Badges ── */
.zh-code-badge {
    position: absolute;
    top: 7px; left: 7px;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .04em;
    color: rgba(255,255,255,.6);
    background: rgba(0,0,0,.5);
    padding: 2px 5px;
    border-radius: 4px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1;
}
.zh-excl-badge {
    position: absolute;
    top: 7px; right: 7px;
    font-size: 8px;
    font-weight: 700;
    color: #fff;
    background: #dc2626;
    padding: 2px 5px;
    border-radius: 4px;
    z-index: 1;
}

/* ── Logo area ── */
.zh-logo-wrap {
    height: 92px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    background: rgba(255,255,255,.02);
}
.zh-logo-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,.5));
}

/* ── Placeholder a 3 livelli ── */
.zh-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    width: 100%;
    height: 100%;
}
.zh-ph-flag   { font-size: 22px; }
.zh-ph-code   { font-size: 9px; font-weight: 700; color: rgba(255,255,255,.4); letter-spacing: .06em; }
.zh-ph-name   { font-size: 8px; color: rgba(255,255,255,.25); text-align: center; padding: 0 8px; }

/* ── Info area ── */
.zh-set-info {
    padding: 8px 10px 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}
.zh-name-en {
    font-size: 11px;
    font-weight: 500;
    color: rgba(255,255,255,.88);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.zh-name-cn {
    font-size: 9px;
    font-weight: 300;
    color: rgba(255,255,255,.33);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Completion bar ── */
.zh-bar-wrap {
    height: 2px;
    background: rgba(255,255,255,.08);
    border-radius: 1px;
    margin-top: 6px;
    overflow: hidden;
}
.zh-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #818cf8, #38bdf8);
    border-radius: 1px;
    transition: width .4s ease;
}
.zh-bar-fill.zh-bar-full { background: #22c55e; }
.zh-count-label {
    font-size: 9px;
    color: rgba(255,255,255,.3);
    margin-top: 2px;
}
.zh-count-label.zh-count-full { color: #22c55e; }

/* ── Mobile ── */
@media (max-width: 480px) {
    .zh-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .zh-logo-wrap { height: 76px; }
    .zh-name-en { font-size: 10px; }
}
