/* =============================================================
   Buzz My Buzz — Claude Design System
   Editorial / "revue de liens" style
   Inter for UI, Instrument Serif for display
============================================================= */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --bmb-paper:    #F5EFE6;
    --bmb-paper-2:  #EFE7D9;
    --bmb-ink:      #1F1A14;
    --bmb-ink-2:    #4A4236;
    --bmb-ink-3:    #8C8273;
    --bmb-rule:     rgba(31, 26, 20, 0.14);
    --bmb-accent:   #C9573A;
    --bmb-cinema:   #C9573A;
    --bmb-musique:  #7C4A8D;
    --bmb-autres:   #3A6B5C;
    --bmb-display:  'Instrument Serif', Georgia, serif;
    --bmb-ui:       'Inter', -apple-system, system-ui, sans-serif;
}


.bmb-cta-pill {

    color: #fff !important;
    font-size: 18px !important;
}

/* ----- base reset for the .bmb-claude scope ------------------ */
body.bmb-claude {
    margin: 0;
    background: var(--bmb-paper);
    color: var(--bmb-ink);
    font-family: var(--bmb-ui);
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.bmb-claude *,
.bmb-claude *::before,
.bmb-claude *::after { box-sizing: border-box; }
.bmb-claude a { color: var(--bmb-accent); text-decoration: none; }
.bmb-claude button { font-family: inherit; }
.bmb-claude h1, .bmb-claude h2, .bmb-claude h3 { margin: 0; font-weight: 400; }

/* page wrapper takes the height */
.bmb-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.bmb-main { flex: 1; }

/* ============== HEADER ====================================== */
.bmb-header {
    background: var(--bmb-paper);
    border-bottom: 0.5px solid var(--bmb-rule);
    position: sticky;
    top: 0;
    z-index: 50;
}

.bmb-masthead {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 10px 36px 6px;
    font-size: 10px;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--bmb-ink-3);
    border-bottom: 0.5px solid var(--bmb-rule);
}
.bmb-masthead a,
.bmb-masthead button {
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    color: var(--bmb-ink-3);
    font: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
}
.bmb-masthead .bmb-lang-active { color: var(--bmb-ink); font-weight: 600; }

.bmb-main-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 36px;
    gap: 20px;
}

.bmb-logo {
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
    font-family: var(--bmb-display);
    font-size: 26px;
    letter-spacing: -0.3px;
    color: var(--bmb-ink);
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    line-height: 1;
}
.bmb-logo .bmb-star { color: var(--bmb-accent); font-size: 18px; }
.bmb-logo em { font-style: italic; }
.bmb-logo strong { font-weight: 500; }

.bmb-nav {
    display: flex;
    gap: 28px;
}
.bmb-nav a {
    color: var(--bmb-ink-2);
    font-family: var(--bmb-ui);
    font-size: 13px;
    padding: 4px 0;
    border-bottom: 1.5px solid transparent;
    letter-spacing: 0.1px;
    text-decoration: none;
    transition: color 0.15s ease;
}
.bmb-nav a:hover { color: var(--bmb-ink); }
.bmb-nav a.bmb-active {
    color: var(--bmb-ink);
    font-weight: 500;
    border-bottom-color: var(--bmb-accent);
}

.bmb-header-cta {
    display: flex;
    align-items: center;
    gap: 14px;
}
.bmb-btn-primary {
    background: var(--bmb-ink);
    color: var(--bmb-paper);
    border: 0;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 12px;
    cursor: pointer;
    font-family: var(--bmb-ui);
    letter-spacing: 0.2px;
    text-decoration: none;
    display: inline-block;
    transition: opacity 0.15s ease;
}
.bmb-btn-primary:hover { opacity: 0.85; color: var(--bmb-paper); }

.bmb-user-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--bmb-ink);
    font-family: var(--bmb-ui);
    font-size: 13px;
    text-decoration: none;
}
.bmb-user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: var(--bmb-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: var(--bmb-display);
    font-style: italic;
    font-size: 14px;
    overflow: hidden;
}
.bmb-user-avatar img { width: 100%; height: 100%; object-fit: cover; }

