/* components.css: Estilos para botones, cards, modales y formularios en PromptingAcademy */

/* --- Navbar --- */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(90deg, #1a1a2e 0%, #16213e 100%);
  color: #fff;
  padding: 0.5rem 2rem;
  box-shadow: 0 2px 8px rgba(26,26,46,0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar__brand {
  font-size: 1.3rem;
  font-weight: bold;
  letter-spacing: 1px;
  color: #00fff1;
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar__links a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.navbar__links a:hover {
  color: #00fff1;
}

.navbar__dropdown {
  position: relative;
}

.navbar__dropdown-menu {
  display: none;
  position: absolute;
  top: 2rem;
  left: 0;
  background: #16213e;
  border-radius: 0.5rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  min-width: 160px;
  padding: 0.5rem 0;
  z-index: 10;
}

.navbar__dropdown:hover .navbar__dropdown-menu,
.navbar__dropdown:focus-within .navbar__dropdown-menu {
  display: block;
}

.navbar__dropdown-menu li {
  padding: 0.5rem 1.5rem;
}

.navbar__dropdown-menu li a {
  color: #fff;
  display: block;
}

.navbar__dropdown-menu li a:hover {
  color: #00fff1;
  background: #23234b;
}

.navbar__theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.3rem;
  border-radius: 50%;
  transition: background 0.2s;
}

.navbar__theme-toggle:hover {
  background: #23234b;
}

/* Responsive */
@media (max-width: 800px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.5rem 1rem;
  }
  .navbar__links {
    flex-direction: column;
    gap: 0.7rem;
    width: 100%;
  }
  .navbar__dropdown-menu {
    left: 1rem;
    top: 2.2rem;
  }
}

/* --- Footer --- */
.footer {
  background: #1a1a2e;
  color: #b0b0b0;
  padding: 2rem 0 1rem 0;
  margin-top: 2rem;
  font-size: 1rem;
}

.footer__content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: bold;
  color: #00fff1;
  font-size: 1.1rem;
}

.footer__links {
  display: flex;
  gap: 1.5rem;
}

.footer__links a {
  color: #b0b0b0;
  text-decoration: none;
  transition: color 0.2s;
}

.footer__links a:hover {
  color: #00fff1;
}

.footer__copyright {
  flex-basis: 100%;
  text-align: center;
  margin-top: 1rem;
  font-size: 0.95rem;
  color: #888;
}

@media (max-width: 800px) {
  .footer__content {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
  }
  .footer__copyright {
    margin-top: 0.5rem;
  }
}

/* --- Hero Section --- */
.hero-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  background: linear-gradient(120deg, #23234b 0%, #1a1a2e 100%);
  border-radius: 1.5rem;
  margin: 2rem 0;
  padding: 2.5rem 2rem;
  box-shadow: 0 4px 32px rgba(0,0,0,0.10);
  overflow: hidden;
}

