/* ===========================
   Day Trader Casino — Shop
   =========================== */

/* Global page base */
html,
body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background: radial-gradient(circle at top, #1a2536 0%, #050711 45%, #020308 100%);
    color: #f5f7ff;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Make sizing predictable */
*,
*::before,
*::after {
    box-sizing: inherit;
}

/* Typography reset-ish */
body {
    line-height: 1.5;
}

/* Space between disclaimer text and site footer links */
footer .legal-links {
    margin-top: 16px;
    margin-bottom: 0;
}

/* Centered content width */
header,
#friend-discount,
#shop-toolbar,
.shop-layout,
footer {
    max-width: 1200px;
    margin: 0 auto;
    padding-inline: 1rem;
}

/* ===========================
   Header / Breadcrumb
   =========================== */

header[role="banner"] {
    padding-top: 1.5rem;
    padding-bottom: 1rem;
}

header h1 {
    margin: 0 0 0.5rem;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ffffff;
}

header p {
    margin: 0 0 0.75rem;
    color: #b0c7ff;
    font-size: 0.95rem;
}

header nav {
    font-size: 0.85rem;
    color: #7f8cb8;
}

header nav a {
    color: #a8e4ff;
    text-decoration: none;
}

header nav a:hover {
    text-decoration: underline;
}

/* ===========================
   Friend Alliance Discount
   =========================== */

#friend-discount {
    /* 🔥 make sure the *block* itself is centered like everything else */
    margin: 0 auto 1rem;
    padding: 0.75rem 1.25rem;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(0, 247, 255, 0.15), rgba(120, 82, 255, 0.3));
    border: 1px solid rgba(0, 247, 255, 0.4);
    font-size: 0.9rem;
    /* 🔥 flex layout */
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    align-items: center;
    /* ✨ center the content INSIDE the pill */
    justify-content: center;
    text-align: center;
}

#friend-discount strong {
    color: #ffffff;
}

/* ===========================
   Toolbar: Filters / Sort
   =========================== */

#shop-toolbar {
    margin-bottom: 1.5rem;
}

#shop-toolbar form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0.75rem 0.9rem;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(10, 12, 30, 0.95));
    border: 1px solid rgba(148, 163, 184, 0.4);
}

#shop-toolbar label {
    display: flex;
    flex-direction: column;
    font-size: 0.85rem;
    color: #d0defa;
    min-width: 140px;
}

#shop-toolbar select {
    margin-top: 0.25rem;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    background-color: rgba(15, 23, 42, 0.9);
    color: #e5edff;
    padding: 0.35rem 0.5rem;
    font-size: 0.9rem;
}

#shop-toolbar button[type="button"] {
    margin-left: auto;
    padding: 0.5rem 1.25rem;
    border-radius: 999px;
    border: 1px solid #00f7ff;
    background: radial-gradient(circle at top, rgba(0, 247, 255, 0.3), rgba(0, 0, 0, 0.9));
    color: #ffffff;
    font-size: 0.9rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

#shop-toolbar button[type="button"]:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 14px rgba(0, 247, 255, 0.6);
}

/* On very narrow screens, make the button full width */
@media (max-width: 480px) {
    #shop-toolbar form {
        flex-direction: column;
        align-items: stretch;
    }

    #shop-toolbar button[type="button"] {
        width: 100%;
        margin-left: 0;
    }
}

/* ===========================
   Layout: Products + Cart
   =========================== */

.shop-layout {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-bottom: 2.5rem;
}

/* Desktop: side-by-side layout */
@media (min-width: 900px) {
    .shop-layout {
        flex-direction: row;
        align-items: flex-start;
    }

    #shop-content {
        flex: 3;
    }

    #cart {
        flex: 1;
        max-width: 320px;
        position: sticky;
        top: 1.5rem;
    }
}

/* ===========================
   Product Grid
   =========================== */

#shop-content {
    width: 100%;
}

/* When there are no products */
#catalog-placeholder {
    padding: 1.5rem 1rem;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(17, 24, 39, 0.98));
    border: 1px dashed rgba(148, 163, 184, 0.7);
    text-align: center;
}

#catalog-placeholder h2 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
    color: #ffffff;
}

#catalog-placeholder p {
    margin: 0;
    font-size: 0.95rem;
    color: #cbd5f5;
}

#product-grid {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1rem;
}

/* Product card styling */
.product-card {
    background: radial-gradient(circle at top, rgba(15, 23, 42, 0.95), rgba(3, 7, 18, 0.98));
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.7);
    transition: transform 0.18s ease-out, box-shadow 0.18s ease-out, border-color 0.18s ease-out;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.9);
    border-color: rgba(56, 189, 248, 0.9);
}

.product-card figure {
    margin: 0;
}

.product-card img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Text area */
.product-card figcaption {
    padding: 0.75rem 0.9rem 0.5rem;
}

.product-card h3 {
    margin: 0 0 0.3rem;
    font-size: 1rem;
    color: #ffffff;
}

.product-card .price {
    margin: 0 0 0.25rem;
    font-weight: 600;
    color: #fef9c3;
}

.product-card .bonus {
    margin: 0;
    font-size: 0.85rem;
    color: #a5b4fc;
}

/* Add to Cart button */
.product-card button {
    margin: 0.6rem 0.9rem 0.9rem;
    padding: 0.5rem 1.1rem;
    border-radius: 999px;
    border: 1px solid #f97316;
    background: radial-gradient(circle at top, rgba(249, 115, 22, 0.35), rgba(0, 0, 0, 0.95));
    color: #ffffff;
    font-size: 0.9rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.product-card button:hover {
    box-shadow: 0 0 14px rgba(249, 115, 22, 0.8);
    transform: translateY(-1px);
}

/* ===========================
   Cart Sidebar
   =========================== */

#cart {
    padding: 1rem;
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.96), rgba(3, 7, 18, 0.98));
    border: 1px solid rgba(148, 163, 184, 0.7);
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.85);
}

#cart h2 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    color: #ffffff;
}

#cart p {
    margin: 0 0 0.75rem;
    font-size: 0.9rem;
    color: #cbd5f5;
}

#cart button {
    width: 100%;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    background: rgba(15, 23, 42, 0.9);
    color: #9ca3af;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

/* ===========================
   Footer / Disclaimer
   =========================== */

footer {
    border-top: 1px solid rgba(30, 64, 175, 0.7);
    padding-top: 1.25rem;
    padding-bottom: 1.75rem;
    font-size: 0.8rem;
    color: #9ca3af;
}

footer p {
    margin: 0 0 0.4rem;
}

footer em {
    font-style: italic;
}

/* ===========================
   Mobile + Landscape Tweaks
   =========================== */

/* For mobile portrait: tighten spacing a bit */
@media (max-width: 600px) {
    header[role="banner"] {
        padding-top: 1.2rem;
        padding-bottom: 0.75rem;
    }

    #friend-discount {
        border-radius: 12px;
    }

    .shop-layout {
        padding-bottom: 2rem;
    }

    #cart {
        position: static;
        max-width: 100%;
    }
}

/* Mobile landscape: ensure things don't shrink too small */
@media (max-height: 500px) and (min-width: 640px) {
    header[role="banner"] {
        padding-top: 0.75rem;
        padding-bottom: 0.5rem;
    }

    #shop-toolbar form {
        padding: 0.5rem 0.7rem;
    }

    .shop-layout {
        gap: 1rem;
        padding-bottom: 1.5rem;
    }

    #product-grid {
        grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    }
}