.bmb-btn-ghost {
    background: transparent;
    border: 0.5px solid var(--bmb-rule);
    color: var(--bmb-ink-2);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 11px;
    cursor: pointer;
    font-family: var(--bmb-ui);
    text-decoration: none;
    display: inline-block;
}
.bmb-btn-ghost:hover { color: var(--bmb-ink); }

/* ============== HERO ======================================== */
.bmb-hero {
    border-bottom: 0.5px solid var(--bmb-rule);
    padding: 50px 36px 36px;
}
.bmb-eyebrow {
    font-size: 10px;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--bmb-ink-3);
    margin-bottom: 14px;
}
.bmb-hero h1 {
    font-family: var(--bmb-display);
    font-size: 88px;
    line-height: 0.94;
    letter-spacing: -2.5px;
    margin: 0 0 20px;
    max-width: 1000px;
    font-weight: 400;
}
.bmb-hero h1 em { color: var(--bmb-accent); font-style: italic; }
.bmb-hero-bottom {
    display: flex;
    align-items: baseline;
    gap: 32px;
    flex-wrap: wrap;
}
.bmb-hero-bottom p {
    font-size: 16px;
    line-height: 1.55;
    color: var(--bmb-ink-2);
    max-width: 520px;
    margin: 0;
}
.bmb-hero-bottom .bmb-spacer { flex: 1; }

.bmb-cta-pill {
    background: var(--bmb-accent);
    color: #fff;
    border: 0;
    padding: 14px 28px;
    border-radius: 999px;
    font-size: 14px;
    cursor: pointer;
    font-family: var(--bmb-ui);
    letter-spacing: 0.3px;
    text-decoration: none;
    display: inline-block;
    transition: filter 0.15s ease;
}
.bmb-cta-pill:hover { filter: brightness(0.95); color: #fff; }

/* ============== SECTIONS ==================================== */
.bmb-section {
    padding: 40px 36px;
    border-bottom: 0.5px solid var(--bmb-rule);
}
.bmb-section.bmb-no-rule { border-bottom: 0; }

.bmb-section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}
.bmb-section-header h2 {
    font-family: var(--bmb-display);
    font-size: 38px;
    letter-spacing: -0.6px;
    margin: 0;
    font-weight: 400;
}
.bmb-section-header h2 em { color: var(--bmb-accent); font-style: italic; }
.bmb-section-header .bmb-spacer { flex: 1; }

/* ============== CAT FILTER PILLS ============================ */
.bmb-cat-filter {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.bmb-cat-pill {
    padding: 7px 14px;
    border: 0.5px solid var(--bmb-rule);
    background: transparent;
    color: var(--bmb-ink-2);
    border-radius: 999px;
    font-size: 12px;
    cursor: pointer;
    font-family: var(--bmb-ui);
    text-decoration: none;
    display: inline-block;
    transition: all 0.15s ease;
}
.bmb-cat-pill:hover { color: var(--bmb-ink); border-color: var(--bmb-ink-3); }
.bmb-cat-pill.bmb-active {
    border-color: var(--bmb-ink);
    background: var(--bmb-ink);
    color: var(--bmb-paper);
}
.bmb-cat-pill.bmb-active:hover { color: var(--bmb-paper); }

/* ============== FEATURED CARD =============================== */
.bmb-featured {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 0;
    background: var(--bmb-ink);
    color: #fff;
    border-radius: 4px;
    overflow: hidden;
    min-height: 380px;
    position: relative;
    background-size: cover;
    background-position: center;
    text-decoration: none;
}
.bmb-featured::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(135deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.15) 60%, rgba(0,0,0,0.5) 100%),
        repeating-linear-gradient(135deg, rgba(255,255,255,0.04) 0 8px, transparent 8px 24px);
}
.bmb-featured-text {
    padding: 36px 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    color: #fff;
}
.bmb-featured-domain {
    font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
    font-size: 10px;
    opacity: 0.85;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}
