/* ==========================================================================
   SAI DIGITAL — Premium UI v4.2 (Final Stable)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg-primary: #050510;
  --bg-secondary: #0a0a1f;
  --bg-tertiary: #12122e;
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-bg-hover: rgba(255, 255, 255, 0.07);
  --glass-border: rgba(255, 255, 255, 0.09);
  --glass-border-hover: rgba(255, 255, 255, 0.18);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.45);
  --gradient-primary: linear-gradient(135deg, #a855f7 0%, #ec4899 50%, #06b6d4 100%);
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --success: #10b981;
  --error: #ef4444;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --transition: cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Subtle fixed gradient — SAFE, no overflow */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 0%, rgba(168, 85, 247, 0.18), transparent 60%),
    radial-gradient(ellipse 80% 50% at 80% 100%, rgba(6, 182, 212, 0.14), transparent 60%),
    radial-gradient(ellipse 60% 40% at 50% 50%, rgba(236, 72, 153, 0.08), transparent 60%);
  z-index: -1;
  pointer-events: none;
}

h1, h2, h3, h4 {
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2rem, 6vw, 3.5rem);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  margin-bottom: 0.75rem;
}

h3 { font-size: clamp(1.1rem, 3vw, 1.35rem); }

p {
  color: var(--text-secondary);
  font-size: clamp(0.95rem, 2.5vw, 1.05rem);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s var(--transition);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
  position: relative;
  z-index: 1;
}

/* HEADER */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 5, 16, 0.75);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--glass-border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #fff;
  font-weight: 800;
  box-shadow: 0 4px 20px rgba(168, 85, 247, 0.4);
}

.logo-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.nav-links a {
  padding: 0.5rem 1rem;
  border-radius: 10px;
  font-weight: 500;
  font-size: 0.925rem;
  color: var(--text-secondary);
}

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

/* HERO */
.hero {
  padding: clamp(2rem, 6vw, 4rem) 0 clamp(1rem, 3vw, 2rem);
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 100px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  backdrop-filter: blur(12px);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 10px var(--success);
  animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.2); }
}

.hero p.subtitle {
  max-width: 640px;
  margin: 0 auto 1rem;
  color: var(--text-secondary);
  font-size: 1.075rem;
}

.hero-stats {
  display: flex;
  gap: clamp(1rem, 4vw, 2.5rem);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
}

.hero-stat { text-align: center; }

.hero-stat .stat-num {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
  line-height: 1;
}

.hero-stat .stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.35rem;
  display: block;
}

/* GLASS CARD */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: var(--glass-shadow);
}

/* FORM */
.download-card {
  padding: clamp(1.25rem, 4vw, 2rem);
  margin-bottom: 2rem;
}

.form-group {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.input-wrapper {
  flex: 1;
  min-width: 240px;
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 1rem;
  color: var(--text-muted);
  pointer-events: none;
  display: flex;
  align-items: center;
}

.input-icon svg { width: 18px; height: 18px; }

input[type="text"],
input[type="url"],
input[type="email"],
input[type="search"],
textarea,
select {
  width: 100%;
  padding: 0.95rem 1rem 0.95rem 2.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  background: rgba(0, 0, 0, 0.3);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s var(--transition);
  outline: none;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(168, 85, 247, 0.6);
  background: rgba(0, 0, 0, 0.4);
  box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.12);
}

input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.5rem;
  border-radius: var(--radius-md);
  border: none;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s var(--transition);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  user-select: none;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 4px 20px rgba(168, 85, 247, 0.35);
}

.btn-primary:hover:not(:disabled) {
  box-shadow: 0 6px 30px rgba(168, 85, 247, 0.55);
  transform: translateY(-2px);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-ghost {
  background: var(--glass-bg);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
}

.btn-ghost:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
}

.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transform: scale(0);
  animation: rippleAnim 0.6s ease-out;
  pointer-events: none;
}

