/* ============================================================
   SHARED LAYOUT — Appbar, Categories Bar, Sidebar, Footer
   Exact replica of ClubeCurtaMais.vue layout
   ============================================================ */

/* ---- APPBAR ---- */
.appbar {
  height: 80px;
  background: linear-gradient(to left, #222222, #191919, #101010, #0A0A0A);
  border-bottom: 1px solid transparent;
  border-image-source: linear-gradient(to left, #868686, #656365, #404040, #2A2A2A);
  border-image-slice: 1;
  position: sticky;
  top: 0;
  z-index: 200;
  width: 100%;
  display: flex;
  align-items: center;
  /* overflow: visible so the region dropdown can extend below the appbar
     without being clipped by the header container. */
  overflow: visible;
}

.appbar-inner {
  width: 100%;
  margin: 0 auto;
  padding: 0 15px;
  display: flex;
  align-items: center;
  height: 100%;
  gap: 0;
}

.appbar-left {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
  flex-shrink: 0;
}

.appbar-hamburger {
  display: none;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 10px 12px;
  line-height: 1;
  min-width: 44px;
  min-height: 44px;
}

.appbar-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.appbar-logo img {
  width: 58px;
  height: auto;
  display: block;
}

.appbar-search {
  display: flex;
  align-items: center;
  margin-left: 12px;
}

.appbar-search input {
  width: 300px;
  background: transparent;
  border: 1px solid #9E9E9E;
  border-radius: 12px;
  padding: 8px 16px;
  color: #ffffff;
  font-size: 1rem;
  outline: none;
  font-family: inherit;
}

.appbar-search input::placeholder {
  color: rgba(98, 98, 98, 1);
}

.appbar-center-logo {
  display: none;
  flex: 1;
  justify-content: center;
  align-items: center;
}

.appbar-center-logo img {
  width: 70px;
  height: auto;
}

.appbar-spacer {
  flex: 1;
}

.appbar-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.appbar-nav a {
  color: #FEFEFE;
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
  margin: 0 3px;
}

.appbar-nav a:hover {
  color: #9E9E9E;
}

.appbar-nav a.active {
  font-weight: bold;
  color: #9E9E9E;
}

.appbar-right {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
  flex-shrink: 0;
}

.appbar-search-btn-mobile {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: #f6be00;
  border: none;
  color: #ffffff;
  font-size: 1rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.btn-appbar-dark {
  color: #FEFEFE;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  z-index: 1;
  border: none;
  background: transparent;
  padding: 8px 14px;
  font-size: 0.9375rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 0.2s;
}

.btn-appbar-dark:hover {
  background-color: rgba(255, 255, 255, 0.05);
  color: #FEFEFE;
}

.btn-appbar-dark::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to left, #868686, #656365, #404040, #2A2A2A);
  padding: 1px;
  border-radius: 12px;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: -1;
}

.btn-appbar-membro {
  background-color: #FF6900;
  border-radius: 12px;
  color: #FEFEFE;
  border: none;
  padding: 8px 16px;
  font-size: 0.9375rem;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: background-color 0.2s;
}

.btn-appbar-membro:hover {
  background-color: #e65c00;
  color: #FEFEFE;
}

.appbar-right-desktop {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.appbar-user-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  color: #FEFEFE;
  font-size: 0.9375rem;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 12px;
  font-family: inherit;
  transition: background-color 0.2s;
  text-decoration: none;
}

.appbar-user-btn:hover {
  background-color: rgba(255, 255, 255, 0.05);
  color: #FEFEFE;
}

/* ---- MOBILE SEARCH BAR ---- */
.mobile-search-bar {
  background: linear-gradient(to left, #222222, #191919, #101010, #0A0A0A);
  padding: 0 12px 10px;
  display: none;
  align-items: center;
  gap: 8px;
}

.mobile-search-bar.open {
  display: flex;
}

.mobile-search-bar input {
  flex: 1;
  background: #ffffff;
  border: none;
  border-radius: 5px;
  padding: 8px 12px;
  font-size: 1rem;
  outline: none;
  font-family: inherit;
}

.mobile-search-bar button {
  background-color: #4e008e;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---- CATEGORIES BAR ---- */
.categories-bar {
  display: flex;
  position: relative;
  width: 100%;
  min-height: 80px;
  padding: 5px 0;
  background: linear-gradient(to left, #222222, #191919, #101010, #0A0A0A);
  box-shadow: 0px 4px 9px rgba(0, 0, 0, 0.07);
  border-bottom: 1px solid transparent;
  border-image-source: linear-gradient(to left, #868686, #656365, #404040, #2A2A2A);
  border-image-slice: 1;
}

.categories-bar-inner {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.category-span {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  text-decoration: none;
}

.category-span:hover .curta-icon-wrap {
  background-color: rgba(255, 255, 255, 0.08);
}

.curta-icon-wrap {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-color 0.2s;
  background: transparent;
}

.curta-icon-wrap img,
.curta-icon-wrap .icon-img {
  width: 70px;
  height: auto;
  object-fit: contain;
}

.curta-icon-wrap i {
  font-size: 1.25rem;
  color: #828282;
}

.clube-span {
  color: #828282;
  font-weight: 400;
  font-size: 14px;
  text-align: center;
  padding: 0 3px;
  line-height: 14px;
  margin-top: 5px;
  white-space: nowrap;
}

/* ---- MOBILE SIDEBAR DRAWER ---- */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 399;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sidebar-overlay.open {
  opacity: 1;
  visibility: visible;
}

.sidebar-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: min(290px, 85vw);
  height: 100vh;
  background: linear-gradient(to left, #222222, #191919, #101010, #0A0A0A);
  z-index: 400;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  padding: 16px 0;
}

.sidebar-drawer.open {
  transform: translateX(0);
}

.sidebar-logo-wrap {
  display: flex;
  justify-content: center;
  padding: 8px 16px 16px;
}

.sidebar-logo-wrap img {
  width: 100px;
  height: 100px;
  object-fit: contain;
}

.sidebar-enter-btn {
  background-color: #FF6900;
  color: #FEFEFE;
  border: none;
  border-radius: 12px;
  padding: 12px 20px;
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
  display: block;
  width: calc(100% - 32px);
  margin: 0 16px 8px;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.2s;
}

.sidebar-enter-btn:hover {
  background-color: #e65c00;
  color: #FEFEFE;
}

.sidebar-user-name {
  color: #FEFEFE;
  font-size: 16px;
  font-weight: bold;
}

.sidebar-user-block {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px 16px;
  text-decoration: none;
  color: inherit;
}

.sidebar-user-block:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.sidebar-user-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid #555;
  background: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sidebar-user-avatar i {
  font-size: 1.125rem;
  color: #bdbdbd;
}

.sidebar-user-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.sidebar-user-subtitle {
  color: #828282;
  font-size: 13px;
  font-weight: 400;
}

.sidebar-divider {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin: 8px 16px;
}

.sidebar-logout-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  width: 100%;
  text-align: left;
}

.sidebar-nav-item {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #828282;
  font-size: 16px;
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
  min-height: 44px;
}

.sidebar-nav-item i {
  width: 20px;
  text-align: center;
  font-size: 1rem;
}

.sidebar-nav-item:hover {
  color: #FEFEFE;
  background-color: rgba(255, 255, 255, 0.05);
}

.sidebar-location {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
}

.sidebar-location i {
  color: #F5F5F5;
  font-size: 1.3rem;
}

.sidebar-location span {
  color: #FEFEFE;
  font-size: 1rem;
  font-weight: bold;
}

.sidebar-social {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  flex-wrap: wrap;
}

.sidebar-social span {
  color: white;
  font-weight: bold;
  font-size: 0.875rem;
}

.sidebar-social a {
  color: #ffffff;
  font-size: 1.1rem;
  text-decoration: none;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s;
}

.sidebar-social a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

/* ---- FOOTER ---- */
.footer-clube {
  background: linear-gradient(to left, #222222, #191919, #101010, #0A0A0A);
  border-top: 1px solid;
  border-image: linear-gradient(to left, #545454, #3F3E3F, #282828, #1A1A1A) 1;
  padding: 32px 0 24px;
  min-height: 450px;
  display: flex;
  flex-direction: column;
}

.footer-inner {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 15px;
  flex: 1;
}

.footer-logo-wrap {
  margin-bottom: 32px;
  display: flex;
  justify-content: center;
  width: 100%;
}

.footer-logo-wrap img {
  width: 200px;
  height: auto;
}

.footer-columns {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
}

.footer-col-title {
  color: #ffffff;
  font-size: 1.0625rem;
  font-weight: bold;
  border-bottom: 1px solid #777;
  padding-bottom: 8px;
  display: inline-block;
  margin-bottom: 16px;
}

.footer-col-desc {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  line-height: 1.6;
}

.footer-col-desc strong {
  color: #ffffff;
}

.footer-col-hashtag {
  color: #ffffff;
  font-weight: bold;
  font-size: 0.9375rem;
  margin-top: 12px;
}

.footer-col-links a {
  display: block;
  color: #FEFEFE;
  font-size: 16px;
  line-height: 32px;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col-links a:hover {
  color: #FF6900;
}

.footer-contact-item {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 6px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.footer-contact-item i {
  margin-top: 3px;
  flex-shrink: 0;
  color: #9E9E9E;
}

.footer-contact-item a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-contact-item a:hover {
  color: #FF6900;
}

.footer-copyright {
  text-align: center;
  padding: 24px 15px 0;
  max-width: 1140px;
  margin: 0 auto;
  width: 100%;
  margin-top: 32px;
}

.footer-copyright p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  margin: 0;
}

/* ---- Hide old header/footer from style.css ---- */
header.header { display: none !important; }
footer.footer { display: none !important; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (min-width: 1024px) {
  .appbar-hamburger { display: none; }
  .appbar-center-logo { display: none; }
  .appbar-search-btn-mobile { display: none; }
  .appbar-search { display: flex; }
  .appbar-nav { display: flex; }
  .appbar-right-desktop { display: flex; }
}

@media (max-width: 1023px) {
  .appbar {
    height: 75px;
  }
  .appbar-hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .appbar-logo {
    display: none;
  }
  .appbar-search {
    display: none;
  }
  .appbar-center-logo {
    display: flex;
  }
  .appbar-search-btn-mobile {
    display: flex;
  }
  .appbar-nav {
    display: none;
  }
  .appbar-right-desktop {
    display: none;
  }

  .categories-bar-inner {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding: 0 16px;
    gap: 16px;
  }
  .categories-bar-inner::-webkit-scrollbar {
    display: none;
  }
  .category-span {
    margin: 0;
    flex: 0 0 auto;
    min-width: 72px;
  }
  .categories-bar {
    padding: 8px 0;
    min-height: 96px;
  }
}

@media (max-width: 768px) {
  .footer-columns {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    text-align: center;
  }

  .footer-columns > div {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-col-title {
    display: inline-block;
    text-align: center;
  }

  .footer-col-links a {
    text-align: center;
  }

  .footer-contact-item {
    justify-content: center;
    text-align: left;
  }

  .footer-logo-wrap {
    text-align: center;
  }

  .footer-logo-wrap img {
    margin: 0 auto;
  }

  .footer-copyright {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .footer-columns {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ── Region selector — header ───────────────────────────────────────────── */

.appbar-region {
  position: relative;
  display: inline-block;
}

.region-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.region-toggle.is-static {
  cursor: default;
}

.region-chevron {
  font-size: 10px;
  opacity: 0.75;
  transition: transform 0.15s ease-in-out;
}

.region-toggle[aria-expanded="true"] .region-chevron {
  transform: rotate(180deg);
}

.region-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 180px;
  margin: 0;
  padding: 4px 0;
  list-style: none;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  z-index: 1050; /* above .appbar but below modal (.modal-backdrop is typically >= 1100) */
}

.region-option {
  padding: 8px 14px;
  font-size: 14px;
  color: #333;
  cursor: pointer;
  transition: background 0.1s;
}

.region-option:hover,
.region-option:focus-visible {
  background: #f5f5f5;
}

.region-option.is-selected {
  font-weight: 600;
  color: #111;
  background: #fafafa;
}

/* ── Region selector — sidebar (mobile) ─────────────────────────────────── */

.sidebar-region-list {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}

.sidebar-region-list .region-option {
  border-radius: 6px;
  margin-top: 2px;
}
