/* ============================================================
   SINHALA FONT STUDIO — components.css
   ============================================================ */

/* ── STATS BAR ──────────────────────────────────────────── */
.stats-bar {
  display: flex; gap: 0;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  margin-bottom: 48px;
}
.stat-item {
  flex: 1; padding: 20px 24px; text-align: center;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-item .num { font-size: 1.6rem; font-weight: 900; font-family: var(--font-display); color: var(--accent); }
.stat-item .lbl { font-size: 0.78rem; color: var(--text-dim); margin-top: 2px; }

/* ── TABS ───────────────────────────────────────────────── */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 24px; }
.tab-btn {
  padding: 12px 20px; background: none; border: none;
  color: var(--text-muted); cursor: pointer;
  font-family: var(--font-body); font-size: 0.9rem; font-weight: 500;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: all var(--transition);
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); }

/* ── HIGHLIGHT BOXES ────────────────────────────────────── */
.highlight-box {
  background: rgba(255,107,53,0.08); border: 1px solid rgba(255,107,53,0.25);
  border-radius: var(--radius); padding: 16px 20px;
  margin: 16px 0;
}
.highlight-box p { color: var(--text-muted); font-size: 0.875rem; margin: 0; }

/* ── BREADCRUMB ─────────────────────────────────────────── */
.breadcrumb {
  display: flex; gap: 8px; align-items: center;
  font-size: 0.82rem; color: var(--text-dim);
  margin-bottom: 24px; flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-muted); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { color: var(--text-dim); }
.breadcrumb .current { color: var(--text); }

/* ── SEARCH RESULTS ─────────────────────────────────────── */
.search-results-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px; flex-wrap: wrap; gap: 12px;
}
.results-count { font-size: 0.875rem; color: var(--text-muted); }
.results-count span { color: var(--accent); font-weight: 600; }

/* ── NOTIFICATION DOT ───────────────────────────────────── */
.notif-dot {
  width: 8px; height: 8px; background: var(--accent);
  border-radius: 50%; display: inline-block;
  animation: pulse 2s infinite;
}

/* ── FEATURED BANNER ────────────────────────────────────── */
.featured-banner {
  background: linear-gradient(135deg, #ff6b35 0%, #ff8255 50%, #ffb347 100%);
  border-radius: var(--radius); padding: 32px 28px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; margin-bottom: 48px; overflow: hidden; position: relative;
}
.featured-banner::before {
  content: ''; position: absolute;
  width: 200px; height: 200px;
  background: rgba(255,255,255,0.1); border-radius: 50%;
  right: -40px; top: -60px;
}
.featured-banner::after {
  content: ''; position: absolute;
  width: 120px; height: 120px;
  background: rgba(255,255,255,0.08); border-radius: 50%;
  right: 80px; bottom: -40px;
}
.featured-content { position: relative; z-index: 1; }
.featured-content .label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.8); margin-bottom: 8px; }
.featured-content h3 { font-size: 1.5rem; color: #fff; margin-bottom: 8px; }
.featured-content p { color: rgba(255,255,255,0.8); font-size: 0.875rem; }
.featured-actions { position: relative; z-index: 1; flex-shrink: 0; }
.btn-white { background: #fff; color: var(--accent); padding: 12px 24px; border-radius: 100px; font-weight: 700; font-size: 0.875rem; border: none; cursor: pointer; transition: all var(--transition); white-space: nowrap; }
.btn-white:hover { background: rgba(255,255,255,0.9); transform: scale(1.03); }

/* ── INPUT CHAR COUNT ───────────────────────────────────── */
.char-count { font-size: 0.75rem; color: var(--text-dim); text-align: right; margin-top: 4px; }

/* ── COPY CONFIRMED ─────────────────────────────────────── */
.copy-confirmed { color: var(--accent3) !important; }

/* ── FONT SIZE BADGE ────────────────────────────────────── */
.size-badge {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 6px; padding: 2px 8px;
  font-size: 0.78rem; font-family: var(--font-mono); color: var(--text-muted);
  min-width: 44px; text-align: center;
}

/* ── PROGRESS BAR ───────────────────────────────────────── */
.progress-bar {
  height: 3px; background: var(--border);
  border-radius: 3px; overflow: hidden; margin-top: 4px;
}
.progress-fill { height: 100%; background: var(--accent); border-radius: 3px; transition: width 0.5s ease; }

/* ── DIVIDER ────────────────────────────────────────────── */
.divider { border: none; border-top: 1px solid var(--border); margin: 40px 0; }

/* ── ALERT ──────────────────────────────────────────────── */
.alert {
  padding: 14px 18px; border-radius: var(--radius-sm);
  font-size: 0.875rem; margin-bottom: 16px;
  display: flex; gap: 10px; align-items: flex-start;
}
.alert-success { background: rgba(78,205,196,0.1); border: 1px solid rgba(78,205,196,0.3); color: var(--accent3); }
.alert-warning { background: rgba(255,179,71,0.1); border: 1px solid rgba(255,179,71,0.3); color: var(--accent2); }
.alert-error { background: rgba(255,107,53,0.1); border: 1px solid rgba(255,107,53,0.3); color: var(--accent); }

/* ── FAVORITES TOGGLE ───────────────────────────────────── */
.fav-btn { transition: all var(--transition); }
.fav-btn.favorited { color: #ef4444; border-color: #ef4444; background: rgba(239,68,68,0.1); }

/* ── FONT PREVIEW TEXT SIZE ─────────────────────────────── */
.preview-size-xs { font-size: 1rem; }
.preview-size-sm { font-size: 1.4rem; }
.preview-size-md { font-size: 2rem; }
.preview-size-lg { font-size: 2.8rem; }
.preview-size-xl { font-size: 3.6rem; }

/* ── DOWNLOAD ANIMATION ─────────────────────────────────── */
@keyframes downloadPop {
  0% { transform: scale(1); }
  50% { transform: scale(0.9); }
  100% { transform: scale(1); }
}
.downloading { animation: downloadPop 0.3s ease; }

/* ── STICKY SIDEBAR AD ──────────────────────────────────── */
.sidebar-ad {
  position: sticky; top: 80px;
  background: var(--surface2); border: 1px dashed var(--border);
  border-radius: var(--radius); padding: 20px;
  text-align: center; color: var(--text-dim);
  font-size: 0.75rem; min-height: 250px;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 8px;
}
