/**
 * ===== CSS COMISSÕES REFATORADO - KUROGAMI PORTFOLIO =====
 * 
 * Página de comissões com design elegante e funcional
 * Baseado na estrutura que funciona corretamente
 * HEADER CORRIGIDO + DESIGN CENTRALIZADO E ORGANIZADO
 * 
 * @author Kurogami Portfolio
 * @version 3.0
 */

/* ===== 1. HERO SECTION - CORRIGIDO ===== */
.commissions-hero {
  /* CORREÇÃO: Padding-top para compensar header fixo */
  padding: calc(80px + 4rem) 0 4rem;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.commissions-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 25% 25%, rgba(34, 197, 94, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(239, 68, 68, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.hero-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 2rem;
  background: linear-gradient(135deg, #22c55e 0%, #ef4444 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero-icon i {
  width: 40px;
  height: 40px;
  color: white;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #22c55e 0%, #ef4444 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: #cbd5e1;
  margin-bottom: 1rem;
  font-weight: 600;
}

.hero-description {
  font-size: 1.125rem;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== 2. ESTATÍSTICAS DO HERO ===== */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
  max-width: 600px;
  margin: 0 auto;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: #22c55e;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.875rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* ===== 3. SEÇÕES PRINCIPAIS ===== */
.packages-section,
.process-section,
.faq-section,
.testimonials-section {
  padding: 5rem 0;
}

.packages-section {
  background: #020617;
}

.process-section {
  background: #0f172a;
}

.faq-section {
  background: #020617;
}

.testimonials-section {
  background: #0f172a;
}

.cta-section {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  padding: 5rem 0;
}

/* ===== 4. HEADER DAS SEÇÕES ===== */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.section-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 2rem;
  background: linear-gradient(135deg, #3b82f6 0%, #ef4444 100%);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.section-icon i {
  width: 35px;
  height: 35px;
  color: white;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #f8fafc;
  margin-bottom: 1rem;
}

.section-description {
  font-size: 1.125rem;
  color: #94a3b8;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

/* ===== 5. PACOTES DE COMISSÃO ===== */
.packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.package-card {
  background: #1e293b;
  border: 2px solid #334155;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.package-card:hover {
  transform: translateY(-8px);
  border-color: #3b82f6;
  box-shadow: 0 20px 40px rgba(59, 130, 246, 0.2);
}

.package-card.featured {
  border-color: #22c55e;
  background: linear-gradient(135deg, #1e293b 0%, rgba(34, 197, 94, 0.05) 100%);
  transform: scale(1.05);
}

.package-card.featured:hover {
  transform: scale(1.05) translateY(-8px);
  border-color: #22c55e;
  box-shadow: 0 25px 50px rgba(34, 197, 94, 0.25);
}

.package-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 3;
  box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

/* ===== 6. IMAGENS DOS PACOTES ===== */
.package-image {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: #0f172a;
}

.package-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
}

.package-card:hover .package-image img {
  transform: scale(1.1);
}

.package-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(transparent, rgba(30, 41, 59, 0.9));
  pointer-events: none;
}

/* ===== 7. CONTEÚDO DOS PACOTES ===== */
.package-content {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.package-header {
  margin-bottom: 1.5rem;
  text-align: center;
}

.package-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 0.5rem;
}

.package-price {
  font-size: 2.5rem;
  font-weight: 800;
  color: #22c55e;
  margin-bottom: 0.25rem;
}

.package-delivery {
  color: #94a3b8;
  font-size: 0.875rem;
  font-weight: 500;
}

.package-description {
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 2rem;
  text-align: center;
}

.package-features {
  list-style: none;
  margin-bottom: 2rem;
  padding: 0;
  flex: 1;
}

.package-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  color: #cbd5e1;
  font-size: 0.875rem;
  line-height: 1.5;
}

.package-features li::before {
  content: '✓';
  width: 20px;
  height: 20px;
  background: #22c55e;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  flex-shrink: 0;
}

.package-button {
  width: 100%;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: auto;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
}

.package-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.package-button i {
  width: 20px;
  height: 20px;
}

.package-card.featured .package-button {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  box-shadow: 0 4px 15px rgba(34, 197, 94, 0.2);
}

.package-card.featured .package-button:hover {
  box-shadow: 0 8px 25px rgba(34, 197, 94, 0.3);
}

/* ===== 8. PROCESSO DE TRABALHO ===== */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
}

.process-step {
  text-align: center;
  position: relative;
}

.process-step::after {
  content: '';
  position: absolute;
  top: 35px;
  right: -1.5rem;
  width: 3rem;
  height: 2px;
  background: linear-gradient(90deg, #3b82f6 0%, #22c55e 100%);
  z-index: 1;
}

.process-step:last-child::after {
  display: none;
}

.step-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, #3b82f6 0%, #22c55e 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.2);
}

.step-icon i {
  width: 35px;
  height: 35px;
  color: white;
}

.step-number {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 28px;
  height: 28px;
  background: #ef4444;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: bold;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.step-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 0.75rem;
}

.step-description {
  color: #94a3b8;
  font-size: 0.875rem;
  line-height: 1.6;
  max-width: 250px;
  margin: 0 auto;
}

/* ===== 9. FAQ ===== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 12px;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: #3b82f6;
}

.faq-question {
  width: 100%;
  padding: 1.5rem;
  background: none;
  border: none;
  text-align: left;
  color: #f8fafc;
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.faq-question:hover {
  background: rgba(59, 130, 246, 0.05);
}

.faq-icon {
  width: 20px;
  height: 20px;
  color: #3b82f6;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
  padding: 0 1.5rem 1.5rem;
  max-height: 200px;
}

.faq-answer p {
  color: #94a3b8;
  line-height: 1.6;
  margin: 0;
}

/* ===== 10. DEPOIMENTOS ===== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.testimonial-card {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 16px;
  padding: 2rem;
  position: relative;
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  border-color: #3b82f6;
  box-shadow: 0 15px 30px rgba(59, 130, 246, 0.1);
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 20px;
  font-size: 4rem;
  color: #3b82f6;
  font-family: serif;
  line-height: 1;
}

.testimonial-text {
  color: #cbd5e1;
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-avatar {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #3b82f6 0%, #22c55e 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.author-info {
  flex: 1;
}

.author-name {
  font-weight: 600;
  color: #f8fafc;
  margin-bottom: 0.25rem;
}

.author-project {
  color: #94a3b8;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.testimonial-rating {
  display: flex;
  gap: 0.25rem;
}

.star {
  width: 16px;
  height: 16px;
  color: #fbbf24;
}

/* ===== 11. CTA SECTION ===== */
.cta-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.cta-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #f8fafc;
  margin-bottom: 1rem;
}

.cta-description {
  color: #94a3b8;
  font-size: 1.125rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: white;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1.125rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(34, 197, 94, 0.4);
}

.cta-button i {
  width: 20px;
  height: 20px;
}

/* ===== 12. RESPONSIVIDADE ===== */
@media (max-width: 768px) {
  .commissions-hero {
    /* CORREÇÃO MOBILE: Ajustar padding para header menor */
    padding: calc(60px + 3rem) 0 3rem;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.25rem;
  }
  
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .packages-grid {
    grid-template-columns: 1fr;
  }
  
  .package-card.featured {
    transform: none;
  }
  
  .package-card.featured:hover {
    transform: translateY(-8px);
  }
  
  .package-image {
    height: 200px;
  }
  
  .process-steps {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .process-step::after {
    display: none;
  }
  
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .cta-title {
    font-size: 2rem;
  }
  
  .packages-section,
  .process-section,
  .faq-section,
  .testimonials-section {
    padding: 4rem 0;
  }
  
  .cta-section {
    padding: 4rem 0;
  }
}

@media (max-width: 480px) {
  .commissions-hero {
    padding: calc(60px + 2rem) 0 2rem;
  }
  
  .hero-icon {
    width: 60px;
    height: 60px;
  }
  
  .hero-icon i {
    width: 30px;
    height: 30px;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.125rem;
  }
  
  .section-icon {
    width: 60px;
    height: 60px;
  }
  
  .section-icon i {
    width: 30px;
    height: 30px;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .package-content {
    padding: 1.5rem;
  }
  
  .package-image {
    height: 180px;
  }
  
  .step-icon {
    width: 60px;
    height: 60px;
  }
  
  .step-icon i {
    width: 30px;
    height: 30px;
  }
  
  .testimonial-card {
    padding: 1.5rem;
  }
  
  .cta-title {
    font-size: 1.75rem;
  }
  
  .packages-section,
  .process-section,
  .faq-section,
  .testimonials-section {
    padding: 3rem 0;
  }
  
  .cta-section {
    padding: 3rem 0;
  }
}

/* ===== 13. ANIMAÇÕES ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.package-card.featured {
  animation: pulse 3s ease-in-out infinite;
}

.package-card.featured:hover {
  animation: none;
}

/* ===== 14. ACESSIBILIDADE ===== */
.package-button:focus,
.faq-question:focus,
.cta-button:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

