/* ═══════════════════════════════════════
   RPG UI Components
   ═══════════════════════════════════════ */

/* ── HEADER ── */
.rpg-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: transparent;
    border-bottom: none;
    height: var(--header-height);
}

.rpg-header__inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 16px;
}

.rpg-header__brand a,
.rpg-header__title {
    font-family: var(--font-pixel);
    font-size: 12px;
    font-weight: 600;
    color: var(--flavor-text);
    text-decoration: none;
    white-space: nowrap;
}
.rpg-header__nav { display: flex; align-items: center; }
.rpg-nav {
    display: flex;
    gap: 24px;
}
.rpg-nav li a {
    font-family: var(--font-pixel);
    font-size: 8px;
    letter-spacing: 0.1em;
    color: var(--flavor-text-muted);
    text-decoration: none;
    transition: color var(--transition);
    padding: 4px 0;
}
.rpg-nav li a:hover,
.rpg-nav li.current-menu-item a {
    color: var(--flavor-primary);
}
.rpg-header__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}
.rpg-header__gold {
    font-size: 8px;
    color: var(--flavor-gold);
    display: flex;
    align-items: center;
    gap: 4px;
}
.rpg-header__btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--flavor-border);
    border-radius: var(--radius-sm);
    padding: 7px 10px;
    color: var(--flavor-text);
    display: flex;
    align-items: center;
    position: relative;
    transition: all var(--transition);
}
.rpg-header__btn:hover {
    border-color: var(--flavor-border-hover);
    background: rgba(255,255,255,0.08);
}
.rpg-cart-count {
    font-family: var(--font-pixel);
    font-size: 8px;
    color: var(--flavor-primary);
    margin-left: 4px;
}
.rpg-header__menu-toggle {
    display: none;
}

/* Hamburger */
.rpg-hamburger {
    display: flex;
    flex-direction: column;
    gap: 3px;
    width: 16px;
}
.rpg-hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--flavor-text);
    transition: var(--transition);
}

/* ── MOBILE MENU ── */
.rpg-mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 99;
    background: rgba(10, 10, 26, 0.96);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.rpg-mobile-menu.is-open {
    opacity: 1;
    pointer-events: all;
}
.rpg-mobile-nav {
    text-align: center;
}
.rpg-mobile-nav li {
    margin-bottom: 24px;
}
.rpg-mobile-nav li a {
    font-family: var(--font-pixel);
    font-size: 10px;
    letter-spacing: 0.12em;
    color: var(--flavor-text-muted);
    text-decoration: none;
    transition: color var(--transition);
}
.rpg-mobile-nav li a:hover {
    color: var(--flavor-primary);
}

/* ── FOOTER ── */
.rpg-footer {
    /*border-top: 2px solid var(--flavor-border);
    background: var(--flavor-bg-deep);*/
    border-top: none;
    background: transparent;
    padding: 48px 0 24px;
    margin-top: 60px;
}
.rpg-footer__grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: start;
    column-gap: 72px;
    row-gap: 40px;
    margin-bottom: 40px;
}
.rpg-footer__logo {
    font-family: var(--font-pixel);
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
}
.rpg-footer__desc {
    font-size: 14px;
    color: var(--flavor-text-muted);
    line-height: 1.7;
    margin-bottom: 16px;
    max-width: 280px;
}

.rpg-footer__heading {
    font-size: 8px;
    letter-spacing: 0.1em;
    color: var(--flavor-text);
    margin-bottom: 16px;
}
.rpg-footer__menu li {
    margin-bottom: 10px;
}
.rpg-footer__menu a {
    font-size: 14px;
    color: var(--flavor-text-muted);
}
.rpg-footer__menu a:hover {
    color: var(--flavor-text);
}

.rpg-footer__copyright {
    font-size: 12px;
    color: var(--flavor-text-faint);
}
.rpg-footer__powered {
    font-size: 7px;
    color: var(--flavor-text-faint);
}

.rpg-footer__info-col {
    justify-self: end;
    /*align-self: start;*/
    transform: translateX(32px);
}

.rpg-footer__info-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: max-content;
    text-align: left;
}

.rpg-footer__info-links a {
    font-family: var(--font-pixel);
    font-size: 10px;
    letter-spacing: 0.1em;
    color: var(--flavor-text);
    text-decoration: none;
    line-height: 1.8;
}

.rpg-footer__info-links a:hover {
    color: var(--flavor-text);
    opacity: 0.8;
}

.rpg-footer__social-center {
    justify-self: center;
    align-self: start;
    display: flex;
    justify-content: center;
}

.rpg-footer__social-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: nowrap;
}

.rpg-footer__icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    text-decoration: none;
    opacity: 0.95;
    transition: opacity var(--transition), transform var(--transition);
}

.rpg-footer__icon-link:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.rpg-footer__icon-link img {
    width: 24px;
    height: 24px;
    display: block;
    object-fit: contain;
    image-rendering: pixelated;
    /*filter: brightness(0) invert(1);*/
}

.rpg-footer__bottom {
    border-top: 1px solid var(--flavor-border);
    padding-top: 20px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

/* ── PIXEL HOUSE CARD ── */
.pixel-house {
    display: block;
    width: 100%;
    max-width: 260px;
    text-decoration: none;
    transition: transform var(--transition);
}
.pixel-house:hover {
    transform: translateY(-6px);
}
.pixel-house__svg {
    width: 100%;
    display: block;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.2));
    transition: filter var(--transition);
}
.pixel-house:hover .pixel-house__svg {
    filter: drop-shadow(0 8px 24px rgba(255,107,107,0.2));
}
.pixel-house__info {
    text-align: center;
    margin-top: -4px;
}
.pixel-house__name {
    font-family: var(--font-brand);
    font-size: 18px;
    font-weight: 600;
    color: var(--flavor-text);
    margin-bottom: 2px;
}
.pixel-house__enter {
    font-size: 8px;
    color: var(--flavor-text-faint);
    opacity: 0;
    transition: opacity var(--transition);
    animation: bounceY 1s ease-in-out infinite;
}
.pixel-house:hover .pixel-house__enter {
    opacity: 1;
    color: var(--flavor-gold);
}

