/* 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;
    }
}

/* ===== Frontend community posting ===== */
.ysir-post-create-wrap,
.ysir-community-posts {
    width: 100%;
    max-width: 1100px;
    margin: 30px auto;
}

.ysir-post-create-wrap {
    max-width: 820px;
    padding: 28px;
    border-radius: 22px;
    background: #11141d;
    color: #fff;
    border: 1px solid rgba(255,255,255,.10);
    box-sizing: border-box;
}

.ysir-post-create-head,
.ysir-community-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.ysir-post-create-head h2,
.ysir-community-head h2 {
    margin: 0 0 8px;
    color: inherit;
    font-size: 30px;
    line-height: 1.2;
}

.ysir-post-create-head p,
.ysir-community-head p {
    margin: 0;
    opacity: .68;
}

.ysir-post-create-form label {
    display: block;
    margin-bottom: 7px;
    font-weight: 700;
}

.ysir-post-create-form label span {
    font-weight: 400;
    opacity: .55;
}

.ysir-post-create-form input[type="text"],
.ysir-post-create-form textarea,
.ysir-post-create-form select,
.ysir-post-create-form input[type="file"] {
    width: 100%;
    box-sizing: border-box;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.06);
    color: inherit;
    padding: 12px 14px;
}

.ysir-post-create-form textarea {
    min-height: 220px;
    resize: vertical;
}

.ysir-post-create-form select {
    color-scheme: dark;
    color: #fff !important;
    background: #11141d !important;
}

.ysir-post-create-form select option,
.ysir-post-create-form select optgroup {
    color: #fff !important;
    background: #11141d !important;
}

.ysir-post-submit,
.ysir-post-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 12px;
    border: 0;
    cursor: pointer;
    font-weight: 800;
    text-decoration: none !important;
}

.ysir-post-submit {
    background: #00ff66;
    color: #050505 !important;
}

.ysir-post-secondary {
    background: rgba(255,255,255,.09);
    color: inherit !important;
    border: 1px solid rgba(255,255,255,.12);
}

.ysir-post-notice {
    padding: 13px 15px;
    margin: 0 0 20px;
    border-radius: 12px;
}

.ysir-post-success { background: rgba(0,255,102,.14); color: #94ffbd; }
.ysir-post-warning { background: rgba(255,193,7,.14); color: #ffe49a; }
.ysir-post-error { background: rgba(239,68,68,.14); color: #ffb1b1; }

.ysir-community-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.ysir-community-card {
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.05);
}

.ysir-community-thumb {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: rgba(0,0,0,.12);
}

.ysir-community-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.ysir-community-meta {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    opacity: .68;
}

.ysir-community-meta img {
    border-radius: 50%;
}

.ysir-community-card h3 {
    margin: 14px 0 10px;
    font-size: 20px;
    line-height: 1.35;
}

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

.ysir-community-excerpt {
    opacity: .72;
    line-height: 1.65;
}

.ysir-community-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
    font-size: 13px;
}

.ysir-community-footer a {
    font-weight: 700;
}

.ysir-community-footer span {
    opacity: .58;
}

.ysir-community-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
}

.ysir-community-pagination a {
    min-width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255,255,255,.08);
    text-decoration: none;
}

.ysir-community-pagination a.current {
    background: #00ff66;
    color: #050505;
}

@media (max-width: 900px) {
    .ysir-community-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
    .ysir-post-create-wrap { padding: 20px; border-radius: 16px; }
    .ysir-post-create-head,
    .ysir-community-head { flex-direction: column; }
    .ysir-community-grid { grid-template-columns: 1fr; }
    .ysir-post-submit,
    .ysir-post-secondary { width: 100%; box-sizing: border-box; }
}

/* =====================================================
 * bbPress community topic publishing
 * ===================================================== */
.ysir-bbp-topic-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 0 0 22px;
    padding: 16px 18px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(0,255,102,.12), rgba(255,255,255,.025));
}

.ysir-bbp-topic-toolbar-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.ysir-bbp-topic-toolbar-text strong {
    font-size: 16px;
    color: #fff;
}

.ysir-bbp-topic-toolbar-text span {
    font-size: 13px;
    color: rgba(255,255,255,.62);
}

.ysir-bbp-new-topic-btn,
.ysir-bbp-back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 999px;
    text-decoration: none !important;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.ysir-bbp-new-topic-btn {
    background: #00ff66;
    color: #050505 !important;
    border: 1px solid #00ff66;
}

.ysir-bbp-new-topic-btn:hover {
    background: #2cff7e;
    color: #050505 !important;
}

.ysir-bbp-create-topic-wrap {
    width: min(100%, 980px);
    margin: 36px auto;
    padding: 28px;
    border-radius: 22px;
    border: 1px solid rgba(255,255,255,.10);
    background: #11141d;
    color: #fff;
    box-sizing: border-box;
}

