/* === COMMUNITY (v1.8 — sidebar lateral + magazine main) === */

.community-page { background: #000; }

.community-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 0;
  min-height: 100vh;
  padding-top: 62px;
}
.palmaref-in-iframe .community-layout { padding-top: 50px; }

.community-sidebar {
  background: #050a10;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  padding: 22px 0;
  position: sticky;
  top: 62px;
  align-self: start;
  max-height: calc(100vh - 62px);
  overflow-y: auto;
}
.palmaref-in-iframe .community-sidebar { top: 50px; max-height: calc(100vh - 50px); }

.community-sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.community-sidebar li { margin: 0; }
.community-sidebar a {
  display: block;
  padding: 7px 22px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: color 0.12s, border-color 0.12s, background 0.12s;
}
.community-sidebar a:hover { color: #fff; background: rgba(255, 255, 255, 0.03); }
.community-sidebar a.active {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
.community-sidebar-divider {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin: 18px 22px;
}
.community-sidebar-title {
  margin: 0 0 6px;
  padding: 0 22px;
  color: rgba(255, 255, 255, 0.35);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.community-main {
  padding: 30px 40px 80px;
  min-width: 0;
  max-width: 1200px;
}

/* Hero */
.community-hero-section {
  padding: 8px 0 28px;
}
.community-hero-section h1 {
  margin: 0;
  color: #fff;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

/* Top row: mosaic card (esquerda) + article feature (direita) */
.community-top-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 20px;
  margin-bottom: 42px;
}

.community-mosaic-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
  background: #0a0f15;
}
.community-mosaic-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 2px;
}
.community-mosaic-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.community-mosaic-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, transparent 50%, rgba(0,0,0,0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-end;
  padding: 20px 24px;
  pointer-events: none;
}
.community-mosaic-date {
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}
.community-mosaic-cta {
  color: var(--cyan, #00b7e8);
  font-size: 22px;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.community-article-feature {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.community-article-cover {
  position: relative;
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, #1a2a3a 0%, #0a1018 100%);
  overflow: hidden;
}
.community-article-cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  mix-blend-mode: multiply;
}
.community-article-title-art {
  position: absolute;
  top: 20px;
  left: 20px;
  color: #fff;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.05;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
  z-index: 2;
}
.community-article-title-art span {
  font-family: Georgia, serif;
  font-style: italic;
  font-weight: 400;
  color: var(--cyan, #00b7e8);
}

.community-card-meta {
  padding: 14px 4px 0;
}
.community-card-kicker {
  display: block;
  margin: 0 0 6px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.community-card-meta h3 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.3;
}
.community-card-meta p {
  margin: 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
  line-height: 1.5;
}

/* Tuesday Drop section */
.community-feature-section {
  margin-bottom: 38px;
  max-width: 720px;
}
.community-feature-section h2 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
}
.community-feature-desc {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  line-height: 1.5;
}

/* Shot Talk (large horizontal card) */
.community-shot-talk {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 0;
  margin-bottom: 42px;
  background: #0c1218;
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}
.community-shot-talk-img {
  position: relative;
  aspect-ratio: 16/9;
  background: linear-gradient(180deg, #0a1830 0%, #050a18 100%);
  overflow: hidden;
}
.community-shot-talk-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}
.community-shot-talk-title-art {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
  font-family: Georgia, serif;
  font-size: 38px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
  text-align: center;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
  z-index: 2;
}
.community-shot-talk-title-art span {
  font-size: 24px;
  font-style: italic;
  margin: 6px 0;
}
.community-shot-talk .community-card-meta {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.community-shot-talk .community-card-meta h3 { font-size: 20px; }
.community-watch-now {
  margin-top: 12px;
  color: #fff !important;
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline !important;
  align-self: flex-start;
}

/* News row */
.community-news-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 42px;
}
.community-news-card {
  text-decoration: none;
  color: inherit;
}
.community-news-img {
  aspect-ratio: 16/9;
  background: #1a1a1a;
  background-size: cover;
  background-position: center;
  margin-bottom: 12px;
}
.community-news-card h3 {
  margin: 6px 0 6px;
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.3;
}
.community-news-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
  line-height: 1.5;
}

/* Recently row (3 horizontal cards) */
.community-section-block { margin-bottom: 42px; }
.community-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
}
.community-section-h {
  margin: 0;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.community-recently-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.community-recently-card {
  text-decoration: none;
  color: inherit;
  display: block;
}
.community-recently-card-img {
  aspect-ratio: 16/10;
  background: #0a0f15;
  overflow: hidden;
  position: relative;
  margin-bottom: 10px;
}
.community-recently-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.community-recently-card-mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 1px;
  position: absolute;
  inset: 0;
}
.community-recently-card-mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.community-recently-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 50%, rgba(0,0,0,0.8) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-end;
  padding: 12px 14px;
}
.community-recently-card-overlay .month {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}
.community-recently-card-overlay .label {
  color: var(--cyan, #00b7e8);
  font-size: 14px;
  font-weight: 700;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}
.community-recently-card h4 {
  margin: 0;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}

/* Divider */
.community-divider {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin: 24px 0 40px;
}

/* Data sections (existing) */
.community-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 6px;
}
.community-grid .shot-card {
  aspect-ratio: 16/9;
  display: block;
  overflow: hidden;
}
.community-grid .shot-card img {
  width: 100%; height: 100%; object-fit: cover;
}
.community-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 4px 18px;
}
.community-list li { margin: 0; }
.community-list a {
  display: block;
  padding: 6px 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  text-decoration: none;
}
.community-list a:hover { color: var(--cyan, #00b7e8); }
.community-list-tags {
  grid-template-columns: 1fr;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
}
.community-list-tags li { display: inline-block; }
.community-list-tags a {
  display: inline-block;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
}
.community-list-tags a:hover {
  background: rgba(0, 183, 232, 0.1);
  border-color: var(--cyan, #00b7e8);
}
.community-see-more {
  color: var(--cyan, #00b7e8);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  text-decoration: none;
}
.community-loading {
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 13px;
  padding: 40px 0;
}

@media (max-width: 900px) {
  .community-layout { grid-template-columns: 1fr; }
  .community-sidebar {
    position: static;
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    max-height: none;
  }
  .community-top-row, .community-shot-talk, .community-news-row, .community-recently-row {
    grid-template-columns: 1fr;
  }
  .community-main { padding: 24px 18px 60px; }
}
