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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Special Elite', monospace;
  font-size: 1rem;
  line-height: 1.85;
  letter-spacing: 0.02em;
  color: #1a1a1a;
  background-color: #f9f7f2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' /%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  hyphens: none;
  -webkit-hyphens: none;
  -moz-hyphens: none;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M3 3l7.07 16.97 2.51-7.39 7.39-2.51L3 3z' fill='%231a1a1a'/%3E%3C/svg%3E"), auto;
  padding-bottom: 50px;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* Fade suave para refresh - SEM piscar */
#postsContainer.fade-out {
  opacity: 0;
  transition: opacity 0.2s ease;
}

#postsContainer.fade-in {
  opacity: 1;
  transition: opacity 0.3s ease;
}

/* Search bar */
.search-bar {
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(176, 176, 176, 0.2);
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
}

/* Gallery button in search bar */
.gallery-btn {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid rgba(176, 176, 176, 0.3);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.gallery-btn:hover {
  border-color: #1a1a1a;
  background: rgba(0, 0, 0, 0.03);
}

.gallery-icon {
  width: 20px;
  height: 20px;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.gallery-btn:hover .gallery-icon {
  opacity: 1;
}

body.dark-mode .gallery-btn {
  border-color: rgba(255, 255, 255, 0.2);
}

body.dark-mode .gallery-btn:hover {
  border-color: #d4d4d4;
  background: rgba(255, 255, 255, 0.05);
}

body.dark-mode .gallery-icon {
  filter: invert(1);
}

.search-wrapper {
  flex: 1;
  min-width: 200px;
  position: relative;
  display: flex;
  align-items: center;
}

.search-input {
  flex: 1;
  background: transparent;
  border: 1px solid rgba(176, 176, 176, 0.3);
  font-family: 'Special Elite', monospace;
  font-size: 0.85rem;
  padding: 8px 35px 8px 12px;
  color: #1a1a1a;
  transition: border-color 0.2s ease;
  width: 100%;
}

.search-input:focus {
  outline: none;
  border-color: #1a1a1a;
}

.search-input::placeholder {
  color: #b0b0b0;
}

.search-clear {
  position: absolute;
  right: 5px;
  background: none;
  border: none;
  font-size: 1.3rem;
  color: #6a6a6a;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.search-clear.visible {
  opacity: 1;
  pointer-events: auto;
}

.search-clear:hover {
  color: #1a1a1a;
}

.sentiment-filters {
  display: flex;
  gap: 8px;
}

.sentiment-filter {
  background: var(--sentiment-color, #f5f5f5);
  border: 2px solid var(--sentiment-color, #d0d0d0);
  width: 34px;
  height: 34px;
  cursor: pointer;
  font-size: 0;
  color: transparent;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 4px;
  position: relative;
}

.sentiment-filter:hover {
  filter: brightness(0.9);
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.sentiment-filter:hover::after {
  content: attr(title);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-family: 'Special Elite', monospace;
  white-space: nowrap;
  pointer-events: none;
  z-index: 1000;
}

.sentiment-filter:hover::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: rgba(0, 0, 0, 0.85);
  pointer-events: none;
  z-index: 1000;
}

.sentiment-filter.active {
  filter: brightness(0.85);
  border-width: 3px;
  transform: scale(1.1);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
}

.posts {
  margin: 0;
  position: relative;
}

/* Timeline vertical navegável */
.timeline-nav {
  position: fixed;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 100;
}

.timeline-nav-item {
  font-size: 0.6rem;
  color: #c0c0c0;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  padding: 4px 8px;
  transition: all 0.2s ease;
  text-align: right;
  border-right: 2px solid transparent;
}

.timeline-nav-item:hover {
  color: #1a1a1a;
  border-right-color: #1a1a1a;
}

.timeline-nav-item.active {
  color: #1a1a1a;
  border-right-color: #1a1a1a;
  font-weight: bold;
}

.timeline-month {
  position: relative;
  margin-bottom: 0;
  scroll-margin-top: 40px;
}

.timeline-label {
  position: sticky;
  top: 40px;
  left: 0;
  width: 80px;
  padding: 20px 0;
  font-size: 0.65rem;
  color: #b0b0b0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-align: right;
  padding-right: 20px;
  float: left;
  z-index: 10;
}

.timeline-content {
  margin-left: 100px;
  padding-left: 30px;
  position: relative;
}

.loading {
  text-align: center;
  padding: 40px 20px;
  color: #6a6a6a;
  font-size: 0.9rem;
}

/* Post item */
.post {
  border-bottom: 1px solid rgba(176, 176, 176, 0.3);
  animation: fadeIn 0.4s ease;
  position: relative;
}

/* Timeline line per post - uses CSS variable for color */
.post::before {
  content: '';
  position: absolute;
  left: -30px;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: var(--timeline-color, #d0d0d0);
  transition: background-color 0.3s ease;
}

.post:last-child {
  border-bottom: none;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Post header - sempre visível */
.post-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 20px 0;
  cursor: pointer;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.post-header:hover {
  opacity: 0.6;
  transform: translateX(3px);
}

.post-info {
  flex: 1;
  display: flex;
  align-items: baseline;
  gap: 20px;
}

.post-date {
  font-size: 0.75rem;
  color: #6a6a6a;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
  min-width: 30px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sentiment-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  border: 1px solid #1a1a1a;
}

.post-title {
  font-size: 1rem;
  font-weight: normal;
  flex: 1;
}

/* Botão +/- */
.expand-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
}

.expand-btn:hover {
  opacity: 0.6;
}

.expand-icon {
  width: 18px;
  height: 18px;
  display: block;
  transition: transform 0.2s ease;
}

.expand-btn:hover .expand-icon {
  transform: scale(1.1);
}

/* Conteúdo colapsável */
.post-content {
  max-height: 0;
  overflow: hidden;
  padding-bottom: 0;
  transition: max-height 0.5s ease, padding-bottom 0.3s ease;
}

.post.expanded .post-content {
  max-height: 2000px;
  padding-bottom: 40px;
}

.post-body {
  padding-left: 50px;
}

/* Imagem Rorschach */
.rorschach-container {
  text-align: center;
  margin: 15px 0 30px 0;
  padding: 0;
  overflow: visible;
  position: relative;
}

.rorschach-container svg,
.rorschach-container .rorschach-image {
  max-width: 100%;
  width: auto;
  max-height: 400px;
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: contain;
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.6s ease-out, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.post.expanded .rorschach-container svg,
.post.expanded .rorschach-container .rorschach-image {
  opacity: 0.8;
  transform: scale(1);
}

/* Rating de imagens (evolução genética) */
.image-rating-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin: 20px 0 30px 0;
}

.rating-btn {
  background: transparent;
  border: 1px solid rgba(176, 176, 176, 0.3);
  width: 44px;
  height: 44px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: #b0b0b0;
}

.rating-btn:hover {
  border-color: #1a1a1a;
  color: #1a1a1a;
  transform: scale(1.1);
}

.rating-btn.active {
  border-color: #1a1a1a;
  background: #1a1a1a;
  color: #f9f7f2;
}

.rating-icon {
  display: block;
  transition: all 0.2s ease;
}

/* Texto do post */
.post-text {
  white-space: pre-wrap;
  word-wrap: break-word;
}

.post-text::first-letter {
  font-size: 3.5rem;
  line-height: 0.85;
  float: left;
  margin: 0.05em 0.1em 0 0;
  font-weight: normal;
}

/* Ocultar sentimento - não é necessário no design minimalista */
.post-sentiment {
  display: none;
}


/* Link admin discreto */
.admin-link {
  position: fixed;
  top: 20px;
  right: 75px;
  color: #b0b0b0;
  text-decoration: none;
  font-size: 1.5rem;
  opacity: 0.3;
  transition: opacity 0.2s ease;
  z-index: 1000;
}

.admin-link:hover {
  opacity: 0.8;
}

/* Botão Ver Mais */
.load-more-btn {
  display: block;
  margin: 40px auto 60px;
  padding: 12px 32px;
  background: transparent;
  border: 2px solid #e0e0e0;
  border-radius: 4px;
  font-family: 'Special Elite', monospace;
  font-size: 0.85rem;
  color: #6a6a6a;
  cursor: pointer;
  transition: all 0.3s ease;
}

.load-more-btn:hover {
  background: #f5f5f5;
  border-color: #c0c0c0;
  color: #1a1a1a;
  transform: translateY(-2px);
}

body.dark-mode .load-more-btn {
  border-color: #444;
  color: #aaa;
}

body.dark-mode .load-more-btn:hover {
  background: #2a2a2a;
  border-color: #666;
  color: #e0e0e0;
}

/* Dark mode toggle */
.dark-mode-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: #fff;
  border: 2px solid #e0e0e0;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.dark-mode-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-color: #c0c0c0;
}

.theme-icon {
  width: 20px;
  height: 20px;
  display: block;
  transition: all 0.3s ease;
  filter: invert(0.3) sepia(1) saturate(3) hue-rotate(190deg);
}

.dark-mode-toggle:hover .theme-icon {
  transform: rotate(20deg);
}

/* Dark mode styles */
body.dark-mode {
  background-color: #1a1a1a;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' /%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23noise)' opacity='0.1'/%3E%3C/svg%3E");
  color: #d4d4d4;
}

body.dark-mode .post {
  border-bottom: 1px solid rgba(74, 74, 74, 0.3);
}

body.dark-mode .post-date {
  color: #8a8a8a;
}

body.dark-mode .sentiment-dot {
  border-color: #d4d4d4;
}

body.dark-mode .post-title {
  color: #d4d4d4;
}

body.dark-mode .expand-icon {
  filter: invert(1) brightness(0.8);
}

body.dark-mode .loading {
  color: #8a8a8a;
}

body.dark-mode .timeline-nav-item {
  color: #6a6a6a;
}

body.dark-mode .timeline-nav-item:hover {
  color: #d4d4d4;
  border-right-color: #d4d4d4;
}

body.dark-mode .timeline-nav-item.active {
  color: #d4d4d4;
  border-right-color: #d4d4d4;
}

body.dark-mode .timeline-label {
  color: #6a6a6a;
}

body.dark-mode .timeline-content {
  border-left-color: #4a4a4a;
}

body.dark-mode .search-bar {
  border-bottom-color: rgba(74, 74, 74, 0.2);
}

body.dark-mode .search-input {
  color: #d4d4d4;
  border-color: rgba(74, 74, 74, 0.3);
}

body.dark-mode .search-input:focus {
  border-color: #d4d4d4;
}

body.dark-mode .search-input::placeholder {
  color: #6a6a6a;
}

body.dark-mode .search-clear {
  color: #8a8a8a;
}

body.dark-mode .search-clear:hover {
  color: #d4d4d4;
}

body.dark-mode .sentiment-filter {
  background: var(--sentiment-color, #3a3a3a);
  border-color: var(--sentiment-color, #555);
  opacity: 0.85;
}

body.dark-mode .sentiment-filter:hover {
  opacity: 1;
  filter: brightness(1.1);
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.2);
}

body.dark-mode .sentiment-filter:hover::after {
  background: rgba(255, 255, 255, 0.95);
  color: #1a1a1a;
}

body.dark-mode .sentiment-filter:hover::before {
  border-top-color: rgba(255, 255, 255, 0.95);
}

body.dark-mode .sentiment-filter.active {
  opacity: 1;
  filter: brightness(1.15);
  border-width: 3px;
  transform: scale(1.1);
  box-shadow: 0 3px 12px rgba(255, 255, 255, 0.25);
}

/* Rorschach em dark mode - sem alterações extras */

body.dark-mode .rating-btn {
  border-color: rgba(74, 74, 74, 0.3);
  color: #6a6a6a;
}

body.dark-mode .rating-btn:hover {
  border-color: #d4d4d4;
  color: #d4d4d4;
}

body.dark-mode .rating-btn.active {
  border-color: #d4d4d4;
  background: #d4d4d4;
  color: #1a1a1a;
}

body.dark-mode .admin-link {
  color: #6a6a6a;
}

body.dark-mode .dark-mode-toggle {
  background: #2a2a2a;
  border-color: #444;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body.dark-mode .dark-mode-toggle:hover {
  border-color: #666;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

body.dark-mode .theme-icon {
  filter: invert(1) sepia(1) saturate(5) hue-rotate(30deg) brightness(1.2);
}

/* Esconder botões mobile em desktop */
.mobile-top-buttons {
  display: none;
}

/* Responsive - Mobile */
@media (max-width: 550px) {
  .post-info {
    flex-direction: column;
    gap: 8px;
  }

  .post-date {
    min-width: auto;
  }

  .post-body {
    padding-left: 0;
  }

  .expand-btn {
    position: absolute;
    right: 20px;
    top: 20px;
  }

  .post-header {
    position: relative;
    padding-right: 40px;
  }

  /* Timeline adaptada para mobile */
  .timeline-nav {
    display: none;
  }

  .timeline-label {
    position: static;
    width: 100%;
    text-align: left;
    padding: 20px 0 10px 0;
    float: none;
  }

  .timeline-content {
    margin-left: 0;
    border-left: none;
    padding-left: 0;
  }

  /* Search bar em mobile */
  .search-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .search-wrapper {
    min-width: 100%;
  }

  /* =====================
     MOBILE: Header fixo unificado
     ===================== */
  .container::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 998;
  }

  body.dark-mode .container::before {
    background: rgba(30, 30, 30, 0.95);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  }

  .sentiment-filters {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    justify-content: center;
    padding: 10px 15px;
    z-index: 999;
  }

  /* Espaço para o header fixo */
  .search-bar {
    padding-top: 100px;
  }

  .footer {
    flex-direction: column;
    gap: 4px;
    padding: 10px 15px;
    font-size: 0.65rem;
  }

  /* Ajustar botões no mobile */
  .dark-mode-toggle {
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
  }

  .theme-icon {
    width: 18px;
    height: 18px;
  }

  .admin-link {
    top: 15px;
    right: 65px;
  }

  /* =====================
     MOBILE: Galeria + Pesquisa no topo esquerdo
     ===================== */

  /* Esconder galeria e pesquisa da search-bar */
  .search-bar .gallery-btn,
  .search-bar .search-wrapper {
    display: none;
  }

  .search-bar {
    margin-bottom: 20px;
    padding-bottom: 20px;
    justify-content: center;
  }

  /* Container dos botões no topo esquerdo */
  .mobile-top-buttons {
    display: flex;
    position: fixed;
    top: 15px;
    left: 15px;
    gap: 8px;
    z-index: 1000;
    align-items: center;
  }

  .mobile-top-buttons .gallery-btn-mobile,
  .mobile-top-buttons .search-btn-mobile {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid rgba(176, 176, 176, 0.3);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
  }

  .mobile-top-buttons .gallery-btn-mobile:hover,
  .mobile-top-buttons .search-btn-mobile:hover {
    border-color: #1a1a1a;
    background: rgba(0, 0, 0, 0.03);
  }

  .mobile-top-buttons .mobile-icon {
    width: 18px;
    height: 18px;
    opacity: 0.7;
  }

  body.dark-mode .mobile-top-buttons .gallery-btn-mobile,
  body.dark-mode .mobile-top-buttons .search-btn-mobile {
    border-color: rgba(255, 255, 255, 0.2);
  }

  body.dark-mode .mobile-top-buttons .gallery-btn-mobile:hover,
  body.dark-mode .mobile-top-buttons .search-btn-mobile:hover {
    border-color: #d4d4d4;
    background: rgba(255, 255, 255, 0.05);
  }

  body.dark-mode .mobile-top-buttons .mobile-icon {
    filter: invert(1);
  }

  /* SVG search icon */
  .mobile-top-buttons .search-icon-svg {
    width: 18px;
    height: 18px;
    color: #1a1a1a;
    opacity: 0.7;
  }

  body.dark-mode .mobile-top-buttons .search-icon-svg {
    color: #d4d4d4;
  }

  /* Barra de pesquisa expansível */
  .mobile-search-expand {
    position: fixed;
    left: 68px;
    right: 130px;
    top: 15px;
    height: 38px;
    display: flex;
    align-items: center;
    background: transparent;
    border: 1px solid rgba(176, 176, 176, 0.3);
    border-radius: 4px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: scaleX(0);
    transform-origin: left;
    transition: all 0.3s ease;
  }

  .mobile-search-expand.open {
    opacity: 1;
    pointer-events: auto;
    transform: scaleX(1);
  }

  .mobile-search-expand input {
    flex: 1;
    border: none;
    background: transparent;
    font-family: 'Special Elite', monospace;
    font-size: 0.85rem;
    padding: 8px 15px;
    color: #1a1a1a;
    outline: none;
  }

  .mobile-search-expand input::placeholder {
    color: #b0b0b0;
  }

  .mobile-search-expand .close-search {
    background: none;
    border: none;
    font-size: 1.4rem;
    color: #6a6a6a;
    cursor: pointer;
    padding: 0 12px;
    height: 100%;
    display: flex;
    align-items: center;
  }

  .mobile-search-expand .close-search:hover {
    color: #1a1a1a;
  }

  body.dark-mode .mobile-search-expand {
    border-color: rgba(255, 255, 255, 0.2);
  }

  body.dark-mode .mobile-search-expand input {
    color: #d4d4d4;
  }

  body.dark-mode .mobile-search-expand input::placeholder {
    color: #6a6a6a;
  }

  body.dark-mode .mobile-search-expand .close-search {
    color: #8a8a8a;
  }

  body.dark-mode .mobile-search-expand .close-search:hover {
    color: #d4d4d4;
  }

  /* Esconder botão lupa quando pesquisa está aberta */
  .mobile-top-buttons.search-open .search-btn-mobile {
    opacity: 0;
    pointer-events: none;
  }
}

/* =====================
   FOOTER
===================== */
.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  padding: 12px 20px;
  text-align: center;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  font-size: 0.7rem;
  color: #999;
  background: #f9f7f2;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.footer p {
  margin: 0;
  display: inline;
}

.footer .heart {
  display: inline-block;
  color: #e74c3c;
  animation: heartbeat 1.5s ease infinite;
}

@keyframes heartbeat {
  0%, 100% {
    transform: scale(1);
  }
  14% {
    transform: scale(1.15);
  }
  28% {
    transform: scale(1);
  }
}

.footer-link {
  color: #6b5b4f;
  text-decoration: none;
  border-bottom: 1px dotted #6b5b4f;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-link:hover {
  color: #4a3f36;
  border-color: #4a3f36;
}

.heart-link {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s ease;
}

.heart-link:hover {
  opacity: 0.8;
}

body.dark-mode .footer {
  border-top-color: rgba(255, 255, 255, 0.1);
  color: #aaa;
  background: #1a1a1a;
}

body.dark-mode .footer-link {
  color: #b8a898;
  border-color: #b8a898;
}

body.dark-mode .footer-link:hover {
  color: #d4c4b4;
  border-color: #d4c4b4;
}

/* =====================
   POST INTERACTIONS (Gostos + Partilhas)
===================== */
.post-interactions {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* =====================
   LIKES
===================== */
.post-likes {
  display: flex;
  align-items: center;
  gap: 15px;
}

.like-button {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
}

.like-button .heart-icon {
  width: 22px;
  height: 22px;
  display: block;
  transition: transform 0.2s ease;
}

.like-button:hover .heart-icon {
  transform: scale(1.2);
}

.like-count {
  font-size: 0.85rem;
  color: #888;
}

body.dark-mode .post-interactions {
  border-top-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .like-count {
  color: #aaa;
}

/* =====================
   SHARE BUTTONS
   ===================== */
.share-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.share-label {
  font-size: 0.85rem;
  color: #888;
  font-weight: 500;
}

.share-btn {
  background: transparent;
  border: 1px solid #ddd;
  padding: 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
}

.share-btn:hover {
  background: #f5f5f5;
  border-color: #ccc;
}

.share-btn svg {
  display: block;
}

.share-facebook:hover {
  color: #1877f2;
  border-color: #1877f2;
  background: rgba(24, 119, 242, 0.1);
}

.share-twitter:hover {
  color: #1da1f2;
  border-color: #1da1f2;
  background: rgba(29, 161, 242, 0.1);
}

.share-whatsapp:hover {
  color: #25d366;
  border-color: #25d366;
  background: rgba(37, 211, 102, 0.1);
}

.share-copy:hover {
  color: #6c757d;
  border-color: #6c757d;
  background: rgba(108, 117, 125, 0.1);
}

body.dark-mode .share-label {
  color: #aaa;
}

body.dark-mode .share-btn {
  border-color: #444;
  color: #ccc;
}

body.dark-mode .share-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: #666;
}

/* =====================
   FOOTER LINKS
   ===================== */
.footer-links {
  margin: 0;
  font-size: 0.7rem;
  opacity: 0.6;
  display: inline;
}

.footer-links a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dotted currentColor;
  transition: opacity 0.2s ease;
}

.footer-links a:hover {
  opacity: 1;
}

.footer-links span {
  margin: 0 6px;
  opacity: 0.5;
}

/* =====================
   COOKIE BANNER
   ===================== */
.cookie-banner {
  position: fixed;
  bottom: -200px;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 2px solid #e0e0e0;
  padding: 20px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  z-index: 10000;
  transition: bottom 0.4s ease;
}

.cookie-banner.show {
  bottom: 0;
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.cookie-content p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.btn-accept, .btn-settings {
  padding: 10px 24px;
  border: none;
  border-radius: 4px;
  font-family: 'Special Elite', monospace;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-accept {
  background: #2c3e50;
  color: #fff;
}

.btn-accept:hover {
  background: #1a252f;
}

.btn-settings {
  background: transparent;
  color: #2c3e50;
  border: 1px solid #2c3e50;
}

.btn-settings:hover {
  background: #f5f5f5;
}

body.dark-mode .cookie-banner {
  background: #2a2a2a;
  border-top-color: #444;
}

body.dark-mode .cookie-content p {
  color: #ddd;
}

body.dark-mode .btn-accept {
  background: #4a5f7f;
}

body.dark-mode .btn-accept:hover {
  background: #3a4f6f;
}

body.dark-mode .btn-settings {
  color: #ddd;
  border-color: #666;
}

body.dark-mode .btn-settings:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Mobile responsivo */
@media (max-width: 768px) {
  .cookie-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-buttons {
    width: 100%;
  }

  .btn-accept, .btn-settings {
    flex: 1;
  }
}

/* =====================
   MODALS LEGAIS
   ===================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 11000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 20px;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: #fff;
  border-radius: 8px;
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  font-family: 'Special Elite', monospace;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-content h2 {
  margin: 0 0 20px 0;
  font-size: 1.5rem;
  color: #2c3e50;
}

.modal-description {
  color: #666;
  margin-bottom: 30px;
}

.cookie-modal {
  max-width: 500px;
}

.cookie-category {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 4px;
  margin-bottom: 20px;
}

.cookie-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.cookie-status {
  font-size: 0.75rem;
  color: #27ae60;
  background: rgba(39, 174, 96, 0.1);
  padding: 4px 12px;
  border-radius: 12px;
}

.cookie-category p {
  margin: 0;
  font-size: 0.85rem;
  color: #666;
  line-height: 1.5;
}

.legal-content {
  color: #444;
  line-height: 1.8;
}

.legal-content h3 {
  margin: 30px 0 15px 0;
  font-size: 1.1rem;
  color: #2c3e50;
}

.legal-content h3:first-child {
  margin-top: 0;
}

.legal-content ul {
  margin: 10px 0;
  padding-left: 25px;
}

.legal-content li {
  margin: 8px 0;
  font-size: 0.9rem;
}

.legal-content p {
  margin: 10px 0;
  font-size: 0.9rem;
}

.legal-content a {
  color: #6b5b4f;
  text-decoration: underline;
}

.modal-footer {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.btn {
  padding: 10px 24px;
  border: none;
  border-radius: 4px;
  font-family: 'Special Elite', monospace;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background: #2c3e50;
  color: #fff;
}

.btn-primary:hover {
  background: #1a252f;
}

.btn-secondary {
  background: transparent;
  color: #666;
  border: 1px solid #ddd;
}

.btn-secondary:hover {
  background: #f5f5f5;
}

/* Dark mode */
body.dark-mode .modal-content {
  background: #2a2a2a;
  color: #ddd;
}

body.dark-mode .modal-content h2 {
  color: #e0e0e0;
}

body.dark-mode .modal-description {
  color: #aaa;
}

body.dark-mode .cookie-category {
  background: #333;
}

body.dark-mode .cookie-category p {
  color: #aaa;
}

body.dark-mode .legal-content {
  color: #ccc;
}

body.dark-mode .legal-content h3 {
  color: #e0e0e0;
}

body.dark-mode .legal-content a {
  color: #b8a898;
}

body.dark-mode .modal-footer {
  border-top-color: #444;
}

body.dark-mode .btn-primary {
  background: #4a5f7f;
}

body.dark-mode .btn-primary:hover {
  background: #3a4f6f;
}

body.dark-mode .btn-secondary {
  color: #ccc;
  border-color: #555;
}

body.dark-mode .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* Mobile responsivo - Post interactions */
@media (max-width: 768px) {
  .post-interactions {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .share-buttons {
    width: 100%;
  }

  .post-likes {
    width: 100%;
    justify-content: space-between;
  }
}

/* Manifest Button - igual ao dark mode toggle */
.manifest-btn {
  position: fixed;
  top: 20px;
  right: 74px;
  width: 44px;
  height: 44px;
  background: #fff;
  border: 2px solid #e0e0e0;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  text-decoration: none;
}

.manifest-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-color: #c0c0c0;
}

.manifest-icon {
  width: 20px;
  height: 20px;
  display: block;
  transition: all 0.3s ease;
}

.manifest-btn:hover .manifest-icon {
  transform: scale(1.1);
}

body.dark-mode .manifest-btn {
  background: #2a2a2a;
  border-color: #444;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body.dark-mode .manifest-btn:hover {
  border-color: #666;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

body.dark-mode .manifest-icon {
  filter: invert(1);
}

/* Mobile manifest button */
@media (max-width: 480px) {
  .manifest-btn {
    top: 15px;
    right: 60px;
    width: 40px;
    height: 40px;
  }

  .manifest-icon {
    width: 18px;
    height: 18px;
  }
}
