/* ═════════════════════════════════════════════════════════════
   Fruit Sandwich Studio — Cozy Cafe Theme
   Warm, inviting coffeehouse aesthetic.
   
   Palette: espresso browns, cream whites, sage greens, warm beige.
   Typography: Playfair Display (headings), Inter (body),
               Dancing Script (script accents).
   ═════════════════════════════════════════════════════════════ */

/* ─── Variables ───────────────────────────────────────────── */
:root {
    /* Cafe palette */
    --cream:           #FFF8E1;
    --beige:           #F5F0E6;
    --whipped:         #FAF3E0;
    --warm-white:      #FFFCF5;
    --latte:           #D4A373;
    --coffee-light:    #8D6E63;
    --coffee:          #5D4037;
    --espresso:        #3E2723;
    --chalkboard:      #2C1810;
    --sage:            #606C38;
    --sage-light:      #7E8F5C;
    --sage-muted:      #8F9E6B;
    --mocha:           #A1887F;
    --border-warm:     #D7CCC8;
    --border-light:    #E8E0D5;
    --text-dark:       #2C1810;
    --text-muted:      #6D4C41;
    --text-light:      #8D6E63;
    --shadow-warm:     rgba(62, 39, 35, 0.08);
    --shadow-medium:   rgba(62, 39, 35, 0.15);

    /* Fonts */
    --font-heading:    "Playfair Display", Georgia, serif;
    --font-body:       "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-script:     "Dancing Script", cursive;

    /* Legacy aliases for backward compatibility with inline styles */
    --font-pixel:      var(--font-heading);
    --pixel-border:    var(--border-warm);
    --pixel-white:     var(--cream);
    --pixel-light:     var(--whipped);
    --pixel-card:      var(--warm-white);
    --pixel-text:      var(--text-dark);
    --pixel-muted:     var(--text-muted);
    --dirt-dark:       var(--espresso);
    --dirt:            var(--coffee);
    --sky:             var(--latte);
    --sky-dark:        var(--coffee-light);
    --sun:             var(--latte);
    --sun-dark:        var(--mocha);
    --grass:           var(--sage);
    --grass-dark:      var(--sage-light);
    --accent:          var(--sage);
    --accent-hover:    var(--sage-light);
    --accent-green:    var(--sage);
    --accent-green-h:  var(--sage-light);
}

/* ─── Base ────────────────────────────────────────────────── */
html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--text-dark);
    background: var(--beige);
    min-height: 100vh;
}

/* Paper texture background */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.4;
    background-image:
        radial-gradient(circle at 20% 30%,  rgba(212, 163, 115, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%,  rgba(96, 108, 56, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%,  rgba(141, 110, 99, 0.02) 0%, transparent 60%);
}

/* Wrapper */
.site-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

.main-content {
    flex: 1;
    padding-bottom: 4rem;
}

/* ─── Typography ──────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6,
.title {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--espresso);
    line-height: 1.3;
}

.title.is-1 { font-size: 2.5rem; }
.title.is-2 { font-size: 2rem; }
.title.is-3 { font-size: 1.6rem; }
.title.is-4 { font-size: 1.35rem; }
.title.is-5 { font-size: 1.1rem; }

.subtitle {
    font-family: var(--font-body);
    color: var(--coffee);
    font-size: 1.15rem;
    font-weight: 400;
    line-height: 1.5;
}

.content {
    font-size: 1.05rem;
    line-height: 1.7;
    font-family: var(--font-body);
}

.content p {
    margin-bottom: 1rem;
    background: rgba(255, 252, 245, 0.85);
    padding: 0.85rem 1.1rem;
    border-radius: 10px;
    border: 1px solid var(--border-warm);
    box-shadow: 0 2px 6px var(--shadow-warm);
}

.content ul,
.content ol {
    margin-bottom: 1rem;
    background: rgba(255, 252, 245, 0.85);
    padding: 0.75rem 1.1rem 0.75rem 2.2rem;
    border-radius: 10px;
    border: 1px solid var(--border-warm);
    box-shadow: 0 2px 6px var(--shadow-warm);
}

.content li::marker {
    color: var(--sage);
}

.content h1,
.content h2,
.content h3 {
    color: var(--espresso);
    font-family: var(--font-heading);
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.content h1 {
    font-size: 2.2rem;
    margin-top: 1rem;
}

.content a {
    color: var(--sage);
    text-decoration: none;
    border-bottom: 2px solid var(--latte);
    transition: color 0.2s, border-color 0.2s;
    font-weight: 500;
}

.content a:hover {
    color: var(--sage-light);
    border-bottom-color: var(--sage);
}

/* Script accent class */
.font-script {
    font-family: var(--font-script);
    font-weight: 700;
}

/* ─── Navbar ──────────────────────────────────────────────── */
.navbar {
    background-color: var(--espresso) !important;
    border-bottom: 3px solid var(--latte);
    box-shadow: 0 4px 20px var(--shadow-medium);
}

.navbar-brand {
    align-items: center;
}

.navbar-brand .navbar-item {
    color: var(--cream);
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    transition: color 0.2s;
}

.navbar-brand .navbar-item:hover {
    color: var(--latte);
    background: transparent;
}

.navbar-brand strong {
    color: var(--cream) !important;
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 0.03em;
}

/* Logo icon in navbar */
.navbar-logo-icon {
    font-size: 1.5rem;
    margin-right: 0.5rem;
    color: var(--latte);
}

.navbar-menu .navbar-item {
    color: var(--cream);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    transition: all 0.2s ease;
    border-radius: 8px;
    margin: 0.25rem;
}

.navbar-menu .navbar-item:hover {
    color: var(--espresso);
    background-color: var(--latte);
}

.navbar-burger {
    color: var(--cream);
}

.navbar-burger:hover {
    color: var(--latte);
    background: rgba(212, 163, 115, 0.15);
}

/* ─── Footer ──────────────────────────────────────────────── */
.footer {
    background-color: var(--espresso);
    border-top: 3px solid var(--latte);
    padding: 3rem 1.5rem;
    color: var(--cream);
}

.footer p {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--cream) !important;
    opacity: 0.9;
}

