:root {
  /* usa tokens globais já definidos em mainStyle; este arquivo contém apenas estilos da home */
}

/* Hero principal da home */
.new-image-full {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 40px auto;
  background: #002c6c;
  overflow: hidden;
  position: relative;
  min-height: 180px;
  height: auto;
}

.new-image-full img {
  display: block;
  max-width: 100%;
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: contain;
  margin: 0 auto;
  border-radius: 0;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  padding: 0;
  background: transparent;
}

.hero-title {
  color: #fff;
  font-size: 2.4rem;
  font-family: 'GothamBold', Arial, sans-serif;
  text-align: center;
  line-height: 1.3;
  max-width: 900px;
  width: 100%;
  z-index: 2;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  padding: 0 32px;
  text-shadow: 0 4px 12px rgba(0,0,0,0.3);
  pointer-events: none;
  letter-spacing: -0.5px;
  animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translate(-50%, -40%); }
  to   { opacity: 1; transform: translate(-50%, -50%); }
}

/* Cards de destaque da home */
.cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 380px));
  justify-content: center;
  gap: 32px;
  margin: 50px auto;
  max-width: 1280px;
  padding: 0 24px;
  width: 100%;
}

.info-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.98) 100%);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  text-align: center;
  transition: var(--transition-base);
  border: 1px solid rgba(224, 224, 224, 0.6);
  padding: 40px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  position: relative;
}

.info-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-orange) 0%, var(--accent-orange-light) 100%);
  transform: scaleX(0);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.info-card:hover::before { transform: scaleX(1); }

.info-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-lg);
  border-color: rgba(245, 124, 0, 0.3);
}

.info-card h2 {
  color: var(--primary-blue);
  font-size: 22px;
  margin: 20px 0 16px;
  font-weight: 700;
  font-family: 'GothamBold', sans-serif;
  letter-spacing: -0.5px;
}

.info-card p {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.7;
  margin: 0 0 20px;
  flex-grow: 1;
}

.card-icon {
  font-size: 3rem;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 200px;
  transition: var(--transition-base);
}

.info-card:hover .card-icon { transform: scale(1.1) translateY(-4px); }

.card-icon img {
  width: auto;
  height: 180px;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  transition: var(--transition-base);
}

.info-card:hover .card-icon img {
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.card-features {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  justify-content: center;
}

.badge {
  background: #e3f2fd;
  color: #1976d2;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-required {
  background: #fff3e0;
  color: #f57c00;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Botão dos cards */
.btn-link {
  font-family: 'GothamMedium', sans-serif;
  font-weight: 600;
  background: linear-gradient(135deg, var(--bg-white) 0%, rgba(248, 249, 250, 0.95) 100%);
  color: var(--accent-orange);
  padding: 14px 32px;
  text-decoration: none;
  border-radius: 12px;
  border: 2px solid var(--accent-orange);
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition-base);
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 1px;
  width: auto;
  align-self: center;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: linear-gradient(135deg, var(--accent-orange) 0%, var(--accent-orange-light) 100%);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}

.btn-link:hover::before {
  width: 100%;
}

.btn-link:hover {
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 124, 0, 0.4);
}

.btn-link:active {
  transform: translateY(0);
}

/* Seção de APIs na home */
.api-overview-section {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}

.section-title {
  color: #002c6c;
  font-size: 2rem;
  font-family: 'GothamBold', Arial, sans-serif;
  margin-bottom: 40px;
  text-align: center;
}

.api-detail-card {
  background: white;
  border-radius: 16px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  border-left: 5px solid #f57c00;
  transition: all 0.3s ease;
}

.api-detail-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  transform: translateY(-2px);
}

.api-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  flex-wrap: wrap;
  gap: 6px;
}

.api-header h3 {
  color: #002c6c;
  font-size: 1.5rem;
  margin: 0;
  font-family: 'GothamBold', Arial, sans-serif;
}

.status-badge {
  background: #e3f2fd;
  color: #1976d2;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-block;
  margin-left: 0;
}

.badges-wrapper {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
}

.status-badge.required {
  background: #fff3e0;
  color: #f57c00;
}

