/* Fundo geral */
html { font-size: 14px; } /* slightly smaller base font to improve fit */
body {
  background: #e8f5e9; /* tom claro esverdeado */
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.9375rem; /* ensure body uses reduced scale (14px) */
} 

/* Topo tipo Orkut */
.navbar {
  background: linear-gradient(90deg, #2e7d32, #43a047);
  border-bottom: 3px solid #c8e6c9;
}

.navbar-brand {
  font-weight: 700;
  color: #ffffff !important;
  letter-spacing: 0.03em;
}

/* Brand sizing: make 'Souknet' more prominent and 'by iFrutus' smaller */
.navbar-brand .brand-main {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
}
.navbar-brand .brand-subsmall {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  margin-left: 6px;
  display: none; /* esconder por padrão; só mostre se realmente precisar */
}
/* Sidebar font slightly larger for more content readability */
.sidebar-sticky { font-size: 1.05rem; }
/* add spacing within sidebar links */
.sidebar-sticky ul li a { padding: 8px 0; }

/* Sidebar offer title: allow wrapping, clamp to 2 lines with ellipsis and break long words */
.sidebar-offer-title {
  white-space: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  word-break: break-word;
  overflow-wrap: anywhere;
}

:root { --details-transition-duration: 0.28s; }

/* Collapsible details panel used across market lists */
.market-details-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--details-transition-duration) ease;
  box-sizing: border-box;
}

/* small class to highlight only the word "powered" in orange */
.powered-word {
  color: #ff6f00;
  font-weight: 600;
}

.navbar .btn {
  border-radius: 999px;
}
/* Modern header button styles: flatter, less rounded, subtle shadow */
.navbar .btn {
  border-radius: 8px; /* less pill-shaped */
  padding: 8px 12px;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease, filter 0.12s ease;
}
.navbar .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  opacity: 0.98;
  filter: brightness(0.92); /* slightly darker on hover */
}
.navbar .btn.btn-primary {
  background-image: none;
  background-color: #2e7d32;
  border: 1px solid rgba(0,0,0,0.06);
}
.navbar .btn.btn-outline-light {
  background: rgba(255,255,255,0.06);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.08);
}

/* Offer like button - liked state */
.js-offer-like.liked {
  color: #d32f2f; /* red */
  border-color: rgba(211,47,47,0.12);
  background: rgba(211,47,47,0.04);
}

/* Container principal agora ocupa toda a largura disponível (sem limite fixo).
   Pequeno padding mantém o conteúdo longe das bordas da janela. */
/* Container principal amplo mas com margem reduzida nas laterais. */
.container {
  max-width: none; /* remove cap */
  width: 100%;
  margin: 0 auto;
  padding: 0 12px;
}

/* site-container segue o mesmo comportamento para layouts fluidos */
/* contêiner de site usado em algumas páginas fluidas também recebe largura maior */
.site-container {
  max-width: none; /* no cap */
  width: 100%;
  margin: 0 auto;
  padding: 0 12px;
  transition: transform 0.2s ease;
}


/* diminuir a margem lateral entre colunas para aproveitar cada pixel */
.row {
  --bs-gutter-x: 0.5rem; /* padrão é 1.5rem */
}

/* tornar itens de menu um pouco maiores e com espaçamento confortável */
.sidebar-sticky ul li a {
  font-size: 1.1rem;
  padding: 6px 0;
}

/* Market CTA responsiveness */
.market-cta {
  display: inline-block;
}

/* ============================
   Post/media gallery
   ============================ */
.post-media-gallery-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden; /* hide any stray scrollbars */
  /* arrows will sit just outside the gallery area using negative offsets */
}

.post-media-gallery {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden; /* no vertical scrollbar */
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; /* smooth scrolling on iOS */
  justify-content: center; /* center items when there is extra space */
}
.post-media-gallery img,
.post-media-gallery video,
.post-media-gallery audio {
  scroll-snap-align: center;
  max-height: 240px; /* smaller height so cards don't blow up */
  max-width: 100%;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
  margin: 0 auto;
  cursor: pointer;
  transition: transform 0.2s ease-in-out;
}
.post-media-gallery img:hover,
.post-media-gallery video:hover {
  transform: scale(1.05);
}
.post-media-gallery .media-item {
  position: relative;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.3);
  color: white;
  border: none;
  padding: 6px 10px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 1000; /* bring above other content */
}
.gallery-nav.prev { left: -20px; }
.gallery-nav.next { right: -20px; }
.gallery-nav:hover { background: rgba(0,0,0,0.5); }