.hero-section__content {
  flex: 1 1 60%;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.hero-section__content h1 {
  font-size: 2.5rem;
  color: #00fff1;
  margin: 0;
  font-weight: 800;
  letter-spacing: 1px;
}

.hero-section__content p {
  font-size: 1.2rem;
  color: #e0e0e0;
  margin: 0;
}

.hero-section__cta {
  display: inline-block;
  margin-top: 1.2rem;
  background: #00fff1;
  color: #181824;
  font-weight: bold;
  padding: 0.8rem 2.2rem;
  border-radius: 2rem;
  font-size: 1.1rem;
  text-decoration: none;
  box-shadow: 0 2px 12px rgba(0,255,241,0.15);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.hero-section__cta:hover {
  background: #00bfae;
  color: #fff;
  box-shadow: 0 4px 24px rgba(0,255,241,0.25);
}

.hero-section__image {
  flex: 1 1 40%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-section__image img {
  max-width: 340px;
  width: 100%;
  border-radius: 1.2rem;
  box-shadow: 0 4px 32px rgba(0,255,241,0.08);
}

@media (max-width: 900px) {
  .hero-section {
    flex-direction: column;
    padding: 1.5rem 1rem;
    gap: 1.2rem;
  }
  .hero-section__image img {
    max-width: 220px;
  }
}

/* --- Level Card --- */
.level-card {
  background: #23234b;
  color: #fff;
  border-radius: 1.2rem;
  box-shadow: 0 2px 16px rgba(0,255,241,0.08);
  padding: 2rem 1.5rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  max-width: 320px;
  min-width: 220px;
  margin: 1rem auto;
  transition: transform 0.18s, box-shadow 0.18s;
}

.level-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 8px 32px rgba(0,255,241,0.18);
}

.level-card__icon {
  width: 56px;
  height: 56px;
  margin-bottom: 0.5rem;
}

.level-card__title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #00fff1;
  margin: 0;
}

.level-card__desc {
  font-size: 1.05rem;
  color: #e0e0e0;
  text-align: center;
  margin: 0;
}

.level-card__cta {
  margin-top: 0.7rem;
  background: #00fff1;
  color: #181824;
  font-weight: bold;
  padding: 0.6rem 1.6rem;
  border-radius: 1.5rem;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,255,241,0.10);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.level-card__cta:hover {
  background: #00bfae;
  color: #fff;
  box-shadow: 0 4px 16px rgba(0,255,241,0.18);
}

/* Variantes por nivel */
.level-card--principiante {
  border: 2px solid #00fff1;
}
.level-card--intermedio {
  border: 2px solid #ffb300;
}
.level-card--avanzado {
  border: 2px solid #ff3c6f;
}

@media (max-width: 600px) {
  .level-card {
    max-width: 100%;
    min-width: 0;
    padding: 1.2rem 0.7rem;
  }
}

/* --- Session Card --- */
.session-card {
  background: #23234b;
  color: #fff;
  border-radius: 1.1rem;
  box-shadow: 0 2px 12px rgba(0,255,241,0.07);
  padding: 1.5rem 1.2rem 1.2rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  max-width: 340px;
  min-width: 200px;
  margin: 1rem auto;
  transition: transform 0.16s, box-shadow 0.16s;
}

.session-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 6px 24px rgba(0,255,241,0.13);
}

.session-card__header {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.session-card__number {
  background: #00fff1;
  color: #181824;
  font-weight: bold;
  border-radius: 1rem;
  padding: 0.2rem 0.9rem;
  font-size: 1rem;
  margin-right: 0.5rem;
}

.session-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #00fff1;
  margin: 0;
}

.session-card__desc {
  font-size: 1rem;
  color: #e0e0e0;
  margin: 0;
}

.session-card__cta {
  margin-top: 0.5rem;
  background: #00fff1;
  color: #181824;
  font-weight: bold;
  padding: 0.5rem 1.3rem;
  border-radius: 1.2rem;
  font-size: 0.98rem;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,255,241,0.10);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.session-card__cta:hover {
  background: #00bfae;
  color: #fff;
  box-shadow: 0 4px 16px rgba(0,255,241,0.18);
}

@media (max-width: 600px) {
  .session-card {
    max-width: 100%;
    min-width: 0;
    padding: 1rem 0.5rem;
  }
}

/* --- Quiz Interactive --- */
.quiz-interactive {
  background: #23234b;
  color: #fff;
  border-radius: 1.1rem;
  box-shadow: 0 2px 12px rgba(0,255,241,0.07);
  padding: 2rem 1.5rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  max-width: 420px;
  margin: 2rem auto;
}

.quiz-interactive__question {
  font-size: 1.2rem;
  font-weight: 600;
  color: #00fff1;
  text-align: center;
}

.quiz-interactive__options {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  width: 100%;
}

.quiz-interactive__option-btn {
  background: #181824;
  color: #fff;
  border: 2px solid #00fff1;
  border-radius: 1.2rem;
  padding: 0.7rem 1.2rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border 0.18s;
  text-align: left;
}

.quiz-interactive__option-btn:hover,
.quiz-interactive__option-btn.selected {
  background: #00fff1;
  color: #181824;
  border-color: #00bfae;
}

.quiz-interactive__next {
  margin-top: 1rem;
  background: #00fff1;
  color: #181824;
  font-weight: bold;
  padding: 0.6rem 1.6rem;
  border-radius: 1.5rem;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,255,241,0.10);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.quiz-interactive__next:hover {
  background: #00bfae;
  color: #fff;
  box-shadow: 0 4px 16px rgba(0,255,241,0.18);
}

.quiz-interactive__result {
  margin-top: 1.2rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: #ff3c6f;
  text-align: center;
}

