@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400..700&family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poly:ital@0;1&display=swap');

:root {

 /* ------------- CUSTOM COLORS ------------- */
  --primary: #7954ce; /* tem q ajustar a primary */
  --primary-highlight: #8162ca; /*esse eh pr fazer uns hover na cor primaria e ficar um pouco mais clarinho */
  --bg-color: #ffffff;
  --primary-text-color: #000;

  --bg-secondary-color: #f7fafc;

  /* --color-secondary: #7a3fe0;
  --color-tertiary: #8c4df8; */

  --color-secondary: #6b46c1;
  --color-tertiary: #8b5cf6;

  --gray-text: #4e5156; /* esse dois provavelmente vamos inverter os valores quando ficar light/dark */
  --light-gray-text: #6b7280;

    /* esses aqui é da página dos blog post especificos, n mexe ferdinando */ 
  --code-bg: #eeeff1;
  --soft-gray: #f7fafc;
  --warning-color: #ff9881;

  /* ------------- VARIAVEIS DO TAILWIND ----------- */
  

    --btn-color: #fdfdfd;
    /* button color*/
    --btn-bg: #000;
    /* button bg color*/
    --gray-text:  #4e5156; 
    --light-gray-text: #6b7280;

    --header-link-hover: #000000;
    --header-link-hover-bg: #bababa36;

    --input-hover-bd-color: #232323;

    --dropdown-bg: #f3f4f6;
    --dropdown-hover-bg: #dddddd84;

    --faq-h-text: #0e0e0e;
    --faq-content-text: #1e1e1e;

    --hr-color: #e5e7eb;

    --footer-link: #282828;
    --footer-link-hover: #000;

    --link: #a89d9d;
    --link-hover: #c5c3c3;


    --header-bg: #edececa5;
    /* color: #312f2f; */
    --hero-gradient: #fcfcfc;
    --hero-bg-img: url("../assets/images/background/dots-dark.svg");

}

.tw-dark {
    --primary-text-color: #fff;
    --bg-color: #000000;

    --bg-secondary-color: #0e0e0e; 

    --gray-text:  #4e5156; 
    --light-gray-text: #848993;


    --btn-color: #000000;
    /* button color*/
    --btn-bg: #ffffff;
    /* button bg color*/

    --header-link-hover: #ffffff;
    --header-link-hover-bg: #8a8a8a5e;

    --input-hover-bd-color: #f8f8f8;

    --dropdown-bg: #171717;
    --dropdown-hover-bg: #2d2d2ddb;

    --faq-h-text: #efefef;
    --faq-content-text: #d4d4d4;

    --hr-color: #e1e1e195;

    --footer-link: #cfcfcf;
    --footer-link-hover: #ffffff;

    --link: #cfcfcf;
    --link-hover: #ffffff;


    --header-bg: #232323a5;

    --hero-gradient: #000;
    --hero-bg-img: url("../assets/images/background/dots.svg");

}

html {
    scroll-behavior: smooth;
    /* font-family: "Ubuntu", sans-serif; */
}

body.modal-open {
    overflow: hidden;
}

header>.collapsible-header {
    display: flex;
    gap: 1rem;
    width: 100%;
    background-color: inherit;
    place-content: center;
    overflow: hidden;
    transition: width 0.3s ease, height 0.3s ease;
}

hr {
    border-color: var(--hr-color);
    border-style: solid;
}

.animated-collapse {
    transition: width 0.3s ease;
}


.header-links {
    position: relative;
    display: flex;
    align-items: center;
    min-width: fit-content;
    padding: 8px 15px;
    z-index: 2;
    cursor: pointer;
    transition: background-color 0.5s, color 0.3s;
}

.header-links::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    /* color: var(--header-link-hover); */
    background-color: var(--header-link-hover-bg);
    transform: scale(40%);
    opacity: 0;
    border-radius: 8px;
    transition: all 300ms;
}