.api-description {
  color: #555;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.api-endpoints {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}

.endpoint {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: white;
  border-radius: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.endpoint:last-child { margin-bottom: 0; }

.method {
  font-weight: bold;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  min-width: 65px;
  text-align: center;
  text-transform: uppercase;
}

.method.post { background: #4caf50; color: white; }
.method.get  { background: #2196f3; color: white; }
.method.patch{ background: #ff9800; color: white; }

.endpoint code {
  background: #e8eaf6;
  color: #283593;
  padding: 6px 12px;
  border-radius: 6px;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  flex: 1;
  min-width: 200px;
}

.endpoint-desc {
  color: #666;
  font-size: 0.9rem;
  flex: 2;
  min-width: 200px;
}

.api-info {
  border-top: 2px solid #f0f0f0;
  padding-top: 15px;
  color: #555;
}

.api-info p { margin: 8px 0; line-height: 1.6; }

.api-info a {
  color: #f57c00;
  text-decoration: none;
  font-weight: 600;
}

.api-info a:hover { text-decoration: underline; }

.key-list { margin: 10px 0 10px 20px; padding: 0; }
.key-list li { margin: 8px 0; color: #555; line-height: 1.6; }

.auth-section, .environment-section, .contact-section {
  background: white;
  border-radius: 16px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.auth-section h3, .environment-section h3, .contact-section h3 {
  color: #002c6c;
  font-size: 1.3rem;
  margin: 0 0 15px 0;
  font-family: 'GothamBold', Arial, sans-serif;
}

.auth-note {
  background: #fff3e0;
  padding: 12px 16px;
  border-radius: 8px;
  margin-top: 15px;
  border-left: 4px solid #f57c00;
}

.auth-note code {
  background: #ffe0b2;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
}

.env-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.env-card {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 12px;
  border-left: 4px solid #2196f3;
}

.env-card h4 {
  color: #002c6c;
  margin: 0 0 10px 0;
  font-size: 1.1rem;
}

.env-card code {
  display: block;
  background: white;
  padding: 10px;
  border-radius: 6px;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  word-break: break-all;
}

.contact-methods { display: grid; gap: 15px; margin-top: 20px; }

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 10px;
}

.contact-icon { font-size: 1.5rem; }

.contact-item a {
  color: #f57c00;
  text-decoration: none;
  font-weight: 600;
}

.contact-item a:hover { text-decoration: underline; }

/* Seções informativas da home */
.info-sections-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  max-width: 1280px;
  margin: 20px auto 40px auto;
  padding: 0 24px;
}

.info-section {
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.98) 100%);
  backdrop-filter: blur(10px);
  padding: 32px;
  margin: 0 auto;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  gap: 24px;
  transition: var(--transition-base);
  border: 1px solid rgba(224, 224, 224, 0.6);
  width: 100%;
  max-width: 1204px;
  min-height: 160px;
}

.info-section:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(245, 124, 0, 0.3);
}

.info-section img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  flex-shrink: 0;
  transition: var(--transition-base);
}

.info-section:hover img { transform: scale(1.15) rotate(5deg); }

.info-section .content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.info-section .content h2 {
  color: var(--primary-blue);
  font-size: 1.5rem;
  line-height: 1.4;
  margin: 0 0 14px 0;
  font-weight: 700;
  font-family: 'GothamBold', Arial, sans-serif;
  letter-spacing: -0.5px;
}

.info-section .content p {
  color: var(--text-medium);
  font-size: 1rem;
  line-height: 1.7;
  margin: 0 0 20px 0;
  font-family: 'GothamMedium', Arial, sans-serif;
}

.info-section .content .btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--bg-white) 0%, rgba(248, 249, 250, 0.95) 100%);
  color: var(--accent-orange);
  padding: 12px 28px;
  text-decoration: none;
  border-radius: 10px;
  border: 2px solid var(--accent-orange);
  font-weight: 600;
  font-family: 'GothamBold', Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  transition: var(--transition-base);
  align-self: flex-start;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.info-section .content .btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: linear-gradient(135deg, var(--accent-orange) 0%, var(--accent-orange-light) 100%);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}

.info-section .content .btn:hover::before { width: 100%; }

.info-section .content .btn:hover {
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 124, 0, 0.4);
}

/* Responsividade específica da home */
@media (max-width: 768px) {
  .new-image-full { height: 30vh; min-height: 250px; }
  .cards-container { grid-template-columns: repeat(2, minmax(300px, 1fr)); gap: 24px; margin: 30px 20px; }
  .info-section {
    flex-direction: column;
    text-align: center;
    padding: 20px;
    margin: 20px 15px;
    min-height: auto;
  }
  .info-sections-grid { max-width: 100%; gap: 20px; margin: 20px 15px; }
  .info-section img { margin-bottom: 20px; }
  .info-section .content h2 { font-size: 1.2rem; }
  .info-section .content p { font-size: 0.95rem; }
  .api-detail-card { padding: 20px; border-left-width: 3px; }
  .api-header { flex-direction: column; align-items: flex-start; }
  .api-header h3 { font-size: 1.2rem; }
  .endpoint { flex-direction: column; align-items: flex-start; gap: 8px; }
  .endpoint code { width: 100%; word-break: break-all; font-size: 0.8rem; }
  .method { align-self: flex-start; }
  .endpoint-desc { font-size: 0.85rem; }
  .env-cards { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .new-image-full { height: 25vh; min-height: 200px; }
  .cards-container { grid-template-columns: 1fr; gap: 20px; margin: 20px 15px; }
  .info-section { padding: 15px; margin: 15px 10px; }
  .info-section .content h2 { font-size: 1.1rem; }
  .info-section .content p { font-size: 0.9rem; }
  .api-overview-section { margin: 30px auto; }
  .api-detail-card, .auth-section, .environment-section, .contact-section { padding: 15px; }
  .api-header h3 { font-size: 1.1rem; }
  .status-badge { font-size: 0.75rem; padding: 4px 10px; }
}

@media print {
  .info-card, .info-section {
    box-shadow: none;
    border: 1px solid #ccc;
  }
  .btn-link, .info-section .content .btn {
    color: #000 !important;
    background: transparent !important;
    border: 1px solid #000 !important;
  }
}
