/* ══════════════════════════════════════
   WORD COUNTER — style.css
   ══════════════════════════════════════ */

/* Stats Grid */
.wc-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 8px;
}

.wc-stat-card {
  background: #f8f9ff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: box-shadow 0.2s;
}

.wc-stat-card:hover {
  box-shadow: 0 4px 12px rgba(0,41,107,0.08);
}

.wc-stat-num {
  font-size: 1.7rem;
  font-weight: 700;
  color: #00296b;
  line-height: 1;
}

.wc-stat-label {
  font-size: 0.78rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Keywords */
.wc-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 36px;
  padding: 4px 0;
}

.wc-keyword-tag {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 0.82rem;
  line-height: 1.4;
  color: #1e40af;
}

.wc-keyword-tag b {
  color: #00296b;
  margin-left: 4px;
}

.wc-keyword-empty {
  color: #94a3b8;
  font-size: 0.875rem;
  padding: 4px 0;
}

/* Output heading */
#output h6 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1e293b;
}

/* Clear Button */
.wc-clear-btn {
  padding: 5px 16px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #fff;
  color: #374151;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  flex-shrink: 0;
  white-space: nowrap;
}
.wc-clear-btn:hover {
  background: #f3f4f6;
  border-color: #9ca3af;
}

/* Copy Stats Button */
.wc-copy-btn {
  padding: 8px 22px;
  background: #00296b;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.wc-copy-btn:hover {
  background: #001f54;
}

/* Platform List */
.wc-platform-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 24px;
  margin-top: 12px;
}
.wc-platform-list li {
  font-size: 0.9rem;
  color: #475569;
  padding: 6px 0;
  border-bottom: 1px solid #f1f5f9;
}
.wc-platform-list li strong {
  color: #00296b;
}

/* ── Dark Mode ── */
body.dark-mode .wc-stat-card       { background: #1e2235; border-color: #2a2f45; }
body.dark-mode .wc-stat-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.3); }
body.dark-mode .wc-stat-num        { color: #60a5fa; }
body.dark-mode .wc-stat-label      { color: #94a3b8; }
body.dark-mode #output h6          { color: #e2e8f0; }
body.dark-mode .wc-keyword-tag     { background: #1e2235; border-color: #2a2f45; color: #93c5fd; }
body.dark-mode .wc-keyword-tag b   { color: #60a5fa; }
body.dark-mode .wc-clear-btn       { background: #1e2235; border-color: #2a2f45; color: #94a3b8; }
body.dark-mode .wc-clear-btn:hover { background: #252a3d; }
body.dark-mode .wc-copy-btn        { background: #2563eb; }
body.dark-mode .wc-copy-btn:hover  { background: #1d4ed8; }
body.dark-mode .wc-platform-list li         { color: #94a3b8; border-color: #2a2f45; }
body.dark-mode .wc-platform-list li strong  { color: #60a5fa; }


/* ── Section Gap Fix ── */
#main-content .content-card {
  margin-top: 16px;
  margin-bottom: 16px;
}

#main-content > div[class*="mt-"] {
  margin-top: 16px !important;
}

#main-content .content-card + .content-card {
  margin-top: 16px;
}

/* ── Section Gap Fix ── */
.tool-heading {
  margin-bottom: 16px;
}

#main-section {
  margin-bottom: 16px;
}

#main-content .content-card {
  margin-bottom: 16px;
}

#main-content .content-card:last-child {
  margin-bottom: 0;
}

/* ── Mobile ── */
@media (max-width: 768px) {
  .wc-stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .wc-platform-list { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .wc-stat-num { font-size: 1.4rem; }
}