.header-links:hover {
    color: var(--header-link-hover);
}

.header-links:hover::after {
    transform: scale(100%);
    opacity: 1;
}

.hero-section {
    background-image: var(--hero-bg-img);
    background-position: center;
    /* Center the image */
    background-repeat: no-repeat;
    /* Do not repeat the image */
    background-size: cover;
}

.hero-bg-gradient {
    /* background: linear-gradient(180deg, var(--hero-gradient) 13%, rgba(0,0,0,0.258140756302521) 87%); */
    background: linear-gradient(180deg, var(--hero-gradient) 23%, rgba(0, 0, 0, 0) 87%, var(--hero-gradient) 97%);
}


.gradient-text {
    background: rgb(215, 215, 215);
    background: linear-gradient(90deg, rgba(215, 215, 215, 1) 18%, rgba(136, 136, 136, 1) 71%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}


.purple-bg-grad {
    background: rgb(126, 34, 206);
    background: linear-gradient(90deg, #7e22ce91 8%, #625aafae 31%, #7badbbbc 76%, #54d2d0ca 89%);
    filter: blur(50px);
    opacity: 0.5;
}

#dashboard {
    /* transform-origin: bottom center; */
    transform: perspective(1200px) translateX(0px) translateY(12px) scale(0.8) rotate(0deg) rotateX(70deg);
    transition: transform 0.5;
}

.opacity-0 {
    opacity: 0 !important;
}

.opacity-100 {
    opacity: 100 !important;
}

.btn {
    padding: 10px 15px;
    width: max-content;
    border-radius: 10px;
    color: var(--btn-color);
    background-color: var(--btn-bg);
    justify-content: center;
    align-items: center;
    display: flex;
    cursor: pointer;
}

.btn:hover {}

.btn:disabled {
    cursor: default;
}

.input {
    padding: 10px;
    background-color: transparent;
    border-radius: 5px;
    outline: none;
    min-width: 100px;
    border: 1px solid #979797;
    transition: border 0.3s;
}

.input:active,
.input:focus,
.input:focus-within {
    border: 1px solid var(--input-hover-bd-color) !important;
}

/* ------------------- scrollbar ------------- */
.scrollbar::-webkit-scrollbar {
    width: 5px;
    height: 20px;
}

.scrollbar::-webkit-scrollbar-track {
    border-radius: 25px;
    /* background: #f7f4ed; */
}

.scrollbar::-webkit-scrollbar-thumb {
    background: #d7d7d7;
    border-radius: 25px;
}


/* ---------------- dropdown --------------------- */
.dropdown {
    position: relative;
    display: inline-block;
    width: 100%;
}

.dropdown-toggle {
    width: 100%;
    outline: none;
    /* background-color: #000; */
    /* border: 1px solid #ccc; */
}

.dropdown-menu {
    display: none;
    position: absolute;
    z-index: 1;
    background-color: var(--dropdown-bg);
    /* border: 1px solid #c9c9c9; */
    list-style-type: none;
    padding: 0;
    width: 100%;
    left: 0px;
    /* top: 105%; */
    border-radius: 10px;
    overflow: hidden;
}

.dropdown-menu li {
    padding: 8px 12px;
    cursor: pointer;
}

.dropdown-menu li:hover {
    background-color: var(--dropdown-hover-bg);
}


.dropdown-platform {
    position: absolute;
    z-index: 1;
    background-color: var(--dropdown-bg);
    /* border: 1px solid #c9c9c9; */
    list-style-type: none;
    padding: 0;
    width: 100%;
    left: 0px;
    /* top: 105%; */
    border-radius: 10px;
    overflow: hidden;
}

.dropdown-platform li {
    padding: 8px 12px;
    cursor: pointer;
}

.dropdown-platform li:hover {
    background-color: var(--dropdown-hover-bg);
}

/* -------------- carousel ------------------*/
.carousel-wrapper {
    overflow: hidden;
    width: 100%;
    max-width: 800px;
}

.carousel-track {
    display: flex;
    width: max-content;
    animation: scroll-infinite 20s linear infinite;
}

.carousel-item {
    flex: 0 0 auto;
    width: 150px;
    height: 30px;
    margin: 0 20px;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: grayscale(1);
    transition: filter 0.3s;
}

.carousel-item img:hover {
    filter: grayscale(0);
}

@keyframes scroll-infinite {
    0% {
        transform: translateX(0%);
    }

    100% {
        transform: translateX(-50%);
    }
}


/* ------ animated border ------- */

.animated-border {
    position: relative;
    overflow: visible;
}


.animated-border::after {
    content: '';
    position: absolute;
    top: 0px;
    left: -100%;
    width: 30%;
    height: 100%;
    border-radius: inherit;
    /* background: linear-gradient(#6366f1 23%, rgba(124,190,255,0) 87%); */
    background-color: #6366f1;
    background-repeat: no-repeat;
    /* background-size: 200% 200%; */
    background-position: 0% 0%;
    filter: blur(1.5rem);
    opacity: 0.8;
    box-shadow: inset 0px 0px 20px 5px #6366f1;
    /* transform: rotate(90deg); */
    z-index: -2;
    pointer-events: none;
    animation: slide 10s ease-in-out infinite;

}

.animated-border::before {
    filter: blur(1.5rem);
    opacity: 0.3;
    will-change: transform;
}

@keyframes slide {
    0% {
        left: -100%;
        /* Start completely outside the left edge */
        right: 100%;
        /* End completely outside the right edge */
    }

    100% {
        left: 100%;
        /* Move completely outside the right edge */
        right: -100%;
        /* End completely outside the left edge */
    }
}

.footer-link {
    width: -moz-fit-content;
    width: fit-content;
    color: var(--footer-link);
    transition: color 0.3s;
}

.footer-link:hover {
    color: var(--footer-link-hover);
}


/* Style for the collapsible content such as faq commonly known as: accordion */

.faq-accordion {
    background-color: inherit;
    color: var(--faq-h-text);
    cursor: pointer;
    padding: 15px 18px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    transition: height 0.4s;
}

.faq .content {
    padding: 0px 18px;
    color: var(--faq-content-text);
    height: max-content;
    overflow: hidden;
    background-color: transparent;
    text-align: justify;
    max-height: 0px;
    transition: max-height 0.4s, padding 0.4s;
}


@media not all and (min-width: 1024px) {
    header .collapsible-header {
        position: fixed;
        top: 60px;
        left: 0px;
        flex-direction: column;
        height: 0vh;
        min-height: 0vh;
        /* height: 100dvh; */
        width: 100vw;
        justify-content: space-between;
        place-items: center;
        text-align: center;
        background-color: var(--header-bg);
        /* color: #373636; */
        overflow-y: auto;
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
        box-shadow: 0px 2px 3px 2px #9f9f9f7c;
    }

    /* .header-links{
        color: var(--he);
    } */

}

/* ------------------- CUSTOM ELEMENTS ---------------- */

.tw-header-hide {
    transform: translate(-50%, -140%);
    transition: transform 0.3s ease-in-out;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(-25%);
        animation-timing-function: cubic-bezier(0.8,0,1,1);
    }
    50% {
        transform: none;
        animation-timing-function: cubic-bezier(0,0,0.2,1);
    }
}
.animate-bounce {
    animation: bounce 1s infinite;
}