.footer .button.is-light {
    background-color: transparent;
    border: 2px solid var(--latte);
    color: var(--latte);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.footer .button.is-light:hover {
    background-color: var(--latte);
    color: var(--espresso);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 163, 115, 0.3);
}

/* ─── Cards ───────────────────────────────────────────────── */
.card {
    background-color: var(--warm-white);
    border: 1px solid var(--border-warm);
    border-radius: 16px;
    box-shadow: 0 4px 16px var(--shadow-warm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    overflow: hidden;
}

.card-hover:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px var(--shadow-medium);
}

.card-content .title.is-5 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-dark);
    transition: color 0.2s;
    font-size: 1.05rem;
    line-height: 1.4;
}

.card-hover:hover .card-content .title.is-5 {
    color: var(--sage);
}

.card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.card-footer {
    border-top: 1px solid var(--border-light);
    background: transparent;
}

.card-footer-item {
    color: var(--sage);
    font-weight: 500;
    transition: color 0.2s;
}

.card-footer-item:hover {
    color: var(--sage-light);
}

/* ─── Tags ────────────────────────────────────────────────── */
.tag {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 20px !important;
    padding: 0.35em 0.9em;
    border: 1px solid var(--border-warm);
    background: var(--whipped);
    color: var(--text-muted);
    transition: all 0.2s ease;
}

.tag.is-light {
    background-color: var(--whipped);
    color: var(--text-muted);
    border: 1px solid var(--border-warm);
}

.tag.is-dark {
    background-color: var(--espresso);
    color: var(--cream);
    border-color: var(--espresso);
}

.tag.is-light.is-medium {
    font-weight: 500;
    letter-spacing: 0.01em;
}

.category-tags {
    background-color: var(--warm-white);
    border: 1px solid var(--border-warm);
    border-radius: 16px;
    box-shadow: 0 4px 16px var(--shadow-warm);
}

.category-tags__tag {
    border: 1px solid var(--border-warm);
    background-color: var(--whipped);
    color: var(--text-muted);
    transition: all 0.2s ease;
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 0.95rem;
    border-radius: 20px;
    padding: 0.4em 1em;
}

.category-tags__tag:hover {
    background-color: var(--sage);
    border-color: var(--sage);
    color: var(--cream);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(96, 108, 56, 0.25);
}

/* ─── Forms / Search ──────────────────────────────────────── */
.input {
    font-family: var(--font-body);
    font-size: 1rem;
    background-color: var(--warm-white);
    border: 2px solid var(--border-warm);
    border-radius: 14px !important;
    box-shadow: 0 2px 8px var(--shadow-warm);
    color: var(--text-dark);
    transition: box-shadow 0.2s, border-color 0.2s;
    padding: 0.75rem 1rem;
}

.input::placeholder {
    color: var(--text-light);
    opacity: 0.7;
}

.input:focus,
.input:active {
    border-color: var(--sage) !important;
    box-shadow: 0 4px 16px rgba(96, 108, 56, 0.15) !important;
    outline: none;
}

/* Search icon color */
.control.has-icons-left .icon.is-left {
    color: var(--text-light);
}

/* ─── Buttons ─────────────────────────────────────────────── */
.button {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 12px;
    border: 2px solid var(--border-warm);
    text-transform: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px var(--shadow-warm);
    line-height: 1.4;
}

.button.is-light {
    background-color: var(--warm-white);
    border-color: var(--border-warm);
    color: var(--text-dark);
}

.button.is-light:hover {
    background-color: var(--whipped);
    box-shadow: 0 4px 16px var(--shadow-medium);
    transform: translateY(-2px);
}

.button.is-link.is-medium {
    background-color: var(--sage) !important;
    color: #fff !important;
    border: 2px solid var(--sage);
    box-shadow: 0 4px 12px rgba(96, 108, 56, 0.25);
    font-weight: 600;
}

.button.is-link.is-medium:hover {
    background-color: var(--sage-light) !important;
    border-color: var(--sage-light);
    box-shadow: 0 6px 20px rgba(96, 108, 56, 0.35);
    transform: translateY(-2px);
}

.back-to-games-button {
    background-color: var(--sage) !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(96, 108, 56, 0.3);
    border-radius: 12px;
    border: 2px solid var(--sage);
    font-family: var(--font-body);
    font-size: 0.9rem;
    min-width: 220px;
    font-weight: 600;
    line-height: 1.4;
}

