/**
 * Estilos para a página de suporte
 * Baseado no layout do blog para consistência visual
 */

/* =========================================
   Variáveis e Base (Cópia do Blog)
   ========================================= */
:root {
  --bg-page: #ffffff;
  --bg-surface: #ffffff;
  --bg-surface-alt: #ffffff;
  --bg-section-alt: #ffffff;

  --text-main: #1d1d1b;
  --text-body: #1d1d1b;
  --text-muted: #6c757d;
}

html {
  background-color: #ffffff !important;
}

html,
body {
  background-color: #ffffff !important;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-page: #ffffff;
    --bg-surface: #ffffff;
    --bg-surface-alt: #ffffff;
    --bg-section-alt: #ffffff;

    --text-main: #1d1d1b;
    --text-body: #1d1d1b;
    --text-muted: #6c757d;
  }

  html,
  body {
    background-color: #ffffff !important;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
}

body {
  background-color: #ffffff;
}

/* =========================================
   Layout Principal (Classes do Blog reaproveitadas)
   ========================================= */
.support-main {
  padding: 4rem 0 6rem;
  min-height: 100vh;
  background-color: #ffffff;
  color: #4a4a4a;
  margin-top: 4rem;
}

.support-header {
  text-align: center;
  margin-bottom: 3rem;
  margin-top: 3rem;
  background-color: #ffffff;
}

.support-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1d1d1b;
  margin-bottom: 0.5rem;
}

.support-header p {
  font-size: 1.1rem;
  color: #6c757d;
}

.support-content {
  padding: 2rem 0;
}

/* =========================================
   Estilos Específicos de Suporte
   ========================================= */

/* Seções */
.downloads-section {
  margin-bottom: 4rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1d1d1b;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #f0f0f0;
}

.downloads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

/* Cards de Download (Baseado no .blog-post) */
.download-card {
  background: #ffffff;
  border: 1px solid #e9ecef;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.download-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  border-color: var(--brand-primary);
}

.card-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.icon-box {
  width: 64px;
  height: 64px;
  background: #f8f9fa;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--brand-primary);
}

.download-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: #1d1d1b;
  font-weight: 600;
}

.download-card p {
  color: #6c757d;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
  flex: 1; /* Empurra o botão para baixo */
}

/* Botões */
.btn-sm {
  padding: 0.5rem 1.5rem;
  font-size: 0.9rem;
}

.linux-options {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.linux-options .btn-sm {
  min-width: 80px;
}

/* Filtro de SO */
.filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 0.5rem;
}

.filter-header .section-title {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.os-selector {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.os-selector label {
  font-weight: 500;
  color: #4a4a4a;
}

.select-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.select-wrapper select {
  padding: 0.5rem 2rem 0.5rem 1rem;
  border-radius: 6px;
  border: 1px solid #ced4da;
  background-color: white;
  font-size: 0.95rem;
  color: #495057;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23495057' d='M6 8.825L1.175 4 2.238 2.938 6 6.7 9.763 2.938 10.825 4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
}

.select-wrapper select:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 2px rgba(0, 113, 60, 0.25);
}

.detected-os-badge {
  background-color: #e6f4ea;
  color: #1e7e34;
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-weight: 600;
}

/* FAQ Section */
.faq-section {
  text-align: center;
  background: #f8f9fa;
  padding: 4rem 2rem;
  border-radius: 16px;
  margin-bottom: 2rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.faq-section .section-title {
  border-bottom: none;
  text-align: center;
  margin-bottom: 1rem;
}

.faq-content p {
  color: #6c757d;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.contact-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.contact-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Responsividade */
@media (max-width: 768px) {
  .support-header {
    margin-top: 2rem;
  }
  
  .support-header h1 {
    font-size: 2rem;
  }

  .downloads-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }
  
  .filter-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .os-selector {
    width: 100%;
    justify-content: space-between;
  }
}