.bounce-delay-0 {
    animation-delay: 0s;
}

.bounce-delay-02 {
    animation-delay: 0.2s;
}

.bounce-delay-04 {
    animation-delay: 0.4s;
}

.prompt-bubble {
  width: fit-content;
  margin-left: auto;
  margin-bottom: 24px;
  padding: 0.5rem;                  /* p-2 */
  border-radius: 0.75rem;           /* rounded-xl */
  background-color: #f3f4f6;        /* gray-100 */
  margin-bottom: 2.5rem;              /* mb-4 */
  max-width: 60%;
}

.prompt-text {
  color: #000000;                   /* text-black */
}

.prompt-box {
  width: fit-content;
  margin-left: auto;
  padding: 0.5rem; /* Tailwind p-2 */
  border-radius: 0.75rem; /* Tailwind rounded-xl */
  background-color: #f3f4f6; /* Tailwind gray-100 */
  margin-bottom: 1rem; /* Tailwind mb-4 */
  max-width: 60%;
}

.prompt-box .prompt-text {
  color: #000; /* Tailwind text-black */
}

.preview-container {
  width: 100%;
  color: #000; /* text-black */
  margin-bottom: 1.5rem; /* mb-6 */
}

.preview-container .section {
  display: flex;
  flex-direction: column;
  gap: 1rem; /* space-y-4 */
}