/* ============================
   Lightbox overlay for post media
   ============================ */
.lightbox-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}
.lightbox-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 90vw;
  max-height: 90vh;
}
.lightbox-content img,
.lightbox-content video {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 2.5rem;
  padding: 0 16px;
  cursor: pointer;
  user-select: none;
  z-index: 10001; /* above media content */
  /* enlarge hit area */
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.2);
  border-radius: 50%;
}
.lightbox-nav:hover { background: rgba(0,0,0,0.4); }
.lightbox-nav.prev { left: 20px; }
.lightbox-nav.next { right: 20px; }
.lightbox-close {
  position: absolute;
  top: -40px;
  right: -40px;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  user-select: none;
}

/* custom scrollbar for central feed column */
.feed-column {
  scrollbar-width: thin;
  scrollbar-color: #ff6f00 #e8f5e9; /* thumb track (Firefox) */
  padding-top: 4px; /* nearly flush; keep tiny gap for safety */
}

/* styling for the flow‑based end-of-feed notice */
.end-feed-notice {
  text-align: center;
  margin: 12px 0 24px;
  background: #ffffff;
  border: 1px solid #c8e6c9;
  border-radius: 8px;
  padding: 8px 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  display: none; /* toggled by JS */
  position: static; /* keep in normal document flow inside the feed column */
}

/* Debug helper: quando presente no URL, força exibição e marca visualmente */
.end-feed-notice.debug-end-feed {
  display: block !important;
  border: 2px dashed #ff3b30 !important;
  background: #fff7f6 !important;
  box-shadow: 0 6px 18px rgba(255,59,48,0.06) !important;
  z-index: 9999 !important;
}
.feed-column::-webkit-scrollbar {
  width: 8px;
}
.feed-column::-webkit-scrollbar-track {
  background: #e8f5e9;
}
.feed-column::-webkit-scrollbar-thumb {
  background-color: #ff6f00;
  border-radius: 4px;
  border: 2px solid #e8f5e9;
}

/* ensure sidebars (left and right) use green scrollbars too */
.sidebar-sticky {
  scrollbar-width: thin;
  scrollbar-color: #2e7d32 #f1f1f1;
}
.sidebar-sticky::-webkit-scrollbar {
  width: 6px;
}
.sidebar-sticky::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}
.sidebar-sticky::-webkit-scrollbar-thumb {
  background: #2e7d32;
  border-radius: 3px;
}
.sidebar-sticky::-webkit-scrollbar-thumb:hover {
  background: #1b5e20;
}

/* grid view and quick‑purchase overlay for marketplace */
.market-grid-item { position: relative; overflow: hidden; cursor: pointer; transition: box-shadow 0.2s; margin-bottom: 0.2rem; }

body.no-sidebars .row { --bs-gutter-x: 0 !important; }

#acoesGrid .col-6, #acoesGrid .col-md-4, #acoesGrid .col-lg-3 { padding-right: 0.25rem; padding-left: 0.25rem; margin-bottom: 0.25rem; }

/* hide sidebars completely when requested */
body.no-sidebars .col-md-3 { display: none !important; }
body.no-sidebars .col-md-6 { flex: 0 0 100% !important; max-width: 100% !important; }
.market-grid-item:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.market-grid-item .market-quick-info {
  display: none !important;
}
.market-grid-overlay,
.market-best-badge {
  display: none !important;
}

/* sparkline canvas sizing */
.price-sparkline { max-width: 100%; height: auto; }

  /* Forçar sidebar no Mercado */
  .market-page .col-md-2,
  .market-page .sidebar-sticky {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  .market-page .sidebar-sticky {
    position: sticky !important;
    top: 90px !important;
  }
  border-radius: 50%; width: 32px; height: 32px;
  padding: 0; font-size: 1.2rem; line-height: 1;
}
.market-grid-item .add-btn:hover { opacity: 0.9; }

