/*
Theme Name: Clip2MP3
Theme URI: https://clip2mp3.com
Author: Zohaib
Description: Clip2MP3 – Free YouTube to MP3 Converter
Version: 6.1.0
License: GNU General Public License v2 or later
Text Domain: clip2mp3
*/

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

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', -apple-system, sans-serif; background: #f8fafc; color: #0f172a; line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
h1,h2,h3,h4,h5,h6 { font-family: 'Outfit', sans-serif; letter-spacing: -0.02em; }
button { font-family: inherit; cursor: pointer; }

/* ===== LAYOUT ===== */
.max-w-7xl { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* ===== UTILITIES ===== */
.text-gradient { background: linear-gradient(135deg, #7c3aed, #6366f1); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.bg-gradient-primary { background: linear-gradient(135deg, #7c3aed, #6366f1); }

/* ===== NAVBAR ===== */
#site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 16px 0; background: transparent; transition: all 0.3s ease; }
#site-header.scrolled { background: rgba(255,255,255,0.92); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid rgba(226,232,240,0.8); box-shadow: 0 1px 12px rgba(0,0,0,0.05); padding: 12px 0; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.site-logo { display: flex; align-items: center; gap: 10px; font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 1.5rem; letter-spacing: -0.02em; color: #0f172a; white-space: nowrap; }
.logo-icon { width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(135deg, #7c3aed, #6366f1); display: flex; align-items: center; justify-content: center; color: white; flex-shrink: 0; box-shadow: 0 4px 14px rgba(124,58,237,0.4); transition: transform 0.2s; }
.logo-icon:hover { transform: scale(1.05); }
.logo-icon svg { width: 22px; height: 22px; }
.site-logo .accent { color: #7c3aed; }
.desktop-nav { display: flex; align-items: center; gap: 4px; list-style: none; }
.desktop-nav > li { position: relative; }
.desktop-nav > li > a { display: flex; align-items: center; gap: 4px; padding: 8px 14px; border-radius: 8px; font-size: 0.92rem; font-weight: 500; color: #64748b; transition: color 0.2s, background 0.2s; white-space: nowrap; }
.desktop-nav > li > a:hover { color: #0f172a; background: rgba(0,0,0,0.04); }
.desktop-nav > li > a svg { width: 14px; height: 14px; opacity: 0.6; transition: transform 0.2s; }
.desktop-nav > li:hover > a svg { transform: rotate(180deg); }
.dropdown-menu { display: none; position: absolute; top: calc(100% + 6px); left: 0; min-width: 210px; background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; box-shadow: 0 16px 48px rgba(0,0,0,0.12); padding: 6px; flex-direction: column; z-index: 500; }
.desktop-nav > li:hover .dropdown-menu { display: flex; }
.dropdown-menu a { display: block; padding: 10px 14px; border-radius: 8px; font-size: 0.88rem; color: #64748b; transition: all 0.15s; white-space: nowrap; }
.dropdown-menu a:hover { color: #7c3aed; background: #f5f3ff; }
.mobile-menu-btn { display: none; background: none; border: none; color: #64748b; padding: 8px; border-radius: 8px; transition: background 0.2s; }
.mobile-menu-btn:hover { background: #f1f5f9; }
.mobile-menu { display: none; position: fixed; inset: 0; background: white; z-index: 999; padding: 80px 24px 32px; flex-direction: column; gap: 4px; overflow-y: auto; }
.mobile-menu.open { display: flex; }
.mobile-menu .close-btn { position: absolute; top: 18px; right: 18px; background: none; border: none; color: #64748b; padding: 6px; border-radius: 8px; }
.mobile-nav-item { font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 1.1rem; color: #0f172a; padding: 12px 0; border-bottom: 1px solid #f1f5f9; display: block; }
.mobile-sub { display: flex; flex-direction: column; gap: 2px; padding: 8px 0 8px 20px; border-left: 2px solid #e2e8f0; margin-bottom: 8px; }
.mobile-sub a { color: #64748b; font-size: 0.92rem; padding: 6px 0; transition: color 0.2s; }
.mobile-sub a:hover { color: #7c3aed; }

/* ===== HERO ===== */
#hero { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; padding: 100px 0 80px; background: linear-gradient(160deg, #ede9ff 0%, #e8eeff 40%, #f0ebff 70%, #eef2ff 100%); }
.hero-blob-1 { position: absolute; top: 20%; left: 50%; transform: translate(-50%,-50%); width: 900px; height: 500px; background: radial-gradient(ellipse, rgba(167,139,250,0.3) 0%, transparent 70%); border-radius: 50%; pointer-events: none; }
.hero-blob-2 { position: absolute; bottom: -10%; right: -5%; width: 700px; height: 400px; background: radial-gradient(ellipse, rgba(129,140,248,0.25) 0%, transparent 70%); border-radius: 50%; pointer-events: none; }
.hero-inner { position: relative; z-index: 2; width: 100%; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px; border-radius: 999px; color: #6d28d9; font-weight: 500; font-size: 0.88rem; margin-bottom: 24px; }
.ping-dot { position: relative; width: 8px; height: 8px; display: inline-block; flex-shrink: 0; }
.ping-dot::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: rgba(109,40,217,0.5); animation: ping 1.5s cubic-bezier(0,0,0.2,1) infinite; }
.ping-dot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: #7c3aed; }
@keyframes ping { 0% { transform: scale(1); opacity: 1; } 75%,100% { transform: scale(2.5); opacity: 0; } }

/* H1 - EXACT REPLIT MATCH */
#hero h1 { font-family: 'Outfit', sans-serif !important; font-size: 72px !important; font-weight: 800 !important; color: #0f172a !important; line-height: 1.05 !important; letter-spacing: -0.04em !important; margin: 0 0 24px 0 !important; padding: 0 !important; }
#hero h1 .text-gradient { display: block !important; font-family: 'Outfit', sans-serif !important; font-size: 72px !important; font-weight: 800 !important; line-height: 1.05 !important; background: linear-gradient(135deg, #7c3aed, #6366f1) !important; -webkit-background-clip: text !important; -webkit-text-fill-color: transparent !important; background-clip: text !important; }
#hero p { font-size: 1.15rem !important; color: #475569 !important; max-width: 560px !important; margin: 0 auto 40px !important; line-height: 1.75 !important; font-weight: 400 !important; }

/* Converter */
.converter-box { max-width: 700px; margin: 0 auto; }
.converter-panel { border-radius: 20px; padding: 18px 20px; background: rgba(255,255,255,0.82); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,0.9); box-shadow: 0 8px 40px rgba(0,0,0,0.07); }
.converter-form { display: flex; gap: 10px; align-items: center; }
.url-input-wrap { position: relative; flex: 1; }
.url-input-wrap svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: #94a3b8; pointer-events: none; }
.url-input { width: 100%; height: 56px; padding: 0 16px 0 44px; background: white; border: 1.5px solid #e2e8f0; border-radius: 14px; font-size: 0.97rem; color: #0f172a; outline: none; transition: all 0.2s; box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
.url-input::placeholder { color: #94a3b8; }
.url-input:focus { border-color: #7c3aed; box-shadow: 0 0 0 3px rgba(124,58,237,0.12); }
.convert-btn { height: 56px; padding: 0 26px; background: linear-gradient(135deg, #7c3aed, #6366f1); color: white; border: none; border-radius: 14px; font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 1rem; white-space: nowrap; display: flex; align-items: center; gap: 8px; box-shadow: 0 4px 20px rgba(124,58,237,0.4); transition: transform 0.2s, box-shadow 0.2s; }
.convert-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(124,58,237,0.5); }
.convert-btn:active { transform: translateY(0); }
.error-msg { display: none; align-items: center; gap: 8px; color: #dc2626; background: #fef2f2; border: 1px solid #fecaca; border-radius: 12px; padding: 11px 16px; font-size: 0.88rem; margin-top: 12px; }
.error-msg.active { display: flex; }
.converting-state { display: none; flex-direction: column; align-items: center; padding: 28px 0; }
.converting-state.active { display: flex; }
.spinner-ring { width: 60px; height: 60px; border-radius: 50%; background: #ede9fe; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.spinner { width: 28px; height: 28px; border: 3px solid #ddd6fe; border-top-color: #7c3aed; border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.progress-bar { width: 100%; max-width: 380px; height: 5px; background: #f1f5f9; border-radius: 999px; margin-top: 18px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #7c3aed, #6366f1); width: 0; animation: progress 3s ease-in-out forwards; }
@keyframes progress { to { width: 80%; } }
.success-state { display: none; }
.success-state.active { display: block; }
.result-card { display: flex; gap: 20px; align-items: flex-start; text-align: left; }
.result-thumb { width: 160px; aspect-ratio: 16/9; border-radius: 10px; object-fit: cover; background: #1e293b; flex-shrink: 0; }
.result-info { flex: 1; }
.result-title { font-size: 1rem; font-weight: 700; color: #0f172a; margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.result-meta { display: flex; align-items: center; gap: 14px; color: #64748b; font-size: 0.82rem; margin-bottom: 14px; }
.result-meta span { display: flex; align-items: center; gap: 4px; }
.quality-row { display: flex; gap: 10px; }
.quality-select { height: 46px; padding: 0 14px; border-radius: 10px; border: 1px solid #e2e8f0; background: #f8fafc; color: #0f172a; font-size: 0.88rem; outline: none; }
.quality-select:focus { border-color: #7c3aed; }
.download-btn { height: 46px; padding: 0 20px; flex: 1; background: linear-gradient(135deg, #7c3aed, #6366f1); color: white; border: none; border-radius: 10px; font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 0.92rem; display: flex; align-items: center; justify-content: center; gap: 6px; box-shadow: 0 3px 12px rgba(124,58,237,0.3); transition: all 0.2s; }
.download-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(124,58,237,0.4); }
.convert-another { display: block; width: 100%; background: none; border: none; border-top: 1px solid #f1f5f9; margin-top: 18px; padding-top: 18px; text-align: center; color: #7c3aed; font-weight: 500; font-size: 0.92rem; transition: color 0.2s; }
.convert-another:hover { color: #6d28d9; text-decoration: underline; }
.trust-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px; margin-top: 22px; font-size: 0.85rem; color: #64748b; font-weight: 500; }
.trust-badges span { display: flex; align-items: center; gap: 6px; }

/* ===== FEATURES ===== */
#features { padding: 96px 0; background: #ffffff; }
.section-header { text-align: center; max-width: 600px; margin: 0 auto 56px; }
.section-header h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 700; color: #0f172a; margin-bottom: 14px; }
.section-header p { font-size: 1.05rem; color: #64748b; line-height: 1.75; }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 20px; padding: 28px 24px; transition: all 0.3s; }
.feature-card:hover { border-color: #ddd6fe; box-shadow: 0 12px 40px rgba(124,58,237,0.08); transform: translateY(-4px); }
.feature-card:hover .feature-title { color: #7c3aed; }
.feature-icon { width: 52px; height: 52px; border-radius: 13px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.feature-icon svg { width: 26px; height: 26px; }
.feature-title { font-family: 'Outfit', sans-serif; font-size: 1.1rem; font-weight: 700; color: #0f172a; margin-bottom: 10px; transition: color 0.2s; }
.feature-desc { color: #64748b; font-size: 0.92rem; line-height: 1.7; }

/* ===== HOW IT WORKS ===== */
#how-it-works { padding: 96px 0; background: #f8fafc; overflow: hidden; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; position: relative; }
.steps-grid::before { content: ''; position: absolute; top: 48px; left: 18%; right: 18%; height: 2px; background: linear-gradient(90deg, #ddd6fe, #6366f1, #ddd6fe); }
.step { display: flex; flex-direction: column; align-items: center; text-align: center; position: relative; z-index: 1; }
.step-icon-wrap { width: 96px; height: 96px; border-radius: 50%; background: white; border: 4px solid #f8fafc; box-shadow: 0 8px 28px rgba(0,0,0,0.08); display: flex; align-items: center; justify-content: center; margin-bottom: 22px; position: relative; }
.step-icon-wrap svg { width: 38px; height: 38px; color: #7c3aed; }
.step-badge { position: absolute; top: -4px; right: -4px; width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, #7c3aed, #6366f1); color: white; font-weight: 700; font-size: 0.82rem; display: flex; align-items: center; justify-content: center; box-shadow: 0 3px 8px rgba(124,58,237,0.35); }
.step h3 { font-size: 1.3rem; font-weight: 700; color: #0f172a; margin-bottom: 10px; }
.step p { color: #64748b; font-size: 0.92rem; line-height: 1.7; max-width: 240px; }

/* ===== FAQ ===== */
#faq { padding: 96px 0; background: white; }
.faq-list { max-width: 740px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid #e2e8f0; border-radius: 16px; overflow: hidden; transition: border-color 0.2s; background: white; }
.faq-item.open { background: #fafafa; border-color: #ddd6fe; }
.faq-question { width: 100%; padding: 20px 22px; display: flex; align-items: center; justify-content: space-between; text-align: left; background: none; border: none; cursor: pointer; }
.faq-question span { font-size: 1rem; font-weight: 600; color: #0f172a; padding-right: 24px; line-height: 1.5; }
.faq-chevron { width: 18px; height: 18px; color: #94a3b8; flex-shrink: 0; transition: transform 0.3s, color 0.2s; }
.faq-item.open .faq-chevron { transform: rotate(180deg); color: #7c3aed; }
.faq-answer { max-height: 0; overflow: hidden; opacity: 0; transition: max-height 0.35s ease, opacity 0.25s ease; }
.faq-item.open .faq-answer { max-height: 300px; opacity: 1; }
.faq-answer p { padding: 0 22px 20px; color: #64748b; font-size: 0.94rem; line-height: 1.75; }

/* ===== STATS ===== */
#stats { padding: 96px 0; background: linear-gradient(180deg, #fff 0%, #f5f3ff 100%); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat-card { background: white; border: 1px solid #e2e8f0; border-radius: 20px; padding: 36px 20px; text-align: center; position: relative; overflow: hidden; transition: all 0.3s; }
.stat-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.07); transform: translateY(-4px); }
.stat-value { font-family: 'Outfit', sans-serif; font-size: clamp(2rem, 3.5vw, 2.8rem); font-weight: 800; background: linear-gradient(135deg, #7c3aed, #6366f1); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 8px; }
.stat-label { font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 1rem; color: #0f172a; margin-bottom: 6px; }
.stat-desc { font-size: 0.82rem; color: #64748b; line-height: 1.5; }

/* ===== FOOTER ===== */
#site-footer { background: #0f172a; padding: 60px 0 28px; color: #94a3b8; }
.footer-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; margin-bottom: 36px; }
.footer-logo { display: inline-flex; align-items: center; gap: 10px; font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 1.5rem; color: white; text-decoration: none; white-space: nowrap; }
.footer-logo-icon { width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(135deg, #7c3aed, #6366f1); display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: 0 4px 14px rgba(124,58,237,0.4); }
.footer-logo-text { white-space: nowrap; letter-spacing: -0.02em; }
.footer-accent { color: #7c3aed; }
.footer-desc { color: #64748b; max-width: 400px; margin: 0 auto; line-height: 1.7; font-size: 0.92rem; text-align: center; }
.footer-links { display: flex; align-items: center; justify-content: center; gap: 20px; font-size: 0.85rem; flex-wrap: wrap; }
.footer-links a { color: #64748b; transition: color 0.2s; }
.footer-links a:hover { color: #a78bfa; }
.footer-link-external { display: inline-flex; align-items: center; gap: 5px; }
.footer-link-external svg { opacity: 0.7; flex-shrink: 0; }
.footer-divider { color: #334155; }
.footer-bottom { padding-top: 28px; border-top: 1px solid #1e293b; text-align: center; color: #475569; font-size: 0.82rem; }

/* ===== RESPONSIVE - ALL DEVICES ===== */
@media (max-width: 1279px) {
  #hero h1, #hero h1 .text-gradient { font-size: 64px !important; }
}
@media (max-width: 1023px) {
  #hero h1, #hero h1 .text-gradient { font-size: 56px !important; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid::before { display: none; }
}
@media (max-width: 899px) {
  #hero { padding: 110px 0 70px; min-height: auto; }
  #hero h1, #hero h1 .text-gradient { font-size: 48px !important; }
  #hero p { font-size: 1rem !important; }
  .desktop-nav { display: none; }
  .mobile-menu-btn { display: flex; }
  .steps-grid { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 767px) {
  .max-w-7xl { padding: 0 16px; }
  #hero { padding: 100px 0 60px; min-height: auto; }
  #hero h1, #hero h1 .text-gradient { font-size: 40px !important; letter-spacing: -0.03em !important; }
  #hero p { font-size: 0.97rem !important; max-width: 100% !important; }
  .converter-form { flex-direction: column; gap: 10px; }
  .convert-btn { height: 52px; width: 100%; justify-content: center; }
  .url-input { height: 52px; }
  .features-grid { grid-template-columns: 1fr; gap: 16px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .result-card { flex-direction: column; }
  .result-thumb { width: 100%; }
  .quality-row { flex-direction: column; }
  .quality-select { width: 100%; }
  .trust-badges { gap: 16px; }
  #features, #how-it-works, #faq, #stats { padding: 72px 0; }
}
@media (max-width: 599px) {
  #hero h1, #hero h1 .text-gradient { font-size: 34px !important; letter-spacing: -0.02em !important; }
  .hero-badge { font-size: 0.8rem; }
  .stats-grid { grid-template-columns: 1fr; gap: 12px; }
  .stat-card { padding: 24px 16px; }
  .section-header h2 { font-size: 1.7rem; }
  .converter-panel { padding: 14px; }
  #features, #how-it-works, #faq, #stats { padding: 60px 0; }
  .trust-badges { flex-direction: column; align-items: center; gap: 10px; }
}

/* =====================================================
   INNER PAGES — Same design system as homepage
   ===================================================== */

/* Wrap */
.site-wrap { min-height: 100vh; display: flex; flex-direction: column; }
.site-main  { flex: 1; }

/* Page Hero — all inner pages */
.page-hero {
  padding: 120px 0 56px;
  background: linear-gradient(160deg, #ede9ff 0%, #e8eeff 40%, #f0ebff 70%, #eef2ff 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 700px; height: 350px;
  background: radial-gradient(ellipse, rgba(167,139,250,.22) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.page-hero-inner { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(1.8rem, 5vw, 2.8rem); font-weight: 800; color: #0f172a; margin-bottom: 12px; }
.page-hero p  { font-size: 1rem; color: #64748b; max-width: 540px; margin: 0 auto; line-height: 1.7; }

/* Breadcrumb */
.breadcrumb { display: flex; align-items: center; gap: 8px; justify-content: center; font-size: .82rem; color: #94a3b8; margin-bottom: 14px; flex-wrap: wrap; }
.breadcrumb a { color: #7c3aed; transition: color .2s; }
.breadcrumb a:hover { color: #6d28d9; }

/* Section padding */
.section-pad    { padding: 96px 0; }
.section-pad-sm { padding: 64px 0; }

/* ---- TYPOGRAPHY for inner pages ---- */
.page-content, .post-content-inner {
  font-size: .97rem;
  color: #374151;
  line-height: 1.85;
}
.page-content h1, .post-content-inner h1 { font-size: clamp(1.7rem,4vw,2.4rem); font-weight: 800; margin-bottom: 20px; color: #0f172a; }
.page-content h2, .post-content-inner h2 { font-size: clamp(1.3rem,3vw,1.7rem); font-weight: 700; margin: 32px 0 12px; color: #0f172a; }
.page-content h3, .post-content-inner h3 { font-size: 1.2rem; font-weight: 700; margin: 24px 0 10px; color: #0f172a; }
.page-content h4, .post-content-inner h4 { font-size: 1.05rem; font-weight: 600; margin: 20px 0 8px; color: #0f172a; }
.page-content h5, .post-content-inner h5 { font-size: .97rem; font-weight: 600; margin: 16px 0 6px; color: #0f172a; }
.page-content h6, .post-content-inner h6 { font-size: .88rem; font-weight: 600; margin: 14px 0 6px; color: #475569; }
.page-content p, .post-content-inner p { margin-bottom: 18px; color: #374151; line-height: 1.85; }
.page-content p:last-child, .post-content-inner p:last-child { margin-bottom: 0; }
.page-content ul, .page-content ol, .post-content-inner ul, .post-content-inner ol { padding-left: 1.4rem; margin-bottom: 18px; color: #374151; }
.page-content li, .post-content-inner li { margin-bottom: 6px; line-height: 1.75; }
.page-content a, .post-content-inner a { color: #7c3aed; text-decoration: underline; text-underline-offset: 3px; }
.page-content blockquote, .post-content-inner blockquote { border-left: 4px solid #7c3aed; padding: 14px 18px; background: #f5f3ff; border-radius: 0 10px 10px 0; margin: 20px 0; color: #475569; font-style: italic; }
.page-content img, .post-content-inner img { border-radius: 12px; margin: 20px 0; }
.page-content code, .post-content-inner code { background: #f1f5f9; padding: 2px 7px; border-radius: 5px; font-family: monospace; font-size: .88em; color: #7c3aed; }
.page-content pre, .post-content-inner pre { background: #0f172a; color: #e2e8f0; padding: 18px; border-radius: 12px; overflow-x: auto; margin: 20px 0; }
.page-content table, .post-content-inner table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.page-content th, .page-content td, .post-content-inner th, .post-content-inner td { padding: 10px 14px; border: 1px solid #e2e8f0; }
.page-content th, .post-content-inner th { background: #f8fafc; font-weight: 600; }
.page-content hr, .post-content-inner hr { border: none; border-top: 1px solid #e2e8f0; margin: 28px 0; }

/* Static page box */
.page-box { background: #fff; border: 1px solid #e2e8f0; border-radius: 20px; padding: 44px; max-width: 860px; margin: 0 auto; }

/* ---- BLOG LAYOUT ---- */
.blog-layout   { display: grid; grid-template-columns: 1fr 300px; gap: 36px; align-items: start; }
.single-layout { display: grid; grid-template-columns: 1fr 300px; gap: 36px; align-items: start; }

/* Post Card */
.posts-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.post-card  { background: #fff; border: 1px solid #e2e8f0; border-radius: 20px; overflow: hidden; transition: all .3s; display: flex; flex-direction: column; }
.post-card:hover { box-shadow: 0 12px 40px rgba(0,0,0,.08); transform: translateY(-4px); }
.post-card:hover .post-title { color: #7c3aed; }
.post-thumb { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: linear-gradient(135deg,#ede9fe,#e0e7ff); }
.post-thumb-placeholder { width: 100%; aspect-ratio: 16/9; background: linear-gradient(135deg,#ede9fe,#e0e7ff); display: flex; align-items: center; justify-content: center; }
.post-thumb-placeholder svg { width: 36px; height: 36px; color: #7c3aed; opacity: .35; }
.post-body    { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.post-meta    { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.post-cat     { font-size: .72rem; font-weight: 700; color: #7c3aed; background: #ede9fe; padding: 3px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: .04em; }
.post-date    { font-size: .78rem; color: #94a3b8; display: flex; align-items: center; gap: 4px; }
.post-title   { font-family: 'Outfit', sans-serif; font-size: 1.05rem; font-weight: 700; color: #0f172a; margin-bottom: 8px; line-height: 1.35; transition: color .2s; }
.post-excerpt { color: #64748b; font-size: .88rem; line-height: 1.7; margin-bottom: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; flex: 1; }
.post-footer  { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 14px; border-top: 1px solid #f1f5f9; }
.post-author  { display: flex; align-items: center; gap: 7px; font-size: .78rem; color: #64748b; }
.post-author-avatar { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg,#7c3aed,#6366f1); display: flex; align-items: center; justify-content: center; color: #fff; font-size: .66rem; font-weight: 700; flex-shrink: 0; }
.read-more    { font-size: .78rem; font-weight: 600; color: #7c3aed; display: flex; align-items: center; gap: 4px; transition: gap .2s; }
.read-more:hover { gap: 8px; }
.post-card.featured { grid-column: 1 / -1; }
.post-card.featured .post-body { padding: 26px 30px; }
.post-card.featured .post-title { font-size: 1.25rem; }

/* Single post */
.post-content { background: #fff; border: 1px solid #e2e8f0; border-radius: 20px; overflow: hidden; }
.post-featured-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.post-content-inner { padding: 36px; }
.post-meta-bar { display: flex; align-items: center; gap: 14px; padding-bottom: 20px; margin-bottom: 24px; border-bottom: 1px solid #f1f5f9; flex-wrap: wrap; }
.post-meta-bar span, .post-meta-bar a { font-size: .82rem; color: #64748b; display: flex; align-items: center; gap: 5px; }
.post-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 28px; padding-top: 20px; border-top: 1px solid #f1f5f9; }
.post-tag { font-size: .75rem; font-weight: 600; padding: 3px 11px; border-radius: 999px; background: #f1f5f9; color: #64748b; transition: all .2s; }
.post-tag:hover { background: #ede9fe; color: #7c3aed; }
.post-nav { display: flex; justify-content: space-between; gap: 14px; margin-top: 28px; padding-top: 20px; border-top: 1px solid #f1f5f9; }
.post-nav a { flex: 1; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; padding: 14px 16px; font-size: .82rem; color: #64748b; transition: all .2s; }
.post-nav a:hover { border-color: #ddd6fe; background: #f5f3ff; }
.post-nav a small { display: block; font-size: .72rem; color: #94a3b8; margin-bottom: 4px; }
.post-nav a strong { color: #0f172a; line-height: 1.4; display: block; }
.post-nav-next { text-align: right; }

/* Sidebar */
.sidebar { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 90px; }
.sidebar-widget { background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 22px; }
.sidebar-title { font-family: 'Outfit', sans-serif; font-size: .95rem; font-weight: 700; color: #0f172a; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid #7c3aed; display: inline-block; }
.recent-post-item { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid #f1f5f9; }
.recent-post-item:last-child { border-bottom: none; padding-bottom: 0; }
.recent-post-thumb { width: 56px; height: 46px; border-radius: 8px; object-fit: cover; background: #ede9fe; flex-shrink: 0; }
.recent-post-info .r-title { font-size: .82rem; font-weight: 600; color: #0f172a; line-height: 1.4; transition: color .2s; display: block; }
.recent-post-info .r-title:hover { color: #7c3aed; }
.recent-post-info .r-date { font-size: .72rem; color: #94a3b8; margin-top: 3px; display: block; }
.cat-list { display: flex; flex-direction: column; gap: 2px; }
.cat-item { display: flex; align-items: center; justify-content: space-between; padding: 7px 10px; border-radius: 8px; transition: background .2s; font-size: .85rem; color: #64748b; }
.cat-item:hover { background: #f5f3ff; color: #7c3aed; }
.cat-count { background: #f1f5f9; color: #94a3b8; font-size: .72rem; font-weight: 600; padding: 1px 7px; border-radius: 999px; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-cloud a { font-size: .75rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: #f1f5f9; color: #64748b; transition: all .2s; }
.tag-cloud a:hover { background: #ede9fe; color: #7c3aed; }

/* Author */
.author-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 20px; padding: 32px; display: flex; gap: 24px; align-items: center; margin-bottom: 36px; }
.author-avatar-lg { width: 90px; height: 90px; border-radius: 50%; background: linear-gradient(135deg,#7c3aed,#6366f1); display: flex; align-items: center; justify-content: center; color: #fff; font-family: 'Outfit',sans-serif; font-size: 2.2rem; font-weight: 700; flex-shrink: 0; box-shadow: 0 4px 20px rgba(124,58,237,.3); }
.author-info h1 { font-size: 1.7rem; margin-bottom: 6px; }
.author-meta { display: flex; gap: 14px; margin-bottom: 10px; flex-wrap: wrap; font-size: .82rem; color: #64748b; }
.author-meta span { display: flex; align-items: center; gap: 5px; }
.author-bio { color: #475569; font-size: .92rem; line-height: 1.75; margin: 0; }

/* Pagination */
.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 44px; flex-wrap: wrap; }
.pagination .page-numbers { min-width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: .85rem; font-weight: 600; color: #64748b; border: 1px solid #e2e8f0; background: #fff; transition: all .2s; padding: 0 8px; }
.pagination .page-numbers:hover, .pagination .current { background: linear-gradient(135deg,#7c3aed,#6366f1); color: #fff; border-color: transparent; box-shadow: 0 3px 10px rgba(124,58,237,.3); }

/* Comments */
.comments-area { margin-top: 28px; padding-top: 28px; border-top: 1px solid #e2e8f0; }
.comments-area h2 { font-size: 1.2rem; margin-bottom: 20px; }
.comment-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.comment-body { background: #f8fafc; border-radius: 14px; padding: 18px; }
.comment-author-wrap { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.comment-avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg,#7c3aed,#6366f1); display: flex; align-items: center; justify-content: center; color: #fff; font-size: .78rem; font-weight: 700; flex-shrink: 0; }
.comment-meta strong { font-size: .88rem; color: #0f172a; }
.comment-meta time { font-size: .75rem; color: #94a3b8; display: block; }
.comment-text p { font-size: .88rem; color: #374151; margin: 0; line-height: 1.7; }
.reply a { font-size: .78rem; font-weight: 600; color: #7c3aed; margin-top: 8px; display: inline-block; }
.comment-respond { margin-top: 28px; background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 24px; }
.comment-respond h3 { font-size: 1.1rem; margin-bottom: 18px; }
.comment-form p { margin-bottom: 14px; }
.comment-form label { display: block; font-size: .85rem; font-weight: 600; color: #374151; margin-bottom: 5px; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea { width: 100%; padding: 10px 14px; border: 1.5px solid #e2e8f0; border-radius: 10px; font-size: .92rem; font-family: inherit; outline: none; transition: border-color .2s; background: #fff; color: #0f172a; }
.comment-form input:focus, .comment-form textarea:focus { border-color: #7c3aed; box-shadow: 0 0 0 3px rgba(124,58,237,.1); }
.comment-form textarea { height: 120px; resize: vertical; }
.comment-form input[type="submit"] { height: 48px; padding: 0 24px; background: linear-gradient(135deg,#7c3aed,#6366f1); color: #fff; border: none; border-radius: 12px; font-family: 'Outfit',sans-serif; font-weight: 700; font-size: .95rem; cursor: pointer; transition: all .2s; box-shadow: 0 4px 14px rgba(124,58,237,.3); }
.comment-form input[type="submit"]:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(124,58,237,.4); }

/* 404 */
.error-page { text-align: center; padding: 120px 0 80px; }
.error-code  { font-family: 'Outfit',sans-serif; font-size: 110px; font-weight: 800; line-height: 1; background: linear-gradient(135deg,#7c3aed,#6366f1); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 16px; }
.error-page h2 { font-size: 1.8rem; color: #0f172a; margin-bottom: 12px; }
.error-page p  { color: #64748b; font-size: 1rem; max-width: 440px; margin: 0 auto 28px; line-height: 1.7; }

/* Buttons */
.btn-primary { display: inline-flex; align-items: center; gap: 8px; height: 50px; padding: 0 26px; background: linear-gradient(135deg,#7c3aed,#6366f1); color: #fff; border-radius: 14px; font-family: 'Outfit',sans-serif; font-weight: 700; font-size: .97rem; box-shadow: 0 4px 18px rgba(124,58,237,.35); transition: all .2s; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 26px rgba(124,58,237,.45); }
.btn-outline  { display: inline-flex; align-items: center; gap: 8px; height: 50px; padding: 0 26px; background: #fff; color: #7c3aed; border: 2px solid #7c3aed; border-radius: 14px; font-family: 'Outfit',sans-serif; font-weight: 700; font-size: .97rem; transition: all .2s; }
.btn-outline:hover { background: #7c3aed; color: #fff; }

/* Search form */
.search-form { display: flex; gap: 8px; }
.search-form input[type="search"] { flex: 1; height: 42px; padding: 0 14px; border: 1.5px solid #e2e8f0; border-radius: 10px; font-size: .9rem; font-family: inherit; outline: none; transition: border-color .2s; }
.search-form input[type="search"]:focus { border-color: #7c3aed; }
.search-form button { height: 42px; padding: 0 16px; background: linear-gradient(135deg,#7c3aed,#6366f1); color: #fff; border: none; border-radius: 10px; font-family: 'Outfit',sans-serif; font-weight: 600; font-size: .88rem; cursor: pointer; }

/* =====================================================
   RESPONSIVE — ALL PAGES ALL DEVICES
   ===================================================== */

/* 1400px+ */
@media(min-width:1400px){
  .max-w-7xl{max-width:1360px}
  #hero h1,#hero h1 .text-gradient{font-size:80px!important}
}

/* 1100px */
@media(max-width:1100px){
  .blog-layout{grid-template-columns:1fr 270px}
  .single-layout{grid-template-columns:1fr 250px}
}

/* 1023px Tablet */
@media(max-width:1023px){
  .blog-layout,.single-layout{grid-template-columns:1fr}
  .sidebar{position:static;display:grid;grid-template-columns:repeat(2,1fr);gap:18px}
  .posts-grid{grid-template-columns:repeat(2,1fr)}
  .author-card{gap:18px}
  .section-pad{padding:72px 0}
  #hero h1,#hero h1 .text-gradient{font-size:56px!important}
  .features-grid{grid-template-columns:repeat(2,1fr)}
  .stats-grid{grid-template-columns:repeat(2,1fr)}
  .steps-grid::before{display:none}
}

/* 899px */
@media(max-width:899px){
  #hero{padding:110px 0 70px;min-height:auto}
  #hero h1,#hero h1 .text-gradient{font-size:48px!important}
  #hero p{font-size:1rem!important}
  .desktop-nav{display:none}
  .mobile-menu-btn{display:flex}
  .steps-grid{grid-template-columns:1fr;gap:36px}
  .posts-grid{grid-template-columns:1fr}
  .post-card.featured .post-body{padding:20px}
  .author-card{flex-direction:column;text-align:center}
  .author-avatar-lg{margin:0 auto}
  .author-meta{justify-content:center}
}

/* 767px Mobile */
@media(max-width:767px){
  .max-w-7xl{padding:0 16px}
  #hero{padding:100px 0 60px;min-height:auto}
  #hero h1,#hero h1 .text-gradient{font-size:40px!important;letter-spacing:-0.03em!important}
  #hero p{font-size:.97rem!important;max-width:100%!important}
  .converter-form{flex-direction:column;gap:10px}
  .convert-btn{height:52px;width:100%;justify-content:center}
  .url-input{height:52px}
  .features-grid{grid-template-columns:1fr;gap:16px}
  .stats-grid{grid-template-columns:repeat(2,1fr);gap:14px}
  .result-card{flex-direction:column}
  .result-thumb{width:100%}
  .quality-row{flex-direction:column}
  .quality-select{width:100%}
  .trust-badges{gap:16px}
  #features,#how-it-works,#faq,#stats{padding:72px 0}
  .page-hero{padding:90px 0 36px}
  .page-hero h1{font-size:1.6rem}
  .page-box{padding:22px;border-radius:14px}
  .post-content-inner{padding:20px}
  .post-content-inner h1{font-size:1.5rem}
  .sidebar{grid-template-columns:1fr}
  .author-card{padding:20px}
  .post-nav{flex-direction:column}
  .section-pad{padding:60px 0}
  .error-page{padding:100px 0 60px}
  .error-code{font-size:80px}
}

/* 480px Small Mobile */
@media(max-width:480px){
  #hero h1,#hero h1 .text-gradient{font-size:32px!important}
  .hero-badge{font-size:.78rem}
  .converter-panel{padding:12px}
  .url-input{height:48px;font-size:.88rem}
  .convert-btn{height:48px;font-size:.9rem}
  .trust-badges{flex-direction:column;align-items:center;gap:8px;font-size:.78rem}
  #features,#how-it-works,#faq,#stats{padding:52px 0}
  .section-header{margin-bottom:32px}
  .section-header h2{font-size:1.5rem}
  .feature-card{padding:18px}
  .feature-icon{width:44px;height:44px}
  .step-icon-wrap{width:80px;height:80px}
  .step-icon-wrap svg{width:32px;height:32px}
  .stats-grid{grid-template-columns:repeat(2,1fr);gap:10px}
  .stat-card{padding:20px 12px}
  .stat-value{font-size:1.8rem}
  .faq-question{padding:16px}
  .faq-question span{font-size:.9rem}
  .page-hero h1{font-size:1.4rem}
  .post-body{padding:14px}
  .post-title{font-size:.95rem}
  .author-avatar-lg{width:70px;height:70px;font-size:1.8rem}
  .error-code{font-size:64px}
  .btn-primary,.btn-outline{height:46px;padding:0 20px;font-size:.9rem}
  .comment-respond,.comment-body{padding:14px}
  #site-footer{padding:44px 0 20px}
  .footer-logo{font-size:1.2rem}
}

/* 360px */
@media(max-width:360px){
  .max-w-7xl{padding:0 12px}
  #hero h1,#hero h1 .text-gradient{font-size:26px!important}
  .stats-grid{grid-template-columns:1fr}
  .footer-links{flex-direction:column;gap:8px;align-items:center}
  .posts-grid{grid-template-columns:1fr}
}

/* Touch: no hover effects */
@media(hover:none){
  .feature-card:hover,.stat-card:hover,.post-card:hover{transform:none;box-shadow:none}
  .convert-btn:hover,.download-btn:hover,.btn-primary:hover{transform:none}
}

/* Print */
@media print{
  #site-header,#site-footer,.sidebar,.mobile-menu{display:none!important}
  .single-layout,.blog-layout{grid-template-columns:1fr}
  body{background:#fff;color:#000}
}
