/* YSIR Digital Collections frontend styles */
.ysir-dc-redeem-box {
    width: 100%;
    max-width: 760px;
    margin: 30px auto;
    padding: 28px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(20,20,20,.92), rgba(35,35,35,.86));
    box-shadow: 0 20px 60px rgba(0,0,0,.16);
    color: #fff;
}

.ysir-dc-redeem-box h2 {
    margin: 0 0 18px;
    color: inherit;
    font-size: 28px;
    line-height: 1.2;
}

.ysir-dc-redeem-form label {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    opacity: .82;
}

.ysir-dc-redeem-row {
    display: flex;
    gap: 12px;
}

.ysir-dc-redeem-row input {
    flex: 1;
    min-height: 52px;
    padding: 0 18px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.18);
    background: rgba(255,255,255,.08);
    color: #fff;
    outline: none;
}

.ysir-dc-redeem-row input::placeholder {
    color: rgba(255,255,255,.48);
}

.ysir-dc-redeem-row button,
.ysir-dc-button {
    min-height: 52px;
    padding: 0 24px;
    border: 0;
    border-radius: 14px;
    background: #00ff66;
    color: #08120c;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ysir-dc-notice {
    padding: 12px 14px;
    margin: 0 0 16px;
    border-radius: 12px;
    font-size: 14px;
}

.ysir-dc-success {
    background: rgba(0,255,102,.16);
    color: #94ffbd;
}

.ysir-dc-error {
    background: rgba(255,80,80,.16);
    color: #ffb3b3;
}

.ysir-dc-collection-wall {
    display: grid;
    grid-template-columns: repeat(var(--ysir-dc-columns, 4), minmax(0, 1fr));
    gap: 22px;
    width: 100%;
}

.ysir-dc-card {
    overflow: hidden;
    border-radius: 22px;
    background: #111;
    color: #fff;
    border: 1px solid rgba(255,255,255,.10);
    box-shadow: 0 18px 50px rgba(0,0,0,.14);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.ysir-dc-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0,255,102,.42);
    box-shadow: 0 24px 70px rgba(0,0,0,.24);
}

.ysir-dc-card-media {
    display: block;
    aspect-ratio: 1 / 1;
    background: radial-gradient(circle at 50% 20%, rgba(0,255,102,.24), rgba(255,255,255,.06) 36%, rgba(0,0,0,.2));
    overflow: hidden;
}

.ysir-dc-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}

.ysir-dc-card:hover .ysir-dc-card-media img {
    transform: scale(1.05);
}

.ysir-dc-placeholder {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.52);
    letter-spacing: .06em;
    text-transform: uppercase;
}

.ysir-dc-card-body {
    padding: 18px;
}

.ysir-dc-card-body h3 {
    margin: 10px 0 8px;
    font-size: 18px;
    line-height: 1.25;
    color: #fff;
}

.ysir-dc-card-body h3 a {
    color: inherit;
    text-decoration: none;
}

.ysir-dc-rarity {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: var(--ysir-dc-rarity-color, #00ff66);
    background: color-mix(in srgb, var(--ysir-dc-rarity-color, #00ff66) 14%, transparent);
    border: 1px solid color-mix(in srgb, var(--ysir-dc-rarity-color, #00ff66) 36%, transparent);
}

.ysir-dc-series,
.ysir-dc-date {
    margin: 0;
    color: rgba(255,255,255,.62);
    font-size: 13px;
}

.ysir-dc-date {
    margin-top: 8px;
}

.ysir-dc-empty {
    grid-column: 1 / -1;
    padding: 28px;
    border-radius: 18px;
    background: rgba(0,0,0,.05);
    color: #777;
    text-align: center;
}

.ysir-dc-order-codes {
    margin: 28px 0;
    padding: 20px;
    border-radius: 16px;
    background: rgba(0,0,0,.04);
}

.ysir-dc-order-codes code {
    padding: 4px 8px;
    border-radius: 8px;
    background: rgba(0,0,0,.08);
}

@media (max-width: 1024px) {
    .ysir-dc-collection-wall {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .ysir-dc-redeem-box {
        padding: 22px;
        border-radius: 18px;
    }

    .ysir-dc-redeem-row {
        flex-direction: column;
    }

    .ysir-dc-collection-wall {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .ysir-dc-card-body {
        padding: 14px;
    }
}
