/* ════════════════════════════════════════════════
   WORDCNT — ESSAY WORD COUNT PAGE
   style.css
   Author: Wordcnt
   Version: 2.0
════════════════════════════════════════════════ */


/* ──────────────────────────────
   1. CSS VARIABLES
────────────────────────────── */
:root {
  --primary:        #6C63FF;
  --primary-dark:   #4B44CC;
  --primary-light:  #F0EEFF;
  --secondary:      #F472B6;
  --accent:         #43E97B;
  --success:        #10B981;
  --warning:        #F59E0B;
  --danger:         #F43F5E;

  --bg:             #F7F8FC;
  --white:          #FFFFFF;
  --text:           #1E1E2E;
  --text-muted:     #6B7280;
  --border:         #E5E7EB;

  --shadow-sm:      0 2px 8px rgba(108, 99, 255, 0.08);
  --shadow-md:      0 4px 24px rgba(108, 99, 255, 0.12);
  --shadow-lg:      0 8px 40px rgba(108, 99, 255, 0.16);

  --radius-sm:      8px;
  --radius-md:      12px;
  --radius-lg:      20px;

  --transition:     all 0.25s ease;
  --font:           'Segoe UI', system-ui, -apple-system, sans-serif;
}


/* ──────────────────────────────
   2. RESET & BASE
────────────────────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  cursor: pointer;
  font-family: var(--font);
  border: none;
  outline: none;
}


/* ──────────────────────────────
   3. LAYOUT
────────────────────────────── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 12px 16px;
}

.section-block {
  margin-bottom: 48px;
}

.section-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}


/* ──────────────────────────────
   4. NAVBAR
────────────────────────────── */
.navbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  
}


.brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: #6C63FF;
  text-decoration: none;

  text-align: left;
}


.logo span {
  color: #111827;
}

.tagline {
  font-size: 0.65rem;
  color: #6B7280;
  margin-top: 2px;
}

/* Nav Links */
.nav-links {
  display: flex;
   margin-left: auto;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  white-space: nowrap;
}

.nav-links a:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.nav-links a.active {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
}

/* Mobile Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-toggle:hover {
  background: var(--bg);
}


/* ──────────────────────────────
   5. BREADCRUMB
────────────────────────────── */
.breadcrumb-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 4px 0;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  font-size: 0.7rem;
  color: var(--text-muted);
  display: none;
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--primary);
}

.breadcrumb li[aria-current="page"] {
  color: var(--primary);
  font-weight: 600;
}


/* ──────────────────────────────
   6. HERO
────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #6C63FF 0%, #9F8FFF 40%, #F472B6 100%);
  color: var(--white);
  text-align: center;
  padding: 16px 10px 18px;
  position: relative;
  overflow: hidden;
}

.hero-bg-circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  pointer-events: none;
}

.hero-circle-1 {
  width: 500px;
  height: 500px;
  top: -150px;
  left: -120px;
}

.hero-circle-2 {
  width: 350px;
  height: 350px;
  bottom: -100px;
  right: -80px;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
}

.hero-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 100px;
  padding: 6px 18px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 20px;
  backdrop-filter: blur(8px);
  letter-spacing: 0.3px;
}

.hero-title {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 18px;
}

.hero-subtitle {
  font-size: 0.85rem;
  opacity: 0.9;
  margin-bottom: 8px;
  line-height: 1.7;
}

.hero-subtitle strong {
  color: var(--white);
  font-weight: 700;
  background: rgba(255,255,255,0.2);
  padding: 1px 8px;
  border-radius: 4px;
}

.hero-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.badge {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 7px 16px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
  transition: var(--transition);
}

.badge:hover {
  background: rgba(255, 255, 255, 0.28);
}


/* ──────────────────────────────
   7. CHECKER CARD
────────────────────────────── */
.checker-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid var(--border);
}

.checker-header {
  margin-bottom: 24px;
}

.checker-header h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.checker-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Target Section */
.target-section {
  margin-bottom: 20px;
}

.target-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 10px;
}

.target-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.target-btn {
  padding: 10px 22px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
}

.target-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

.target-btn.selected {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(108, 99, 255, 0.35);
  transform: translateY(-1px);
}

/* Textarea */
.textarea-wrap {
  position: relative;
  margin-bottom: 20px;
}
@media (max-width: 768px) {
  .hero {
    display: none;
  }
}
textarea {
  width: 100%;
  min-height: 160px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 16px 48px 16px;
  font-size: 0.95rem;
  font-family: var(--font);
  color: var(--text);
  background: #FAFAFA;
  resize: vertical;
  transition: var(--transition);
  outline: none;
  line-height: 1.7;
}

textarea:focus {
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(108, 99, 255, 0.1);
}

textarea::placeholder {
  color: #C4C9D4;
}

.clear-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 5px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  transition: var(--transition);
}

.clear-btn:hover {
  background: #FFF1F2;
  border-color: var(--danger);
  color: var(--danger);
}

