/**
 * ============================================
 * RCS SHORTCODE SECTION CSS
 * ============================================
 * 
 * Estilos para seção sobre o papel da Short Code
 * 
 * @component .rcs-shortcode-section - Seção sobre Short Code
 */

/* ============================================
   SEÇÃO: PAPEL DA SHORT CODE
   ============================================ */

.rcs-shortcode-section {
  padding: 100px 0;
  position: relative;
}

.rcs-shortcode-content {
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.rcs-shortcode-content.scroll-reveal {
  opacity: 0;
  transform: translateX(-30px);
}

.rcs-shortcode-content.scroll-reveal.visible {
  opacity: 1;
  transform: translateX(0);
}

.rcs-shortcode-badge {
  display: inline-block;
  background: linear-gradient(199deg, #7b2fff 0%, #3ac6ff 100%);
  color: #fff;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 30px;
  margin-bottom: 20px;
  font-size: 0.95rem;
  box-shadow: 0 4px 12px rgba(123, 47, 255, 0.25);
}

.rcs-shortcode-title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 25px;
  background: linear-gradient(199deg, #7b2fff 0%, #3ac6ff 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.rcs-shortcode-desc {
  font-size: 1.1rem;
  color: #555;
  line-height: 1.7;
  margin-bottom: 30px;
}

/* Botões interativos */
.rcs-shortcode-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 30px;
  width: 100%;
  position: relative;
  z-index: 1;
}

.rcs-shortcode-btn {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 20px;
  margin: 0;
  background: #f8f9ff;
  border: 2px solid transparent;
  border-radius: 12px;
  border-left: 4px solid #7b2fff;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  opacity: 1;
  transform: translateX(0);
  position: relative;
  overflow: hidden;
  width: 100%;
}

.rcs-shortcode-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(123, 47, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.rcs-shortcode-btn:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 16px rgba(123, 47, 255, 0.2);
  border-color: rgba(123, 47, 255, 0.3);
}

.rcs-shortcode-btn:hover::before {
  left: 100%;
}

.rcs-shortcode-btn.active {
  background: linear-gradient(135deg, #f8f5ff 0%, #f0f9ff 100%);
  border-left-color: #7b2fff;
  border-color: rgba(123, 47, 255, 0.4);
  box-shadow: 0 4px 16px rgba(123, 47, 255, 0.25);
  transform: translateX(5px);
}

.rcs-btn-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.rcs-shortcode-btn:hover .rcs-btn-icon {
  transform: scale(1.1);
}

.rcs-shortcode-btn.active .rcs-btn-icon {
  transform: scale(1.15);
}

.rcs-btn-icon svg {
  width: 100%;
  height: 100%;
}

.rcs-btn-content {
  flex: 1;
  font-size: 1.05rem;
  color: #444;
  line-height: 1.6;
}

.rcs-shortcode-btn strong {
  color: #7b2fff;
  font-weight: 700;
  display: block;
  margin-bottom: 4px;
}

/* Garantir que os botões sempre sejam visíveis */
.rcs-shortcode-buttons,
.rcs-shortcode-buttons * {
  visibility: visible !important;
  display: flex !important;
}

.rcs-shortcode-btn {
  visibility: visible !important;
  display: flex !important;
  opacity: 1 !important;
}

/* Container de vídeo */
.rcs-video-container {
  width: 100%;
  position: relative;
  margin-top: 20px;
}

.rcs-video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  background: linear-gradient(135deg, #f8f9ff 0%, #f0f9ff 100%);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 
    0 10px 40px rgba(123, 47, 255, 0.15),
    0 0 0 1px rgba(123, 47, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  border: 2px solid rgba(123, 47, 255, 0.15);
  transition: all 0.3s ease;
}

.rcs-video-wrapper:hover {
  box-shadow: 
    0 15px 50px rgba(123, 47, 255, 0.25),
    0 0 0 1px rgba(123, 47, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  border-color: rgba(123, 47, 255, 0.3);
  transform: translateY(-2px);
}

.rcs-video-player {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
  border-radius: 18px;
  z-index: 2;
  background: #000;
}

.rcs-video-player.active {
  display: block;
}

.rcs-video-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f8f9ff 0%, #f0f9ff 100%);
  color: #666;
  border-radius: 18px;
  z-index: 1;
}

.rcs-video-placeholder.hidden {
  display: none;
}

.rcs-video-placeholder svg {
  width: 140px;
  height: 140px;
  margin-bottom: 24px;
  opacity: 0.5;
  transition: all 0.3s ease;
  filter: drop-shadow(0 4px 12px rgba(123, 47, 255, 0.2));
}

.rcs-video-placeholder:hover svg {
  opacity: 0.7;
  transform: scale(1.05);
  filter: drop-shadow(0 6px 16px rgba(123, 47, 255, 0.3));
}

.rcs-video-placeholder p {
  font-size: 1.15rem;
  color: #666;
  margin: 0;
  font-weight: 500;
  text-align: center;
  max-width: 80%;
}

.rcs-shortcode-conclusion {
  font-size: 1.1rem;
  color: #555;
  line-height: 1.7;
  font-style: italic;
  padding: 20px;
  background: linear-gradient(199deg, #f8f5ff 0%, #f0f9ff 100%);
  border-radius: 12px;
  border-left: 4px solid #3ac6ff;
}

.rcs-shortcode-visual {
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.rcs-shortcode-visual.scroll-reveal {
  opacity: 0;
  transform: translateX(30px);
}

.rcs-shortcode-visual.scroll-reveal.visible {
  opacity: 1;
  transform: translateX(0);
}

.rcs-shortcode-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 30px;
}

.rcs-shortcode-card {
  background: #fff;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 2px solid transparent;
}

.rcs-shortcode-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(123, 47, 255, 0.2);
}

.rcs-card-1 {
  border-left: 4px solid #10b981;
}

.rcs-card-2 {
  border-left: 4px solid #25d366;
}

.rcs-card-3 {
  border-left: 4px solid #7b2fff;
}

.rcs-card-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 60px;
  height: 60px;
  margin: 0 auto 15px;
}

.rcs-icon-animated {
  width: 100%;
  height: 100%;
}

/* ============================================
   ANIMAÇÕES DOS NOVOS ÍCONES SVG
   ============================================ */

/* Ícone de Mensagem (Card 1) */
.rcs-icon-animated .message-dot.dot1 {
  animation: dotPulse 1.5s ease-in-out infinite;
}

.rcs-icon-animated .message-dot.dot2 {
  animation: dotPulse 1.5s ease-in-out infinite 0.2s;
}

.rcs-icon-animated .message-dot.dot3 {
  animation: dotPulse 1.5s ease-in-out infinite 0.4s;
}

.rcs-icon-animated .message-line.line1 {
  animation: lineGlow 2s ease-in-out infinite;
}

.rcs-icon-animated .message-line.line2 {
  animation: lineGlow 2s ease-in-out infinite 0.5s;
}

.rcs-icon-animated .message-bubble {
  animation: bubbleFloat 3s ease-in-out infinite;
}

/* Ícone de Gráfico (Card 2) */
.rcs-icon-animated .chart-bar.bar1 {
  animation: barGrow 1s ease-out 0.3s both;
}

.rcs-icon-animated .chart-bar.bar2 {
  animation: barGrow 1s ease-out 0.5s both;
}

.rcs-icon-animated .chart-bar.bar3 {
  animation: barGrow 1s ease-out 0.7s both;
}

.rcs-icon-animated .chart-line {
  stroke-dasharray: 50;
  stroke-dashoffset: 50;
  animation: lineDraw 1.5s ease-out 0.8s forwards;
}

.rcs-icon-animated .chart-point {
  animation: pointPulse 2s ease-in-out infinite;
  animation-delay: 1.5s;
}

.rcs-icon-animated .chart-point.point1 {
  animation-delay: 1.5s;
}

.rcs-icon-animated .chart-point.point2 {
  animation-delay: 1.7s;
}

.rcs-icon-animated .chart-point.point3 {
  animation-delay: 1.9s;
}

/* Ícone de API/Network (Card 3) */
.rcs-icon-animated .api-node.center {
  animation: nodePulse 2s ease-in-out infinite;
}

.rcs-icon-animated .api-node-inner {
  animation: innerGlow 1.5s ease-in-out infinite;
}

.rcs-icon-animated .api-connection {
  stroke-dasharray: 5;
  animation: connectionFlow 2s linear infinite;
}

.rcs-icon-animated .api-connection.conn1 {
  animation-delay: 0s;
}

.rcs-icon-animated .api-connection.conn2 {
  animation-delay: 0.5s;
}

.rcs-icon-animated .api-connection.conn3 {
  animation-delay: 1s;
}

.rcs-icon-animated .api-connection.conn4 {
  animation-delay: 1.5s;
}

.rcs-icon-animated .api-pulse {
  animation: pulseExpand 2s ease-out infinite;
}

.rcs-icon-animated .api-node.node1,
.rcs-icon-animated .api-node.node2,
.rcs-icon-animated .api-node.node3,
.rcs-icon-animated .api-node.node4 {
  animation: nodeFloat 3s ease-in-out infinite;
}

.rcs-icon-animated .api-node.node1 {
  animation-delay: 0s;
}

.rcs-icon-animated .api-node.node2 {
  animation-delay: 0.75s;
}

.rcs-icon-animated .api-node.node3 {
  animation-delay: 1.5s;
}

.rcs-icon-animated .api-node.node4 {
  animation-delay: 2.25s;
}

/* Keyframes */
@keyframes dotPulse {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

@keyframes lineGlow {
  0%,
  100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}

@keyframes bubbleFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

@keyframes barGrow {
  from {
    transform: scaleY(0);
    transform-origin: bottom;
  }
  to {
    transform: scaleY(1);
    transform-origin: bottom;
  }
}

@keyframes lineDraw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes pointPulse {
  0%,
  100% {
    opacity: 0.7;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.3);
  }
}

@keyframes nodePulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.9;
  }
}

