/* ThinkaBell Flashcard Generator — tool-specific styles */
/* Extracted from flashcard-generator.php inline styles */

.fc-gen-text {
  width: 100%;
  min-height: 160px;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: var(--text-base);
  resize: vertical;
  background: var(--white);
}

.fc-gen-preview {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.fc-gen-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  box-shadow: var(--shadow-sm);
}

.fc-gen-card__qa {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.4rem;
  margin-bottom: 0.6rem;
}

.fc-gen-card__q {
  font-weight: 600;
  color: var(--ink);
}

.fc-gen-card__a {
  color: var(--slate);
  font-size: 0.95rem;
}

.fc-gen-card__actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.fc-gen-card input,
.fc-gen-card textarea {
  width: 100%;
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
}

.fc-cat-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: var(--primary-light);
  color: var(--primary-dark);
  margin-right: 0.3rem;
}

.fc-tag-badge {
  display: inline-block;
  font-size: 0.7rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--slate);
  margin: 0.15rem 0.2rem 0 0;
}

.fc-template-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: flex-end;
}

.fc-template-field {
  flex: 1;
  min-width: 160px;
}

.fc-img-prev {
  margin-top: 0.5rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.fc-img-thumb {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  width: 96px;
  height: 96px;
  background: var(--bg);
}

.fc-img-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fc-img-thumb button {
  position: absolute;
  top: 2px;
  right: 2px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  line-height: 18px;
  cursor: pointer;
  font-size: 12px;
}

.fc-img-thumb span {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 0.6rem;
  text-align: center;
}

.fc-cloze-hint {
  color: var(--slate);
  margin: 0.4rem 0 0;
  line-height: 1.5;
}

.fc-search-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 1rem;
}

.fc-search-row input {
  flex: 1;
  min-width: 180px;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
}

.fc-search-row select {
  padding: 0.55rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
}

.fc-card-item__badges {
  margin: 0.35rem 0;
}

.fc-card-item__term-media {
  margin-top: 0.4rem;
}

.fc-card-item__media {
  display: flex;
  gap: 0.4rem;
  margin: 0.4rem 0;
}

.fc-card-item__img {
  max-width: 80px;
  max-height: 60px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  object-fit: cover;
}

.fc-card-item__term-media img {
  max-width: 120px;
  max-height: 90px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.fc-filter-row {
  flex-wrap: wrap;
}

.fc-import-modal {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  max-width: 520px;
  width: 90%;
  box-shadow: var(--shadow-lg);
}

.fc-study-settings {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
}

.fc-study-settings__grid {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  align-items: flex-end;
}

.fc-setting-field {
  flex: 1;
  min-width: 160px;
}

.fc-setting-field label {
  display: block;
  color: var(--slate);
  margin-bottom: 0.3rem;
}

.fc-setting-field select {
  padding: 0.5rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 100%;
}

.fc-session-time {
  color: var(--slate);
  margin: 0.5rem 0 0;
}

.fc-cloze-blank {
  filter: blur(5px);
  cursor: pointer;
  background: var(--primary-light);
  color: transparent;
  border-radius: 4px;
  padding: 0 4px;
  transition: filter 0.2s;
}

.fc-cloze-blank.fc-cloze--revealed {
  filter: none;
  color: var(--primary-dark);
  background: transparent;
}

.fc-mc-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

.fc-mc-option {
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  cursor: pointer;
  text-align: left;
  font-size: 0.95rem;
}

.fc-mc-option:hover {
  border-color: var(--primary-dark);
}

.fc-mc-option.fc-mc--correct {
  background: #dcfce7;
  border-color: #16a34a;
  color: #166534;
}

.fc-mc-option.fc-mc--wrong {
  background: #fee2e2;
  border-color: #dc2626;
  color: #991b1b;
}

.fc-sound-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--slate);
  cursor: pointer;
}

.fc-progress-tab {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.fc-dash-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.fc-dash-card h3 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.fc-mastery {
  font-size: 2rem;
  font-weight: 700;
  font-family: var(--font-display);
}

.fc-mastery--beginner {
  color: #dc2626;
}

.fc-mastery--intermediate {
  color: var(--primary-dark);
}

.fc-mastery--advanced {
  color: #16a34a;
}

.fc-chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 120px;
  padding-top: 0.5rem;
}

.fc-chart-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  justify-content: flex-end;
  height: 100%;
}

.fc-chart-bar {
  width: 100%;
  background: var(--primary-dark);
  border-radius: 4px 4px 0 0;
  min-height: 2px;
  transition: height 0.3s;
}

.fc-chart-bar--retention {
  background: #16a34a;
}

.fc-chart-label {
  font-size: 0.65rem;
  color: var(--slate);
}

.fc-chart-val {
  font-size: 0.65rem;
  color: var(--ink);
  font-weight: 600;
}

.fc-streak-num {
  font-size: 2rem;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--primary-dark);
}

.fc-summary {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.fc-summary h3 {
  font-family: var(--font-display);
  margin: 0 0 1rem;
}

.fc-summary__stats {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.fc-summary__stat .fc-stat__num {
  font-size: 1.6rem;
}

.fc-edit-overlay,
.fc-import-overlay,
.fc-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1rem;
}

.fc-png-preview {
  max-width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.fc-import-preview-list {
  max-height: 200px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.5rem;
  margin: 0.75rem 0;
}

.fc-import-mode {
  display: flex;
  gap: 1rem;
  margin: 0.75rem 0;
  flex-wrap: wrap;
}

.fc-no-cards {
  color: var(--slate);
  font-size: 0.9rem;
  padding: 1rem;
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .fc-chart-bar,
  .fc-card-inner,
  .fc-mastery,
  .fc-streak-num {
    transition: none;
    transform: none !important;
    animation: none !important;
  }
}

.fc-cloze-text {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: var(--text-base);
  resize: vertical;
  background: var(--white);
}

.fc-session-summary {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  text-align: center;
  margin: 1rem 0;
}

.fc-session-summary h3 {
  font-family: var(--font-display);
  margin: 0 0 1.25rem;
  font-size: 1.3rem;
}

.fc-summary__stats {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.fc-summary__stat {
  text-align: center;
  min-width: 100px;
}

.fc-summary__stat .fc-stat__num {
  font-size: 1.6rem;
  font-weight: 700;
  font-family: var(--font-display);
}

.fc-summary__stat .fc-stat__label {
  font-size: 0.8rem;
  color: var(--slate);
  margin-top: 0.2rem;
}

.fc-summary__actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.fc-import-format {
  padding: 0.5rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  background: var(--white);
}
