/*
Theme Name: Youtube Transcript Generator
Author: Your Name
Version: 2.3
Description: A polished custom theme for Youtube Transcript Generator with improved readability.
*/

/* ================== GENERAL ================== */
body {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  color: #333;
  line-height: 1.6;
  background: #fff;
  margin: 0;
  padding: 0;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600; /* a bit bolder */
  line-height: 1.3;
  margin-bottom: 15px;
  color: #111;
}

/* Paragraphs */
p {
  font-weight: 400;
  margin-bottom: 15px;
}


/* ================== HEADER ================== */
.site-header {
  background: white;
  padding: 15px 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}


.header-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

/* Centered logo */
.logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.logo a {
  font-size: 22px;
  font-weight: bold;
  color: #0073e6;
  text-decoration: none;
}

/* Menu button */
.menu-wrapper {
  position: relative;
}

.menu-toggle {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #0073e6;
  font-weight: bold;
}

/* Dropdown nav with smooth slide/fade animation */
.site-nav {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.4s ease, padding 0.4s ease;
  position: absolute;
  top: 50px;
  left: 0;
  background: white;
  border-radius: 8px;
  padding: 0 20px; /* collapsed state = no vertical padding */
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Expanded state */
.site-nav.active {
  max-height: 400px;   /* big enough for all menu items */
  opacity: 1;
  padding: 10px 20px;  /* restored padding */
}



/* Reset list */
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Menu item base style */
.site-nav ul li {
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  margin: 1px 0; /* spacing between items */
  text-align: center; /* centers menu items */
}

/* Menu links */
.site-nav ul li a {
  display: block;
  padding: 5px;
  border-radius: 2px;
  color: #0073e6;
  text-decoration: none;
  font-weight: normal;
  transition: background 0.3s ease;
}

/* Hover effect */
.site-nav ul li a:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Animate items in when nav is active */
.site-nav.active ul li {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered effect */
.site-nav.active ul li:nth-child(1) { transition-delay: 0.1s; }
.site-nav.active ul li:nth-child(2) { transition-delay: 0.2s; }
.site-nav.active ul li:nth-child(3) { transition-delay: 0.3s; }
.site-nav.active ul li:nth-child(4) { transition-delay: 0.4s; }
.site-nav.active ul li:nth-child(5) { transition-delay: 0.5s; }


/* ================== HERO ================== */
.hero-section {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
  color: #fff;
  text-align: center;
  padding: 60px 20px;
}

.hero-inner {
  max-width: 700px;
  margin: auto;
  background: rgba(255, 255, 255, 0.85);
  padding: 40px;
  border-radius: 16px;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  color: #111;
}

.hero-inner h1 {
  font-size: 3rem;
  margin-bottom: 15px;
  color: #0073e6;
}

.hero-inner p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: #333;
}

/* ================== FORM ================== */
.transcript-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.transcript-form input {
  flex: 1;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid #ddd;
  font-size: 1rem;
  outline: none;
  background: #fff;
  transition: all 0.3s ease;
}

.transcript-form input:focus {
  border-color: #0073e6;
  box-shadow: 0 0 6px rgba(0,115,230,0.3);
}

.transcript-form button {
  background: linear-gradient(90deg, #ff6a00, #ee0979);
  border: none;
  padding: 14px 22px;
  border-radius: 10px;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.3s;
  font-weight: 500;
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

.transcript-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}

/* ================== ACTION BUTTONS ================== */
.action-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.action-buttons button {
  background: linear-gradient(90deg, #6a11cb, #2575fc);
  color: #fff;
  padding: 12px 22px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: 0.3s ease;
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

.action-buttons button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}

/* ================== HOW IT WORKS ================== */
.how-it-works {
  text-align: center;
  padding: 80px 20px;
}

.steps {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.step {
  background: #fff;
  padding: 25px;
  border-radius: 14px;
  width: 280px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  transition: 0.3s ease;
}

.step:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.step .icon {
  font-size: 2rem;
  margin-bottom: 12px;
  color: #0073e6;
}

/* ================== TRANSCRIPT OUTPUT ================== */
.transcript-output {
  max-width: 800px;
  margin: 60px auto;
  background: #fff;
  padding: 25px;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
  height: 400px;
  overflow-y: auto;
  font-size: 1rem;
  line-height: 1.7;
  position: relative;
  color: #111;
}

.transcript-output::before {
  content: "📋 Transcript";
  position: sticky;
  top: 0;
  display: block;
  background: #fff;
  padding: 10px 12px;
  font-weight: bold;
  border-bottom: 1px solid #eee;
  z-index: 5;
  text-align: center;
  font-size: 1.2rem;
  color: #0073e6;
}

/* transcript lines */
.transcript-line { padding: 8px 12px; border-bottom: 1px solid #eee; display: flex; align-items: center; transition: 0.2s ease; color: #111; }
.transcript-line:nth-child(odd) { background: #fafafa; }
.transcript-line:hover { background: #f1f5ff; }
.timestamp { min-width: 60px; font-weight: bold; color: #0073e6; margin-right: 10px; }
.transcript-paragraph { margin-bottom: 1rem; padding: 10px 15px; background: #fdfdfd; border-left: 4px solid #0073e6; border-radius: 6px; color: #111; }
.transcript-title { text-align: center; font-size: 1.4rem; font-weight: bold; margin-bottom: 20px; color: #111; }

/* ================== FAQ ================== */
.faqs {
  background: #ffffff;
  padding: 80px 20px;
}

.faqs h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2rem;
  color: #0073e6;
}

.faq-item {
  max-width: 700px;
  margin: 0 auto 20px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 10px;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 15px;
  text-align: left;
  font-size: 18px;
  cursor: pointer;
  font-weight: bold;
  color: #0073e6;
  transition: 0.3s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question:hover { color: #005bb5; }
.faq-answer { display: none; padding: 0 15px 15px; color: #444; animation: fadeIn 0.3s ease; }
.faq-question.active + .faq-answer { display: block; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ================== LOADING MODAL ================== */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.loading-overlay.show {
  opacity: 1;
  pointer-events: all;
}

.loading-box {
  background: #fff;
  padding: 30px 40px;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  text-align: center;
  width: 350px;
  animation: scaleIn 0.4s ease;
}

@keyframes scaleIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #ddd;
  border-top: 4px solid #2575fc;
  border-radius: 50%;
  margin: 20px auto;
  animation: spin 1s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.checklist p {
  margin: 8px 0;
  font-size: 1rem;
  color: #555;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.6;
  transition: color 0.3s ease, opacity 0.3s ease;
}

.checklist p.done {
  color: #28a745;
  opacity: 1;
  font-weight: bold;
}

.checklist p.done::before {
  content: "✔ ";
  color: #28a745;
}

/* ================== DASHBOARD ================== */
.hidden { display: none; }

.dashboard {
  max-width: 900px;
  margin: 40px auto;
  padding: 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

.dashboard h1 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 1.8rem;
  color: #0073e6;
}
.transcript-output { background: #fafafa; padding: 20px; border-radius: 8px; font-size: 1rem; line-height: 1.6; max-height: 400px; overflow-y: auto; }

.results-dashboard h2 {
  text-align: center;
}

.video-wrapper {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto 20px;
  padding-bottom: 56.25%; /* 16:9 ratio */
  height: 0;
  border-radius: 12px;
  overflow: hidden; /* keeps rounded corners clean */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.video-wrapper:hover {
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.35), 0 0 15px rgba(0, 123, 255, 0.4); /* subtle glow */
  transform: scale(1.02); /* tiny zoom effect */
}

.video-wrapper iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ---- Title Styling ---- */
.dashboard-title {
  text-align: center;
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 20px;
  color: #0073e6;
  transition: text-shadow 0.3s ease, transform 0.3s ease;
}

.dashboard-title:hover {
  text-shadow: 0 0 12px rgba(0, 123, 255, 0.6);
  transform: scale(1.03);
}

/* ================== DASHBOARD ANIMATIONS ================== */
@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dashboard-title,
.video-wrapper,
.action-buttons,
.transcript-output {
  opacity: 0;                  /* start hidden */
  animation: fadeSlideUp 0.8s ease forwards;
}

/* staggered reveal */
.dashboard-title { animation-delay: 0.2s; }
.video-wrapper { animation-delay: 0.5s; }
.action-buttons { animation-delay: 0.8s; }
.transcript-output { animation-delay: 1.1s; }


/* ================== SKELETON LOADER ================== */
.skeleton {
  background: linear-gradient(90deg, #e0e0e0 25%, #f5f5f5 50%, #e0e0e0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 6px;
  margin-bottom: 12px;
}

.skeleton-line {
  height: 16px;
  width: 100%;
}

.skeleton-line.short { width: 60%; }
.skeleton-line.medium { width: 80%; }
.skeleton-line.long { width: 95%; }

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
  
/* ================== BOOKMARK TIP ================== */
.bookmark-tip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #6a11cb, #2575fc);
  color: #fff;
  padding: 10px 16px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  margin-bottom: 15px;
}

.feature-highlights {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 20px;
  text-align: center;
  flex-wrap: wrap;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  background: #f9f9f9;
  padding: 10px 18px;
  border-radius: 50px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.feature-item:hover {
  background: #eef2ff;
  transform: translateY(-2px);
}

/* Extra container (already styled earlier) */
.extra-container {
  width: 576px;
  margin: 50px auto;
  padding: 40px 30px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* <-- left-align by default */
  gap: 20px; /* smaller gap */
}

/* Keep only the heading centered */
.extra-container h2 {
  align-self: center;
  text-align: center;   /* center just this one */
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;  /* white text */
  background: linear-gradient(135deg, #6a11cb, #2575fc); /* theme gradient */
  padding: 0.75rem 2rem;
  border-radius: 25px; /* more rounded corners */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}


.extra-description {
  margin: 0 0 6px 0;  /* no big bottom gap */
  text-align: center; /* keep paragraph centered */
}

.upcoming-title {
  margin-top: 0;
  font-size: 1.5rem;
  font-weight: 700;
  padding-left: 10px;
  border-radius: 10px;
  color: white;
  background: linear-gradient(135deg, #7b1f29 0%, #c62828 50%, #e53935 100%);


     /* will now actually align left */
}

.upcoming-features {
  list-style: none;
  padding-left: 0;
  margin: 10px 0 0 0;
}

.upcoming-features li {
  font-size: 1rem;
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.6;
  color: #444;
}

.upcoming-features li::before {
  content: "✔";
  color: #d32f2f; /* maroon checkmark */
  font-weight: bold;
  margin-right: 8px;
}

.how-to-title {
  text-align: center;
  font-size: 1.5rem;
  margin-top: 20px;
 padding-left: 10px;
  border-radius: 10px;
  background: linear-gradient(135deg, #e07b60 0%, #d9b44a 100%);





  color: white; /* softer dark gray */
}

/* Numbered steps list */
.steps-list {
  max-width: 800px;
  margin: 0 auto 40px; /* center + spacing below */
  padding-left: 20px;
  font-size: 1rem;
  line-height: 1.8;
  color: #333;
}

.steps-list li {
  margin-bottom: 5px;
  padding-left: 5px;
}

/* Try it now link */
.try-it-now {
  text-align: left;
  margin-top: 0px;
  margin-bottom: 0cm;
}

.try-it-now a {
  font-size: 1.2rem;
  font-weight: 600;
  color: #0073e6;
  position: relative;
  text-decoration: none;
  margin-bottom: 0cm;
  transition: color 0.3s ease;
}

/* underline animation */
.try-it-now a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background: linear-gradient(135deg, #e07b60 0%, #d9b44a 100%);
  transition: width 0.3s ease;
}

.try-it-now a:hover {
  color: #005bb5;
}

.try-it-now a:hover::after {
  width: 100%;
}

.secondary-input {
  margin: 20px auto 0; /* tighter space under "Try it now" */
  max-width: 520px;
  background: linear-gradient(135deg, #4f46e5, #6366f1); /* painted background */
  border-radius: 20px;
  padding: 30px 25px;
  margin-top: 0%;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: white;
}

.secondary-input:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
}

.secondary-input h3 {
  margin-bottom: 15px;
  font-size: 1.3rem;
  font-weight: 600;
  color: #fff;
}

.secondary-input form {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.secondary-input input {
  flex: 1;
  min-width: 250px;
  padding: 14px 16px;
  font-size: 1rem;
  border: none;
  border-radius: 12px;
  outline: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.secondary-input input:focus {
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.4);
}

.secondary-input button {
  padding: 14px 22px;
  font-size: 1rem;
  background: white;
  color: #4f46e5;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.secondary-input button:hover {
  background: #f3f4f6;
  transform: translateY(-2px);
  margin-bottom: 0%;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.features-intro {
  margin: 30px auto 10px;
  margin-top: 0%;
  max-width: 700px;
  text-align: center;
}

.features-intro h3 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #0073e6;
}

.features-list {
  padding: 0;
  margin: 20px auto 0;
  max-width: 750px;
  text-align: left;
  line-height: 1.8;
  font-size: 1.05rem;
}

.features-list li {
  margin-bottom: 14px;
  padding-left: 5px;
  margin-bottom: 0%;
}

.transcript-importance {
  margin-top: 0%;
  border-radius: 25px;
  margin-bottom: 0%;
  background: linear-gradient(135deg, #e07b60 0%, #d9b44a 100%);
  text-align: center;
}

.transcript-importance h3 {
  font-size: 1.5rem;
  font-weight: 500;
  color: white;
}

.transcript-description {
  margin: 15px auto 30px;
  font-size: 1.05rem;
  line-height: 1.8;
  color: #444;
  margin-bottom: 0%;
  max-width: 750px;
  text-align: center;
}

.transcript-benefits {
  max-width: 750px;
  margin: 30px auto;
  margin-top: 0%;
  line-height: 1.8;
  color: #444;
}

.transcript-benefits h4 {
  margin-top: 25px;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #006400 0%, #228b22 100%);
  color:white;
  font-size: 1.2rem;
}

.transcript-benefits p {
  margin-bottom: 0%;
  font-size: .9rem;
}

.footer-disclaimer {
  font-size: 12px;
  line-height: 1.4;
  opacity: 0.6;
  margin: 0 0 8px 0; /* little space above copyright */
  max-width: 600px;   /* keep it readable */
}




/* ================== FOOTER ================== */
.site-footer {
  background: #1f2937;
  color: #fff;
  padding: 20px 40px;
  margin-top: 60px;
  font-size: 14px;
}

.footer-inner {
  display: flex;
  flex-direction: row;
  align-items: center;       /* ✅ centers items vertically */
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}


.footer-copy {
  font-size: 13px;
  opacity: 0.8;
  margin: 0;
}

.footer-disclaimer {
  font-size: 12px;
  line-height: 1.4;
  opacity: 0.8;
  margin: 0 0 8px 0;
  padding: 10px 12px;                 /* space inside the box */
  border: 1px solid rgba(255,255,255,0.2);  /* thin subtle border */
  border-radius: 8px;                 /* rounded corners */
  background: rgba(255,255,255,0.05); /* faint background so it stands out */
}


.footer-links {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}
.footer-links a:hover {
  opacity: 1;
}


.footer-left {
  flex: 1;
}