.bmb-featured-text h3 {
    font-family: var(--bmb-display);
    font-size: 44px;
    line-height: 1.02;
    letter-spacing: -0.6px;
    margin: 60px 0 14px;
    font-weight: 400;
    color: #fff;
}
.bmb-featured-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 13px;
    opacity: 0.9;
    flex-wrap: wrap;
}
.bmb-featured-meta a { color: #fff; font-style: italic; }
.bmb-featured-cta {
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 20px;
    justify-content: flex-end;
}
.bmb-featured-link {
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 999px;
    padding: 10px 18px;
    font-size: 12px;
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* ============== CARD GRID =================================== */
.bmb-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.bmb-card {
    background: var(--bmb-paper-2);
    border-radius: 4px;
    overflow: hidden;
    border: 0.5px solid var(--bmb-rule);
    display: flex;
    flex-direction: column;
    color: var(--bmb-ink);
    position: relative;          /* anchor for stretched-link ::after */
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.bmb-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(31,26,20,0.07);
}
.bmb-card-image {
    height: 160px;
    background-size: cover;
    background-position: center;
    background-color: var(--bmb-ink-2);
    position: relative;
    overflow: hidden;
}
.bmb-card-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(135deg, rgba(255,255,255,0.05) 0 6px, transparent 6px 18px);
}
.bmb-card-domain {
    position: absolute;
    top: 10px;
    left: 12px;
    font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
    font-size: 9px;
    color: rgba(255,255,255,0.85);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background: rgba(0,0,0,0.35);
    padding: 3px 7px;
    border-radius: 3px;
    backdrop-filter: blur(4px);
}
.bmb-card-body {
    padding: 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.bmb-card-cat {
    font-size: 10px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    margin-bottom: 6px;
    font-weight: 600;
}
.bmb-cat-cinema  { color: var(--bmb-cinema); }
.bmb-cat-musique { color: var(--bmb-musique); }
.bmb-cat-autres  { color: var(--bmb-autres); }
/* stretched-link: title <a> covers the whole card */
.bmb-card-title {
    font-family: var(--bmb-display);
    font-size: 17px;
    line-height: 1.2;
    letter-spacing: -0.1px;
    margin-bottom: 10px;
    flex: 1;
    color: var(--bmb-ink);
    text-decoration: none;
    display: block;
}
.bmb-card-title::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
}
.bmb-card:hover .bmb-card-title { color: var(--bmb-accent); }
.bmb-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--bmb-ink-3);
    position: relative;
    z-index: 2;          /* punch through the stretched-link layer */
}
.bmb-card-meta-right { margin-left: auto; font-size: 11px; }

