/* ================================================================= */
/* T7 "Dark & Fire" skin for the Dream Coin Shop (2026-07-23)         */
/*                                                                    */
/* Restyles the EXISTING shop chrome — product cards, category        */
/* headers, price/coin displays, buy buttons, filters, the 5-box      */
/* purchase nav, and modals — to the homepage's glass-on-fire look,   */
/* driven entirely off the shared :root tokens defined in             */
/* t7-theme.css (--fire-red/orange/yellow, --gold-light/dark,         */
/* --glass-bg, --glass-border). NO markup or JS is changed; every     */
/* purchase / cart / catalog flow keeps working exactly as before —   */
/* this is a pure visual re-skin.                                     */
/*                                                                    */
/* Loaded LAST in each shop template's `extra_css` block (after the   */
/* templates' own inline <style>), so same-specificity rules here win */
/* the cascade on source order. `!important` is used only where the   */
/* template's inline rule itself is `!important` (form controls,      */
/* modals) so the fire/glass look actually takes.                     */
/*                                                                    */
/* Shared by shop.html (logged-in) AND shop_public.html (logged-out); */
/* selectors cover both class sets. Every card keeps min-width:0 /    */
/* overflow:hidden / text clamping (already set inline) — the glass   */
/* treatment here never removes that containment.                     */
/* ================================================================= */

/* ---- Fallback tokens (in case this file is ever loaded standalone; */
/*      t7-theme.css normally defines these on :root site-wide) ----- */
:root {
    --fire-dark: #0a0000;
    --fire-red: #ff0000;
    --fire-orange: #ff4500;
    --fire-yellow: #ffd700;
    --gold-light: #ffdf00;
    --gold-dark: #b8860b;
    --glass-bg: rgba(20, 0, 0, 0.45);
    --glass-border: rgba(255, 215, 0, 0.3);
}

