/**
 * ============================================
 * RCS COMPARISON SECTION CSS
 * ============================================
 * 
 * Estilos para seção de comparação RCS vs WhatsApp
 * 
 * @component .rcs-comparison-section - Seção de comparação
 */

/* ============================================
   SEÇÃO: COMPARAÇÃO RCS vs WHATSAPP
   ============================================ */

.rcs-comparison-section {
  padding: 0 0 100px 0;
  overflow: hidden;
}

.rcs-comparison-bg-pattern {
  display: none;
}

.rcs-comparison-section .container {
  position: relative;
  z-index: 1;
}

.rcs-comparison-header {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 80px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.rcs-comparison-header.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.rcs-comparison-insight-button {
  text-align: center;
}
.rcs-comparison-insight-button a {
 font-size: 1.2rem;
    font-weight: 500;
    margin: 20px;
    line-height: 1.5;
}
.rcs-comparison-title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 24px;
  background: linear-gradient(199deg, #7b2fff 0%, #3ac6ff 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
}

.rcs-comparison-intro {
  font-size: 1.2rem;
  color: #333;
  line-height: 1.8;
  font-weight: 400;
}

[data-theme="dark"] .rcs-comparison-intro {
  color: #cbd5e1;
}

/* Tabela de Comparação Moderna */
.rcs-comparison-table-wrapper {
  margin: 80px auto;
  max-width: 1200px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
}

.rcs-comparison-table-wrapper.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.rcs-comparison-table {
  background: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 20px 25px -5px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

/* SVG de fundo com padrão de grid para tema dark */
.rcs-comparison-table::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M0 38.59l2.83-2.83 1.41 1.41L1.41 40H0v-1.41zM0 1.4l2.83 2.83 1.41-1.41L1.41 0H0v1.41zM38.59 40l-2.83-2.83 1.41-1.41L40 38.59V40h-1.41zM40 1.41l-2.83 2.83-1.41-1.41L38.59 0H40v1.41zM20 18.6l2.83-2.83 1.41 1.41L21.41 20l2.83 2.83-1.41 1.41L20 21.41l-2.83 2.83-1.41-1.41L18.59 20l-2.83-2.83 1.41-1.41L20 18.59z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 0;
}

[data-theme="dark"] .rcs-comparison-table::before {
  opacity: 1;
}

[data-theme="dark"] .rcs-comparison-table {
  background: #1a1f2e;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3),
    0 20px 25px -5px rgba(0, 0, 0, 0.4);
}

.rcs-table-header {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  background: linear-gradient(199deg, #7b2fff 0%, #3ac6ff 100%);
  font-weight: 700;
  padding: 0;
  position: relative;
}
[data-theme="dark"] .rcs-table-header {
  background: linear-gradient(
    35deg,
    #120a2e 0%,
    #2a1365 45%,
    #4b1fa6 75%,
    #6a5cff 100%
  );
}
.rcs-table-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.3);
}

.rcs-table-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: #ffffff;
  position: relative;
  z-index: 1;
}

[data-theme="dark"] .rcs-table-row {
  background: #1a1f2e;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.rcs-table-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: linear-gradient(
    90deg,
    rgba(123, 47, 255, 0.1) 0%,
    transparent 100%
  );
  transition: width 0.3s ease;
}

.rcs-table-row:hover {
  background: linear-gradient(
    90deg,
    rgba(123, 47, 255, 0.04) 0%,
    rgba(58, 198, 255, 0.04) 100%
  );
  transform: translateX(4px);
}

[data-theme="dark"] .rcs-table-row:hover {
  background: linear-gradient(
    90deg,
    rgba(123, 47, 255, 0.12) 0%,
    rgba(58, 198, 255, 0.12) 100%
  );
}

