/* Gevents Theme — CSS principal complementar
   Este arquivo complementa style.css com ajustes de layout e navegação */

/* Garantir que nada ultrapasse a largura da tela em mobile */
* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

img,
iframe,
video,
embed,
object {
  max-width: 100%;
  height: auto;
}

/* Navegação fixa e responsiva */
.main-navigation {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.main-navigation a {
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.main-navigation a:hover {
  background-color: rgba(37, 99, 235, 0.08);
}

/* Botões utilitários */
.btn,
.button {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn-primary,
.button-primary {
  background-color: var(--primary-color);
  color: #fff;
}
.btn-primary:hover,
.button-primary:hover {
  background-color: var(--secondary-color);
}

/* Utilidades */
.hidden { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Menu mobile toggled */
.main-navigation.toggled ul {
  display: flex;
}

/* ===== CSS Reset e Variáveis ===== */
:root {
  --primary-color: #2563eb;
  --secondary-color: #1e40af;
  --background-color: #ffffff;
  --text-color: #1f2937;
  --text-light: #6b7280;
  --border-color: #e5e7eb;
  --success-color: #10b981;
  --error-color: #ef4444;
  --warning-color: #f59e0b;
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --border-radius: 0.5rem;
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --max-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

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

.producers-section {
  margin: 3rem 0;
}

.producers-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.producers-title {
  font-size: 1.75rem;
  margin-bottom: 0.25rem;
}

.producers-subtitle {
  color: var(--text-light);
}

.gevents-carousel {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
}

.gevents-carousel-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 0.25rem;
  flex: 1;
}

.gevents-carousel-track::-webkit-scrollbar {
  display: none;
}

.producer-card {
  flex: 0 0 auto;
  width: 160px;
}

.producer-card-inner {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background: var(--background-color);
  box-shadow: var(--shadow);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.producer-card-inner:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.producer-avatar-wrap {
  width: 72px;
  height: 72px;
  border-radius: 9999px;
  overflow: hidden;
  border: 2px solid rgba(37, 99, 235, 0.15);
}

.producer-avatar {
  width: 100%;
  height: 100%;
}

.producer-name {
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gevents-carousel-arrow {
  width: 42px;
  height: 42px;
  border-radius: 9999px;
  border: 1px solid var(--border-color);
  background: var(--background-color);
  box-shadow: var(--shadow);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--text-color);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gevents-carousel-arrow:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.producers-footer {
  text-align: center;
  margin-top: 1rem;
}

.producers-all-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  color: var(--primary-color);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.producers-all-link:hover {
  color: var(--secondary-color);
  transform: translateX(4px);
}

/* Producers Section */
.producers-section {
  margin: 4rem 0;
}

.producers-header {
  text-align: center;
  margin-bottom: 3rem;
}

.producers-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-color);
  margin: 0 0 0.75rem 0;
}

.producers-subtitle {
  font-size: 1.125rem;
  color: #666;
  margin: 0;
}

.producers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.producer-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: white;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.producer-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.producer-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
}

.producer-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================
   PAGE HEADER STYLES
   ============================ */

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

.page-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-color);
  margin: 0;
}

.page-title span {
  color: var(--primary-color);
}

/* ============================
   RESPONSIVE MEDIA QUERIES
   ============================ */

/* Tablet and below */
@media (max-width: 1024px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  
  .main-navigation {
    flex-wrap: wrap;
  }
  
  .producers-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1.5rem;
  }
  
  .producers-title {
    font-size: 1.75rem;
  }
  
  .page-title {
    font-size: 1.75rem;
  }
}

/* Mobile devices */
@media (max-width: 768px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .producers-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
  
  .producer-card {
    padding: 1rem;
  }
  
  .producer-avatar {
    width: 60px;
    height: 60px;
  }
  
  .producer-name {
    font-size: 0.875rem;
  }
  
  .producers-title {
    font-size: 1.5rem;
  }
  
  .producers-subtitle {
    font-size: 1rem;
  }
  
  /* Ensure text doesn't overflow */
  h1, h2, h3, h4, h5, h6 {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  
  /* Make sure images are responsive */
  img {
    max-width: 100%;
    height: auto;
  }
  
  /* Adjust buttons for mobile */
  .btn,
  .button {
    width: 100%;
    text-align: center;
  }
  
  .page-header {
    margin-bottom: 1.5rem;
  }
  
  .page-title {
    font-size: 1.5rem;
    line-height: 1.3;
  }
}

/* Small mobile devices */
@media (max-width: 480px) {
  body {
    font-size: 14px;
  }
  
  .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  
  h1 {
    font-size: 1.75rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .page-title {
    font-size: 1.25rem;
  }
}