.back-to-games-button:hover {
    background-color: var(--sage-light) !important;
    box-shadow: 0 6px 20px rgba(96, 108, 56, 0.4);
    transform: translateY(-2px);
}

/* ─── Press Kit Button ────────────────────────────────────── */
.presskit-button {
    background-color: var(--sage) !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(96, 108, 56, 0.3);
    border-radius: 12px;
    border: 2px solid var(--sage);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    min-width: 220px;
    padding: 0.9em 1.8em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    line-height: 1.4;
    transition: all 0.2s ease;
}

.presskit-button:hover {
    box-shadow: 0 6px 20px rgba(96, 108, 56, 0.4);
    transform: translateY(-2px);
    background-color: var(--sage-light) !important;
}

/* ─── Game Cover ──────────────────────────────────────────── */
.game-cover {
    position: relative;
    aspect-ratio: 92 / 43;
    overflow: hidden;
    border-radius: 16px;
    background-color: var(--whipped);
    border: 2px solid var(--border-warm);
    box-shadow: 0 8px 32px var(--shadow-medium);
}

.game-cover__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* ─── Game Short Description ──────────────────────────────── */
.game-short-desc {
    max-width: 720px;
    margin: 1.5rem auto 2.5rem;
    text-align: center;
    font-family: var(--font-body);
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--text-muted);
    font-style: italic;
    background: rgba(255, 252, 245, 0.9);
    padding: 1rem 1.5rem;
    border: 1px solid var(--border-warm);
    border-radius: 14px;
    box-shadow: 0 2px 12px var(--shadow-warm);
}

/* ─── Game Thumbnails ─────────────────────────────────────── */
.game-thumbnail-figure {
    aspect-ratio: 92 / 43;
    position: relative;
    margin: 0;
    background-color: var(--whipped);
    overflow: hidden;
    border-radius: 16px 16px 0 0;
}

.game-thumbnail-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
}

.card-hover:hover .game-thumbnail-img {
    transform: scale(1.04);
}

/* ─── Pagination ──────────────────────────────────────────── */
.pagination {
    font-family: var(--font-body);
}

.pagination-link,
.pagination-previous,
.pagination-next {
    border: 1px solid var(--border-warm);
    color: var(--text-muted);
    background-color: var(--warm-white);
    border-radius: 10px;
    transition: all 0.2s ease;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 2px 6px var(--shadow-warm);
    margin: 0 2px;
}

.pagination-link:hover,
.pagination-previous:not([disabled]):hover,
.pagination-next:not([disabled]):hover {
    border-color: var(--sage);
    color: var(--sage);
    background-color: var(--whipped);
    box-shadow: 0 4px 12px var(--shadow-medium);
    transform: translateY(-2px);
}

.pagination-link.is-current {
    background-color: var(--sage) !important;
    border-color: var(--sage) !important;
    color: #fff !important;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(96, 108, 56, 0.3);
}

/* ─── Bulma overrides ─────────────────────────────────────── */
.has-text-dark    { color: var(--text-dark) !important; }
.has-text-grey    { color: var(--text-muted) !important; }
.has-text-grey-dark { color: var(--text-dark) !important; }
.has-text-grey-light { color: var(--text-light) !important; }
.has-background-grey-lighter { background-color: var(--whipped) !important; }

strong, b, .content strong, .content b {
    color: var(--espresso) !important;
    font-weight: 700;
}

/* ─── Steam wishlist button replacement ───────────────────── */
.steam-wishlist-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--espresso);
    border: 2px solid var(--chalkboard);
    color: var(--cream);
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.7rem 1.4rem;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(44, 24, 16, 0.2);
    border-radius: 12px;
    transition: all 0.2s ease;
    line-height: 1.4;
}

.steam-wishlist-btn:hover {
    background-color: var(--coffee);
    color: var(--latte);
    box-shadow: 0 6px 20px rgba(44, 24, 16, 0.3);
    transform: translateY(-2px);
}

/* ─── Copyright Text ──────────────────────────────────────── */
.copyright-text {
    font-size: 0.9rem !important;
    color: var(--cream) !important;
    font-family: var(--font-body);
    opacity: 1;
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* Override .content p background inside footer so copyright is readable */
.footer .content p.copyright-text {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    color: var(--cream) !important;
    opacity: 1 !important;
    font-weight: 600 !important;
}

/* ─── Content Header ──────────────────────────────────────── */
.content-header {
    text-align: center;
}

.content-header .title {
    margin-bottom: 0.5rem;
}

.content-header .subtitle {
    margin-top: 0.75rem;
}

/* ─── Section dividers / borders ──────────────────────────── */
.has-border-top {
    border-top: 1px solid var(--border-warm);
}

/* Menu-style section banner */
.section-banner {
    background: var(--espresso);
    color: var(--cream);
    padding: 2.5rem 1rem;
    text-align: center;
    border-radius: 16px;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px var(--shadow-medium);
    position: relative;
    overflow: hidden;
}

.section-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 10% 20%, rgba(212, 163, 115, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(96, 108, 56, 0.08) 0%, transparent 40%);
    pointer-events: none;
}

.section-banner .title {
    color: var(--cream);
    font-size: 2rem;
    position: relative;
    z-index: 1;
}