@keyframes innerGlow {
  0%,
  100% {
    opacity: 0.8;
  }
  50% {
    opacity: 1;
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.8));
  }
}

@keyframes connectionFlow {
  0% {
    stroke-dashoffset: 0;
    opacity: 0.4;
  }
  50% {
    opacity: 0.8;
  }
  100% {
    stroke-dashoffset: 10;
    opacity: 0.4;
  }
}

@keyframes pulseExpand {
  0% {
    transform: scale(1);
    opacity: 0.4;
  }
  50% {
    opacity: 0.2;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

@keyframes nodeFloat {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.8;
  }
  50% {
    transform: translateY(-2px);
    opacity: 1;
  }
}

.rcs-shortcode-card h4 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 8px;
}

.rcs-shortcode-card p {
  font-size: 1rem;
  color: #666;
  margin: 0;
}

/* Removido - seção de seta não é mais necessária */

/* ============================================
   RESPONSIVIDADE - SHORTCODE
   ============================================ */

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

  .rcs-shortcode-content.scroll-reveal,
  .rcs-shortcode-visual.scroll-reveal {
    transform: translateY(30px);
  }

  .rcs-shortcode-content.scroll-reveal.visible,
  .rcs-shortcode-visual.scroll-reveal.visible {
    transform: translateY(0);
  }
}

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

  .rcs-shortcode-title {
    font-size: 2.5rem;
  }

  .rcs-shortcode-btn {
    padding: 16px;
    gap: 12px;
    width: 100%;
  }

  .rcs-btn-icon {
    width: 28px;
    height: 28px;
  }

  .rcs-btn-content {
    font-size: 0.95rem;
  }

  .rcs-video-wrapper {
    border-radius: 16px;
    margin-top: 30px;
  }

  .rcs-video-placeholder svg {
    width: 100px;
    height: 100px;
    margin-bottom: 16px;
  }

  .rcs-video-placeholder p {
    font-size: 1rem;
    padding: 0 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rcs-shortcode-content,
  .rcs-shortcode-visual {
    transition: opacity 0.4s linear;
    transform: none;
  }
}