@media (max-width: 576px) {
  .container { max-width: 100%; padding-left: 12px; padding-right: 12px; }
  .market-cta { display: block; width: 100%; }
  .market-cta .btn { width: 100%; }
  .orkut-card { padding: 12px; }
  /* Stack the media thumb above text in offers */
  .orkut-card .d-flex.align-items-start { flex-direction: column; }
  .market-media-thumb { width: 100%; height: auto; aspect-ratio: 16/9; margin-bottom: 10px; }
  .market-media-thumb .market-thumb-img { height: 100%; }
  /* Navbar collapsed menu adjustments */
  .navbar-collapse { background: linear-gradient(180deg, rgba(46,125,50,0.95), rgba(67,160,71,0.95)); padding: 12px; border-radius: 8px; }
  .navbar-collapse .btn { display: block; width: 100%; margin-bottom: 8px; }
  .navbar-nav { width: 100%; }
  .navbar-toggler { border-color: rgba(255,255,255,0.2); }
}

/* Caixas estilo Orkut */
.orkut-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #c8e6c9;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  padding: 20px;
}

.orkut-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1b5e20;
  margin-bottom: 14px;
} 

/* Botão principal verde */
.btn-primary {
  background-color: #2e7d32;
  border-color: #1b5e20;
}

.btn-primary:hover {
  background-color: #1b5e20;
}

/* Ensure any primary button inside .orkut-card (sidebar quick link) shows green background */
.orkut-card .btn-primary {
  background-color: #2e7d32;
  color: #ffffff;
  border-color: #1b5e20;
}

.orkut-card .btn-primary:hover {
  background-color: #1b5e20;
  color: #ffffff;
}

/* Floating Action Button (FAB) Container */
.fab-container {
  position: fixed;
  bottom: 60px; /* give breathing room above footer */
  /* move further from right edge to avoid overlapping native scrollbar;
     large fixed margin ensures clearance even when scrollbar floats on top */
  right: 90px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  /* overflow removed to allow button shadow and outline to be fully visible */
}

/* Main FAB Button */
.fab-button {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #2e7d32, #43a047);
  color: #ffffff;
  border-radius: 50%;
  border: none;
  box-shadow: 0 4px 12px rgba(46, 125, 50, 0.4), 0 2px 6px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 300;
  transition: all 0.3s ease;
  user-select: none;
  -webkit-user-select: none;
  /* no overflow restriction so rounded border shows fully */
}

.fab-button:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(46, 125, 50, 0.5), 0 3px 8px rgba(0, 0, 0, 0.3);
  background: linear-gradient(135deg, #1b5e20, #2e7d32);
}

.fab-button:active {
  transform: scale(0.95);
}

.fab-button #fabIcon {
  transition: transform 0.3s ease;
  display: block;
  line-height: 1;
}

/* FAB Menu (expandable options) */
.fab-menu {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  animation: fabMenuSlideIn 0.3s ease-out;
}

@keyframes fabMenuSlideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* FAB Menu Items */
.fab-menu-item {
  width: 50px;
  height: 50px;
  background: #ffffff;
  border: 2px solid #2e7d32;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #2e7d32;
  font-size: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
  position: relative;
  z-index: 10000;
}

.fab-menu-item::before {
  content: attr(data-label);
  position: absolute;
  right: 65px;
  background: #1b5e20;
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 10001;
  top: 50%;
  transform: translateY(-50%);
}