@keyframes t7Shop-gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ================================================================= */
/* MAIN GLASS PANEL                                                   */
/* ================================================================= */
.shop-container {
    background:
        radial-gradient(circle at top left, rgba(255, 69, 0, 0.10), transparent 32%),
        radial-gradient(circle at bottom right, rgba(255, 215, 0, 0.07), transparent 34%),
        var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* ================================================================= */
/* CONTROLS / FILTER BAR                                              */
/* ================================================================= */
.controls-section {
    background: rgba(10, 0, 0, 0.45);
    border: 1px solid rgba(255, 140, 0, 0.22);
    border-radius: 10px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.controls-section .form-control,
.controls-section .form-select {
    background: rgba(0, 0, 0, 0.55) !important;
    border: 1px solid rgba(255, 215, 0, 0.20) !important;
    border-radius: 6px !important;
    color: #f5e6c8 !important;
}

.controls-section .form-control:focus,
.controls-section .form-select:focus {
    border-color: var(--fire-orange) !important;
    box-shadow: 0 0 0 1px var(--fire-orange), 0 0 12px rgba(255, 69, 0, 0.35) !important;
}

.controls-section .form-control::placeholder {
    color: rgba(245, 230, 200, 0.4) !important;
}

.controls-section .input-group-text {
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 215, 0, 0.20);
    border-radius: 6px;
    color: var(--gold-light);
}

.controls-section .btn-outline-secondary {
    border-radius: 6px;
    border-color: rgba(255, 215, 0, 0.20);
    color: rgba(245, 230, 200, 0.55);
}
.controls-section .btn-outline-secondary:hover {
    background: rgba(255, 69, 0, 0.15);
    border-color: var(--fire-orange);
    color: #fff;
}

.controls-section .form-select option {
    background: #140000;
    color: #f5e6c8;
}

/* ---- Filter toggle buttons (ALL / REGULAR / PREMIUM) ---- */
.btn-group .btn { border-radius: 6px !important; }

.btn-outline-primary {
    background: transparent;
    border: 1px solid rgba(255, 69, 0, 0.5);
    color: var(--fire-orange);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.18s ease;
}
.btn-outline-primary:hover,
.btn-outline-primary.active {
    background: linear-gradient(45deg, var(--fire-red), var(--fire-orange));
    border-color: var(--fire-yellow);
    color: #fff;
    box-shadow: 0 0 14px rgba(255, 69, 0, 0.45);
}

.btn-outline-warning {
    background: transparent;
    border: 1px solid rgba(255, 215, 0, 0.5);
    color: var(--gold-light);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.18s ease;
}
.btn-outline-warning:hover,
.btn-outline-warning.active {
    background: linear-gradient(45deg, var(--gold-dark), var(--fire-yellow));
    border-color: var(--fire-yellow);
    color: #1a1200;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 14px rgba(255, 215, 0, 0.4);
}

/* Cart trigger: fire-gold glass when idle, keeps its green "has-items" cue */
.cart-trigger-btn.btn-success {
    background: linear-gradient(135deg, rgba(40, 6, 0, 0.9), rgba(120, 20, 0, 0.7));
    border: 1px solid var(--glass-border);
    color: #f5e6c8;
    border-radius: 8px !important;
}
.cart-trigger-btn.btn-success:hover {
    border-color: var(--fire-yellow);
    box-shadow: 0 6px 18px rgba(255, 69, 0, 0.3);
    color: #fff;
}
.cart-trigger-btn.has-items {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

/* ================================================================= */
/* 5-BOX PURCHASE NAV (Dream/Premium/Packs/Boosts/Subscribe)         */
/* Retheme from the old purple/teal to fire-glass + gold.            */
/* ================================================================= */
.purchase-nav-btn {
    border: 1px solid rgba(255, 0, 0, 0.4);
    background: linear-gradient(135deg, rgba(20, 0, 0, 0.75), rgba(80, 0, 0, 0.5));
    color: #f5e6c8;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}
.purchase-nav-btn:hover,
.purchase-nav-btn:focus-visible {
    border-color: var(--fire-yellow);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(255, 69, 0, 0.4);
    color: #fff;
}
.purchase-nav-btn.is-current {
    border-color: rgba(255, 215, 0, 0.6);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(80, 0, 0, 0.6));
}
.purchase-nav-thumb { color: var(--gold-light); }
.purchase-nav-label { color: #f6ecd6; }
.purchase-nav-btn.is-subscribe {
    border-color: rgba(255, 215, 0, 0.45);
    background: linear-gradient(135deg, rgba(184, 134, 11, 0.28), rgba(80, 0, 0, 0.6));
}
.purchase-nav-btn.is-subscribe .purchase-nav-thumb { color: var(--fire-yellow); }

/* ================================================================= */
/* CATEGORY / SECTION HEADERS                                         */
/* ================================================================= */
.category-header {
    background: linear-gradient(135deg, rgba(255, 69, 0, 0.20), rgba(255, 0, 0, 0.06));
    border-left: 3px solid var(--fire-orange);
    border-radius: 8px;
    box-shadow: inset 0 0 18px rgba(255, 69, 0, 0.08);
}
.category-header h3,
.category-header h4,
.category-header h5 {
    color: var(--fire-yellow);
    text-shadow: 0 0 12px rgba(255, 69, 0, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.premium-category-header {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.20), rgba(184, 134, 11, 0.06));
    border-left-color: var(--fire-yellow);
}
.premium-category-header h3,
.premium-category-header h4,
.premium-category-header h5 {
    color: var(--gold-light);
    text-shadow: 0 0 12px rgba(255, 215, 0, 0.45);
}

/* shop_public section titles */
.section-title {
    background: linear-gradient(135deg, rgba(255, 69, 0, 0.18), rgba(255, 0, 0, 0.05));
    border-left: 3px solid var(--fire-orange);
    border-radius: 8px;
    color: var(--fire-yellow);
    text-shadow: 0 0 12px rgba(255, 69, 0, 0.5);
}
.section-title.premium {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.18), rgba(184, 134, 11, 0.05));
    border-left-color: var(--fire-yellow);
    color: var(--gold-light);
}

/* shop_public hero title — brighten to the gold->fire gradient */
.shop-title {
    background: linear-gradient(90deg, var(--gold-light), var(--fire-yellow) 55%, var(--fire-orange));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 18px rgba(255, 140, 0, 0.35));
}

