.logo-wrapper {
  /* display: flex;
  flex-direction: column; */
  align-items: center;
  cursor: pointer;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

/*
    A mágica: o container .logo-story-ring recebe o gradient conic
    como background, e com padding + background-clip cria a borda
    animada ao redor da logo real.
  */
.logo-story-ring {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  padding: 3px;
  background: rgba(0, 0, 0, 0.08);
  transition:
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.3s ease;
}

.logo-story-ring:active {
  transform: scale(0.97);
}

/* ===== Estado: tem stories NÃO vistos ===== */
.logo-story-ring.has-unseen {
  background: conic-gradient(
    from 0deg,
    #f43f5e,
    #ec4899,
    #a855f7,
    #6366f1,
    #3b82f6,
    #06b6d4,
    #10b981,
    #eab308,
    #f97316,
    #f43f5e
  );
  animation: ring-rotate 4s linear infinite;
  box-shadow:
    0 0 20px rgba(236, 72, 153, 0.35),
    0 0 40px rgba(168, 85, 247, 0.15);
}

/* ===== Estado: todos vistos ===== */
.logo-story-ring.all-seen {
  background: rgba(0, 0, 0, 0.1);
}

/* ===== Estado: sem stories ===== */
.logo-story-ring.no-stories {
  background: transparent;
  padding: 0;
}

@keyframes ring-rotate {
  to {
    filter: hue-rotate(360deg);
  }
}

/* Camada branca interna (cria a "borda" do ring) */
.logo-story-inner {
  background: #fff;
  border-radius: 11px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.logo-story-ring.no-stories .logo-story-inner {
  padding: 8px 14px;
  background: transparent;
}

.logo-story-ring.has-unseen .logo-story-inner {
  padding: 1px;
}

.sidenav-header-logo img {
    margin: 0px;
}

/* A logomarca real */
.logo-story-inner img {
  height: 50px;
  width: auto;
  display: block;
}

@media (min-width: 768px) {
  .logo-story-inner img {
    height: 60px;
  }
}

/* ===== Pulse (brilho que pulsa ao redor) ===== */
.story-glow {
  position: absolute;
  inset: -5px;
  border-radius: 18px;
  border: 2px solid #dc2626;
  opacity: 0;
  z-index: 1;
  pointer-events: none;
}

.has-unseen .story-glow {
  animation: glow-pulse 2s ease-out infinite;
}

@keyframes glow-pulse {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }
  100% {
    transform: scale(1.08);
    opacity: 0;
  }
}

/* ===== Badge "NOVO" abaixo da logo ===== */
.story-badge-below {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: none;
}

.story-badge-below-inner {
  background: linear-gradient(135deg, #dc2626, #f43f5e);
  color: #fff;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 10px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.4);
  animation: badge-bounce 2s ease-in-out infinite;
  display: flex;
  align-items: center;
  gap: 3px;
}

.story-badge-below-inner i {
  font-size: 10px;
}

@keyframes badge-bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

/* Badge com contador */
.story-badge-below-inner .badge-count {
  background: rgba(255, 255, 255, 0.3);
  padding: 1px 5px;
  border-radius: 6px;
  font-size: 9px;
  font-weight: 800;
  margin-left: 2px;
}

/* Badge estado "visto" */
.story-badge-below.seen .story-badge-below-inner {
  background: rgba(0, 0, 0, 0.25);
  box-shadow: none;
  animation: none;
}

/* ===== Shimmer effect na borda ===== */
.has-unseen::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.15) 50%,
    transparent 70%
  );
  animation: shimmer 3s ease-in-out infinite;
  border-radius: 14px;
  pointer-events: none;
  z-index: 3;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%) translateY(-100%);
  }
  100% {
    transform: translateX(100%) translateY(100%);
  }
}

/* ===== OVERLAY ===== */
.stories-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.96);
  z-index: 9999;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.stories-overlay.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.stories-overlay.visible {
  opacity: 1;
}

.stories-container {
  position: relative;
  width: 100%;
  max-width: 420px;
  height: 100%;
  max-height: 100vh;
  overflow: hidden;
  background: #111;
}

@media (min-width: 640px) {
  .stories-container {
    height: calc(100vh - 60px);
    max-height: 860px;
    border-radius: 16px;
  }
}

.stories-progress {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  gap: 3px;
  padding: 10px 10px 0;
}

.progress-bar {
  flex: 1;
  height: 3px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 3px;
  overflow: hidden;
  cursor: pointer;
}

.progress-bar .progress-fill {
  height: 100%;
  width: 0%;
  background: #fff;
  border-radius: 3px;
  transition: none;
}

.progress-bar.viewed .progress-fill {
  width: 100%;
}
.progress-bar.active .progress-fill {
  transition: width linear;
}

.story-header {
  position: absolute;
  top: 18px;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
}

.story-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Mini logo no header do story (igual ao Instagram) */
.story-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid #dc2626;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

.story-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 3px;
}

.story-user-info {
  display: flex;
  flex-direction: column;
}

.story-username {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}

.story-time {
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
  font-weight: 400;
}

.story-time-expiry {
  color: rgba(255, 255, 255, 0.35);
  font-size: 10px;
  font-weight: 400;
  margin-top: 1px;
}

.story-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.story-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.story-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.story-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.story-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 55%;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.4) 50%,
    transparent 100%
  );
  pointer-events: none;
}

.story-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 18px 32px;
  z-index: 20;
}

.story-category {
  display: inline-block;
  background: #dc2626;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.story-title {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.story-description {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.story-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #dc2626;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  transition:
    background 0.2s,
    transform 0.15s;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  z-index: 25;
  cursor: pointer;
}

.story-cta:hover {
  background: #b91c1c;
  transform: translateY(-1px);
}
.story-cta:active {
  transform: scale(0.97);
}
.story-cta i {
  font-size: 14px;
}

.pause-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  z-index: 40;
  color: #fff;
  font-size: 48px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s ease;
}

.pause-indicator.show {
  transform: translate(-50%, -50%) scale(1);
  opacity: 0.8;
}

.site-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.news-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition:
    box-shadow 0.3s,
    transform 0.3s;
}

.news-card:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.news-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.news-card-body {
  padding: 16px;
}

.news-card-cat {
  font-size: 10px;
  font-weight: 700;
  color: #dc2626;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.news-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (min-width: 640px) {
  .btn-home {
    display: none;
  }
}

@media (max-width: 639px) {
  .stories-container {
    border-radius: 0;
    max-width: 100%;
  }
  .story-title {
    font-size: 16px;
  }
  .logo-story-inner img {
    height: 60px;
  }
  .logo-story-inner {
    padding: 6px 10px;
  }
}

.swipe-hint {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.35);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.05em;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 4px;
  animation: swipe-hint-pulse 2.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes swipe-hint-pulse {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 0.7;
  }
}