/* ── PRODUCT CARD ── */
.rpg-product-card {
    transition: transform var(--transition);
}
.rpg-product-card:hover {
    transform: translateY(-4px);
}
.rpg-product-card__link {
    display: block;
    text-decoration: none;
    background: var(--flavor-bg-surface);
    border: 1px solid var(--flavor-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color var(--transition);
}
.rpg-product-card:hover .rpg-product-card__link {
    border-color: var(--flavor-border-hover);
}
.rpg-product-card__image {
    aspect-ratio: 1;
    overflow: hidden;
    position: relative;
    background: #111;
}
.rpg-product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.rpg-product-card:hover .rpg-product-card__image img {
    transform: scale(1.05);
}
.rpg-product-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    opacity: 0.15;
}
.rpg-product-card__badge {
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 6px;
    padding: 4px 8px;
    color: white;
}
.rpg-product-card__xp-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255,255,255,0.03);
}
.rpg-product-card__xp-fill {
    width: 0%;
    height: 100%;
    background: var(--flavor-primary);
    box-shadow: 0 0 6px var(--flavor-primary);
    transition: width 0.6s ease;
}
.rpg-product-card:hover .rpg-product-card__xp-fill {
    width: 100%;
}
.rpg-product-card__info {
    padding: 12px 14px;
}
.rpg-product-card__name {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.88);
    margin-bottom: 8px;
    line-height: 1.3;
}
.rpg-product-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.rpg-product-card__price {
    font-size: 10px;
    color: var(--flavor-primary);
}
.rpg-product-card__action {
    font-size: 6px;
    padding: 6px 12px;
    background: var(--flavor-bg-surface);
    color: var(--flavor-text-muted);
    transition: all var(--transition);
}
.rpg-product-card:hover .rpg-product-card__action {
    background: var(--flavor-primary);
    color: white;
}

/* ── Artist name in product cards ── */
.product-artist-name {
    font-size: 11px;
    margin-bottom: 4px;
}
.product-artist-name a {
    color: var(--flavor-text-muted);
    font-weight: 500;
}

/* ── BULLETIN CARD ── */
.rpg-bulletin-card__link {
    display: block;
    text-decoration: none;
    background: var(--flavor-bg-surface);
    border: 1px solid var(--flavor-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition);
}
.rpg-bulletin-card__link:hover {
    border-color: var(--flavor-border-hover);
    transform: translateY(-3px);
}
.rpg-bulletin-card__image {
    aspect-ratio: 16/9;
    overflow: hidden;
}
.rpg-bulletin-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.rpg-bulletin-card__content {
    padding: 16px;
}
.rpg-bulletin-card__date {
    font-size: 7px;
    color: var(--flavor-primary);
    letter-spacing: 0.1em;
    margin-bottom: 6px;
    display: block;
}
.rpg-bulletin-card__title {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    color: var(--flavor-text);
    margin-bottom: 6px;
    line-height: 1.3;
}
.rpg-bulletin-card__excerpt {
    font-size: 13px;
    color: var(--flavor-text-muted);
    line-height: 1.5;
}

/* ── RPG Stats Bar ── */
.rpg-stats-bar {
    background: var(--flavor-bg-deep);
    border-top: 1px solid var(--flavor-border);
    border-bottom: 1px solid var(--flavor-border);
    padding: 16px 0;
}
.rpg-stats-bar__inner {
    display: flex;
    justify-content: center;
    gap: 32px;
}
.rpg-stat {
    text-align: center;
    display: flex;
    align-items: center;
    gap: 8px;
}
.rpg-stat__icon {
    font-size: 18px;
}
.rpg-stat__value {
    font-size: 11px;
    color: var(--flavor-text);
}
.rpg-stat__label {
    font-size: 11px;
    color: var(--flavor-text-faint);
}

/* ── RPG Card (generic) ── */
.rpg-card {
    background: var(--flavor-bg-surface);
    border: 1px solid var(--flavor-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition);
}
.rpg-card:hover {
    border-color: var(--flavor-border-hover);
}
.rpg-card__image {
    aspect-ratio: 16/9;
    overflow: hidden;
}
.rpg-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.rpg-card__content {
    padding: 16px;
}
.rpg-card__title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
}
.rpg-card__title a {
    color: var(--flavor-text);
    text-decoration: none;
}
.rpg-card__excerpt {
    font-size: 14px;
    color: var(--flavor-text-muted);
}
.rpg-card__date {
    font-size: 7px;
    color: var(--flavor-text-faint);
    letter-spacing: 0.1em;
    margin-top: 8px;
    display: block;
}

/* ── RESPONSIVE ── */
@media (max-width: 767px) {
    .rpg-header__nav { display: none; }
    .rpg-header__gold { display: none; }
    .rpg-header__menu-toggle { display: flex; }
    .rpg-footer__grid { grid-template-columns: 1fr; gap: 28px; }
    .rpg-stats-bar__inner { gap: 16px; flex-wrap: wrap; }
    .rpg-footer__bottom { flex-direction: column; text-align: center; }
    .pixel-house { max-width: 220px; }
}