/* shop_public login prompt */
.login-prompt {
    background: linear-gradient(135deg, rgba(255, 69, 0, 0.10), rgba(255, 215, 0, 0.06));
    border: 1px solid rgba(255, 165, 0, 0.4);
    border-left: 3px solid var(--fire-orange);
    border-radius: 10px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.login-prompt h3 { color: var(--fire-yellow); }

/* ================================================================= */
/* PRODUCT CARDS (both templates share `.item-card`)                 */
/* ================================================================= */
.item-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.item-card:hover {
    transform: translateY(-3px);
    border-color: var(--fire-yellow);
    background-color: rgba(30, 5, 0, 0.55);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45), 0 0 20px rgba(255, 140, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Top accent line (shop.html grid cards) */
.item-card::before {
    background: linear-gradient(90deg, var(--fire-red), var(--fire-orange), var(--fire-yellow));
    height: 2px;
}

/* Image area */
.item-image-container {
    background: rgba(10, 0, 0, 0.35);
    border-bottom: 1px solid rgba(255, 215, 0, 0.10);
    border-radius: 10px 10px 0 0;
}

/* Titles / text */
.item-card .card-title,
.item-name { color: #f5e6c8; }
.item-card .card-text,
.item-description { color: rgba(245, 230, 200, 0.5); }

/* ---- Price / coin displays ---- */
.item-price {
    color: var(--fire-orange);
    text-shadow: 0 0 12px rgba(255, 69, 0, 0.3);
}
.item-card.premium .item-price,
.premium-item .item-price {
    color: var(--gold-light);
    text-shadow: 0 0 12px rgba(255, 215, 0, 0.3);
}
.sale-pill {
    background: linear-gradient(135deg, var(--fire-orange), var(--fire-red));
}

/* Category badge */
.item-category-badge {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 215, 0, 0.22);
    border-radius: 4px;
    color: rgba(245, 230, 200, 0.65);
}

/* ================================================================= */
/* BUY / ACTION BUTTONS                                               */
/* ================================================================= */
.btn-buy-now {
    background: linear-gradient(45deg, var(--fire-red), var(--fire-orange), var(--fire-yellow));
    background-size: 200% 200%;
    border-radius: 6px;
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-position 0.4s ease;
}
.btn-buy-now:hover {
    background-position: 100% 50%;
    box-shadow: 0 4px 14px rgba(255, 69, 0, 0.45), 0 0 18px rgba(255, 140, 0, 0.35);
    transform: translateY(-1px);
}

.btn-add-cart {
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 215, 0, 0.25);
    border-radius: 6px;
    color: rgba(245, 230, 200, 0.7);
}
.btn-add-cart:hover {
    background: rgba(255, 69, 0, 0.18);
    border-color: var(--fire-orange);
    color: var(--fire-yellow);
}

/* Premium buy-now: gold fire */
.premium-item .btn-buy-now {
    background: linear-gradient(45deg, var(--gold-dark), var(--fire-yellow), var(--gold-light));
    background-size: 200% 200%;
    color: #1a1200;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.35);
}
.premium-item .btn-buy-now:hover {
    background-position: 100% 50%;
    box-shadow: 0 4px 14px rgba(255, 215, 0, 0.4), 0 0 18px rgba(255, 215, 0, 0.3);
}
.premium-item .btn-add-cart:hover {
    background: rgba(255, 215, 0, 0.18);
    border-color: var(--fire-yellow);
    color: var(--gold-light);
}

.premium-item { border-color: rgba(255, 215, 0, 0.18); }
.premium-item::before { background: linear-gradient(90deg, var(--gold-dark), var(--fire-yellow), var(--gold-light)); }
.premium-item:hover {
    border-color: var(--fire-yellow);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45), 0 0 20px rgba(255, 215, 0, 0.3);
}

