/* Reset e Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #37475a; /* Dark - Musicians */
  --secondary-color: #e47911; /* Orange - Bands */
  --dark-color: #232f3e;
  --light-color: #f0f3f7;
  --text-primary: #1a1a1a;
  --text-secondary: #717171;
  --background: #fafafa;
  --surface: #ffffff;
  --border: #e0e0e0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--background);
}

img {
  image-rendering: auto;
  image-rendering: -webkit-optimize-contrast;
  -ms-interpolation-mode: bicubic;
  max-width: 100%;
  height: auto;
}

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

/* Header */
header {
  background-color: var(--background);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 1rem 0;
}

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

.logo img {
  height: 90px;
  width: auto;
  display: block;
  image-rendering: auto;
  image-rendering: -webkit-optimize-contrast;
}

@media (max-width: 768px) {
  .logo img {
    height: 75px;
  }
}

nav {
  display: flex;
  gap: 2rem;
}

nav a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

nav a:hover {
  color: var(--primary-color);
}

/* Hero Section */
.hero {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: white;
  padding: 6rem 0;
  text-align: center;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 1rem 2rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  display: inline-block;
}

.btn-primary {
  background-color: white;
  color: var(--primary-color);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
  background-color: transparent;
  color: white;
  border: 2px solid white;
}

.btn-secondary:hover {
  background-color: white;
  color: var(--primary-color);
}

/* About Section */
.about {
  padding: 4rem 0;
  background-color: var(--surface);
}

.about h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--dark-color);
}

.about > .container > p {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
  font-size: 1.1rem;
  color: var(--text-secondary);
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.stat {
  text-align: center;
  padding: 2rem;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s;
}

.stat:hover {
  transform: translateY(-5px);
}

.stat h3 {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.stat p {
  color: var(--text-secondary);
}

/* Features Section */
.features {
  padding: 4rem 0;
}

.features h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 3rem;
  color: var(--dark-color);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature {
  padding: 2rem;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s;
}

.feature:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.feature .icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.feature h3 {
  color: var(--dark-color);
  margin-bottom: 0.5rem;
}

.feature p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Download Section */
.download {
  padding: 4rem 0;
  background-color: var(--surface);
  text-align: center;
}

.download h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--dark-color);
}

.download > .container > p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.download-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.store-btn img {
  height: 60px;
  transition: transform 0.3s;
}

.store-btn:hover img {
  transform: scale(1.05);
}

.coming-soon {
  color: var(--text-secondary);
  font-style: italic;
  margin-top: 1rem;
}

/* Posts Feed Section */
.posts-feed {
  padding: 4rem 0;
  background-color: var(--light-color);
}

.posts-feed h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--dark-color);
}

.posts-feed .section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  font-size: 1.1rem;
}

/* Posts Map Container - Layout side by side */
.posts-map-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  min-height: 600px;
}

/* Map Side */
.map-side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.posts-map {
  flex: 1;
  min-height: 500px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.map-legend {
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 1rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.legend-dot.musician {
  background-color: #37475a;
}

.legend-dot.band {
  background-color: #e47911;
}

.legend-dot.sales {
  background-color: #007eb9;
}

/* Map Marker Animations */
@keyframes markerPulse {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

@keyframes markerGlow {
  0% {
    opacity: 0.4;
    transform: scale(1);
  }
  100% {
    opacity: 0.7;
    transform: scale(1.1);
  }
}

/* Carousel Side */
.carousel-side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.posts-carousel {
  flex: 1;
  overflow-y: auto;
  max-height: 550px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 4px 8px 4px 4px;
}

.posts-carousel::-webkit-scrollbar {
  width: 6px;
}

.posts-carousel::-webkit-scrollbar-track {
  background: var(--light-color);
  border-radius: 3px;
}

.posts-carousel::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

.posts-carousel::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
}

/* ========================================
   POST CARD - Layout Horizontal (Lista)
   Design definitivo - altura fixa, nunca corta
   ======================================== */

.pc {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: white;
  border-radius: 12px;
  border: 1px solid transparent;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  transition: box-shadow 0.15s, transform 0.15s, border-color 0.15s;
}

.pc:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.pc--active {
  border-color: rgba(55, 71, 90, 0.15);
  box-shadow: 0 8px 24px rgba(55, 71, 90, 0.25);
  transform: scale(1.02);
}

/* Content - flex grow */
.pc-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}

/* Header: nome + avatar (à direita) */
.pc-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pc-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  order: 2;
}