/* user chip inside card — clickable above the stretched link */
.bmb-card-user {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--bmb-ink-2);
    text-decoration: none;
    font-style: italic;
    line-height: 1;
}
.bmb-card-user:hover { color: var(--bmb-accent); }
.bmb-card-user-av {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--bmb-accent);
    color: #fff;
    font-family: var(--bmb-display);
    font-style: italic;
    font-size: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    line-height: 1;
}
.bmb-card-user-av img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ============== BUZZERS STRIP =============================== */
.bmb-buzzers-section { padding: 0 36px 50px; }
.bmb-buzzers {
    background: var(--bmb-paper-2);
    border-radius: 4px;
    padding: 36px 30px;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: center;
}
.bmb-buzzers-title {
    font-family: var(--bmb-display);
    font-size: 32px;
    line-height: 1.05;
    letter-spacing: -0.5px;
    font-weight: 400;
}
.bmb-buzzers-title em { color: var(--bmb-accent); font-style: italic; }
.bmb-buzzers-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.bmb-buzzer {
    background: var(--bmb-paper);
    border: 0.5px solid var(--bmb-rule);
    border-radius: 4px;
    padding: 16px;
    cursor: pointer;
    text-decoration: none;
    color: var(--bmb-ink);
    display: block;
    transition: transform 0.15s ease;
}
.bmb-buzzer:hover { transform: translateY(-1px); color: var(--bmb-ink); }
.bmb-buzzer-avatar {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: var(--bmb-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: var(--bmb-display);
    font-style: italic;
    font-size: 17px;
    margin-bottom: 8px;
    overflow: hidden;
}
.bmb-buzzer-avatar img { width: 100%; height: 100%; object-fit: cover; }
.bmb-buzzer-name {
    font-family: var(--bmb-display);
    font-size: 17px;
    margin-bottom: 2px;
}
.bmb-buzzer-info { font-size: 11px; color: var(--bmb-ink-3); }

/* ============== POST FORM (Buzz it!) ======================== */
.bmb-post-section {
    padding: 40px 36px;
    border-bottom: 0.5px solid var(--bmb-rule);
    background: var(--bmb-paper-2);
}
.bmb-post-card {
    max-width: 720px;
    margin: 0 auto;
    background: var(--bmb-paper);
    border: 0.5px solid var(--bmb-rule);
    border-radius: 4px;
    padding: 32px;
}
.bmb-post-card h2 {
    font-family: var(--bmb-display);
    font-size: 44px;
    letter-spacing: -0.8px;
    margin: 0 0 24px;
    font-weight: 400;
}
.bmb-post-card h2 em { color: var(--bmb-accent); font-style: italic; }
.bmb-field { margin-bottom: 18px; }
.bmb-field-label {
    font-size: 10px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--bmb-ink-3);
    margin-bottom: 8px;
}
.bmb-input,
.bmb-claude select,
.bmb-claude textarea {
    width: 100%;
    padding: 12px 14px;
    font-family: var(--bmb-ui);
    font-size: 14px;
    border: 0.5px solid var(--bmb-rule);
    border-radius: 4px;
    background: var(--bmb-paper);
    color: var(--bmb-ink);
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.15s ease;
}
.bmb-input:focus,
.bmb-claude select:focus,
.bmb-claude textarea:focus { border-color: var(--bmb-ink); }

.bmb-row { display: flex; gap: 8px; }
.bmb-row .bmb-input { flex: 1; }
.bmb-btn-fetch {
    background: var(--bmb-ink);
    color: var(--bmb-paper);
    border: 0;
    padding: 0 20px;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    font-family: var(--bmb-ui);
    white-space: nowrap;
}
.bmb-btn-fetch:disabled { opacity: 0.4; cursor: default; }

