/* ============================================================
   Home — Rise Online card styles (scoped, mirror of marketplace)
   Item card classes : .hrc-*    (home rise card)
   Ring/NFT classes  : .hrrc-*   (home rise ring card)
   ============================================================ */

/* ---------- Swiper container layout (scoped) ---------- */
.home-rise-swiper { overflow: hidden; }
.home-rise-swiper .swiper-wrapper { display: flex; align-items: stretch; }
.home-rise-swiper .swiper-slide {
    flex-shrink: 0;
    height: auto;
    display: flex;
    overflow: visible;
}

/* ---------- Knight set tooltips: home swiper scope only override ----------
   .son-ilanlar-swiper .pd-seller-set-info has overflow:hidden in all.min.css
   which clips tooltips on the home page. Restore visibility here without
   touching the global rule. */
.son-ilanlar-swiper .pd-seller-set-info,
.son-ring-swiper .pd-seller-set-info {
    overflow: visible;
}

/* ============================================================
   ITEM CARD  ─ mirrors .mp-card + .ro-item-card from marketplace
   ============================================================ */
.hrc-card {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 0;
    overflow: hidden;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    text-align: left;
    color: var(--text-primary);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.hrc-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.18), var(--shadow-md);
    transform: translateY(-2px);
}

/* ---------- doping badge ---------- */
.hrc-doping {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 2px 6px;
    border-radius: 6px;
    color: #fff;
    font-size: var(--mini-font-size);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    z-index: 10;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.hrc-doping.cok-satan { background: linear-gradient(135deg, #f97316, #ef4444); }
.hrc-doping.vitrin    { background: linear-gradient(135deg, #8b5cf6, #6366f1); }

/* ---------- ro-item-card body ---------- */
.hrc-item {
    padding: 8px;
    padding-bottom: 6px;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

/* ---------- header (icon + rarity) ---------- */
.hrc-h {
    position: relative;
    display: flex;
    justify-content: center;
    margin-bottom: 4px;
    min-height: auto;
}
.hrc-h-main {
    display: flex;
    align-items: center;
    justify-content: center;
}
.hrc-icon {
    width: 56px;
    height: 56px;
    object-fit: contain;
}
.hrc-rar {
    position: absolute;
    top: 0;
    right: 0;
    font-size: var(--mini-font-size);
    font-weight: var(--font-weight-semibold);
    text-transform: capitalize;
}

/* ---------- title section (name + type at right) ---------- */
.hrc-ts {
    position: relative;
    width: 100%;
    min-height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 6px;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--border-color);
}
.hrc-ng {
    text-align: center;
    width: 100%;
    padding: 0 32px;
}
.hrc-name {
    font-weight: var(--font-weight-bold);
    font-size: var(--normal-font-size);
    line-height: 1.2;
    margin: 0;
}
.hrc-server-info {
    color: var(--text-muted);
    font-size: var(--mini-font-size);
    margin-top: 4px;
    font-weight: var(--font-weight-semibold);
}
.hrc-type {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}
.hrc-tv {
    color: var(--text-muted);
    white-space: nowrap;
    font-weight: var(--font-weight-semibold);
    font-size: var(--mini-font-size);
}
.hrc-cv {
    color: var(--danger-color);
    white-space: nowrap;
    font-weight: var(--font-weight-semibold);
    font-size: var(--mini-font-size);
}
.hrc-cv.all { color: var(--text-primary); }

/* ---------- visible (props area, max-height + fade ::after) ---------- */
.hrc-vis {
    max-height: 220px;
    min-height: 150px;
    overflow: hidden;
    position: relative;
    transition: 0.3s;
}
.hrc-vis::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, var(--bg-secondary) 80%);
    pointer-events: none;
    z-index: 5;
}

/* ---------- divider ---------- */
.hrc-div {
    height: 1px;
    background: linear-gradient(90deg, rgba(44,183,239,0) 0, var(--border-color) 25%, rgba(44,183,239,0) 125%);
    box-shadow: 0 4px 13px 3px rgba(255,255,255,0.05);
    margin: 4px 0;
    width: 100%;
}

/* ---------- rarity colors ---------- */
.hrc-col.rare   { color: #3636d9 !important; }
.hrc-col.unique { color: #bf9100 !important; }
.hrc-col.epic   { color: #824b9f !important; }

/* ---------- props rows ---------- */
.hrc-props {
    display: flex;
    flex-direction: column;
    gap: 0;
    font-size: var(--mini-font-size);
}
.hrc-p-n,
.hrc-p-b,
.hrc-p-d,
.hrc-p-r,
.hrc-p-req,
.hrc-p-def {
    display: flex;
    justify-content: space-between;
    padding: 0;
}
.hrc-p-n   { color: var(--text-primary); }
.hrc-p-b   { color: var(--success-color); }
.hrc-p-d   { color: #4b7c49; }
.hrc-p-r   { color: #4b7c49; }
.hrc-p-req { color: var(--danger-color); }
.hrc-p-def { color: #5a8881; }
.hrc-pn {
    color: inherit;
    font-weight: var(--font-weight-semibold);
}
.hrc-pv {
    color: inherit;
    margin-left: 4px;
    font-weight: var(--font-weight-semibold);
}

/* ---------- runes header ---------- */
.hrc-rune-head {
    opacity: 0.8;
    margin-bottom: 2px;
    color: #a855f7;
}

/* ---------- set item summary (Knight-style: contrasting block on card) ---------- */
.hrc-set {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 4px 8px;
    margin: 6px 8px 0 8px;
    gap: 6px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    max-width: calc(100% - 16px);
    min-width: 0;
}
.hrc-set-imgs {
    display: flex;
    flex: 0 1 auto;
    gap: 3px;
    min-width: 0;
}
.hrc-set-img {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    border-radius: 4px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
}
.hrc-set-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ---------- set-image tooltip (mirrors pd-seller-set-image[data-tooltip]) ---------- */
.hrc-set,
.hrc-set-imgs { overflow: visible; }

.hrc-set-img[data-tooltip] {
    position: relative;
    cursor: help;
    overflow: visible;
}
.hrc-set-img[data-tooltip]::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    border-width: 5px;
    border-style: solid;
    border-color: rgba(15, 23, 42, 0.95) transparent transparent transparent;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 100;
    pointer-events: none;
}
.hrc-set-img[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(15, 23, 42, 0.95);
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    white-space: nowrap;
    font-size: var(--mini-font-size);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 100;
    backdrop-filter: blur(4px);
    pointer-events: none;
    margin-bottom: 5px;
}
.hrc-set-img[data-tooltip]:hover::before,
.hrc-set-img[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.hrc-set-count {
    flex: 0 0 auto;
    background: var(--primary-color);
    color: #fff;
    padding: 4px 8px;
    border-radius: 12px;
    white-space: nowrap;
    font-size: var(--small-font-size);
    font-weight: var(--font-weight-semibold);
    line-height: 1;
}

/* ---------- footer / price (mirrors .mp-footer + .mp-price layout) ---------- */
.hrc-foot {
    padding: 10px;
    padding-top: 6px;
    background: transparent;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}
.hrc-price {
    flex: 0 0 auto;
    text-align: right;
    margin: 0;
    font-weight: var(--font-weight-bold);
    font-size: var(--xxlarge-font-size);
    color: var(--text-primary);
}
.hrc-price.has-discount {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 6px;
    row-gap: 4px;
    flex-wrap: wrap;
    min-width: 0;
}
.hrc-old {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: var(--small-font-size);
    font-weight: var(--font-weight-semibold);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    max-width: 100%;
}
.hrc-disc {
    display: inline-flex;
    align-items: center;
    background: var(--danger-color);
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: var(--small-font-size);
    font-weight: var(--font-weight-bold);
    line-height: 1.4;
    letter-spacing: 0.3px;
    white-space: nowrap;
    flex-shrink: 0;
}
.hrc-cur {
    margin-left: auto;
    white-space: nowrap;
    font-weight: var(--font-weight-bold);
    font-size: var(--xxlarge-font-size);
    color: var(--text-primary);
    line-height: 1;
}
.hrc-curr {
    color: var(--text-secondary);
    margin-left: 2px;
    font-weight: var(--font-weight-semibold);
    font-size: var(--midi-font-size);
}

/* ============================================================
   RESPONSIVE (matches marketplace breakpoints)
   ============================================================ */
@media (max-width: 768px) {
    .hrc-icon { width: 40px; height: 40px; }
    .hrc-name { font-size: var(--midi-font-size); }
    .hrc-cur { font-size: var(--large-font-size); }
    .hrc-curr { font-size: var(--small-font-size); }
}
@media (max-width: 480px) {
    .hrc-set { padding: 3px 6px; gap: 4px; }
    .hrc-set-img { width: 22px; height: 22px; }
}

/* ============================================================
   RING / NFT CHARACTER CARD
   ============================================================ */
.hrrc-card {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 0;
    overflow: hidden;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    text-align: left;
    color: var(--text-primary);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.hrrc-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.18), var(--shadow-md);
    transform: translateY(-2px);
}
.hrrc-doping {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 2px 6px;
    border-radius: 6px;
    color: #fff;
    font-size: var(--mini-font-size);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    z-index: 10;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.hrrc-doping.cok-satan { background: linear-gradient(135deg, #f97316, #ef4444); }
.hrrc-doping.vitrin    { background: linear-gradient(135deg, #8b5cf6, #6366f1); }

.hrrc-body {
    padding: 10px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.hrrc-ic {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 8px;
    position: relative;
}
.hrrc-img {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
}
.hrrc-img img { width: 56px; height: 56px; object-fit: contain; }
.hrrc-lvl {
    margin-top: 6px;
    padding: 2px 10px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 999px;
    font-size: var(--mini-font-size);
    font-weight: 700;
    letter-spacing: 0.3px;
}

.hrrc-info {
    text-align: center;
    font-size: var(--mini-font-size);
    color: var(--text-muted);
    margin-bottom: 8px;
    line-height: 1.3;
    font-weight: var(--font-weight-semibold);
}

.hrrc-np {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    margin-bottom: 6px;
    background: var(--bg-primary);
    border-radius: 8px;
    font-size: var(--mini-font-size);
}
.hrrc-np .label { color: var(--text-muted); font-weight: 600; }
.hrrc-np .value { color: var(--text-primary); font-weight: 700; }

.hrrc-stats {
    margin-bottom: 6px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.hrrc-srow {
    display: grid;
    grid-template-columns: auto 1fr auto 1fr;
    gap: 4px;
    align-items: center;
    padding: 3px 6px;
    background: var(--bg-primary);
    border-radius: 6px;
    font-size: var(--mini-font-size);
}
.hrrc-srow.full { grid-template-columns: auto 1fr; }
.hrrc-slabel { color: var(--text-muted); font-weight: 600; }
.hrrc-sval   { color: var(--text-primary); font-weight: 700; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.hrrc-comp { margin-bottom: 6px; }
.hrrc-cb {
    height: 6px;
    background: var(--bg-primary);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 3px;
}
.hrrc-cf {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--success-color));
    transition: width 0.3s ease;
}
.hrrc-ct {
    text-align: center;
    font-size: var(--mini-font-size);
    color: var(--text-muted);
    font-weight: var(--font-weight-semibold);
}

.hrrc-foot {
    padding: 10px;
    padding-top: 6px;
    background: transparent;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: auto;
}
.hrrc-price {
    flex: 0 0 auto;
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}
.hrrc-old {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: var(--mini-font-size);
}
.hrrc-cur {
    font-weight: var(--font-weight-bold);
    font-size: var(--xxlarge-font-size);
    color: var(--text-primary);
    line-height: 1;
}
.hrrc-curr {
    font-weight: var(--font-weight-semibold);
    font-size: var(--midi-font-size);
    margin-left: 4px;
    color: var(--text-secondary);
}
.hrrc-disc {
    background: var(--danger-color);
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: var(--mini-font-size);
    font-weight: 700;
    align-self: flex-end;
}

@media (max-width: 768px) {
    .hrrc-img { width: 60px; height: 60px; }
    .hrrc-img img { width: 44px; height: 44px; }
    .hrrc-cur { font-size: var(--large-font-size); }
}