.section-banner .subtitle {
    color: var(--latte);
    position: relative;
    z-index: 1;
}

/* Decorative steam wisps for accent */
.steam-accent {
    position: relative;
}

.steam-accent::after {
    content: '~';
    font-family: var(--font-script);
    font-size: 2rem;
    color: var(--latte);
    opacity: 0.5;
    position: absolute;
    top: -0.5rem;
    right: -1.5rem;
}

/* ─── Decorative coffee bean pattern (CSS-only) ───────────── */
.coffee-pattern {
    position: relative;
}

.coffee-pattern::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cellipse cx='20' cy='20' rx='8' ry='5' fill='%233E2723' transform='rotate(45 20 20)'/%3E%3Cellipse cx='20' cy='20' rx='2.5' ry='5' fill='%23F5F0E6' transform='rotate(45 20 20)'/%3E%3C/svg%3E");
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
}

/* ─── No results / empty state styling ────────────────────── */
#noResults .title.is-4 {
    color: var(--text-light);
}

#noResults .icon {
    color: var(--latte);
}

/* ─── Utility / Misc ──────────────────────────────────────── */
@media screen and (max-width: 768px) {
    body { font-size: 1rem; }
    .title.is-1 { font-size: 1.8rem; }
    .section-banner .title { font-size: 1.5rem; }
    .game-cover { aspect-ratio: 92 / 43; border-width: 2px; }
    .main-content { padding-bottom: 2rem; }
    .navbar-brand { font-size: 1.1rem; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeInUp 0.6s ease both;
}

/* Smooth image loading */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

img[src=""] {
    opacity: 0;
}

/* ─── FormKit newsletter overrides ────────────────────────── */
.formkit-header {
    font-family: var(--font-heading) !important;
    font-size: 27px !important;
    text-align: center !important;
    line-height: 1.3 !important;
    color: var(--espresso) !important;
}

.formkit-header h2 {
    font-family: var(--font-heading) !important;
    font-size: 27px !important;
    text-align: center !important;
    overflow-wrap: break-word !important;
    word-wrap: break-word !important;
    hyphens: auto !important;
    color: var(--espresso) !important;
}

/* ═════════════════════════════════════════════════════════════
   CAFE MANAGEMENT THEME — Signature Identity Layer
   Chalkboards, sticky notes, order tickets, inventory flair.
   ═════════════════════════════════════════════════════════════ */

/* ─── 1. CAFE DASHBOARD PANELS ────────────────────────────── */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.chalkboard-panel {
    background: var(--chalkboard);
    border: 3px solid var(--coffee-light);
    border-radius: 8px;
    box-shadow:
        inset 0 0 40px rgba(0,0,0,0.4),
        0 8px 24px var(--shadow-medium);
    position: relative;
    color: var(--cream);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.chalkboard-panel:hover {
    box-shadow:
        inset 0 0 40px rgba(0,0,0,0.4),
        0 12px 32px var(--shadow-medium);
}

/* Chalk texture overlay */
.chalkboard-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.08;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.5'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

.panel-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-bottom: 2px dashed rgba(212, 163, 115, 0.3);
    position: relative;
    z-index: 1;
    cursor: grab;
}

.panel-header:active {
    cursor: grabbing;
}

.panel-handle {
    display: flex;
    gap: 3px;
    flex-shrink: 0;
}

.panel-handle::before,
.panel-handle::after {
    content: '';
    width: 4px;
    height: 4px;
    background: rgba(212, 163, 115, 0.5);
    border-radius: 50%;
}

.panel-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--cream);
    letter-spacing: 0.03em;
    flex: 1;
}

.panel-body {
    padding: 1rem;
    position: relative;
    z-index: 1;
}

/* Chalk-style text inside panels */
.chalkboard-panel .tag {
    background: transparent;
    border: 1px solid rgba(212, 163, 115, 0.4);
    color: var(--latte);
    font-family: var(--font-script);
    font-size: 1rem;
    border-radius: 4px !important;
    padding: 0.25em 0.6em;
}

.chalkboard-panel .tag:hover {
    background: rgba(212, 163, 115, 0.15);
    border-color: var(--latte);
    color: var(--cream);
}

/* ─── 2. INVENTORY FLAIR ──────────────────────────────────── */
.stock-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-family: var(--font-script);
    font-size: 0.9rem;
    color: var(--latte);
    margin-left: 0.5rem;
    vertical-align: middle;
}

.stock-indicator::before {
    content: '\2615'; /* coffee cup */
    font-size: 0.85rem;
}

.stock-bar {
    display: inline-flex;
    gap: 2px;
    align-items: flex-end;
    height: 12px;
}

.stock-bar__block {
    width: 4px;
    background: var(--sage);
    border-radius: 1px;
    opacity: 0.7;
}

.stock-bar__block:nth-child(1) { height: 40%; }
.stock-bar__block:nth-child(2) { height: 60%; }
.stock-bar__block:nth-child(3) { height: 80%; }
.stock-bar__block:nth-child(4) { height: 100%; }

.stock-low .stock-bar__block { background: var(--accent); opacity: 0.5; }
.stock-empty .stock-bar__block { background: var(--text-light); opacity: 0.3; }

/* Pastry tray icon */
.pastry-tray::before {
    content: '\1F370'; /* shortcake */
    font-size: 0.9rem;
    margin-right: 0.25rem;
}