@media (max-width: 600px) {
  .quiz-interactive {
    max-width: 100%;
    padding: 1.2rem 0.5rem;
  }
}

/* --- Prompt Editor --- */
.prompt-editor {
  background: #23234b;
  color: #fff;
  border-radius: 1.1rem;
  box-shadow: 0 2px 12px rgba(0,255,241,0.07);
  padding: 2rem 1.5rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.1rem;
  max-width: 520px;
  margin: 2rem auto;
}

.prompt-editor__label {
  font-size: 1.1rem;
  color: #00fff1;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.prompt-editor__input {
  width: 100%;
  border-radius: 1rem;
  border: 2px solid #00fff1;
  background: #181824;
  color: #fff;
  font-size: 1.05rem;
  padding: 0.8rem 1rem;
  resize: vertical;
  min-height: 80px;
  margin-bottom: 0.5rem;
  transition: border 0.2s;
}

.prompt-editor__input:focus {
  outline: none;
  border-color: #00bfae;
}

.prompt-editor__run {
  background: #00fff1;
  color: #181824;
  font-weight: bold;
  padding: 0.7rem 1.7rem;
  border-radius: 1.5rem;
  font-size: 1.05rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,255,241,0.10);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  align-self: flex-end;
}

.prompt-editor__run:hover {
  background: #00bfae;
  color: #fff;
  box-shadow: 0 4px 16px rgba(0,255,241,0.18);
}

.prompt-editor__output {
  margin-top: 1.1rem;
  background: #181824;
  color: #fff;
  border-radius: 0.8rem;
  padding: 1rem 1.2rem;
  min-height: 48px;
  font-size: 1.08rem;
  box-shadow: 0 1px 6px rgba(0,255,241,0.05);
  white-space: pre-line;
}

@media (max-width: 600px) {
  .prompt-editor {
    max-width: 100%;
    padding: 1.2rem 0.5rem;
  }
}

/* --- Video Player --- */
.video-player {
  background: #23234b;
  color: #fff;
  border-radius: 1.1rem;
  box-shadow: 0 2px 12px rgba(0,255,241,0.07);
  padding: 2rem 1.5rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  max-width: 640px;
  margin: 2rem auto;
}

.video-player__title {
  font-size: 1.2rem;
  color: #00fff1;
  font-weight: 700;
  margin-bottom: 0.7rem;
  text-align: center;
}

.video-player__media {
  width: 100%;
  max-width: 540px;
  border-radius: 1rem;
  box-shadow: 0 2px 16px rgba(0,255,241,0.10);
  background: #181824;
}

@media (max-width: 700px) {
  .video-player {
    max-width: 100%;
    padding: 1.2rem 0.5rem;
  }
  .video-player__media {
    max-width: 100%;
  }
}

/* --- Certificate Modal --- */
.certificate-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.certificate-modal__overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(24, 24, 36, 0.85);
  z-index: 1;
}

.certificate-modal__content {
  position: relative;
  z-index: 2;
  background: #23234b;
  color: #fff;
  border-radius: 1.2rem;
  box-shadow: 0 8px 40px rgba(0,255,241,0.13);
  padding: 2.5rem 2rem 2rem 2rem;
  max-width: 420px;
  width: 90vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  text-align: center;
}

.certificate-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  z-index: 3;
  transition: color 0.2s;
}

.certificate-modal__close:hover {
  color: #00fff1;
}

.certificate-modal__image {
  width: 120px;
  margin-bottom: 0.7rem;
}

.certificate-modal__title {
  font-size: 1.4rem;
  color: #00fff1;
  font-weight: 700;
  margin: 0.5rem 0 0.2rem 0;
}

.certificate-modal__text {
  font-size: 1.1rem;
  color: #e0e0e0;
  margin: 0;
}

.certificate-modal__download {
  margin-top: 1.2rem;
  background: #00fff1;
  color: #181824;
  font-weight: bold;
  padding: 0.7rem 2rem;
  border-radius: 1.5rem;
  font-size: 1.05rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,255,241,0.10);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.certificate-modal__download:hover {
  background: #00bfae;
  color: #fff;
  box-shadow: 0 4px 16px rgba(0,255,241,0.18);
}

@media (max-width: 600px) {
  .certificate-modal__content {
    max-width: 98vw;
    padding: 1.2rem 0.5rem;
  }
}
