﻿/* MintZen Progressive Story Engine - Custom Stylesheet */

/* Annotated Syntax Card */
.syntax-card {
  border: 2px solid #8b5cf6;
  border-radius: 1.25rem;
  padding: 1.25rem 1rem;
  position: relative;
  background: rgba(139, 92, 246, 0.05);
}
.dark .syntax-card {
  background: rgba(139, 92, 246, 0.12);
  border-color: #7c3aed;
}

.syntax-tag-pill {
  position: absolute;
  top: -12px;
  left: 24px;
  background: #7c3aed;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 10px;
  border-radius: 9999px;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.35);
}

.syntax-word-unit {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  margin: 0 6px;
}

.syntax-ipa {
  font-size: 0.75rem;
  color: #8b5cf6;
  font-weight: 600;
  margin-bottom: 2px;
}
.dark .syntax-ipa {
  color: #a78bfa;
}

.syntax-word-text {
  font-size: 1.35rem;
  font-weight: 800;
  color: #1f2937;
}
.dark .syntax-word-text {
  color: #f3f4f6;
}

.syntax-pos {
  font-size: 0.65rem;
  font-weight: 700;
  color: #6b7280;
  background: #f3f4f6;
  padding: 1px 6px;
  border-radius: 4px;
  margin-top: 4px;
  text-transform: uppercase;
}
.dark .syntax-pos {
  background: #27272a;
  color: #9ca3af;
}

/* Write This Card (Green Box) */
.write-this-card {
  border: 2px solid #10b981;
  border-radius: 1.25rem;
  padding: 1.25rem 1rem;
  position: relative;
  background: rgba(16, 185, 129, 0.05);
}
.dark .write-this-card {
  background: rgba(16, 185, 129, 0.12);
  border-color: #059669;
}

.write-this-tag-pill {
  position: absolute;
  top: -12px;
  left: 24px;
  background: #059669;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 10px;
  border-radius: 9999px;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.35);
}

/* Word Underline Inputs */
.word-input-line {
  background: transparent;
  border: none;
  border-bottom: 2.5px solid #d1d5db;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  outline: none;
  padding: 4px 6px;
  transition: all 0.2s ease;
}
.dark .word-input-line {
  border-bottom-color: #4b5563;
  color: #f9fafb;
}

.word-input-line:focus {
  border-bottom-color: #8b5cf6;
  box-shadow: 0 3px 0 0 rgba(139, 92, 246, 0.25);
}

.word-input-line.correct {
  border-bottom-color: #10b981 !important;
  color: #10b981 !important;
  background: rgba(16, 185, 129, 0.08);
  border-radius: 6px 6px 0 0;
}
.dark .word-input-line.correct {
  color: #34d399 !important;
  background: rgba(16, 185, 129, 0.15);
}

.word-input-line.wrong {
  border-bottom-color: #ef4444 !important;
  color: #ef4444 !important;
  background: rgba(239, 68, 68, 0.08);
  border-radius: 6px 6px 0 0;
}

/* Level Tabs */
.level-tab-btn {
  cursor: pointer;
  user-select: none;
}

.level-tab-active {
  border-color: #7c3aed !important;
  background: #7c3aed !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.35);
}

.level-tab-completed {
  border-color: #10b981 !important;
  background: rgba(16, 185, 129, 0.1) !important;
  color: #059669 !important;
}
.dark .level-tab-completed {
  color: #34d399 !important;
  background: rgba(16, 185, 129, 0.18) !important;
}

/* Google Sign-in Button */
.google-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #ffffff;
  color: #374151;
  border: 1.5px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  font-weight: 700;
  font-size: 0.875rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: all 0.2s ease;
}
.dark .google-btn {
  background: #18181b;
  color: #f4f4f5;
  border-color: #3f3f46;
}
.google-btn:hover {
  background: #f9fafb;
}
.dark .google-btn:hover {
  background: #27272a;
}

/* OTP Boxes */
.otp-box {
  transition: all 0.15s ease;
}

/* Animations */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-5px); }
  40%, 80% { transform: translateX(5px); }
}
.animate-shake {
  animation: shake 0.35s ease-in-out;
}

@keyframes pop {
  0% { transform: scale(0.95); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.animate-pop {
  animation: pop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* =====================================================
   MintZen Navigation Item Styling
   ===================================================== */
.cat-nav-item.cat-nav-mintzen {
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
}

.mintzen-nav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    border-radius: 7px;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(139, 92, 246, 0.4);
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.mintzen-nav-badge svg {
    width: 15px;
    height: 15px;
    stroke: #ffffff;
    display: block;
}

.mintzen-nav-label {
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.2px;
}

.cat-nav-item.cat-nav-mintzen:hover .mintzen-nav-badge {
    transform: scale(1.08);
}