.ysir-bbp-create-topic-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.ysir-bbp-create-topic-head h2 {
    margin: 4px 0 8px;
    color: #fff;
    font-size: 30px;
}

.ysir-bbp-create-topic-head p {
    margin: 0;
    color: rgba(255,255,255,.62);
}

.ysir-bbp-kicker {
    display: inline-block;
    color: #00ff66;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
}

.ysir-bbp-back-btn {
    color: #fff !important;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.05);
}

.ysir-bbp-form-card {
    padding: 20px;
    border-radius: 16px;
    background: rgba(0,0,0,.18);
    border: 1px solid rgba(255,255,255,.08);
}

/* bbPress form controls in the site's dark theme */
.ysir-bbp-create-topic-wrap #bbpress-forums,
.ysir-bbp-create-topic-wrap #bbpress-forums fieldset.bbp-form {
    color: #fff;
}

.ysir-bbp-create-topic-wrap #bbpress-forums fieldset.bbp-form {
    border: 0;
    padding: 0;
}

.ysir-bbp-create-topic-wrap #bbpress-forums legend {
    color: #fff;
    font-weight: 800;
    font-size: 18px;
    padding: 0 0 12px;
}

.ysir-bbp-create-topic-wrap #bbpress-forums label {
    color: rgba(255,255,255,.78);
    font-weight: 700;
}

.ysir-bbp-create-topic-wrap #bbpress-forums input[type="text"],
.ysir-bbp-create-topic-wrap #bbpress-forums input[type="email"],
.ysir-bbp-create-topic-wrap #bbpress-forums select,
.ysir-bbp-create-topic-wrap #bbpress-forums textarea {
    width: 100%;
    max-width: 100%;
    color: #fff;
    background: #090b11;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 10px;
    box-sizing: border-box;
}

.ysir-bbp-create-topic-wrap #bbpress-forums input[type="text"],
.ysir-bbp-create-topic-wrap #bbpress-forums input[type="email"],
.ysir-bbp-create-topic-wrap #bbpress-forums select {
    min-height: 46px;
    padding: 0 12px;
}

.ysir-bbp-create-topic-wrap #bbpress-forums textarea {
    padding: 12px;
}

.ysir-bbp-create-topic-wrap #bbpress-forums button,
.ysir-bbp-create-topic-wrap #bbpress-forums input[type="submit"] {
    min-height: 44px;
    padding: 0 20px;
    border: 0;
    border-radius: 999px;
    background: #00ff66;
    color: #050505;
    font-weight: 800;
    cursor: pointer;
}

@media (max-width: 700px) {
    .ysir-bbp-topic-toolbar,
    .ysir-bbp-create-topic-head {
        flex-direction: column;
        align-items: stretch;
    }

    .ysir-bbp-new-topic-btn,
    .ysir-bbp-back-btn {
        width: 100%;
        box-sizing: border-box;
    }

    .ysir-bbp-create-topic-wrap {
        margin: 20px 12px;
        width: auto;
        padding: 20px;
    }
}


/* ===== v1.1.3 Community hero topic button ===== */
/* Older versions placed the topic box inside the Forums card; keep that legacy placement hidden. */
.ysir-bbp-topic-toolbar {
    display: none !important;
}

/* The cloned Members / My Profile button keeps the site style; only essential behavior is added here. */
a.ysir-community-hero-topic-btn {
    text-decoration: none !important;
    white-space: nowrap;
    cursor: pointer;
}

/* Give the Create Topic button the same green accent used by the community UI. */
a.ysir-community-hero-topic-btn {
    background: #00ff66 !important;
    color: #050505 !important;
    border-color: #00ff66 !important;
}

a.ysir-community-hero-topic-btn:hover {
    transform: translateY(-1px);
    filter: brightness(.96);
}


/* ===== v1.1.4 English bbPress form + dark native dropdowns ===== */
.ysir-bbp-create-topic-wrap #bbpress-forums select,
.ysir-bbp-create-topic-wrap select {
    color: #ffffff !important;
    background-color: #090b11 !important;
    border-color: rgba(255,255,255,.18) !important;
    color-scheme: dark;
    -webkit-text-fill-color: #ffffff !important;
}

.ysir-bbp-create-topic-wrap #bbpress-forums select option,
.ysir-bbp-create-topic-wrap #bbpress-forums select optgroup,
.ysir-bbp-create-topic-wrap select option,
.ysir-bbp-create-topic-wrap select optgroup {
    color: #ffffff !important;
    background: #11141d !important;
    -webkit-text-fill-color: #ffffff !important;
}

.ysir-bbp-create-topic-wrap #bbpress-forums select:focus,
.ysir-bbp-create-topic-wrap select:focus {
    outline: none !important;
    border-color: #00ff66 !important;
    box-shadow: 0 0 0 1px #00ff66 !important;
}