.rcs-table-row:hover::before {
  width: 4px;
  background: linear-gradient(199deg, #7b2fff 0%, #3ac6ff 100%);
}

.rcs-table-row:last-child {
  border-bottom: none;
}

/* Animação em cascata para linhas da tabela */
.rcs-table-row-cascade {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.rcs-table-row-cascade.visible {
  opacity: 1;
  transform: translateY(0);
}

.rcs-table-cell {
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  min-height: 80px;
  position: relative;
  z-index: 1;
}

.rcs-table-feature {
  justify-content: flex-start;
  font-weight: 600;
  color: #1f2937;
  background: linear-gradient(90deg, #f9fafb 0%, #ffffff 100%);
  font-size: 1.05rem;
  border-right: 1px solid rgba(0, 0, 0, 0.05);
  padding-left: 32px;
}

[data-theme="dark"] .rcs-table-feature {
  background: linear-gradient(90deg, #1e293b 0%, #1a1f2e 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.rcs-feature-label {
  color: #6b7280;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.rcs-feature-name {
  color: #1f2937;
  font-weight: 600;
  font-size: 1rem;
}

[data-theme="dark"] .rcs-feature-name {
  color: #e2e8f0;
}

[data-theme="dark"] .rcs-feature-label {
  color: #ffffff;
}

.rcs-table-whatsapp {
  background: rgba(37, 211, 102, 0.03);
  position: relative;
}

[data-theme="dark"] .rcs-table-whatsapp {
  background: rgba(37, 211, 102, 0.08);
}

.rcs-table-rcs {
  background: linear-gradient(
    90deg,
    rgba(123, 47, 255, 0.05) 0%,
    rgba(58, 198, 255, 0.05) 100%
  );
  position: relative;
}

[data-theme="dark"] .rcs-table-rcs {
  background: linear-gradient(
    90deg,
    rgba(123, 47, 255, 0.12) 0%,
    rgba(58, 198, 255, 0.12) 100%
  );
}

.rcs-platform-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.rcs-platform-name {
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #ffffff;
}

.rcs-platform-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  color: #ffffff;
}

.rcs-badge-premium {
  background: linear-gradient(
    90deg,
    rgba(123, 47, 255, 0.3) 0%,
    rgba(58, 198, 255, 0.3) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.rcs-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 8px 16px;
  border-radius: 8px;
  min-width: 60px;
}

.rcs-status-success {
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
}

[data-theme="dark"] .rcs-status-success {
  color: #34d399;
  background: rgba(16, 185, 129, 0.2);
}

.rcs-status-error {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

[data-theme="dark"] .rcs-status-error {
  color: #f87171;
  background: rgba(239, 68, 68, 0.2);
}

.rcs-status-warning {
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.1);
  font-size: 0.9rem;
}

[data-theme="dark"] .rcs-status-warning {
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.2);
}

.rcs-status-locked {
  color: #6b7280;
  background: rgba(107, 114, 128, 0.1);
  font-size: 0.9rem;
}

[data-theme="dark"] .rcs-status-locked {
  color: #9ca3af;
  background: rgba(107, 114, 128, 0.2);
}

/* Footer da Comparação */
.rcs-comparison-footer {
  max-width: 1000px;
  margin: 80px auto 0;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease 0.4s, transform 0.8s ease 0.4s;
}

.rcs-comparison-footer.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.rcs-comparison-insight {
  background: linear-gradient(
    90deg,
    rgba(123, 47, 255, 0.08) 0%,
    rgba(58, 198, 255, 0.08) 100%
  );
  border-radius: 20px;
  padding: 32px 40px;
  margin-bottom: 40px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  border: 1px solid rgba(123, 47, 255, 0.15);
  box-shadow: 0 3px 8px rgba(123, 47, 255, 0.1);
}

.rcs-insight-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
  line-height: 1;
}

.rcs-insight-text {
  font-size: 1.15rem;
  color: #333;
  line-height: 1.8;
  font-weight: 500;
  margin: 0;
  flex: 1;
}

/* ============================================
   CTA SUBTITLE (Texto acima do botão)
   ============================================ */

.rcs-cta-subtitle {
  font-size: 1.2rem;
  font-weight: 500;
  color: #666;
  margin-bottom: 20px;
  line-height: 1.5;
}

[data-theme="dark"] .rcs-cta-subtitle {
  color: var(--rcs-text-secondary, #b0b0b0);
}

.rcs-quote-box {
  background: #ffffff;
  border-radius: 20px;
  padding: 40px;
  position: relative;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 20px 25px -5px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.rcs-quote-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(199deg, #7b2fff 0%, #3ac6ff 100%);
}

.rcs-quote-content {
  position: relative;
  z-index: 1;
}

.rcs-quote-mark {
  width: 60px;
  height: 60px;
  color: #7b2fff;
  opacity: 0.1;
  margin-bottom: 20px;
}

.rcs-quote-text {
  font-size: 1.15rem;
  color: #444;
  line-height: 1.8;
  font-style: italic;
  margin-bottom: 24px;
  font-weight: 400;
}

.rcs-quote-author {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.rcs-quote-author strong {
  color: #7b2fff;
  font-weight: 700;
  font-size: 1.05rem;
}

.rcs-quote-author span {
  color: #666;
  font-size: 0.95rem;
  font-weight: 400;
}

/* ============================================
   RESPONSIVIDADE - COMPARAÇÃO
   ============================================ */

@media (max-width: 992px) {
  .rcs-comparison-section {
    padding: 80px 0;
  }

  .rcs-comparison-title {
    font-size: 3rem;
  }

  .rcs-comparison-intro {
    font-size: 1.1rem;
  }

  .rcs-comparison-header {
    margin-bottom: 60px;
  }

  .rcs-comparison-table-wrapper {
    margin: 60px auto;
  }

  .rcs-table-header,
  .rcs-table-row {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .rcs-table-cell {
    padding: 20px 16px;
    font-size: 0.95rem;
  }

  .rcs-platform-name {
    font-size: 1rem;
  }

  .rcs-platform-badge {
    font-size: 0.7rem;
    padding: 3px 10px;
  }

  .rcs-status {
    font-size: 1rem;
    padding: 6px 12px;
    min-width: 50px;
  }

  .rcs-comparison-insight {
    padding: 24px 32px;
  }

  .rcs-insight-text {
    font-size: 1.05rem;
  }

  .rcs-quote-box {
    padding: 32px;
  }

  .rcs-quote-text {
    font-size: 1.05rem;
  }
}

@media (max-width: 768px) {
  .rcs-comparison-section {
    padding: 60px 0;
  }

  .rcs-comparison-title {
    font-size: 3rem;
    margin-bottom: 20px;
  }

  .rcs-comparison-intro {
    font-size: 1rem;
  }

  .rcs-comparison-header {
    margin-bottom: 50px;
  }

  .rcs-comparison-table-wrapper {
    margin: 50px auto;
    padding: 0 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .rcs-comparison-table-wrapper::-webkit-scrollbar {
    height: 8px;
  }

  .rcs-comparison-table-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
  }

  .rcs-comparison-table-wrapper::-webkit-scrollbar-thumb {
    background: linear-gradient(199deg, #7b2fff 0%, #3ac6ff 100%);
    border-radius: 10px;
  }

  .rcs-comparison-table {
    min-width: 484px;
  }

  .rcs-table-header,
  .rcs-table-row {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .rcs-table-cell {
    padding: 18px 12px;
    font-size: 0.9rem;
    min-height: 70px;
  }

  .rcs-table-feature {
    padding-left: 20px;
    font-size: 0.95rem;
  }

  .rcs-feature-name {
    font-size: 0.9rem;
  }

  .rcs-platform-name {
    font-size: 0.9rem;
  }

  .rcs-platform-badge {
    font-size: 0.65rem;
    padding: 2px 8px;
  }

  .rcs-status {
    font-size: 0.9rem;
    padding: 6px 10px;
    min-width: 45px;
  }

  .rcs-status-warning,
  .rcs-status-locked {
    font-size: 0.8rem;
  }

  .rcs-comparison-footer {
    margin-top: 60px;
  }

  .rcs-comparison-insight {
    flex-direction: column;
    padding: 24px;
    gap: 16px;
  }

  .rcs-insight-icon {
    font-size: 2rem;
  }

  .rcs-insight-text {
    font-size: 1rem;
  }

  .rcs-cta-subtitle {
    font-size: 1.1rem;
  }

  .rcs-quote-box {
    padding: 24px;
  }

  .rcs-quote-mark {
    width: 50px;
    height: 50px;
    margin-bottom: 16px;
  }

  .rcs-quote-text {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  .rcs-quote-author {
    align-items: flex-start;
  }

  .rcs-quote-author strong {
    font-size: 1rem;
  }

  .rcs-quote-author span {
    font-size: 0.9rem;
  }

  .rcs-cta-subtitle {
    font-size: 1rem;
    margin-bottom: 16px;
  }
}

@media (max-width: 480px) {
  .rcs-comparison-title {
    font-size: 3rem;
  }

  .rcs-comparison-intro {
    font-size: 0.95rem;
  }

  .rcs-table-cell {
    padding: 16px 10px;
    font-size: 0.85rem;
  }

  .rcs-platform-name {
    font-size: 0.85rem;
  }

  .rcs-status {
    font-size: 0.85rem;
    padding: 5px 8px;
  }
  .rcs-table-header,
  .rcs-table-row {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .rcs-comparison-table {
    min-width: 300px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rcs-comparison-header,
  .rcs-comparison-table-wrapper,
  .rcs-comparison-footer {
    transition: opacity 0.4s linear;
    transform: none;
  }
}
