/* ===== Reset & base ===== */
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;min-height:100vh;
  font-family:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  color:#2a1a0a;
  background:#1a0f08;
  display:flex;flex-direction:column;align-items:center;
  padding:1.2rem 0.8rem 2rem;
}
:focus-visible{outline:3px solid #f5c542;outline-offset:2px}

/* ===== Wood outer frame ===== */
.frame{
  width:min(1100px,100%);
  background:
    linear-gradient(90deg,rgba(0,0,0,.25),transparent 8%,transparent 92%,rgba(0,0,0,.25)),
    linear-gradient(#5c3318,#3d1f0c 40%,#2a1408);
  background-color:#3d1f0c;
  border-radius:10px;
  padding:18px 16px 14px;
  box-shadow:
    0 0 0 3px #1a0a04,
    0 12px 40px rgba(0,0,0,.55),
    inset 0 1px 0 rgba(255,200,120,.15);
  position:relative;
}
.frame::before{
  content:"";position:absolute;inset:8px;border-radius:6px;pointer-events:none;
  box-shadow:inset 0 0 0 2px rgba(90,50,20,.6),inset 0 0 18px rgba(0,0,0,.35);
}

/* ===== Cork board ===== */
.board{
  position:relative;
  background-color:#c4a06a;
  background-image:
    radial-gradient(ellipse at 12% 18%,rgba(90,55,20,.38) 0 1.4px,transparent 2.2px),
    radial-gradient(ellipse at 68% 42%,rgba(255,230,180,.28) 0 1.1px,transparent 2px),
    radial-gradient(ellipse at 40% 78%,rgba(70,40,10,.32) 0 1px,transparent 1.8px),
    radial-gradient(ellipse at 85% 15%,rgba(110,70,30,.3) 0 1.3px,transparent 2.1px),
    radial-gradient(ellipse at 22% 55%,rgba(180,140,80,.25) 0 1.2px,transparent 2px),
    linear-gradient(135deg,rgba(160,110,55,.35),rgba(200,160,100,.2));
  background-size:14px 12px,18px 20px,9px 11px,16px 14px,11px 13px,100% 100%;
  border-radius:4px;
  min-height:520px;
  padding:1rem 1rem 1.4rem;
  overflow:hidden;
}

/* ===== Top bar: logo + lang ===== */
.topbar{
  display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;
  gap:.6rem 1rem;margin-bottom:.85rem;position:relative;z-index:2;
}
.logo{
  margin:0;font-family:Georgia,"Times New Roman",serif;
  font-size:clamp(1.7rem,4.5vw,2.35rem);font-weight:700;color:#fff;
  text-shadow:0 2px 4px rgba(0,0,0,.55),0 0 1px rgba(0,0,0,.8);
  letter-spacing:.02em;display:flex;align-items:center;gap:.45rem;
}
.logo .pin{
  width:14px;height:14px;border-radius:50%;flex-shrink:0;
  background:radial-gradient(circle at 35% 30%,#f8b4a8,#d63a2f 48%,#7a1810);
  box-shadow:1px 2px 3px rgba(0,0,0,.45);
}
.lang-switch{
  display:flex;gap:.35rem;background:rgba(40,20,8,.35);
  padding:.25rem;border-radius:999px;backdrop-filter:blur(2px);
}
.lang-switch button{
  border:0;background:transparent;color:#f5e6d0;font:inherit;font-size:.85rem;
  font-weight:600;padding:.35rem .7rem;border-radius:999px;cursor:pointer;
}
.lang-switch button[aria-pressed="true"]{
  background:#fff;color:#3d1f0c;box-shadow:0 1px 3px rgba(0,0,0,.25);
}
.lang-switch button:hover{background:rgba(255,255,255,.18)}

/* ===== Filter chips ===== */
.filters-wrap{
  margin-bottom:1.1rem;position:relative;z-index:2;
}
.filters{
  display:flex;gap:.55rem;overflow-x:auto;-webkit-overflow-scrolling:touch;
  padding:.15rem .1rem .35rem;scrollbar-width:thin;
}
.filters::-webkit-scrollbar{height:6px}
.filters::-webkit-scrollbar-thumb{background:rgba(60,30,10,.35);border-radius:3px}
.filter{
  flex:0 0 auto;border:0;cursor:pointer;font:inherit;font-size:.9rem;font-weight:700;
  padding:.55rem .95rem;border-radius:999px;color:#1a1008;
  box-shadow:0 2px 5px rgba(0,0,0,.28),inset 0 1px 0 rgba(255,255,255,.45);
  display:inline-flex;align-items:center;gap:.4rem;white-space:nowrap;
  transition:transform .12s ease,box-shadow .12s ease;
}
.filter:hover{transform:translateY(-1px)}
.filter[aria-pressed="true"]{
  box-shadow:0 0 0 3px #fff,0 3px 8px rgba(0,0,0,.35);
  transform:translateY(-1px);
}
.filter-all{background:#f5f0e6}
.filter-event{background:#f5d76e}
.filter-want{background:#8fd19e}
.filter-offer{background:#7eb6e8}
.filter-commercial{background:#f0a0c0}
.filter .ico{font-size:1rem;line-height:1}

/* ===== Notes grid ===== */
.notes{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:1.1rem 1rem;
  align-items:start;
  position:relative;z-index:1;
  min-height:280px;
}
@media (max-width:820px){
  .notes{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:520px){
  .notes{grid-template-columns:1fr;max-width:340px;margin:0 auto}
  body{padding:.6rem .4rem 1.5rem}
  .frame{padding:12px 10px 10px}
}

.note{
  position:relative;
  padding:1.55rem 1rem 1.1rem;
  box-shadow:3px 5px 12px rgba(40,20,5,.4),1px 1px 0 rgba(0,0,0,.08);
  border-radius:2px;
  min-height:168px;
  display:flex;flex-direction:column;
  transition:opacity .2s ease,transform .15s ease;
}
.note[hidden]{display:none!important}
.note .pin{
  position:absolute;top:.45rem;left:50%;width:15px;height:15px;margin-left:-7.5px;
  border-radius:50%;
  background:radial-gradient(circle at 35% 30%,#f8b4a8,#d63a2f 48%,#7a1810);
  box-shadow:1px 2px 3px rgba(0,0,0,.45);z-index:2;
}
.note h3{
  margin:0 0 .45rem;font-family:Georgia,"Times New Roman",serif;
  font-size:1.05rem;font-weight:700;color:#1a2a3a;line-height:1.25;
  padding-right:.2rem;
}
.note .body{
  margin:0;font-size:.92rem;line-height:1.4;color:#2a1a0a;
  font-family:Georgia,"Comic Sans MS","Segoe Print",cursive,serif;
  flex:1;
  display:-webkit-box;-webkit-line-clamp:5;-webkit-box-orient:vertical;overflow:hidden;
}
.note .meta{
  margin-top:.65rem;font-size:.78rem;color:#5a4030;
  font-family:system-ui,sans-serif;font-weight:600;
}
.note .tag{
  display:inline-block;font-size:.68rem;font-weight:700;text-transform:uppercase;
  letter-spacing:.04em;padding:.12rem .4rem;border-radius:4px;
  background:rgba(0,0,0,.08);color:#3a2818;margin-bottom:.4rem;
  font-family:system-ui,sans-serif;
}
.note.yellow{background:#fff3b0}
.note.green{background:#d4edc9}
.note.blue{background:#cfe6f7}
.note.pink{background:#f7d0e0}
.note.orange{background:#ffd9b0}
.note.rot-1{transform:rotate(-1.8deg)}
.note.rot-2{transform:rotate(1.4deg)}
.note.rot-3{transform:rotate(-0.9deg)}
.note.rot-4{transform:rotate(2.1deg)}
.note.rot-5{transform:rotate(-1.2deg)}
.note.rot-6{transform:rotate(0.7deg)}
.note.rot-7{transform:rotate(-2.3deg)}
.note.rot-8{transform:rotate(1.6deg)}
.note.commercial{
  outline:2px dashed rgba(160,40,80,.45);outline-offset:-6px;
}
.note.commercial .tag{background:#e85a8a;color:#fff}

/* empty state */
.empty{
  grid-column:1/-1;text-align:center;padding:2.5rem 1rem;color:#fff;
  text-shadow:0 1px 3px rgba(0,0,0,.5);font-weight:600;display:none;
}
.empty.visible{display:block}

/* ===== Badge + trust ===== */
.side-bits{
  display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;
  gap:1rem;margin-top:1.2rem;position:relative;z-index:2;
}
.badge{
  background:linear-gradient(145deg,#6b4423,#4a2e16);
  color:#f5e6d0;border-radius:10px;padding:.85rem 1rem;
  max-width:280px;box-shadow:3px 4px 10px rgba(0,0,0,.4),inset 0 0 0 2px rgba(180,140,90,.45);
  display:flex;gap:.65rem;align-items:flex-start;
  transform:rotate(2deg);
}
.badge .check{
  flex-shrink:0;width:28px;height:28px;border-radius:50%;background:#3cb371;
  display:flex;align-items:center;justify-content:center;color:#fff;font-weight:900;
  box-shadow:0 1px 3px rgba(0,0,0,.35);font-size:1rem;
}
.badge p{margin:0;font-size:.88rem;line-height:1.35;font-weight:600}

.trust{
  display:flex;flex-wrap:wrap;gap:.55rem 1rem;
  color:#fff;font-size:.78rem;font-weight:600;
  text-shadow:0 1px 2px rgba(0,0,0,.5);
}
.trust span{display:inline-flex;align-items:center;gap:.3rem;opacity:.95}
.trust .sym{font-size:.95rem}

/* ===== App / island strip ===== */
.strip{
  margin-top:1rem;padding:.75rem 1rem;border-radius:8px;
  background:rgba(30,15,5,.4);color:#f5e6d0;font-size:.88rem;line-height:1.4;
  display:flex;flex-wrap:wrap;gap:.5rem 1.2rem;align-items:center;justify-content:space-between;
}
.strip strong{color:#fff}
.btn-app{
  display:inline-flex;align-items:center;gap:.4rem;
  background:#1F5A7A;color:#fff;text-decoration:none;font-weight:700;
  font-size:.85rem;padding:.5rem .9rem;border-radius:8px;
  box-shadow:0 2px 5px rgba(0,0,0,.3);border:0;cursor:default;
}
.btn-app[aria-disabled="true"]{opacity:.85;pointer-events:none}

/* ===== Footer (wood) ===== */
.foot{
  margin-top:.85rem;padding:.55rem .4rem .15rem;
  display:flex;flex-wrap:wrap;justify-content:center;gap:.35rem .15rem;
  color:#e8d5b8;font-size:.85rem;
}
.foot a{color:#e8d5b8;text-decoration:none}
.foot a:hover{color:#fff;text-decoration:underline}
.foot .dot{opacity:.5;padding:0 .25rem;user-select:none}

/* ===== Legal sections (placeholders) ===== */
.legal{
  width:min(1100px,100%);margin:1.5rem auto 0;color:#d4c4a8;font-size:.85rem;
  line-height:1.5;padding:0 .5rem 1rem;
}
.legal h2{color:#f5e6d0;font-size:1rem;margin:1.2rem 0 .4rem}
.legal p{margin:.35rem 0}
.legal a{color:#9ec9e8}

.sr-only{
  position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;
  clip:rect(0,0,0,0);white-space:nowrap;border:0;
}

/* ===== Lang switch: also <a> (App), not only <button> (Landing) ===== */
.lang-switch a{
  border:0;background:transparent;color:#f5e6d0;font:inherit;font-size:1.25rem;
  font-weight:600;padding:.3rem .55rem;border-radius:999px;cursor:pointer;
  text-decoration:none;display:inline-flex;align-items:center;justify-content:center;
  line-height:1;opacity:.75;filter:saturate(.85);
}
.lang-switch a:hover{background:rgba(255,255,255,.18);opacity:1}
.lang-switch a[aria-current="true"],
.lang-switch a[aria-pressed="true"]{
  background:#fff;color:#3d1f0c;box-shadow:0 1px 3px rgba(0,0,0,.25);
  opacity:1;filter:none;
}

/* ===== Empty board (cork) ===== */
.empty .empty-title{
  margin:0 0 .45rem;font-family:Georgia,"Times New Roman",serif;
  font-size:clamp(1.25rem,3.5vw,1.7rem);font-weight:700;color:#fff;
  text-shadow:0 2px 4px rgba(0,0,0,.55);
}
.empty .empty-hint{
  margin:0;font-size:.95rem;font-weight:500;color:#f5e6d0;
  text-shadow:0 1px 2px rgba(0,0,0,.45);
}