.preview-container .header-section {
  display: flex;
  flex-direction: column;
  gap: 0.25rem; /* space-y-1 */
}

.preview-container .label {
  font-size: 0.875rem; /* text-sm */
  text-transform: uppercase;
  letter-spacing: 0.05em; /* tracking-wide */
  color: #6b7280; /* text-gray-500 */
}

.preview-container .preview-text {
  font-size: 1rem; /* text-base */
  font-weight: 500;
}

.confidence {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
  color: #ccc;
  position: relative;
}

.confidence-tooltip-icon {
  display: inline-block;
  background-color: #444;
  color: #fff;
  border-radius: 50%;
  font-size: 0.7rem;
  width: 16px;
  height: 16px;
  text-align: center;
  line-height: 16px;
  cursor: pointer;
  position: relative;
  transition: background-color 0.3s ease;
}

.confidence-tooltip-icon:hover {
  background-color: #666;
}

.confidence-tooltip-icon .tooltip-text {
  visibility: hidden;
  opacity: 0;
  width: 240px;
  background-color: #1e1e1e;
  color: #fff;
  text-align: left;
  border-radius: 8px;
  padding: 10px 12px;
  position: absolute;
  z-index: 99;
  bottom: 130%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  line-height: 1.4;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.confidence-tooltip-icon:hover .tooltip-text,
.confidence-tooltip-icon:focus .tooltip-text {
  visibility: visible;
  opacity: 1;
}


@media (min-width: 640px) {
  .preview-container .preview-text {
    font-size: 1.125rem; /* sm:text-lg */
  }
}

.preview-container .confidence {
  font-size: 0.75rem; /* text-xs */
  color: #6b7280; /* text-gray-500 */
}

.preview-container .confidence .value {
  font-weight: 600;
}

.preview-container .buttons {
  display: flex;
  gap: 0.5rem;
  padding-top: 0.25rem;
}

.generate-btn {
  flex: 1;
  padding: 0.5rem 0.5rem;
  border-radius: 0.5rem;
  background-color: #000;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  transition: opacity 0.2s;
}

.generate-btn:hover {
  opacity: 0.9;
}

.generate-btn i {
  margin-right: 0.5rem;
  color: #facc15; /* text-yellow-400 */
}

.customize-btn {
  flex: 1;
  padding: 0.5rem 0.5rem;
  border-radius: 0.5rem;
  border: 1px solid #d1d5db; /* border-gray-300 */
  color: #1f2937; /* text-gray-800 */
  font-size: 0.875rem;
  font-weight: 500;
  background-color: transparent;
}

.customize-btn:hover {
  background-color: #f3f4f6; /* hover:bg-gray-100 */
}

.customize-btn i {
  margin-right: 0.5rem;
  color: #e5e7eb; /* text-gray-200 */
}

  .preview-container .label,
  .preview-container .confidence {
    color: #9ca3af; /* gray-400 */
  }

  .generate-btn {
    background-color: #fff;
    color: #000;
  }

  .customize-btn {
    border-color: #4b5563; /* border-gray-600 */
    color: #e5e7eb; /* text-gray-200 */
  }

  .customize-btn:hover {
    background-color: #1f2937; /* bg-gray-800 */
  }

.question-block {
  width: 100%;
  margin-right: auto;
  color: #000; /* modo claro */
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.question-label {
  padding-bottom: 1rem;
  text-align: left;
}

.question-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem; /* gap-2 */
  margin-bottom: 1.5rem; /* mb-6 */
}

.question-option-btn {
  padding: 0.5rem;
  border-radius: 0.75rem; /* rounded-xl */
  background-color: #f3f4f6; /* modo claro */
  color: #1f2937; /* text-gray-800 */
  text-align: left;
  transition: background-color 0.2s;
  border: 1px solid #d1d5db;
  font-weight: 500;
}

.question-option-btn:hover {
  background-color: #e5e7eb; /* hover claro */
}

.question-input {
  padding: 0.5rem;
  border-radius: 0.75rem;
  background-color: transparent;
  border: 1px solid #9ca3af;
  color: #1f2937;
  font-size: 0.875rem;
}

.question-input::placeholder {
  color: #9ca3af;
}

.question-input:focus {
  outline: none;
  border-color: #000;
}

.reveal-item {
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.reveal-hidden {
  opacity: 0;
  transform: translateY(12px); /* aproximação de translate-y-2 */
}

.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}


.answer-box {
  width: 100%;
  margin-right: auto;
  max-width: 100%;
  color: #000;
  margin-bottom: 1.5rem;
}

.question-option-btn-container {
  margin-bottom: 2rem;
  text-align: center;
}

.gerar-final-btn {
  padding: 0.75rem 1.5rem; /* vertical and horizontal padding */
  border-radius: 0.5rem; /* rounded-lg */
  background-color: #7954ce; /* seu roxo personalizado */
  color: #ffffff;
  font-weight: 500; /* font-medium */
  transition: opacity 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.gerar-final-btn:hover {
  opacity: 0.9;
}

.conversation-link {
  display: flex;
  padding: 0.5rem;
  gap: 0.5rem;
  color: #1a1a1a;
  text-decoration: none;
  border-radius: 0.5rem;
  transition: background 0.2s ease;
}

#sidebar-conversations::-webkit-scrollbar {
  width: 6px;
}

#sidebar-conversations::-webkit-scrollbar-track {
  background: transparent;
}