.pc-avatar--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
  font-weight: 600;
  order: 2;
}

.pc-name {
  font-size: 17px;
  font-weight: 600;
  color: #1a1a1a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  order: 1;
}

/* Subtitle: tipo ou título */
.pc-subtitle {
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Tags: instrumentos */
.pc-tags {
  font-size: 11px;
  color: #666;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

/* Price */
.pc-price {
  font-size: 14px;
  font-weight: 700;
  color: #007eb9;
  display: block;
}

.pc-discount {
  font-size: 10px;
  color: #e53935;
  font-weight: 600;
}

/* Message: conteúdo do post */
.pc-message {
  font-size: 12px;
  color: #444;
  line-height: 1.4;
  margin: 4px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Meta: location + time */
.pc-meta {
  font-size: 11px;
  color: #888;
  display: flex;
  gap: 4px;
  white-space: nowrap;
  overflow: hidden;
}

/* ========================================
   END POST CARD
   ======================================== */

.carousel-cta {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.carousel-cta p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

/* Loading State */
.loading-posts {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 300px;
  gap: 1rem;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--border);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-posts p {
  color: var(--text-secondary);
}

/* No Posts / Error State */
.no-posts-message,
.error-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 300px;
  text-align: center;
  padding: 2rem;
}

.no-posts-message .icon,
.error-message .icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.no-posts-message h3,
.error-message h3 {
  color: var(--dark-color);
  margin-bottom: 0.5rem;
}

.no-posts-message p,
.error-message p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .posts-map-container {
    grid-template-columns: 1fr;
  }

  .map-side {
    order: 2;
  }

  .carousel-side {
    order: 1;
  }

  .posts-carousel {
    max-height: 400px;
  }

  .posts-map {
    min-height: 350px;
  }
}

@media (max-width: 768px) {
  .map-legend {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .pc {
    padding: 10px;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .posts-carousel {
    gap: 8px;
  }

  .pc {
    padding: 8px;
  }

  .pc-name {
    font-size: 12px;
  }

  .pc-subtitle {
    font-size: 11px;
  }
}

/* Footer */
footer {
  background-color: var(--dark-color);
  color: white;
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.footer-section .footer-logo {
  height: 75px;
  width: auto;
  margin-bottom: 1rem;
  image-rendering: auto;
  image-rendering: -webkit-optimize-contrast;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-section a:hover {
  color: var(--primary-color);
}

.copyright {
  margin-top: 1rem;
  opacity: 0.7;
  font-size: 0.9rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0.7;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
  header .container {
    flex-direction: column;
    gap: 1rem;
  }

  nav {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .hero h2 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }
}

/* Legal Pages Specific Styles */
.legal-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 20px;
}

.legal-page h1 {
  color: var(--primary-color);
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.legal-page .meta {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border);
}

.legal-page h2 {
  color: var(--dark-color);
  font-size: 1.8rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.legal-page h3 {
  color: var(--primary-color);
  font-size: 1.3rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.legal-page p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

.legal-page ul,
.legal-page ol {
  margin-left: 2rem;
  margin-bottom: 1rem;
}

.legal-page li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.legal-page table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.legal-page table th,
.legal-page table td {
  padding: 1rem;
  text-align: left;
  border: 1px solid var(--border);
}

.legal-page table th {
  background-color: var(--primary-color);
  color: white;
  font-weight: 600;
}

.legal-page table tr:nth-child(even) {
  background-color: var(--surface);
}

.legal-page .highlight {
  background-color: #fff3cd;
  padding: 1rem;
  border-left: 4px solid #ffc107;
  margin: 1.5rem 0;
}

.legal-page .consent-box {
  background-color: var(--surface);
  padding: 2rem;
  border-radius: 12px;
  margin: 2rem 0;
  border: 2px solid var(--primary-color);
}

.legal-page .consent-box h3 {
  margin-top: 0;
}

.legal-page code {
  background-color: var(--surface);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-family: "Courier New", monospace;
  font-size: 0.9em;
}

.legal-page pre {
  background-color: var(--dark-color);
  color: white;
  padding: 1rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1rem 0;
}

.legal-page pre code {
  background-color: transparent;
  color: inherit;
}

.back-button {
  display: inline-block;
  margin-bottom: 2rem;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
}

.back-button:hover {
  text-decoration: underline;
}
