/*
Theme Name: Bruhmel Chopp · Eventos
Author: Bruhmel
Description: Vitrine de eventos e portais React integrados ao plugin Bruhmel Ingressos. Menu glass e identidade âmbar.
Version: 1.1.7
Requires at least: 6.5
Requires PHP: 8.1
License: GPL-2.0-or-later
Text Domain: bruhmel
*/


/* Bruhmel session bootstrap: prevents the logged-out UI from flashing on refresh. */
#bruhmel-boot-loader{display:none}
html.bruhmel-auth-pending #root{visibility:hidden}
html.bruhmel-auth-pending #bruhmel-boot-loader{display:flex;position:fixed;inset:0;z-index:999999;align-items:center;justify-content:center;background:#fff}
.bruhmel-boot-spinner{width:34px;height:34px;border:3px solid rgba(16,44,41,.16);border-top-color:#102c29;border-radius:50%;animation:bruhmel-spin .72s linear infinite}
@media (prefers-reduced-motion:reduce){.bruhmel-boot-spinner{animation:none;border-top-color:rgba(16,44,41,.16);box-shadow:inset 0 0 0 7px rgba(16,44,41,.08)}}
@keyframes bruhmel-spin{to{transform:rotate(360deg)}}

/* Event management enhancements */
.admin-event-controls{flex-wrap:wrap}
.bruhmel-feature-btn.is-featured,.bruhmel-feature-native.is-featured{background:#f3c74f!important;border-color:#f3c74f!important;color:#102c29!important}
.bruhmel-featured-badge{position:absolute;right:12px;bottom:12px;z-index:3;padding:6px 10px;border-radius:999px;background:#f3c74f;color:#102c29;font-size:11px;font-weight:900;letter-spacing:.04em;box-shadow:0 8px 24px rgba(0,0,0,.16)}
.admin-lots>div{gap:10px;flex-wrap:wrap}
.bruhmel-lot-actions{grid-column:1/-1;justify-self:end;margin-left:auto;display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.bruhmel-lot-actions button{appearance:none;border:1px solid rgba(16,44,41,.18);background:#fff;color:#102c29;border-radius:8px;padding:5px 8px;font-size:11px;font-weight:800;cursor:pointer}
.bruhmel-lot-actions button:hover:not(:disabled){background:#102c29;color:#fff}
.bruhmel-lot-actions button:disabled{opacity:.42;cursor:not-allowed}
.bruhmel-lot-lock,.bruhmel-lot-off{flex-basis:100%;text-align:right;font-size:10px!important;font-weight:700;color:#985d36}
.bruhmel-lot-off{color:#8a6a00}
.bruhmel-lot-disabled{opacity:.65;background:rgba(148,148,148,.07);border-radius:9px;padding:7px!important}
.bruhmel-tool-modal-backdrop{position:fixed;inset:0;z-index:2147483000;background:rgba(5,22,20,.58);backdrop-filter:blur(7px);display:flex;align-items:center;justify-content:center;padding:20px}
.bruhmel-tool-modal{position:relative;width:min(560px,100%);max-height:90vh;overflow:auto;background:#fff;color:#102c29;border-radius:20px;padding:26px;box-shadow:0 28px 90px rgba(0,0,0,.26)}
.bruhmel-tool-modal h2{margin:0 36px 5px 0;font-size:25px}.bruhmel-tool-sub{margin:0 0 22px;color:#65706d;line-height:1.5}
.bruhmel-tool-close{position:absolute;right:18px;top:15px;border:0;background:transparent;color:#102c29;font-size:28px;cursor:pointer}
.bruhmel-lot-form{display:grid;gap:15px}.bruhmel-lot-form label{display:grid;gap:7px}.bruhmel-lot-form label>span{font-size:12px;font-weight:850;letter-spacing:.02em}
.bruhmel-lot-form input{width:100%;box-sizing:border-box;border:1px solid rgba(16,44,41,.18);border-radius:11px;padding:12px 13px;font:inherit;color:#102c29;background:#fff}.bruhmel-lot-form input:disabled{background:#f5f6f5;color:#6d7774}
.bruhmel-tool-columns{display:grid;grid-template-columns:1fr 1fr;gap:12px}.bruhmel-tool-error{min-height:18px;color:#a21c1c;font-size:12px;font-weight:700}.bruhmel-tool-warning{padding:14px;border-radius:12px;background:#fff4e8;color:#8b4b16;line-height:1.5;font-weight:700}
.bruhmel-enhancement-toast{position:fixed;right:22px;bottom:22px;z-index:2147483640;background:#102c29;color:#fff;border-radius:12px;padding:12px 16px;box-shadow:0 18px 55px rgba(0,0,0,.24);font-size:13px;font-weight:750;transform:translateY(16px);opacity:0;transition:.2s ease}.bruhmel-enhancement-toast.error{background:#8f2020}.bruhmel-enhancement-toast.show{transform:none;opacity:1}
.bruhmel-feature-nav{position:absolute;z-index:8;left:28px;bottom:22px;display:flex;align-items:center;gap:9px;padding:7px 9px;border:1px solid rgba(255,255,255,.24);border-radius:999px;background:rgba(8,27,25,.52);backdrop-filter:blur(10px);color:#fff}
.bruhmel-feature-nav>button{width:30px;height:30px;border:0;border-radius:50%;background:rgba(255,255,255,.14);color:#fff;font-size:23px;line-height:1;cursor:pointer}.bruhmel-feature-nav>button:hover{background:rgba(255,255,255,.28)}
.bruhmel-feature-dots{display:flex;gap:5px}.bruhmel-feature-dot{width:7px;height:7px;border:0;border-radius:99px;background:rgba(255,255,255,.4);padding:0;cursor:pointer;transition:.2s}.bruhmel-feature-dot.active{width:20px;background:#f3c74f}.bruhmel-feature-counter{min-width:34px;text-align:center;font-size:10px;font-weight:800;letter-spacing:.08em}
@media(max-width:720px){.bruhmel-tool-columns{grid-template-columns:1fr}.bruhmel-feature-nav{left:16px;bottom:14px}.bruhmel-lot-actions{width:100%;margin-left:0}.bruhmel-lot-lock,.bruhmel-lot-off{text-align:left}}

.bruhmel-detail-cover{width:100%;max-height:260px;object-fit:cover;border-radius:13px;margin:6px 0 18px;display:block}


/* Bruhmel 1.1.2 — polished organizer event controls + featured carousel */
.admin-event-controls.bruhmel-controls-ready{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:10px;
}
.admin-event-controls.bruhmel-controls-ready > *{
  min-height:40px;
  justify-content:center;
}
.admin-lots>div{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:10px 14px;
  padding:12px 0;
}
.bruhmel-lot-info{min-width:0;display:grid;gap:6px}
.bruhmel-lot-head{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center}
.bruhmel-lot-name{font-weight:800;color:#17211f}
.bruhmel-lot-price{font-weight:900;color:#8b5b22;white-space:nowrap}
.bruhmel-lot-meta{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.bruhmel-lot-sub{font-size:12px;color:#8b8379}
.bruhmel-lot-actions{
  grid-column:2;
  justify-self:end;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  flex-wrap:wrap;
  gap:8px;
  margin-left:0;
}
.bruhmel-chip-btn{
  appearance:none;
  border:1px solid rgba(16,44,41,.12);
  background:#fff;
  color:#102c29;
  border-radius:999px;
  padding:7px 12px;
  font-size:12px;
  font-weight:800;
  line-height:1;
  cursor:pointer;
  box-shadow:0 4px 14px rgba(16,44,41,.06);
  transition:.16s ease;
}
.bruhmel-chip-btn:hover:not(:disabled){transform:translateY(-1px);background:#102c29;color:#fff;box-shadow:0 10px 20px rgba(16,44,41,.16)}
.bruhmel-chip-btn:disabled{opacity:.42;cursor:not-allowed;box-shadow:none}
.bruhmel-chip-btn--warn{border-color:#f0d7c0;background:#fff8f1;color:#8b5b22}
.bruhmel-chip-btn--warn:hover:not(:disabled){background:#8b5b22;color:#fff}
.bruhmel-lot-state{
  display:inline-flex;
  align-items:center;
  gap:6px;
  border-radius:999px;
  padding:6px 10px;
  font-size:11px;
  font-weight:800;
  line-height:1;
}
.bruhmel-lot-state--locked{background:#fff2e9;color:#985d36}
.bruhmel-lot-state--disabled{background:#fff8dc;color:#8a6a00}
.bruhmel-lot-lock,.bruhmel-lot-off{display:none}
.bruhmel-lot-disabled{
  opacity:1;
  background:linear-gradient(180deg,#fff 0%,#fcfaf6 100%);
  border:1px solid rgba(196,166,110,.2);
  border-radius:14px;
  padding:12px!important;
}
.bruhmel-cover-btn,.bruhmel-feature-btn{
  border-radius:12px!important;
}
.bruhmel-feature-btn.is-featured,.bruhmel-feature-native.is-featured{
  box-shadow:0 10px 24px rgba(243,199,79,.26);
}
.bruhmel-home-featured{
  position:relative;
  overflow:hidden;
  border-radius:28px;
  min-height:380px;
  margin:0 0 28px;
  background:#102c29;
  box-shadow:0 30px 70px rgba(16,44,41,.20);
  isolation:isolate;
}
.bruhmel-home-featured__media,
.bruhmel-home-featured__media img,
.bruhmel-home-featured__shade{
  position:absolute;
  inset:0;
}
.bruhmel-home-featured__media img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.bruhmel-home-featured__shade{
  background:linear-gradient(90deg,rgba(8,22,20,.82) 0%,rgba(8,22,20,.58) 42%,rgba(8,22,20,.26) 72%,rgba(8,22,20,.34) 100%);
}
.bruhmel-home-featured__content{
  position:relative;
  z-index:2;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  gap:14px;
  min-height:380px;
  max-width:640px;
  padding:34px 34px 92px;
  color:#fff;
}
.bruhmel-home-featured__badges{display:flex;flex-wrap:wrap;gap:8px}
.bruhmel-home-featured__badges span{
  display:inline-flex;
  align-items:center;
  min-height:30px;
  padding:0 12px;
  border-radius:999px;
  font-size:11px;
  font-weight:900;
  letter-spacing:.09em;
  background:rgba(255,255,255,.14);
  border:1px solid rgba(255,255,255,.16);
}
.bruhmel-home-featured__badges span:first-child{background:#f3c74f;color:#102c29;border-color:#f3c74f}
.bruhmel-home-featured h2{margin:0;font-size:clamp(30px,4vw,46px);line-height:1.02;color:#fff}
.bruhmel-home-featured__venue{margin:0;color:rgba(255,255,255,.82);font-size:15px}
.bruhmel-home-featured__meta{display:flex;flex-wrap:wrap;gap:10px 16px;color:rgba(255,255,255,.92);font-size:13px}
.bruhmel-home-featured__meta span{display:inline-flex;align-items:center;gap:6px}
.bruhmel-home-featured__footer{display:flex;flex-wrap:wrap;gap:16px;align-items:center;justify-content:space-between}
.bruhmel-home-featured__price{display:grid;gap:3px}
.bruhmel-home-featured__price small{font-size:11px;letter-spacing:.08em;color:rgba(255,255,255,.7)}
.bruhmel-home-featured__price strong{font-size:28px;line-height:1;color:#fff}
.bruhmel-home-featured__cta{min-width:170px;min-height:48px;border-radius:14px!important;font-weight:900!important;box-shadow:0 16px 30px rgba(0,0,0,.18)}
.bruhmel-home-featured .bruhmel-feature-nav{
  left:34px;
  bottom:28px;
  padding:8px 10px;
  background:rgba(8,27,25,.56);
  border-color:rgba(255,255,255,.16);
}
.bruhmel-home-featured .bruhmel-feature-nav>button{width:34px;height:34px}
@media(max-width:1080px){
  .admin-event-controls.bruhmel-controls-ready{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:720px){
  .admin-event-controls.bruhmel-controls-ready{grid-template-columns:repeat(2,minmax(0,1fr))}
  .admin-lots>div{grid-template-columns:1fr;align-items:flex-start}
  .bruhmel-lot-actions{grid-column:1;justify-self:stretch;justify-content:flex-start}
  .bruhmel-home-featured{min-height:420px;border-radius:22px}
  .bruhmel-home-featured__content{min-height:420px;padding:24px 20px 88px}
  .bruhmel-home-featured .bruhmel-feature-nav{left:18px;right:18px;bottom:18px;justify-content:space-between}
  .bruhmel-home-featured__footer{align-items:flex-start}
}