@keyframes rippleAnim {
  to { transform: scale(4); opacity: 0; }
}

/* PLATFORM CHIP */
.platform-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.85rem;
  border-radius: 100px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  opacity: 0;
  transform: translateY(-6px);
  transition: all 0.3s var(--transition);
  pointer-events: none;
}

.platform-chip.active {
  opacity: 1;
  transform: translateY(0);
  color: #fff;
  border-color: transparent;
}

.platform-chip svg { width: 14px; height: 14px; }

/* LOADING */
.loading-state {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2.5rem 1rem;
  text-align: center;
}

.spinner {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 3px solid rgba(168, 85, 247, 0.15);
  border-top-color: #a855f7;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* RESULTS */
.results-section {
  display: none;
  margin-top: 2rem;
  animation: fadeInUp 0.5s var(--transition);
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.result-header {
  display: flex;
  gap: 1.25rem;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.result-thumb-wrapper {
  position: relative;
  width: 160px;
  height: 90px;
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-tertiary);
}

.result-thumb { width: 100%; height: 100%; object-fit: cover; }

.result-duration {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
}

.result-info { flex: 1; min-width: 220px; }
.result-info h3 { margin-bottom: 0.5rem; font-size: 1.1rem; }

.result-meta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.result-platform {
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid;
} 
/* ==========================================================================
   TABS
   ========================================================================== */
.tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  padding: 0.4rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  backdrop-filter: blur(12px);
  width: fit-content;
  max-width: 100%;
  overflow-x: auto;
}

.tab {
  padding: 0.65rem 1.25rem;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.3s var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.tab.active {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 4px 16px rgba(168, 85, 247, 0.35);
}

.tab svg {
  width: 16px;
  height: 16px;
}

/* ==========================================================================
   FORMAT GRID
   ========================================================================== */
.format-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.format-card {
  position: relative;
  padding: 1.25rem;
  border-radius: var(--radius-md);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  cursor: pointer;
  transition: all 0.35s var(--transition);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.format-card:hover {
  transform: translateY(-4px);
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.format-card.recommended {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.08), rgba(236, 72, 153, 0.05));
}

.format-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  background: var(--gradient-primary);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.format-title-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.format-quality {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: var(--text-primary);
  font-size: 1rem;
}

.format-quality svg {
  color: #a855f7;
}

.format-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.format-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-top: auto;
}

.format-size {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.btn-card-download {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1rem;
  border-radius: 10px;
  border: none;
  background: var(--gradient-primary);
  color: #fff;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s var(--transition);
  box-shadow: 0 4px 16px rgba(168, 85, 247, 0.3);
}

.btn-card-download:hover {
  box-shadow: 0 6px 24px rgba(168, 85, 247, 0.5);
  transform: translateY(-1px);
}

.btn-card-download svg {
  width: 14px;
  height: 14px;
}

/* ==========================================================================
   TOAST NOTIFICATIONS
   ========================================================================== */
.toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 380px;
  width: calc(100vw - 2rem);
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  background: rgba(15, 15, 35, 0.95);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(24px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  animation: toastIn 0.35s var(--transition);
  position: relative;
  overflow: hidden;
}

.toast::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--gradient-primary);
}

.toast.error::before { background: var(--error); }
.toast.success::before { background: var(--success); }