.bean-sack::before {
    content: '\1F4E6'; /* package */
    font-size: 0.85rem;
    margin-right: 0.25rem;
}

/* ─── 3. STICKY NOTE HIGHLIGHTS ───────────────────────────── */
.sticky-note {
    position: relative;
    display: inline-block;
    padding: 1rem 1.25rem;
    background: #FFF9C4;
    color: var(--text-dark);
    font-family: var(--font-script);
    font-size: 1.15rem;
    line-height: 1.4;
    box-shadow: 2px 3px 8px rgba(0,0,0,0.15);
    transform: rotate(-2deg);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    max-width: 280px;
}

.sticky-note:hover {
    transform: rotate(0deg) scale(1.02);
    box-shadow: 3px 5px 12px rgba(0,0,0,0.2);
    z-index: 10;
}

/* Masking tape */
.sticky-note .tape {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%) rotate(-1deg);
    width: 50%;
    height: 18px;
    background: rgba(255,255,255,0.45);
    border: 1px solid rgba(255,255,255,0.3);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    pointer-events: none;
}

.sticky-note--pink {
    background: #F8BBD0;
    transform: rotate(1.5deg);
}

.sticky-note--green {
    background: #C8E6C9;
    transform: rotate(-1.5deg);
}

.sticky-note--blue {
    background: #BBDEFB;
    transform: rotate(2deg);
}

.sticky-note--pink:hover,
.sticky-note--green:hover,
.sticky-note--blue:hover {
    transform: rotate(0deg) scale(1.02);
}

/* ─── 4. HOVER ANIMATIONS ─────────────────────────────────── */
.section-banner {
    transition: transform 0.3s ease;
    transform-style: preserve-3d;
}

.section-banner:hover {
    transform: perspective(800px) rotateX(1deg) rotateY(-0.5deg) translateY(-2px);
}

/* Chalk smudge effect on hover */
.chalk-smudge {
    position: relative;
}

.chalk-smudge::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: inherit;
    background: radial-gradient(ellipse at 30% 70%, rgba(212, 163, 115, 0.15) 0%, transparent 60%),
                radial-gradient(ellipse at 70% 30%, rgba(255,255,255,0.08) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: -1;
}

.chalk-smudge:hover::after {
    opacity: 1;
}

/* Card flip-through effect */
.card-hover {
    transform-style: preserve-3d;
}

.card-hover:hover {
    transform: translateY(-6px) rotateX(1deg);
}

/* ─── 5. ORDER TICKET BUTTONS ─────────────────────────────── */
.order-ticket {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--warm-white);
    color: var(--text-dark);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.7rem 1.4rem;
    text-decoration: none;
    border: none;
    position: relative;
    box-shadow: 0 2px 6px var(--shadow-warm);
    transition: all 0.2s ease;
    line-height: 1.4;
    /* Perforated edges via dashed pseudo borders */
}

.order-ticket::before,
.order-ticket::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 6px;
    background: radial-gradient(circle, transparent 40%, var(--beige) 41%);
    background-size: 10px 10px;
    background-position: bottom;
    background-repeat: repeat-x;
}

.order-ticket::before {
    top: -3px;
    transform: rotate(180deg);
}

.order-ticket::after {
    bottom: -3px;
}

.order-ticket:hover {
    background: var(--cream);
    box-shadow: 0 4px 12px var(--shadow-medium);
    transform: translateY(-2px);
}

/* Ticket variant with coffee stain accent */
.order-ticket--special {
    background: var(--latte);
    color: var(--espresso);
}

.order-ticket--special:hover {
    background: #E8C39E;
}

/* ─── 6. TYPOGRAPHY RHYTHM ────────────────────────────────── */
.header-rhythm {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem;
    justify-content: center;
}

.header-rhythm .title {
    margin: 0;
}

.header-rhythm .script-note {
    font-family: var(--font-script);
    font-size: 1.4rem;
    color: var(--latte);
    transform: rotate(-3deg);
    display: inline-block;
}

.script-note {
    font-family: var(--font-script);
    color: var(--coffee-light);
    font-size: 1.2rem;
}

.script-note--inline {
    display: inline;
    margin-left: 0.5rem;
}

/* Cafe wall specials style */
.specials-board {
    background: var(--chalkboard);
    border: 3px solid var(--coffee-light);
    border-radius: 8px;
    padding: 1.5rem;
    position: relative;
    box-shadow: inset 0 0 30px rgba(0,0,0,0.3);
}

.specials-board::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.06;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
    pointer-events: none;
    border-radius: inherit;
}

.specials-board .title {
    color: var(--cream);
    text-align: center;
    position: relative;
}

.specials-board .script-note {
    color: var(--latte);
    display: block;
    text-align: center;
    margin-top: 0.5rem;
}

/* ─── 7. LOGO INTEGRATION — Steam Swirl ───────────────────── */
.logo-wrap {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    position: relative;
}

.logo-cup {
    font-size: 1.6rem;
    line-height: 1;
    position: relative;
    z-index: 1;
}

.logo-steam {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 2px;
    pointer-events: none;
}

.logo-steam span {
    display: block;
    width: 3px;
    height: 10px;
    background: rgba(212, 163, 115, 0.5);
    border-radius: 50%;
    animation: steamRise 2.5s ease-in-out infinite;
}