#sidebar-conversations::-webkit-scrollbar-thumb {
  background-color: rgba(100, 100, 100, 0.4); /* Light gray thumb */
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

#sidebar-conversations::-webkit-scrollbar-thumb:hover {
  background-color: rgba(100, 100, 100, 0.6); /* Darker on hover */
}

/* Firefox */
#sidebar-conversations {
  scrollbar-width: thin;
  scrollbar-color: rgba(100, 100, 100, 0.4) transparent;
}

#submit-prompt-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  position: relative;
  background-color: #d1d5db; /* tw-bg-gray-300 */
}

@media (prefers-color-scheme: dark) {
  #submit-prompt-btn {
    background-color: #374151; /* tw-bg-gray-700 */
    color: #ddd;
  }
}

#submit-prompt-btn::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 130%;
  left: -80%; /* Centraliza melhor */
  transform: translateX(-50%); /* Centraliza horizontalmente */
  background-color: #333;
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.75rem;
  max-width: 220px; /* Agora mais largo horizontalmente */
  min-width: 160px; /* Opcional: pra não ficar muito fino nunca */
  white-space: normal;
  line-height: 1.4;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 100;
  text-align: left;
  word-wrap: break-word;
}

#submit-prompt-btn:hover::after {
  opacity: 1;
}

.login-error-message {
    margin-top: 1rem;
    color: #d64545; /* vermelho suave e moderno */
    border-left: 4px solid #d64545; /* barra fina à esquerda */
    padding-left: 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0.85;
    max-width: 100%;
    box-sizing: border-box;
}