.toast.shake {
  animation: toastIn 0.35s var(--transition), shake 0.5s ease-in-out;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

.toast.hiding {
  animation: toastOut 0.3s var(--transition) forwards;
}

@keyframes toastOut {
  to { opacity: 0; transform: translateX(30px); }
}

.toast-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.toast.error .toast-icon { color: var(--error); }
.toast.success .toast-icon { color: var(--success); }
.toast.info .toast-icon { color: #a855f7; }

.toast-body { flex: 1; min-width: 0; }

.toast-title {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 0.9rem;
  margin-bottom: 2px;
}

.toast-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.toast-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
}

.toast-close:hover {
  background: var(--glass-bg);
  color: var(--text-primary);
}

.toast-close svg { width: 14px; height: 14px; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  margin-top: 4rem;
  padding: 2.5rem 0 1.5rem;
  border-top: 1px solid var(--glass-border);
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col h4 {
  font-size: 0.95rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-col a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--glass-border);
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ==========================================================================
   SCROLL REVEAL
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s var(--transition);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   PREMIUM WIDGETS — Trending, Daily Tip, Feature Strip
   ========================================================================== */
.trending-banner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  margin-bottom: 1.5rem;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), rgba(6, 182, 212, 0.08));
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  overflow: hidden;
}

.trending-banner .trending-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ec4899;
  flex-shrink: 0;
}

.trending-banner .trending-label::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ec4899;
  box-shadow: 0 0 8px #ec4899;
  animation: pulseDot 1.5s ease-in-out infinite;
}

.trending-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.trending-text.switching {
  opacity: 0;
  transform: translateY(-8px);
}

.daily-tip {
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(168, 85, 247, 0.06));
  border: 1px solid rgba(168, 85, 247, 0.2);
  backdrop-filter: blur(20px);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.daily-tip-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 20px rgba(168, 85, 247, 0.4);
}

.daily-tip-icon svg {
  width: 20px;
  height: 20px;
}

.daily-tip-content { flex: 1; min-width: 0; }

.daily-tip-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #a855f7;
  margin-bottom: 0.35rem;
}

.daily-tip-text {
  font-size: 0.95rem;
  color: var(--text-primary);
  line-height: 1.55;
  transition: opacity 0.5s ease;
}

.daily-tip-text.switching { opacity: 0; }

.fresh-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 2px 8px;
  border-radius: 100px;
  background: linear-gradient(135deg, #10b981, #06b6d4);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
  animation: freshPulse 2s ease-in-out infinite;
}

@keyframes freshPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 100px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10b981;
  font-size: 0.75rem;
  font-weight: 600;
}

.live-indicator .live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulseDot 1.5s ease-in-out infinite;
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.feature-pill {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: all 0.3s var(--transition);
}

.feature-pill:hover {
  border-color: var(--glass-border-hover);
  background: var(--glass-bg-hover);
  transform: translateY(-2px);
}

.feature-pill svg {
  width: 16px;
  height: 16px;
  color: #a855f7;
  flex-shrink: 0;
}

.feature-pill strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* ==========================================================================
   BLOG CARDS
   ========================================================================== */
.blog-card {
  padding: 1.25rem;
  border-radius: var(--radius-md);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  transition: all 0.35s var(--transition);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: var(--glass-border-hover);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.blog-card h3 {
  font-size: 1.05rem;
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 768px) {
  .nav-links a:not(.btn-nav) { display: none; }

  .form-group { flex-direction: column; }

  .form-group .btn { width: 100%; }

  .result-thumb-wrapper {
    width: 120px;
    height: 68px;
  }

  .format-grid { grid-template-columns: 1fr; }

  .toast-container {
    top: 0.5rem;
    right: 0.5rem;
    left: 0.5rem;
    width: auto;
    max-width: none;
  }

  .hero-stats { gap: 1rem; }
}

@media (max-width: 640px) {
  .trending-banner {
    padding: 0.65rem 1rem;
    flex-wrap: wrap;
  }
  .trending-text {
    font-size: 0.82rem;
    white-space: normal;
  }
  .daily-tip { padding: 1rem; }
  .daily-tip-icon {
    width: 34px;
    height: 34px;
  }
  .feature-strip { grid-template-columns: 1fr; }
}

/* ==========================================================================
   SCROLLBAR
   ========================================================================== */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: rgba(168, 85, 247, 0.3);
  border-radius: 100px;
  border: 2px solid var(--bg-primary);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(168, 85, 247, 0.5);
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }
.hidden { display: none !important; }