.logo-steam span:nth-child(1) { animation-delay: 0s; height: 8px; }
.logo-steam span:nth-child(2) { animation-delay: 0.4s; height: 12px; }
.logo-steam span:nth-child(3) { animation-delay: 0.8s; height: 9px; }

@keyframes steamRise {
    0%   { transform: translateY(0) scaleX(1); opacity: 0.6; }
    50%  { transform: translateY(-6px) scaleX(1.3); opacity: 0.3; }
    100% { transform: translateY(-12px) scaleX(0.8); opacity: 0; }
}

/* ─── 8. BACKGROUND ACCENTS ───────────────────────────────── */
/* Coffee ring stains */
.coffee-stain {
    position: fixed;
    border-radius: 50%;
    border: 2px solid rgba(141, 110, 99, 0.06);
    pointer-events: none;
    z-index: 0;
}

.coffee-stain::before {
    content: '';
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    border: 1px solid rgba(141, 110, 99, 0.04);
}

.coffee-stain--1 {
    width: 180px;
    height: 180px;
    top: 15%;
    right: 5%;
}

.coffee-stain--2 {
    width: 120px;
    height: 120px;
    bottom: 20%;
    left: 3%;
}

.coffee-stain--3 {
    width: 90px;
    height: 90px;
    top: 60%;
    right: 12%;
}

/* Chalk dust in corners */
.chalk-dust {
    position: fixed;
    width: 200px;
    height: 200px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
}

.chalk-dust--tl {
    top: 0;
    left: 0;
    background: radial-gradient(circle at 0 0, rgba(212, 163, 115, 0.08) 0%, transparent 70%);
}

.chalk-dust--br {
    bottom: 0;
    right: 0;
    background: radial-gradient(circle at 100% 100%, rgba(96, 108, 56, 0.06) 0%, transparent 70%);
}

/* Subtle grain on main content */
.site-wrapper::after {
    content: '';
    position: fixed;
    inset: 0;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
}

/* ─── Draggable panels cursor states ──────────────────────── */
.panel-draggable {
    position: relative;
}

.panel-draggable.is-dragging {
    opacity: 0.9;
    z-index: 100;
    box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}

/* Mobile: disable drag, stack panels */
@media screen and (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .sticky-note {
        max-width: 100%;
        transform: rotate(-1deg);
    }
    .coffee-stain { display: none; }
    .section-banner:hover {
        transform: none;
    }
}


/* ═════════════════════════════════════════════════════════════
   MAGAZINE LAYOUT SYSTEM — Asymmetrical Menu-Board Design
   Floating toolbar, hero spotlight, offset grid, tilted cards.
   ═════════════════════════════════════════════════════════════ */

/* ─── 1. Floating Toolbar ─────────────────────────────────── */
.floating-toolbar-wrap {
    position: sticky;
    top: 56px;
    z-index: 100;
    padding: 0 1rem;
    margin-bottom: 1.5rem;
    pointer-events: none;
}

.floating-toolbar {
    pointer-events: auto;
    max-width: 1200px;
    margin: 0 auto;
    background: var(--espresso);
    border: 2px solid var(--latte);
    border-radius: 0 0 16px 16px;
    padding: 0.6rem 1.25rem;
    box-shadow: 0 12px 32px rgba(62, 39, 35, 0.25);
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.toolbar-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.toolbar-icon {
    font-size: 1.2rem;
    line-height: 1;
}

.toolbar-input {
    background: var(--chalkboard);
    border: 1px solid var(--coffee-light);
    border-radius: 50px;
    color: var(--cream);
    padding: 0.4rem 1rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    min-width: 180px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.toolbar-input::placeholder {
    color: var(--coffee-light);
}

.toolbar-input:focus {
    outline: none;
    border-color: var(--latte);
    box-shadow: 0 0 0 3px rgba(212, 163, 115, 0.2);
}

/* ─── 2. Horizontal Category Ticker ───────────────────────── */
.category-ticker {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex: 1;
    padding: 0.15rem 0;
}

.category-ticker::-webkit-scrollbar {
    display: none;
}

.ticker-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: transparent;
    border: 1px solid var(--coffee-light);
    color: var(--latte);
    font-family: var(--font-script);
    font-size: 0.95rem;
    padding: 0.25rem 0.85rem;
    border-radius: 50px;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    scroll-snap-align: start;
    transition: all 0.2s ease;
}

.ticker-pill:hover {
    background: var(--latte);
    color: var(--espresso);
    border-color: var(--latte);
    transform: translateY(-1px);
}

.ticker-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.3rem;
    height: 1.3rem;
    background: var(--chalkboard);
    color: var(--cream);
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 50%;
    padding: 0 0.3rem;
}

.ticker-pill:hover .ticker-count {
    background: var(--espresso);
}

/* ─── 3. Hero Spotlight ───────────────────────────────────── */
.hero-spotlight {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 1.25rem;
    max-width: 1200px;
    margin: 0 auto 3rem;
    padding: 0 1.5rem;
}

.spotlight-main {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
}

.spotlight-side {
    grid-column: 2 / 3;
}

/* ─── 4. Card Architecture Variants ───────────────────────── */
.card {
    overflow: hidden;
}