#error-message {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 80%;
  background-color: #2f2f2f;
  color: var(--warning-color);
  padding: 12px 16px;
  border: 1px solid #f8d7da;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  z-index: 1000;
  text-align: center;
  pointer-events: none;
  transition: opacity 0.3s ease;
}


/* ------------------ VIDEO SCRIPT OUTPUT ------------------ */

.video-script-container {
  max-width: 800px;
  margin: 0 auto;
  background: #121212;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Header */
.script-header {
  background: linear-gradient(135deg, #8c2fb6 0%, #4a40cd 100%);
  color: #fff;
  padding: 48px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.script-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.main-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 10px;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  letter-spacing: -0.015em;
}

.script-meta {
  opacity: 0.85;
  font-size: 0.95rem;
  font-weight: 500;
}

/* Script Content */
.script-content {
  background: #121212;
  padding: 0;
}

.video-section {
  border-bottom: 1px solid #2b2b2b;
  transition: all 0.3s ease;
  animation: fadeInUp 0.6s ease both;
}

.video-section:last-child {
  border-bottom: none;
}

.video-section:hover {
  background: #181818;
  transform: translateY(-1px);
}

/* Section Header */
.section-header {
  background: #1b1b1b;
  padding: 24px 32px;
  border-left: 4px solid #4a40cd;
  position: relative;
}

.section-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0%, transparent 60%);
  pointer-events: none;
}

.section-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-icon {
  font-size: 1.2rem;
  color: #4a40cd;
  opacity: 0.9;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.video-section:hover .section-icon {
  opacity: 1;
  transform: scale(1.1);
}

/* Section Content */
.section-content {
  padding: 28px 32px;
  background: #121212;
}

.content-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #dddddd;
}

.content-text p {
  margin-bottom: 16px;
}

.content-text p:last-child {
  margin-bottom: 0;
}

.content-text strong {
  color: #ffffff;
  font-weight: 700;
}

.content-text em {
  color: #a78bfa;
  background: rgba(139, 92, 246, 0.15);
  padding: 3px 6px;
  border-radius: 5px;
  font-style: normal;
  font-weight: 600;
}

/* Specific Section Themes - Vyral Color Palette */

.video-section[data-section="title"] .section-header {
  border-left-color: #b86161; /* desaturado do red-500 */
}
.video-section[data-section="title"] .section-icon {
  color: #b86161;
}

.video-section[data-section="objective"] .section-header {
  border-left-color: #d0a25e; /* mellow amber */
}
.video-section[data-section="objective"] .section-icon {
  color: #d0a25e;
}

.video-section[data-section="intro"] .section-header {
  border-left-color: #4d9b8d; /* dusty teal */
}
.video-section[data-section="intro"] .section-icon {
  color: #4d9b8d;
}

.video-section[data-section="development"] .section-header {
  border-left-color: #6c89d9; /* muted indigo */
}
.video-section[data-section="development"] .section-icon {
  color: #6c89d9;
}

.video-section[data-section="conclusion"] .section-header {
  border-left-color: #9c7edb; /* soft violet */
}
.video-section[data-section="conclusion"] .section-icon {
  color: #9c7edb;
}

.video-section[data-section="caption"] .section-header {
  border-left-color: #d66ba1; /* rose muted */
}
.video-section[data-section="caption"] .section-icon {
  color: #d66ba1;
}

.video-section[data-section="hashtags"] .section-header {
  border-left-color: #5cbccf; /* desaturado cyan */
}
.video-section[data-section="hashtags"] .section-icon {
  color: #5cbccf;
}

.video-section[data-section="thumbnail"] .section-header {
  border-left-color: #a3c962; /* olive-lime, menos saturado */
}
.video-section[data-section="thumbnail"] .section-icon {
  color: #a3c962;
}


