/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* ===== TCF infographic-style articles (articles#show) ===== */
.tcf-info { color: #374151; font-size: 1.05rem; line-height: 1.75; }
.tcf-info p { margin-bottom: 1.1rem; }
.tcf-info ul:not(.checklist) { padding-left: 1.3rem; }
.tcf-info ul:not(.checklist) li { margin-bottom: 0.45rem; }
.tcf-info .checklist { list-style: none; padding-left: 0; margin: 0; }
.tcf-info .checklist li { padding-left: 1.6rem; position: relative; margin-bottom: 0.55rem; }
.tcf-info .checklist li::before { content: "✓"; position: absolute; left: 0; top: 0.05em; color: #16a34a; font-weight: 700; }

.tcf-info-hero {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  background: linear-gradient(135deg, #0a2a63 0%, #17509e 55%, #3a86d6 100%);
  color: #fff;
  padding: 2rem 2rem 1.75rem;
  margin-bottom: 1.75rem;
  min-height: 230px;
}
.tcf-info-hero-skyline {
  position: absolute;
  right: -0.5rem;
  bottom: -0.5rem;
  width: 68%;
  max-width: 480px;
  height: 190px;
  opacity: 0.95;
  pointer-events: none;
}
.tcf-info-hero-skyline svg { width: 100%; height: 100%; display: block; }
.tcf-info-hero-flag {
  position: absolute;
  top: 1.1rem;
  right: 1.4rem;
  font-size: 2.8rem;
  line-height: 1;
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.3));
  z-index: 2;
}
.tcf-info-hero-content { position: relative; z-index: 1; max-width: 34rem; }
.tcf-info-hero h1 { font-weight: 800; font-size: 1.95rem; margin-bottom: 0.5rem; }
.tcf-info-hero p { font-size: 1.05rem; opacity: 0.94; margin-bottom: 0; }
.tcf-info-stats { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.4rem; }
.tcf-info-stat {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 0.7rem;
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.92rem;
  backdrop-filter: blur(2px);
}
.tcf-info-stat .icon { font-size: 1.3rem; }
.tcf-info-stat strong { display: block; font-size: 0.98rem; }
.tcf-info-stat span.sub { opacity: 0.85; font-size: 0.9rem; }

.tcf-info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.1rem; margin-bottom: 1.75rem; }
.tcf-info-card { background: #fff; border: 1px solid #e5e9f2; border-radius: 0.9rem; padding: 1.3rem; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04); }
.tcf-info-card-head { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.9rem; font-weight: 700; font-size: 1.02rem; color: #1f2937; }
.tcf-info-icon-badge { width: 2.4rem; height: 2.4rem; border-radius: 0.6rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1.25rem; }
.tcf-info-q { font-weight: 700; font-size: 0.98rem; margin: 0.8rem 0 0.25rem; color: #1f2937; }
.tcf-info-card p, .tcf-info-card ul, .tcf-info-card li { font-size: 1.02rem; color: #4b5568; }
.tcf-info-card p { margin: 0 0 0.35rem; }
.tcf-info-card ul { padding-left: 1.2rem; margin: 0.3rem 0 0.35rem; }
.tcf-info-card ul.checklist { list-style: none; padding-left: 0; }
.tcf-info-card ul.checklist li { padding-left: 1.4rem; position: relative; margin-bottom: 0.2rem; }
.tcf-info-card ul.checklist li::before { content: "✓"; position: absolute; left: 0; color: #16a34a; font-weight: 700; }

.is-blue   { background: #e8f0fe; color: #0d6efd; }
.is-green  { background: #e7f7ed; color: #16a34a; }
.is-orange { background: #fff4e5; color: #d97706; }
.is-purple { background: #f1e9fe; color: #7c3aed; }
.tcf-info-card-head.is-blue, .tcf-info-card-head.is-green, .tcf-info-card-head.is-orange, .tcf-info-card-head.is-purple { background: none; }

.tcf-info-panel { background: #eef4ff; border: 1px solid #dbe6fb; border-radius: 1rem; padding: 1.4rem; margin-bottom: 1.75rem; }
.tcf-info-section-title { font-size: 1.2rem; font-weight: 700; color: #0b2f6b; margin-bottom: 1.1rem; display: flex; align-items: center; gap: 0.55rem; }

.tcf-info-grammar-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(195px, 1fr)); gap: 1rem; }
.tcf-info-grammar-card { border: 1px solid #e5e9f2; border-radius: 0.75rem; padding: 1rem 1.05rem; }
.tcf-info-grammar-card .head { display: flex; align-items: center; gap: 0.45rem; font-weight: 700; font-size: 0.96rem; margin-bottom: 0.5rem; color: #1f2937; }
.tcf-info-grammar-card ul { list-style: none; padding: 0; margin: 0; font-size: 0.96rem; color: #4b5568; }
.tcf-info-grammar-card li { padding-left: 0.95rem; position: relative; margin-bottom: 0.2rem; }
.tcf-info-grammar-card li::before { content: "•"; position: absolute; left: 0; color: #9ca3af; }

.tcf-info-callout { border-radius: 0.65rem; padding: 0.7rem 0.9rem; font-size: 1rem; margin-top: 0.7rem; display: flex; gap: 0.5rem; align-items: flex-start; }
.tcf-info-callout.is-info { background: #eef4ff; color: #1e40af; }
.tcf-info-callout.is-ok { background: #e7f7ed; color: #15803d; }
.tcf-info-callout.is-warn { background: #fff4e5; color: #9a5b06; }

.tcf-info-skill-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.1rem; margin-bottom: 1.75rem; }
.tcf-info-skill-card { background: #fff; border: 1px solid #e5e9f2; border-radius: 0.9rem; padding: 1.35rem; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04); }
.tcf-info-skill-head { display: flex; align-items: center; gap: 0.65rem; margin-bottom: 0.8rem; }
.tcf-info-skill-num { width: 2rem; height: 2rem; border-radius: 50%; color: #fff; font-weight: 700; font-size: 0.95rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tcf-info-skill-head h3 { font-size: 1.08rem; font-weight: 700; margin: 0; color: #1f2937; }
.tcf-info-skill-card p { font-size: 1.02rem; color: #4b5568; }
.tcf-info-skill-card ul { font-size: 1.02rem; color: #4b5568; padding-left: 1.2rem; margin: 0.35rem 0; }
.tcf-info-skill-card li { margin-bottom: 0.2rem; }
.tcf-info-skill-card strong { color: #1f2937; }

.tcf-info-levels { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; }
.tcf-info-level { text-align: center; background: #fff; border: 1px solid #e5e9f2; border-radius: 0.9rem; padding: 1.15rem 0.85rem; }
.tcf-info-level .badge-circle { width: 2.9rem; height: 2.9rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; margin: 0 auto 0.6rem; font-size: 1rem; }
.tcf-info-level .level-title { font-weight: 700; font-size: 0.92rem; color: #1f2937; margin-bottom: 0.15rem; }
.tcf-info-level .level-points { font-size: 0.88rem; color: #6b7280; margin-bottom: 0.6rem; }
.tcf-info-level ul { list-style: none; padding: 0; margin: 0; font-size: 0.9rem; color: #4b5568; text-align: left; }
.tcf-info-level li { padding-left: 0.85rem; position: relative; margin-bottom: 0.25rem; }
.tcf-info-level li::before { content: "•"; position: absolute; left: 0; color: #9ca3af; }

.tcf-info-cta {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  background: #eef4ff; border: 1px solid #dbe6fb; border-radius: 1rem; padding: 1.25rem 1.5rem; margin-top: 0.5rem;
}
.tcf-info-cta p { margin: 0; font-size: 1.08rem; color: #1f2937; }
.tcf-info-cta .btn-cta {
  border: none; font-weight: 700; border-radius: 0.6rem; padding: 0.7rem 1.3rem; text-decoration: none;
  font-size: 1rem; display: inline-flex; align-items: center; gap: 0.4rem; white-space: nowrap;
}
.tcf-info-cta .btn-cta.amber { background: #f59e0b; color: #1f2937; }
.tcf-info-cta .btn-cta.blue { background: #0d6efd; color: #fff; }

@media (max-width: 575.98px) {
  .tcf-info-hero-skyline { width: 85%; height: 130px; opacity: 0.6; }
  .tcf-info-hero-flag { font-size: 2.1rem; }
}

/* ===== Flashcards intro page (flashcards#show) ===== */
.flashcards-hero-deco {
  position: absolute;
  right: -0.5rem;
  bottom: -0.5rem;
  width: 60%;
  max-width: 420px;
  height: 190px;
  opacity: 0.95;
  pointer-events: none;
}
.flashcards-hero-deco svg { width: 100%; height: 100%; display: block; }

.flashcards-panel {
  background-image: radial-gradient(rgba(11, 47, 107, 0.08) 1px, transparent 1px), linear-gradient(#eef4ff, #eef4ff);
  background-size: 14px 14px, 100% 100%;
}

.flashcards-cta {
  background-image: linear-gradient(135deg, rgba(13, 110, 253, 0.10), rgba(245, 158, 11, 0.12)),
    radial-gradient(circle at 15% 20%, rgba(13, 110, 253, 0.14) 0, transparent 45%);
}

@media (max-width: 575.98px) {
  .flashcards-hero-deco { width: 80%; height: 130px; opacity: 0.6; }
}

/* ===== Turbo page-transition progress bar ===== */
.turbo-progress-bar {
  height: 3px;
  background-color: #ffc107;
}