/* Reset Bulma card-image for our custom grid cards */
.card--hero,
.card--banner,
.card--compact,
.card--tilt-left,
.card--tilt-right {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card--hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 360px;
    border-radius: 20px;
    border: 2px solid var(--border-warm);
    box-shadow: 0 12px 40px var(--shadow-medium);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card--hero:hover {
    transform: translateY(-4px) rotate(0.3deg);
    box-shadow: 0 20px 56px var(--shadow-medium);
}

.card--compact {
    min-height: 180px;
    border-radius: 16px;
    border: 2px solid var(--border-warm);
    box-shadow: 0 6px 20px var(--shadow-warm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card--compact:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 32px var(--shadow-medium);
}

.card--banner {
    display: grid;
    grid-template-columns: 2fr 3fr;
    min-height: 200px;
    border-radius: 18px;
    border: 2px solid var(--border-warm);
    box-shadow: 0 8px 28px var(--shadow-warm);
    transition: transform 0.25s ease;
}

.card--banner:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 40px var(--shadow-medium);
}

.card--tilt-left {
    border-radius: 16px;
    border: 2px solid var(--border-warm);
    box-shadow: 0 6px 20px var(--shadow-warm);
    transform: rotate(-1.2deg);
    transition: transform 0.25s ease;
}

.card--tilt-left:hover {
    transform: rotate(0deg) translateY(-4px);
    box-shadow: 0 12px 32px var(--shadow-medium);
}

.card--tilt-right {
    border-radius: 16px;
    border: 2px solid var(--border-warm);
    box-shadow: 0 6px 20px var(--shadow-warm);
    transform: rotate(1.2deg);
    transition: transform 0.25s ease;
}

.card--tilt-right:hover {
    transform: rotate(0deg) translateY(-4px);
    box-shadow: 0 12px 32px var(--shadow-medium);
}

/* ─── Card Media ──────────────────────────────────────────── */
.card__media {
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.card__media img,
.card__media--hero img,
.card__media--compact img,
.card__media--banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.card:hover .card__media img {
    transform: scale(1.04);
}

.card__media--hero {
    min-height: 360px;
    border-radius: 18px 0 0 18px;
}

.card__media--compact {
    height: 120px;
    border-radius: 14px 14px 0 0;
}

.card__media--banner {
    min-height: 200px;
    border-radius: 16px 0 0 16px;
}

.card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--beige);
    color: var(--text-light);
}

/* ─── Card Body ───────────────────────────────────────────── */
.card__body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card__body--hero {
    padding: 1.5rem;
    justify-content: center;
    background: var(--warm-white);
    border-radius: 0 18px 18px 0;
}

.card__body--compact {
    padding: 0.75rem 1rem;
    flex: 1;
}

.card__body--banner {
    padding: 1.25rem;
    justify-content: center;
    background: var(--warm-white);
    border-radius: 0 16px 16px 0;
}

/* ─── Card Badge ──────────────────────────────────────────── */
.card__badge {
    display: inline-block;
    align-self: flex-start;
    background: var(--latte);
    color: var(--espresso);
    font-family: var(--font-script);
    font-size: 1rem;
    padding: 0.25em 0.8em;
    border-radius: 50px;
    margin-bottom: 0.75rem;
}

/* ─── Card Title ──────────────────────────────────────────── */
.card__title {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--espresso);
    line-height: 1.25;
    margin-bottom: 0.5rem;
}

.card--hero .card__title {
    font-size: 1.6rem;
}

.card__title--compact {
    font-size: 1rem;
    margin-bottom: 0.35rem;
}

.card__title--small {
    font-size: 1.05rem;
}

/* ─── Card Description ────────────────────────────────────── */
.card__desc {
    font-family: var(--font-body);
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ─── Card Tags ───────────────────────────────────────────── */
.card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: auto;
}

.card__tags--compact {
    gap: 0.3rem;
}

.card__tag {
    display: inline-block;
    background: var(--beige);
    color: var(--coffee);
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.2em 0.6em;
    border-radius: 20px;
    border: 1px solid var(--border-warm);
}

/* ─── 5. Menu Divider ─────────────────────────────────────── */
.menu-grid-section {
    max-width: 1200px;
    margin: 0 auto 3rem;
    padding: 0 1.5rem;
}

.menu-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 0 0.5rem;
}

.menu-divider__line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--latte), transparent);
}

.menu-divider__text {
    font-family: var(--font-script);
    font-size: 1.4rem;
    color: var(--coffee-light);
    white-space: nowrap;
}

/* ─── 6. Magazine Grid ────────────────────────────────────── */
.mag-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.mag-item {
    min-width: 0;
}

.mag-item--wide {
    grid-column: span 3;
}

.mag-item--offset-left {
    grid-column: span 1;
    /* subtle margin offset */
    margin-top: 0.5rem;
}

.mag-item--offset-right {
    grid-column: span 1;
    margin-top: -0.5rem;
}

.mag-item .card {
    height: 100%;
}

/* ─── 7. Card Link Wrapper ────────────────────────────────── */
.card-link {
    text-decoration: none;
    display: block;
    height: 100%;
    color: inherit;
}

.card-link:hover {
    color: inherit;
}