.fab-menu-item:hover {
  transform: scale(1.15);
  background: #e8f5e9;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.fab-menu-item::before {
  content: attr(data-label);
  position: absolute;
  right: 65px;
  background: #1b5e20;
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.fab-menu-item:hover::before {
  opacity: 1;
}

.fab-menu-icon {
  display: block;
  line-height: 1;
}

/* Tooltip for FAB */
.fab-tooltip {
  position: fixed;
  bottom: 110px;
  right: 30px;
  background: #ffffff;
  color: #1b5e20;
  padding: 12px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  font-size: 14px;
  font-weight: 500;
  z-index: 1002;
  white-space: nowrap;
  animation: fabTooltipBounce 0.5s ease-in-out infinite;
  border: 2px solid #c8e6c9;
}

.fab-tooltip::after {
  content: '';
  position: absolute;
  bottom: -10px;
  right: 20px;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid #ffffff;
}

@keyframes fabTooltipBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.fab-tooltip-close {
  margin-left: 15px;
  color: #ff6f00;
  cursor: pointer;
  font-weight: 700;
}

.fab-tooltip-close:hover {
  color: #e65100;
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
  .fab-container {
    bottom: 20px;
    right: 20px;
  }
  
  .fab-button {
    width: 56px;
    height: 56px;
    font-size: 28px;
  }
  
  .fab-menu-item {
    width: 46px;
    height: 46px;
    font-size: 20px;
  }
  
  .fab-menu-item::before {
    right: 60px;
    font-size: 12px;
    padding: 5px 10px;
  }
  
  .fab-tooltip {
    bottom: 90px;
    right: 20px;
    font-size: 13px;
    padding: 10px 16px;
  }
}

.btn-primary:hover {
  background-color: #1b5e20;
  border-color: #0d4715;
}

/* Links */
a {
  color: #ff6f00;
}

a:hover {
  color: #e65100;
}

/* Login / cadastro centralizado */
.auth-wrapper {
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-box {
  width: 100%;
  max-width: 420px;
}

/* Títulos */
h3, h4, h5 {
  color: #1b5e20;
}

/* Feed */
.feed-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: #1b5e20;
}

.feed-post-card {
  border-radius: 12px;
  border: 1px solid #c8e6c9;
}

/* Mensagens / conversas */
.conversation-box {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #c8e6c9;
}

/* Avatar in inbox list (small, fixed) */
.conv-avatar {
  width: 40px !important;
  height: 40px !important;
  max-width: 40px !important;
  max-height: 40px !important;
  object-fit: cover;
  display: inline-block;
  border: 2px solid #e9f3ea;
}

@media (max-width: 576px) {
  .conv-avatar { width: 36px !important; height: 36px !important; max-width:36px; max-height:36px; }
}

/* presence indicator */
.position-relative { position: relative; }
.presence-dot {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.12);
}
.presence-online { background: #2e7d32; }
.presence-away { background: #f0ad4e; }
.presence-offline { background: #c8c8c8; }

.conv-preview { color: #6c757d; font-size: 0.95rem; max-width: 420px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Pequeno “rodapé” estilo antigo (se ainda usar) */
.app-footer {
  font-size: 0.8rem;
  color: #777;
  text-align: center;
  padding: 16px 0 24px;
}

/* ===================================================== */
/*                    FEED / POSTS                       */
/* ===================================================== */

/* Cabeçalho de cada post: avatar + nome + data */
.feed-post-header {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

/* Avatar do autor */
.feed-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  margin-right: 10px;
  object-fit: cover;
  border: 2px solid #c8e6c9;
}

/* Linha de meta: likes e comentários */
.feed-meta {
  font-size: 0.85rem;
  color: #666;
  margin-top: 4px;
}

/* ===================================================== */
/*                   AÇÕES SOCIAIS (LIKE etc)            */
/* ===================================================== */
.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: #65676b;
  font-weight: 600;
  cursor: pointer;
}
.action-btn .icon { font-size: 1.05rem; line-height: 1; }
.action-btn .count { font-weight: 700; color: inherit; }
.action-like { color: #e4405f; }
.action-like.liked { background: rgba(228,64,95,0.06); color: #e4405f; }
.action-comment { color: #65676b; }
.action-repost { color: #2e7d32; }

/* ensure small icon-only buttons don't push height */
.action-btn.small { padding: 4px 6px; font-size: 0.95rem; }

@media (max-width: 576px) {
  .action-btn { gap: 5px; padding: 5px 6px; }
}


/* Margem interna dos cards do feed */
.feed-post-card .card-body {
  padding: 15px 18px;
}

/* Indicador de repost */
.repost-indicator {
  padding: 4px 0;
  font-size: 0.85rem;
  color: #666;
}

/* Lateral (menus) */
.orkut-card ul li a {
  display: block;
  padding: 4px 0;
}

/* FLV: keep user links inline inside transaction lines */
.flv-user-link {
  display: inline !important;
  margin-right: 6px;
  color: #ff6f00;
  text-decoration: none;
}
.flv-user-link:hover { text-decoration: underline; }

/* Force transaction detail inline and prevent unwanted breaks */
.flv-detail {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  white-space: nowrap;
  font-size: 0.95em;
}

@media (max-width: 575px) {
  /* allow wrapping on very small screens */
  .flv-detail { white-space: normal; }
}

/* Community description read more */
.comm-desc-short { display:inline; }
.comm-desc-full { display: none; }
.comm-readmore { color: #2e7d32; font-weight: 600; text-decoration: none; }
.comm-readmore:hover { text-decoration: underline; }

/* Community card banner like Discord */
/* Hide any .community-card-cover outside of .community-card (prevent duplicates) */
.community-card-cover { display: none !important; }
.community-card { overflow: hidden; border-radius: 10px; }
.community-card > .community-card-cover { display: block !important; width: 100%; height: 120px; background-color: #f5f5f5; background-size: cover; background-position: center; background-repeat: no-repeat; position: relative; text-decoration: none; border-top-left-radius: 10px; border-top-right-radius: 10px; }
.community-card-cover-empty { background: linear-gradient(180deg,#f5f5f5,#eee); }
.community-cover-overlay { display:flex; justify-content:space-between; align-items:center; padding: 12px 14px; height:100%; background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,0.28)); }
.community-cover-left { color: white; }
.community-name { font-weight:700; font-size:1.15rem; text-shadow: 0 1px 2px rgba(0,0,0,0.6); }
.community-sub { font-size:0.85rem; opacity:0.95; margin-top:4px; text-shadow: 0 1px 2px rgba(0,0,0,0.5); }
.community-cover-actions .btn {
  background: linear-gradient(135deg, #ff8f00 0%, #ff6f00 100%);
  border-color: rgba(255,255,255,0.12);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(255,140,0,0.16);
  padding: 6px 12px;
  font-weight: 700;
  text-shadow: 0 1px 0 rgba(0,0,0,0.08);
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}
.community-cover-actions .btn:hover,
.community-cover-actions .btn:focus {
  background: linear-gradient(135deg, #ff6f00 0%, #ff8f00 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(255,140,0,0.18);
  filter: brightness(1.02);
}
.community-btn-ver { padding: 6px 10px; font-weight:600; }

@media (max-width: 768px) {
  .community-card > .community-card-cover { height: 90px; }
  .community-name { font-size: 1rem; }
}

@media (max-width: 575px) {
  .comm-desc-short, .comm-desc-full { display:block; }
  .community-cover-actions { display:none; }
}

/* One-line truncated description */
.comm-desc-short {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #333;
}

@media (max-width: 575px) {
  .comm-desc-short { white-space: normal; }
}



/* ===================================================== */
/*               PERFIL / CAPA / AVATAR                  */
/* ===================================================== */

/* Wrapper do topo do perfil */
.profile-header-wrapper {
  margin-top: 10px;
}

/* Card do cabeçalho do perfil */
.profile-header {
  position: relative;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(46, 125, 50, 0.18);
}

/* Capa */
.profile-cover {
  width: 100%;
  height: 200px;
  background: #ddd;
  overflow: hidden;
}

.profile-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Avatar */
.profile-avatar {
  position: absolute;
  left: 40px;   /* distância da margem esquerda */
  top: 150px;   /* posição vertical do avatar */
}

.profile-avatar img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid #e8f5e9;                  /* aro claro verde */
  box-shadow: 0 0 0 3px #2e7d32,              /* anel verde */
              0 4px 12px rgba(0,0,0,0.25);    /* sombra */
  object-fit: cover;
}

/* Info do perfil (nome, empresa, setor...) */
/* 90px em cima, 190px à esquerda:
   40 (margem) + 120 (avatar) + ~30 de respiro */
.profile-info {
  padding: 90px 20px 10px 190px;
}

.profile-name {
  margin-top: 0;
  margin-bottom: 6px;
  font-size: 1.8rem;
  color: #1b5e20;
}

/* Abas tipo Orkut */
.profile-tabs {
  list-style: none;
  margin: 0;
  padding: 6px 20px 12px 190px; /* alinhadas com o nome */
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-top: 1px solid #c8e6c9;
}

.profile-tabs li {
  margin: 0;
  padding: 0;
}

.profile-tabs a {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  text-decoration: none;
  color: #2e7d32;
  background: transparent;
  border: 1px solid transparent;
}

.profile-tabs li.active a {
  background: #e8f5e9;
  border-color: #c8e6c9;
  font-weight: 600;
}

.profile-tabs a:hover {
  background: #f1f8e9;
}

/* ===================================================== */
/*            CARDS DA COLUNA ESQUERDA / DIREITA         */
/* ===================================================== */

@media (max-width: 768px) {
  .profile-avatar {
    left: 20px;
    top: 150px;
  }

  .profile-info {
    padding: 90px 16px 6px 150px;
  }

  .profile-tabs {
    padding-left: 150px;
  }
}

/* Botões outline do perfil (Editar perfil e Mensagem) */
.btn-outline-primary {
  color: #ff6f00;
  border-color: #ff6f00;
}

.btn-outline-primary:hover {
  background-color: #ff6f00;
  border-color: #ff6f00;
  color: #fff;
}

/* Espaço extra no perfil pro footer não colar nos cards */
.profile-page-wrapper {
  padding-bottom: 60px; /* pode ajustar pra 80px se quiser mais espaço */
}

/* ===================================================== */
/*              MERCADO - MINIATURAS DE MÍDIA            */
/* ===================================================== */

/* Container da miniatura */
.market-media-thumb {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: #f5f5f5;
  border: 2px solid #c8e6c9;
  cursor: pointer;
  transition: all 0.2s ease;
}

.market-media-thumb:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
  border-color: #2e7d32;
}

/* Imagem ou vídeo dentro da miniatura */
.market-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Ícone de play para vídeos */
.video-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  background: rgba(46, 125, 50, 0.9);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Responsivo para mobile */
@media (max-width: 768px) {
  .market-media-thumb {
    width: 60px;
    height: 60px;
  }
  
  .video-play-icon {
    width: 24px;
    height: 24px;
    font-size: 10px;
  }
  
  /* Ajustes gerais mobile */
  .container-fluid {
    padding-left: 10px;
    padding-right: 10px;
  }
  
  .orkut-card {
    padding: 15px;
    border-radius: 8px;
  }
  
  .feed-title {
    font-size: 1.3rem;
  }
  
  .post-content {
    font-size: 0.95rem;
  }
  
  .btn {
    font-size: 0.9rem;
    padding: 6px 12px;
  }
  
  /* Cards de posts */
  .feed-post-card {
    margin-bottom: 15px;
  }
  
  /* Imagens de posts */
  .post-media img {
    max-height: 300px;
  }
}

@media (max-width: 576px) {
  .navbar-brand .brand-main {
    font-size: 1.1rem;
  }
  
  .navbar-brand .brand-subsmall {
    font-size: 0.7rem;

/* Botão "Ver" nas comunidades: tornar visível com verde escuro consistente com o site */
.community-btn-ver {
  background: linear-gradient(135deg, #14421a, #1b5e20) !important;
  color: #ffffff !important;
  border: 1px solid rgba(0,0,0,0.06) !important;
  box-shadow: 0 4px 10px rgba(27,94,32,0.14) !important;
  padding: 6px 10px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}
.community-btn-ver:hover,
.community-btn-ver:focus {
  background: linear-gradient(135deg, #0f3a15, #163f17) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

/* garantir boa leitura em telas pequenas */
@media (max-width: 576px) {
  .community-btn-ver { padding: 6px 8px !important; font-size: 0.95rem !important; }
}
  }
  
  h3 {
    font-size: 1.3rem;
  }
  
  h4 {
    font-size: 1.1rem;
  }
  
  h5 {
    font-size: 1rem;
  }
  
  .orkut-card {
    padding: 12px;
  }
}
