/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  background-color: #f3f2ef;
  font-family: system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Arial, sans-serif;
}

/* ===== PAGE SCALE ===== */
.page-scale {
  /* transform: scale(0.9); */
  /* transform-origin: top center; */

  /* width: 111.111%; */
}

/* =========================================================
   DESKTOP / TABLET
   ========================================================= */

/* trava scroll do body APENAS acima de 700px */
@media (min-width: 701px) {
  body {
    overflow: hidden;
  }
}

/* ===== GRID DESKTOP (3 COLUNAS) ===== */
.app-container {
  max-width: 1128px;
  margin: 0 auto;
  padding: 24px 16px;

  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 300px;
  grid-template-areas: "left feed right";
  gap: 24px;

  height: 100vh;
  overflow-block: hidden;
  /* 🔑 base do layout fixo */
}

.feed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  position: sticky;
  top: 0;
  z-index: 2;

  background: #f3f2ef;
  padding: 8px 0 16px;
  margin-bottom: 8px;
}

/* TEXTO */
.feed-title {
  font-size: 13px;
  color: #6b7280;
  text-decoration: underline;
}

/* LINK CV */
.cv-download {
  font-size: 13px;
  font-weight: 500;
  color: #0a66c2;
  /* azul LinkedIn */
  text-decoration: none;
  white-space: nowrap;
}

.cv-download:hover {
  text-decoration: underline;
  color: rgb(67, 67, 67);
}

/* ===== ÁREAS ===== */
.sidebar-left {
  grid-area: left;
  position: sticky;
  /* top: 24px; */
  height: calc(100vh - 48px);
  /* respeita padding */
  overflow: hidden;
}

.sidebar-right {
  grid-area: right;
  position: sticky;
  /* top: 24px; */
  height: calc(100vh - 36px);
  overflow: hidden;
}

.main-feed {
  grid-area: feed;
  min-width: 0;
  overflow-y: auto;
}

/* ===== SCROLL TO TOP BUTTON ===== */
.scroll-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 42px;
  height: 42px;
  margin-right: 23%;
  border-radius: 50%;
  border: none;

  background: rgba(10, 102, 194, 0.75);
  /* 🔹 TRANSPARÊNCIA */
  color: #ffffff;

  font-size: 18px;
  font-weight: bold;

  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);

  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    background 0.2s ease;
  z-index: 50;
}

/* Visível */
.scroll-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* Hover mais sólido */
.scroll-to-top:hover {
  background: rgba(10, 102, 194, 0.95);
}




/* Mobile: opcional esconder */
@media (max-width: 700px) {
  .scroll-to-top {
    display: none;
  }
}

@media (max-width: 800px) {
  .app-container {
    grid-template-columns: 260px 1fr;
    grid-template-areas: "left feed";
  }

  .sidebar-right {
    display: none;
  }
}

.whatsapp-float {
  position: fixed;
  right: 44px;
  bottom: 44px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
  transition: background 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
  z-index: 50;
}

/* hover */
.whatsapp-float:hover {
  background: rgba(37, 211, 102, 0.95);
  transform: translateY(-2px);
}


.post-company {
  display: inline-block;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #374151;
}

/* Empresas */
.post-company.valeshop {
  background: #eef2ff;
  color: #3730a3;
}

.post-company.msb {
  background: #ecfeff;
  color: #155e75;
}

.post-company.nobeta {
  background: #f0fdf4;
  color: #166534;
}

.post-company.gilbarco {
  background: #fff7ed;
  color: #9a3412;
}


.post-card {
  position: relative;
}

.post-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 3px;
  border-radius: 4px;
  background: transparent;
}

.post-card {
  position: relative;
  padding-left: 28px;
  /* espaço para a linha */
}

/* .post-card.valeshop::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(79, 70, 229, 0.25);
} */

.post-card.valeshop.start::before {
  top: 16px;
}

.post-card.valeshop.end::before {
  bottom: 16px;
}

.post-company.valeshop {
  background: #eef2ff;
  color: #3730a3;
}

.post-company.msb {
  background: #ecfeff;
  color: #155e75;
}

.post-company.nobeta {
  background: #f0fdf4;
  color: #166534;
}

.post-company.gilbarco {
  background: #f0fdf4;
  color: #4700a1;
}

/* .post-company {
  position: relative;
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eef2ff;
  color: #3730a3;
  margin-bottom: 6px;
} */


/* .post-card.valeshop::before {
  background: #4f46e5;
}

.post-card.msb::before {
  background: #0891b2;
}

.post-card.nobeta::before {
  background: #16a34a;
}

.post-card.gilbarco::before {
  background: #ea580c;
} */

/* mobile */
@media (max-width: 700px) {
  .whatsapp-float {
    width: 50px;
    height: 50px;
  }

  .whatsapp-float svg {
    width: 24px;
    height: 24px;
  }
}

/* Hover elegante */
.whatsapp-float:hover {
  background: rgba(37, 211, 102, 0.95);
  transform: translateY(-2px);
}

/* Mobile: aumenta área de toque */
@media (max-width: 700px) {
  .whatsapp-float {
    width: 48px;
    height: 48px;
    font-size: 22px;
  }
}

/*=========================================================
  MOBILE
  ========================================================= */
@media (max-width: 700px) {
  body {
    overflow: auto;
    /* mobile rola normal */
  }

  .app-container {
    height: auto;
    grid-template-columns: 1fr;
    grid-template-areas:
      "left"
      "feed"
      "right";
  }

  .sidebar-left,
  .sidebar-right {
    position: static;
    height: auto;
    overflow: visible;
  }

  .main-feed {
    overflow: visible;
    padding-right: 0;
  }
}

/* ===== OCULTAR SCROLLBAR DO FEED ===== */
.main-feed {
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE / Edge antigo */
}

.main-feed::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari, Edge */
}


/* DESKTOP ONLY */
@media (min-width: 701px) {

  .sidebar-left {
    /* position: relative; */
    height: fit-content;
    will-change: transform;
    overflow-y: auto;
  }


  .main-feed {
    max-height: calc(100vh - 24px);
    overflow-y: auto;
  }

}

@media (min-width: 701px) {


  .sidebar-right {
    /* position: relative; */
    height: fit-content;
    will-change: transform;
    overflow-y: auto;
  }

  .main-feed {
    max-height: calc(100vh - 24px);
    overflow-y: auto;
  }

}