.bmb-post-preview {
    background: var(--bmb-paper-2);
    border: 0.5px solid var(--bmb-rule);
    border-radius: 4px;
    padding: 14px;
    margin: 16px 0 22px;
}
.bmb-post-preview img {
    max-width: 100%;
    max-height: 160px;
    display: block;
    margin: 0 auto 10px;
    border-radius: 3px;
}
.bmb-post-cat-row { display: flex; gap: 6px; flex-wrap: wrap; }
.bmb-cat-choice {
    padding: 10px 16px;
    border: 1.5px solid var(--bmb-rule);
    background: transparent;
    color: var(--bmb-ink-2);
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    font-family: var(--bmb-ui);
}
.bmb-cat-choice.bmb-cat-cinema-active   { border-color: var(--bmb-cinema);  background: var(--bmb-cinema);  color: #fff; }
.bmb-cat-choice.bmb-cat-musique-active  { border-color: var(--bmb-musique); background: var(--bmb-musique); color: #fff; }
.bmb-cat-choice.bmb-cat-autres-active   { border-color: var(--bmb-autres);  background: var(--bmb-autres);  color: #fff; }

.bmb-btn-buzz {
    background: var(--bmb-accent);
    color: #fff;
    border: 0;
    padding: 16px 32px;
    border-radius: 999px;
    font-size: 15px;
    cursor: pointer;
    font-family: var(--bmb-ui);
    letter-spacing: 0.3px;
    margin-top: 8px;
    width: 100%;
}
.bmb-btn-buzz:hover { filter: brightness(0.95); }

.bmb-post-login-prompt {
    text-align: center;
    color: var(--bmb-ink-2);
    font-size: 14px;
    line-height: 1.6;
}
.bmb-post-login-prompt a { color: var(--bmb-accent); font-weight: 500; }

/* ============== FOOTER ====================================== */
.bmb-footer {
    border-top: 0.5px solid var(--bmb-rule);
    padding: 36px 36px 20px;
    margin-top: 60px;
    background: var(--bmb-paper-2);
}
.bmb-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 32px;
}
.bmb-footer-brand {
    font-family: var(--bmb-display);
    font-size: 22px;
    margin-bottom: 8px;
    color: var(--bmb-ink);
}
.bmb-footer-brand .bmb-star { color: var(--bmb-accent); }
.bmb-footer-brand em { font-style: italic; }
.bmb-footer-brand strong { font-weight: 500; }
.bmb-footer-tag {
    font-size: 13px;
    line-height: 1.5;
    color: var(--bmb-ink-2);
    max-width: 280px;
}
.bmb-footer-col-title {
    font-size: 10px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--bmb-ink-3);
    margin-bottom: 12px;
}
.bmb-footer-col-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.bmb-footer-col-list a {
    font-size: 13px;
    color: var(--bmb-ink-2);
    text-decoration: none;
}
.bmb-footer-col-list a:hover { color: var(--bmb-ink); }
.bmb-footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 18px;
    border-top: 0.5px solid var(--bmb-rule);
    font-size: 11px;
    color: var(--bmb-ink-3);
    letter-spacing: 0.4px;
    flex-wrap: wrap;
    gap: 12px;
}
.bmb-footer-bottom .bmb-social { display: flex; gap: 14px; }
.bmb-footer-bottom a {
    color: var(--bmb-ink-3);
    text-decoration: none;
}
.bmb-footer-bottom a:hover { color: var(--bmb-ink); }

/* ============== EMPTY STATE ================================= */
.bmb-empty {
    padding: 60px 20px;
    text-align: center;
    color: var(--bmb-ink-3);
    font-size: 14px;
    border: 1px dashed var(--bmb-rule);
    border-radius: 4px;
}

/* ============== RESPONSIVE ================================== */
@media (max-width: 1100px) {
    .bmb-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
    .bmb-hero h1 { font-size: 56px; letter-spacing: -1.2px; }
    .bmb-hero-bottom { flex-direction: column; align-items: flex-start; gap: 18px; }
    .bmb-buzzers { grid-template-columns: 1fr; }
    .bmb-buzzers-list { grid-template-columns: repeat(2, 1fr); }
    .bmb-footer-grid { grid-template-columns: 1fr 1fr; }
    .bmb-featured { grid-template-columns: 1fr; min-height: auto; }
    .bmb-featured-text h3 { font-size: 32px; margin-top: 30px; }
    .bmb-featured-cta { padding-top: 0; }
    .bmb-section { padding: 30px 20px; }
    .bmb-buzzers-section { padding: 0 20px 30px; }
    .bmb-post-section { padding: 30px 20px; }
    .bmb-hero { padding: 36px 20px 28px; }
    .bmb-main-bar { padding: 14px 20px; flex-wrap: wrap; }
    .bmb-masthead { padding: 8px 20px 6px; flex-wrap: wrap; gap: 6px; }
    .bmb-masthead .bmb-mh-center { display: none; }
    .bmb-nav { gap: 16px; order: 3; width: 100%; padding-top: 8px; border-top: 0.5px solid var(--bmb-rule); margin-top: 6px; }
    .bmb-footer { padding: 30px 20px 16px; }
}
@media (max-width: 600px) {
    .bmb-hero h1 { font-size: 42px; }
    .bmb-section-header h2 { font-size: 28px; }
    .bmb-grid { grid-template-columns: 1fr; }
    .bmb-buzzers-list { grid-template-columns: 1fr; }
    .bmb-footer-grid { grid-template-columns: 1fr; }
    .bmb-post-card { padding: 22px; }
    .bmb-post-card h2 { font-size: 32px; }
}
