/* =====================================================
   tareas.css — Shared stylesheet for all Tareas pages
   Standalone (no dependencies on other CSS files)
   Theme colors controlled via CSS custom properties.
   Tema 01 defaults are defined on .tareas-page below;
   other temas override via an inline <style> block.
   ===================================================== */

* {
  box-sizing: border-box;
}

html {
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

/* --- Theme color defaults (Tema 01) --- */
.tareas-page {
  --tareas-main-color: #005296;
  --tareas-main-rgb: 0, 82, 150;
  --tareas-accent-color: #FF5300;
  --tareas-accent-rgb: 255, 83, 0;
}

/* --- Body --- */
.dashBody {
  display: block;
  margin: 0;
  font-family: arial, helvetica, sans-serif;
  background: linear-gradient(to bottom, #f6f6f7, #ffffff);
  color: #111;
}

/* --- Header (headerAdmin partial) --- */
.headerMatr {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 17rem;
  background: linear-gradient(
    to bottom,
    rgba(var(--tareas-main-rgb), 0.2) 0%,
    rgba(var(--tareas-main-rgb), 0.08) 50%,
    #f9f9fa 100%
  );
}

.logoWrap {
  margin: 1rem 0 3rem 0;
  border-bottom: solid 1px #bbb;
  display: block;
  text-decoration: none;
  width: 12rem;
  height: 12rem;
  border-radius: 50%;
  overflow: hidden;
  transition: border 0.3s ease;
}

.logoWrap:hover {
  border: 3px solid var(--tareas-main-color);
}

.logoApr {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.logoWrap:hover .logoApr {
  transform: scale(0.96);
}

/* --- Main wrapper --- */
.dash {
  width: 100%;
  padding: 5.5rem 1rem 3rem 1rem;
}

@media (min-width: 700px) {
  .dash {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}

.dashContainer {
  width: min(1100px, 100%);
  margin: 0 auto;
}

/* --- Page header / banner --- */
.tareasPageHeader {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  border-radius: 18px;
  margin-bottom: 2.5rem;
}

.tareasBannerImg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tareasBannerOverlay {
  position: absolute;
  inset: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 1rem;
}

.tareasBannerTitle {
  margin: 0;
  color: var(--tareas-main-color);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  text-align: center;
  background: #fff;
  padding: 0.45rem 1.1rem;
  border-radius: 8px;
}

.tareasBannerSubtitle {
  margin: 0;
  color: #111;
  font-size: 1rem;
  text-align: center;
  background: #fff;
  padding: 0.3rem 0.9rem;
  border-radius: 8px;
}

/* --- Back button --- */
.backButton {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2rem;
  background: transparent;
  border: none;
  color: #555;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s ease;
}

.backButton:hover {
  color: var(--tareas-main-color);
}

.backButton .material-symbols-outlined {
  font-size: 20px;
}

/* --- Buttons --- */
.btn {
  appearance: none;
  border: 0;
  border-radius: 12px;
  padding: 0.65rem 0.9rem;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease,
    background 0.12s ease;
  user-select: none;
}

.btn:active {
  transform: translateY(1px);
}

.btnPrimary {
  background: var(--tareas-main-color);
  color: #fff;
  box-shadow: 0 8px 18px rgba(var(--tareas-main-rgb), 0.25);
}

.btnPrimary:hover {
  box-shadow: 0 10px 22px rgba(var(--tareas-main-rgb), 0.35);
}

/* --- Footer --- */
.footer {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(
    to top,
    rgba(var(--tareas-main-rgb), 0.2) 0%,
    rgba(var(--tareas-main-rgb), 0.08) 50%,
    #ffffff 100%
  );
  height: 20rem;
}

.info {
  text-align: center;
}

/* =====================================================
   Page-specific styles
   ===================================================== */

/* --- Teacher notice --- */
.tareasTeacherNotice {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: rgba(var(--tareas-main-rgb), 0.05);
  border: 1px solid rgba(var(--tareas-main-rgb), 0.15);
  border-radius: 12px;
  padding: 0.85rem 1.1rem;
  margin-bottom: 1.25rem;
}

.tareasLockIcon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
}

.tareasTeacherNoticeText {
  margin: 0;
  font-size: 0.9rem;
  color: #444;
  line-height: 1.5;
}

/* --- Section wrapper --- */
.tareasSection {
  margin-bottom: 1.25rem;
  background: #fff;
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.06);
  padding: 1.5rem;
}

/* --- Section header block --- */
.tareasSectionHeader {
  margin-bottom: 1.25rem;
}

.tareasSectionTitle {
  margin: 0 0 0.5rem 0;
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  color: #111;
}

.tareasSectionDesc {
  margin: 0 0 0.85rem 0;
  color: #444;
  font-size: 1.15rem;
  line-height: 1.55;
  max-width: 680px;
}

/* --- Resources badge --- */
.ressourcerBadge {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.45rem;
  background: rgba(var(--tareas-main-rgb), 0.06);
  border: 1px solid rgba(var(--tareas-main-rgb), 0.2);
  border-radius: 10px;
  padding: 0.55rem 0.85rem;
  font-size: 0.9rem;
  color: #333;
  line-height: 1.5;
  max-width: 680px;
}

.ressourcerBadgeStrict {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.14);
}

.ressourcerIcon {
  font-size: 18px;
  color: var(--tareas-accent-color);
  flex-shrink: 0;
  margin-top: 1px;
}

.ressourcerBadgeStrict .ressourcerIcon {
  color: #555;
}

/* --- Cards row --- */
.tareasCards {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.1rem;
}

/* --- Individual card --- */
.tareasCard {
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 180px;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.tareasCard:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.09);
}

/* --- Card title --- */
.tareasCardTitle {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: #111;
  text-align: center;
}

/* --- Icon image --- */
.tareasCardIcon {
  width: 100px;
  height: 100px;
  object-fit: contain;
}

/* --- Grammatical focus label --- */
.fokusLabel {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--tareas-accent-color);
  background: rgba(var(--tareas-accent-rgb), 0.08);
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  text-align: center;
  line-height: 1.4;
}

/* --- Download button --- */
.tareasDownloadBtn {
  font-size: 0.88rem;
  padding: 0.55rem 0.8rem;
  border-radius: 10px;
  width: 100%;
  justify-content: center;
}

/* --- Section divider (kept for optional use) --- */
.tareasDivider {
  display: none;
}

/* --- Responsive: stack cards on small screens --- */
@media (max-width: 480px) {
  .tareasCards {
    flex-direction: column;
    align-items: stretch;
  }

  .tareasCard {
    width: 100%;
    flex-direction: column;
    align-items: center;
  }

  .tareasDownloadBtn {
    width: 100%;
  }
}