.premium-badge {
    background: linear-gradient(135deg, var(--fire-yellow), var(--gold-dark));
    color: #1a1200;
    border-radius: 4px;
}

/* shop_public purchase (Discord login) button — keep Discord identity,
   just round it to match the fire-glass panel language. */
.btn-purchase { border-radius: 6px; }

/* Legendary glow tuned to gold-fire */
.premium-item.legendary-glow,
.item-card.premium.legendary-glow {
    border-color: #ff8c00;
    animation: legendary-pulse 3s ease-in-out infinite;
}
@keyframes legendary-pulse {
    0%, 100% { box-shadow: 0 0 13px rgba(255, 140, 0, 0.34); }
    50% { box-shadow: 0 0 24px rgba(255, 94, 0, 0.62); }
}
@media (prefers-reduced-motion: reduce) {
    .premium-item.legendary-glow,
    .item-card.premium.legendary-glow {
        animation: none;
        box-shadow: 0 0 16px rgba(255, 140, 0, 0.45);
    }
}

/* ================================================================= */
/* DISCOVERY / SALE BANNERS                                           */
/* ================================================================= */
.shop-discovery-banner {
    border: 1px solid rgba(255, 165, 0, 0.28);
    border-left: 3px solid var(--fire-orange);
    background:
        linear-gradient(135deg, rgba(255, 69, 0, 0.10), rgba(255, 215, 0, 0.07)),
        rgba(20, 0, 0, 0.4);
}
.shop-discovery-kicker { color: var(--fire-yellow); }
.shop-discovery-link {
    border: 1px solid rgba(255, 69, 0, 0.35);
    color: var(--fire-yellow);
    background: rgba(255, 69, 0, 0.10);
}
.shop-discovery-link:hover {
    background: rgba(255, 69, 0, 0.18);
    color: #fff;
    border-color: var(--fire-orange);
}
.shop-discovery-link.secondary {
    border-color: rgba(255, 215, 0, 0.35);
    color: var(--gold-light);
    background: rgba(255, 215, 0, 0.10);
}
.shop-discovery-link.secondary:hover {
    background: rgba(255, 215, 0, 0.18);
    border-color: var(--fire-yellow);
    color: #fff;
}
.sale-banner-inline {
    border-left: 3px solid var(--fire-orange);
    background: rgba(255, 69, 0, 0.10);
}

/* ================================================================= */
/* MODALS (shop.html) — dark fire glass. Template uses `!important`  */
/* on these, so match it.                                            */
/* ================================================================= */
.modal-content,
.cart-modal-content {
    background:
        radial-gradient(circle at top, rgba(255, 69, 0, 0.08), transparent 40%),
        rgba(15, 0, 0, 0.97) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: 12px !important;
}
.modal-header { border-bottom: 1px solid rgba(255, 215, 0, 0.15) !important; }
.modal-footer { border-top: 1px solid rgba(255, 215, 0, 0.15) !important; }
.modal-title { color: var(--fire-yellow) !important; }
.modal-footer .btn-secondary {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 215, 0, 0.2);
    color: rgba(245, 230, 200, 0.75);
}
.modal-footer .btn-secondary:hover {
    background: rgba(255, 69, 0, 0.15);
    border-color: var(--fire-orange);
    color: #fff;
}

/* ================================================================= */
/* MOBILE / RESPONSIVE — the templates already set their own         */
/* breakpoints (min-height, 44px touch targets, title wrapping).     */
/* Nothing here overrides layout; only keep radii sane on small      */
/* screens so cards don't look boxy-then-round inconsistently.       */
/* ================================================================= */
@media (max-width: 576px) {
    .shop-container { border-radius: 10px; }
    .item-card { border-radius: 8px; }
    .item-image-container { border-radius: 8px 8px 0 0; }
}