/* Footer */
.script-footer {
  background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
  padding: 24px 32px;
  text-align: center;
  border-top: 1px solid #2c2c2c;
}

.footer-text {
  color: #888888;
  font-size: 0.9rem;
  font-weight: 500;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .main-title {
    font-size: 2rem;
  }

  .script-header {
    padding: 32px 20px;
  }

  .section-header,
  .section-content {
    padding: 20px;
  }

  .section-title {
    font-size: 1.1rem;
  }

  .content-text {
    font-size: 1rem;
  }
}

/* Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.video-section:nth-child(1) { animation-delay: 0.1s; }
.video-section:nth-child(2) { animation-delay: 0.2s; }
.video-section:nth-child(3) { animation-delay: 0.3s; }
.video-section:nth-child(4) { animation-delay: 0.4s; }
.video-section:nth-child(5) { animation-delay: 0.5s; }
.video-section:nth-child(6) { animation-delay: 0.6s; }
.video-section:nth-child(7) { animation-delay: 0.7s; }
.video-section:nth-child(8) { animation-delay: 0.8s; }



@media (prefers-color-scheme: dark) {

  .preview-container {
    color: #fff;
  }

  .prompt-bubble {
    background-color: #171717;
  }

  .prompt-text {
    color: #e5e7eb;                 /* text-gray-200 */
  }

  .question-option-btn {
    background-color: #2a2a2a;
    color: #f3f4f6;
    border-color: #4b5563;
  }

  .question-option-btn:hover {
    background-color: #3a3a3a;
  }

  .question-block {
    color: #e5e7eb; /* text-gray-200 */
  }

  .question-input {
    color: #f3f4f6;
    border-color: #4b5563;
  }

  .question-input::placeholder {
    color: #6b7280;
  }

  .question-input:focus {
    border-color: #fff;
  }
  .custom-input {
    background-color: #ffffff;
    color: #000000;
  }

  .custom-input::placeholder {
    color: #9ca3af;                 /* placeholder-gray-400 */
  }

  .prompt-box {
    background-color: #171717;
  }

  .prompt-box .prompt-text {
    color: #e5e7eb; /* Tailwind gray-200 */
  }
  .answer-box {
    color: #e5e7eb;
  }
  .gerar-final-btn {
    background-color: #7954ce; /* mantém o mesmo roxo no dark */
    color: #ffffff;
  }
  .conversation-link {
  color: #f1f1f1;
}

 .conversation-link:hover {
  background-color: #2d2d2d;
}
}

/* ------ CUSTOM BREAKPOINT ----------*/

.responsive-grid {
  display: grid;
  gap: 2.5rem;         /* gap-10 */
  padding: 1rem;       /* p-4 */
  margin-top: 2rem;    /* mt-8 */
  position: relative;
  place-items: center;
  grid-template-columns: 1fr;
}

@media (min-width: 780px) {
  .responsive-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1380px) {
  .responsive-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

#pixa-playground {
  height: 100%; /* default */
}

@media (max-width: 1023px) {
  #pixa-playground {
    height: 480px !important;
  }
}


@media (max-width: 780px) {
  #dropdown-btn-1 {
    left: 36%;
    bottom: -20%;
  }

  #dropdown-btn-2 {
    left: 64%;
    bottom: -20%;
  }
}

@media (max-width: 512px) {
  #dropdown-btn-1 {
    left: 28%;
    bottom: -24%;
  }

  #dropdown-btn-2 {
    left: 72%;
    bottom: -24%;
  }
}

/* Padrão: abre para baixo */
.dropdown ul {
  position: absolute;
  top: 100%;
  margin-top: 0.5rem; /* equivalente a mt-2 */
}

/* Em telas maiores que 768px: abre para cima */
@media (min-width: 768px) {
  .dropdown ul {
    top: auto;
    bottom: 100%;
    margin-top: 0;
    margin-bottom: 0.5rem; /* equivalente a mb-2 */
  }
}