/* Stats Row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.stat-box {
  background: var(--bg);
  border-radius: var(--radius-md);
  padding: 10px 6px;
  text-align: center;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.stat-box:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.stat-value {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 0.6rem;
  color: var(--text-muted);
  margin-top: 6px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

/* Progress Bar */
.progress-section {
  background: var(--bg);
  border-radius: var(--radius-md);
  padding: 20px;
  border: 1px solid var(--border);
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}

.progress-pct {
  color: var(--primary);
  font-size: 1rem;
  font-weight: 800;
}

.progress-bar-bg {
  background: var(--border);
  border-radius: 100px;
  height: 12px;
  overflow: hidden;
  margin-bottom: 10px;
}

.progress-bar-fill {
  height: 100%;
  border-radius: 100px;
  background: linear-gradient(90deg, var(--primary), #A78BFA);
  width: 0%;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-status {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
  text-align: center;
}


/* ──────────────────────────────
   8. TABLE CARD
────────────────────────────── */
.table-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  border: 1px solid var(--border);
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}

thead th {
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 16px 24px;
  text-align: left;
  white-space: nowrap;
}

tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}

tbody tr:last-child {
  border-bottom: none;
}

tbody tr:hover {
  background: #FAFBFF;
}

tbody td {
  padding: 14px 24px;
  font-size: 0.9rem;
  color: var(--text);
}

tbody td:first-child {
  font-weight: 600;
  color: var(--text);
}

/* Badges */
.badge-pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.badge-blue   { background: #EEF2FF; color: #6C63FF; }
.badge-green  { background: #ECFDF5; color: #059669; }
.badge-orange { background: #FFF7ED; color: #D97706; }
.badge-pink   { background: #FFF1F2; color: #E11D48; }


/* ──────────────────────────────
   9. QUICK REFERENCE CARDS
────────────────────────────── */
.quick-ref-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.ref-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  border-top-width: 5px;
  transition: var(--transition);
  cursor: default;
}

.ref-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.ref-card-1 { border-top-color: var(--primary); }
.ref-card-2 { border-top-color: var(--warning); }
.ref-card-3 { border-top-color: var(--success); }
.ref-card-4 { border-top-color: var(--secondary); }

.ref-words {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 8px;
}

.ref-card-1 .ref-words { color: var(--primary); }
.ref-card-2 .ref-words { color: var(--warning); }
.ref-card-3 .ref-words { color: var(--success); }
.ref-card-4 .ref-words { color: var(--secondary); }

.ref-type {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.ref-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.ref-pages {
  font-size: 0.8rem;
  color: var(--text-muted);
  background: var(--bg);
  padding: 4px 12px;
  border-radius: 100px;
  display: inline-block;
  margin-top: 4px;
}


/* ──────────────────────────────
   10. TIPS SECTION
────────────────────────────── */
.tips-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.tip-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.tip-card-full {
  grid-column: 1 / -1;
}

.tip-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary-light);
}

.tip-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tip-list li {
  font-size: 0.9rem;
  color: var(--text);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}

.tip-list li::before {
  content: '→';
  color: var(--primary);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.tip-pct {
  color: var(--text-muted);
  font-size: 0.82rem;
  margin-left: 4px;
}

.golden-rule {
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-top: 16px;
  font-size: 0.875rem;
  color: #92400E;
  font-weight: 500;
  line-height: 1.6;
}

/* Hindi Structure */
.tip-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.7;
}

.hindi-structure {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.hs-item {
  background: var(--primary-light);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.hs-icon {
  width: 28px;
  height: 28px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

.hs-item div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.hs-item strong {
  font-size: 0.875rem;
  color: var(--text);
  font-weight: 700;
}

.hs-item span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.note-text {
  font-size: 0.82rem !important;
  color: var(--text-muted) !important;
  background: var(--bg);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--primary);
  margin-top: 0 !important;
}


/* ──────────────────────────────
   11. FAQ
────────────────────────────── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item.open {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.1);
}


.hero-title {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.hero-subtitle {
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.hero-badges {
  display: none;   
}

.hero-tag {
  display: none;   
}

.footer {
  background: #0F172A;
  color: #CBD5F5;
  padding: 30px 0 20px;
  margin-top: 50px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-bottom: 15px;
}

.footer-links a {
  color: #94A3B8;
  font-size: 0.85rem;
  transition: 0.2s;
}

.footer-links a:hover {
  color: #FFFFFF;
}

.footer-copy {
  text-align: center;
  font-size: 0.8rem;
  color: #64748B;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 50px;
    right: 0;
    background: #fff;
    width: 100%;
    flex-direction: column;
    padding: 10px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }
}
.nav-links a {
  font-size: 0.8rem;
  padding: 6px 10px;
}

/* 2. Hero small banner */
.hero {
  padding: 10px 10px;
}

.hero-title {
  font-size: 1.2rem;
  margin-bottom: 2px;
}

.hero-subtitle {
  font-size: 0.75rem;
  margin-bottom: 0;
}

/* 3. Checker card upar lao */
.checker-card {
  margin-top: -30px;
  padding: 20px;
}

/* 4. Container spacing kam */
.container {
  padding: 8px 12px 16px;
}
.hero {
  display: none;
}