/*
Theme Name: InstaFetch Downloader
Theme URI: https://example.com/
Author: Custom
Description: Lightweight WordPress theme for an Instagram media downloader. Original implementation inspired by the supplied reference layout, without copying its code or branding.
Version: 1.0.0
License: GPL-2.0-or-later
Text Domain: instafetch
*/
:root{--primary:#6d28d9;--primary-dark:#4c1d95;--accent:#ec4899;--text:#171717;--muted:#666;--light:#f7f7fb;--border:#e7e7ee;--white:#fff}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--text);background:#fff;line-height:1.65}a{color:inherit;text-decoration:none}.container{width:min(1120px,calc(100% - 32px));margin:auto}
.site-header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.96);backdrop-filter:blur(12px);border-bottom:1px solid var(--border)}
.nav{height:72px;display:flex;align-items:center;justify-content:space-between}.brand{display:flex;align-items:center;gap:10px;font-size:20px;font-weight:800}.brand-mark{width:38px;height:38px;border-radius:11px;display:grid;place-items:center;color:#fff;background:linear-gradient(135deg,var(--primary),var(--accent));font-weight:900}.nav-links{display:flex;align-items:center;gap:24px;font-size:14px;font-weight:600}.nav-links a:hover{color:var(--primary)}.menu-toggle{display:none;border:0;background:none;font-size:25px}
.hero{position:relative;overflow:hidden;background:linear-gradient(135deg,#4c1d95,#7c3aed 55%,#ec4899);color:#fff;padding:88px 0 92px;text-align:center}.hero:before,.hero:after{content:"";position:absolute;background:rgba(255,255,255,.08);transform:skew(-22deg);border-radius:30px}.hero:before{width:420px;height:220px;left:-170px;top:20px}.hero:after{width:280px;height:520px;right:-100px;bottom:-170px}.hero>*{position:relative;z-index:1}.eyebrow{font-size:13px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;opacity:.85}.hero h1{font-size:clamp(34px,6vw,58px);line-height:1.08;margin:12px auto 16px;max-width:820px}.hero p{max-width:680px;margin:0 auto 30px;color:rgba(255,255,255,.9)}
.downloader{background:#fff;border-radius:18px;padding:9px;max-width:820px;margin:0 auto;box-shadow:0 18px 50px rgba(0,0,0,.22);display:flex;gap:8px}.url-input{flex:1;border:0;outline:0;padding:18px 16px;font-size:16px;min-width:0}.paste-btn,.download-btn{border:0;border-radius:12px;padding:0 20px;font-weight:800;cursor:pointer}.paste-btn{background:#f1f1f5;color:#444}.download-btn{background:#111;color:#fff;min-width:145px}.download-btn:hover{background:#000}.helper{font-size:12px;margin-top:13px;color:rgba(255,255,255,.75)}
.result{display:none;margin:24px auto 0;max-width:820px;background:#fff;color:var(--text);padding:18px;border-radius:14px;text-align:left}.result.show{display:block}.result.error{border:1px solid #fecaca}.result.success{border:1px solid #bbf7d0}.result a{display:inline-block;margin-top:10px;padding:10px 15px;border-radius:9px;background:var(--primary);color:#fff;font-weight:700}
.section{padding:70px 0}.section.alt{background:var(--light)}.section-title{text-align:center;margin:0 auto 40px;max-width:720px}.section-title h2{font-size:32px;line-height:1.2;margin:0 0 10px}.section-title p{color:var(--muted);margin:0}
.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.card{padding:26px;background:#fff;border:1px solid var(--border);border-radius:16px}.card h3{margin:0 0 8px;font-size:19px}.card p{margin:0;color:var(--muted)}
.steps{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.step{padding:24px;border:1px solid var(--border);border-radius:16px}.step-num{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:#ede9fe;color:var(--primary);font-weight:900;margin-bottom:15px}.step h3{margin:0 0 6px}.step p{margin:0;color:var(--muted);font-size:14px}
.faq{max-width:850px;margin:auto}.faq-item{border-bottom:1px solid var(--border);padding:18px 0}.faq-q{width:100%;border:0;background:none;text-align:left;font:inherit;font-weight:800;cursor:pointer;padding:0;display:flex;justify-content:space-between}.faq-a{display:none;color:var(--muted);padding-top:10px}.faq-item.open .faq-a{display:block}
.disclaimer{font-size:13px;color:var(--muted);max-width:820px;margin:25px auto 0;text-align:center}.site-footer{background:#111;color:#aaa;padding:42px 0}.footer-inner{display:flex;justify-content:space-between;gap:25px}.footer-brand{color:#fff;font-weight:800}.footer-links{display:flex;gap:18px;flex-wrap:wrap}.footer-links a:hover{color:#fff}
@media(max-width:760px){.nav-links{display:none;position:absolute;left:16px;right:16px;top:68px;background:#fff;border:1px solid var(--border);padding:16px;border-radius:12px;box-shadow:0 15px 35px rgba(0,0,0,.1);flex-direction:column;align-items:flex-start}.nav-links.open{display:flex}.menu-toggle{display:block}.hero{padding:65px 0 70px}.downloader{flex-direction:column}.url-input{padding:16px}.paste-btn,.download-btn{height:48px}.cards,.steps{grid-template-columns:1fr}.section{padding:55px 0}.footer-inner{flex-direction:column}}


.result{margin-top:18px;padding:16px;border-radius:14px;display:none;background:#f6f8fb}.result.show{display:block}.result.success{border:1px solid #cdebd8;background:#f4fff7}.result.error{border:1px solid #f0c9c9;background:#fff7f7}.result-thumb{display:block;width:min(220px,100%);max-height:360px;object-fit:cover;border-radius:12px;margin:0 0 14px}.media-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:14px;margin-top:14px}.media-card{background:#fff;border:1px solid #e5e9ef;border-radius:12px;overflow:hidden;padding:8px}.media-card img{display:block;width:100%;aspect-ratio:1/1;object-fit:cover;border-radius:8px;margin-bottom:8px}.media-download{display:inline-block;text-decoration:none;font-weight:700}.media-card .media-download{font-size:14px}