/* ─── 8. Responsive Magazine Layout ───────────────────────── */
@media screen and (max-width: 900px) {
    .hero-spotlight {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
    }

    .spotlight-main {
        grid-column: 1 / 3;
        grid-row: 1 / 2;
    }

    .spotlight-side {
        grid-column: auto;
        grid-row: auto;
    }

    .card--hero {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
    }

    .card__media--hero {
        min-height: 220px;
        border-radius: 18px 18px 0 0;
    }

    .card__body--hero {
        border-radius: 0 0 18px 18px;
    }

    .mag-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .mag-item--wide {
        grid-column: span 2;
    }

    .floating-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .category-ticker {
        padding-bottom: 0.25rem;
    }
}

@media screen and (max-width: 600px) {
    .hero-spotlight {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .spotlight-main,
    .spotlight-side {
        grid-column: 1 / 2;
        grid-row: auto;
    }

    .card--banner {
        grid-template-columns: 1fr;
    }

    .card__media--banner {
        min-height: 160px;
        border-radius: 16px 16px 0 0;
    }

    .card__body--banner {
        border-radius: 0 0 16px 16px;
    }

    .mag-grid {
        grid-template-columns: 1fr;
    }

    .mag-item--wide,
    .mag-item--offset-left,
    .mag-item--offset-right {
        grid-column: span 1;
        margin-top: 0;
    }

    .card--tilt-left,
    .card--tilt-right {
        transform: none;
    }

    .menu-divider__text {
        font-size: 1.1rem;
    }
}

/* ─── Hide old Bulma grid classes when magazine layout is active ─── */
#gamesGrid .columns.is-multiline {
    display: contents;
}


/* ═════════════════════════════════════════════════════════════
   DETAIL PAGE LAYOUT SYSTEM
   Full-width spotlight hero, offset two-column content, side menu.
   ═════════════════════════════════════════════════════════════ */

/* ─── Detail Spotlight ────────────────────────────────────── */
.detail-spotlight {
    max-width: 1200px;
    margin: 0 auto 2rem;
    padding: 0 1.5rem;
}

.detail-spotlight__inner {
    display: grid;
    grid-template-columns: 3fr 2fr;
    background: var(--warm-white);
    border: 2px solid var(--border-warm);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 12px 48px var(--shadow-medium);
    transform: rotate(-0.3deg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.detail-spotlight__inner:hover {
    transform: rotate(0deg);
    box-shadow: 0 18px 56px var(--shadow-medium);
}

.detail-spotlight__media {
    position: relative;
    min-height: 320px;
    overflow: hidden;
}

.detail-spotlight__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.detail-spotlight__body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--warm-white);
}

.detail-spotlight__badge {
    display: inline-block;
    align-self: flex-start;
    background: var(--latte);
    color: var(--espresso);
    font-family: var(--font-script);
    font-size: 1.1rem;
    padding: 0.25em 1em;
    border-radius: 50px;
    margin-bottom: 1rem;
}

.detail-spotlight__title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--espresso);
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

.detail-spotlight__desc {
    font-family: var(--font-body);
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.detail-spotlight__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.detail-spotlight__tag {
    display: inline-block;
    background: var(--beige);
    color: var(--coffee);
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.3em 0.75em;
    border-radius: 20px;
    border: 1px solid var(--border-warm);
    text-decoration: none;
    transition: all 0.2s;
}

.detail-spotlight__tag:hover {
    background: var(--latte);
    color: var(--espresso);
    border-color: var(--latte);
}

/* ─── Detail Content Layout ───────────────────────────────── */
.detail-content {
    max-width: 1200px;
    margin: 0 auto 3rem;
    padding: 0 1.5rem;
}

.detail-content__inner {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: start;
}

.detail-content__panel {
    background: var(--warm-white);
    border: 2px solid var(--border-warm);
    border-radius: 18px;
    padding: 2rem;
    box-shadow: 0 6px 24px var(--shadow-warm);
}

.detail-content__panel--main {
    transform: rotate(0.3deg);
}

.detail-content__panel--side {
    transform: rotate(-0.5deg);
    position: sticky;
    top: 140px;
}

.detail-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px dashed var(--border-warm);
}

/* ─── Side Menu (sticky sidebar) ──────────────────────────── */
.side-menu {
    padding: 0.5rem;
}

.side-menu__title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--espresso);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px dashed var(--latte);
}

.side-menu__item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border-light);
}

.side-menu__label {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
}

.side-menu__value {
    font-family: var(--font-script);
    font-size: 1rem;
    color: var(--coffee);
}

.side-menu__actions {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* ─── Responsive Detail Pages ─────────────────────────────── */
@media screen and (max-width: 900px) {
    .detail-spotlight__inner {
        grid-template-columns: 1fr;
    }

    .detail-spotlight__media {
        min-height: 220px;
        border-radius: 24px 24px 0 0;
    }

    .detail-content__inner {
        grid-template-columns: 1fr;
    }

    .detail-content__panel--side {
        position: static;
        transform: none;
    }

    .detail-content__panel--main {
        transform: none;
    }

    .detail-ctas {
        justify-content: center;
    }
}

@media screen and (max-width: 600px) {
    .detail-spotlight__title {
        font-size: 1.5rem;
    }

    .detail-spotlight__body {
        padding: 1.25rem;
    }

    .detail-content__panel {
        padding: 1.25rem;
    }
}
