/* =============================================
   INSTAGET — style.css
   Custom effects Tailwind can't handle
============================================= */

/* ---- INSTAGRAM GRADIENT ---- */
:root {
  --grad: linear-gradient(135deg, #f09433, #dc2743, #cc2366, #bc1888);
}

/* ---- BG ORBS ---- */
.bg-orb {
  position: fixed; border-radius: 50%;
  filter: blur(130px); pointer-events: none;
  z-index: 0; opacity: .09;
}
.orb1 { width:700px;height:700px;background:radial-gradient(circle,#f09433,transparent 70%);top:-250px;left:-200px;animation:floatOrb 14s ease-in-out infinite; }
.orb2 { width:600px;height:600px;background:radial-gradient(circle,#cc2366,transparent 70%);top:10%;right:-220px;animation:floatOrb 18s ease-in-out infinite reverse; }
.orb3 { width:500px;height:500px;background:radial-gradient(circle,#bc1888,transparent 70%);bottom:5%;left:25%;animation:floatOrb 22s ease-in-out infinite; }
@keyframes floatOrb {
  0%,100% { transform: translate(0,0) scale(1); }
  33%      { transform: translate(40px,-30px) scale(1.05); }
  66%      { transform: translate(-20px,20px) scale(.95); }
}

/* ---- NAVBAR ---- */
.navbar {
  background: rgba(247,247,251,.88);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid #e8e8f0;
}

/* ---- NAV CTA ---- */
.nav-cta {
  background: var(--grad);
  transition: opacity .2s, transform .15s, box-shadow .2s;
}
.nav-cta:hover {
  opacity: .9; transform: scale(1.03);
  box-shadow: 0 6px 20px rgba(188,24,136,.22);
}

/* ---- HERO ANIMATIONS ---- */
.hero-badge  { animation: fadeUp .7s ease both; }
.hero-title  { animation: fadeUp .75s .1s ease both; }
.hero-subtitle { animation: fadeUp .8s .2s ease both; }
.downloader-card { animation: fadeUp .9s .35s ease both; }
@keyframes fadeUp {
  from { opacity:0; transform:translateY(24px); }
  to   { opacity:1; transform:translateY(0); }
}

/* ---- BADGE DOT ---- */
.badge-dot { background: var(--grad); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse {
  0%,100% { transform:scale(1); opacity:1; }
  50%      { transform:scale(1.5); opacity:.6; }
}

/* ---- GRADIENT TEXT ---- */
.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- SECTION LABEL ---- */
.section-label {
  background: var(--grad);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- STEP NUMBER ---- */
.step-num {
  background: var(--grad);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; opacity: .2;
}

/* ═══════════════════════════════════════
   DESKTOP TABS (md+)
═══════════════════════════════════════ */
.tab {
  color: #7a7a90;
  transition: color .2s, background .2s;
  position: relative; z-index: 1;
}
.tab:hover { color: #111118; background: #ededf3; border-radius: 10px 10px 0 0; }
.tab.active { color: #111118; }

.tab-indicator {
  background: var(--grad);
  transition: left .3s cubic-bezier(.4,0,.2,1), width .3s cubic-bezier(.4,0,.2,1);
}

/* ═══════════════════════════════════════
   MOBILE TABS
═══════════════════════════════════════ */
.mob-tab { color: #aaaabc; cursor: pointer; border: none; background: transparent; }
.mob-tab .mob-tab-icon { background: #f2f2f7; color: #aaaabc; transition: background .2s, color .2s; }
.mob-tab .mob-tab-label { color: #aaaabc; transition: color .2s; }

.mob-tab:hover .mob-tab-icon { background: #ffe0ee; color: #cc2366; }
.mob-tab:hover .mob-tab-label { color: #cc2366; }

/* Active state — gradient icon bg + colored text + bottom border */
.mob-tab.active .mob-tab-icon {
  background: linear-gradient(135deg, #f09433, #dc2743, #cc2366, #bc1888);
  color: #fff;
  box-shadow: 0 4px 12px rgba(204,35,102,.3);
}
.mob-tab.active .mob-tab-label {
  background: var(--grad);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ═══════════════════════════════════════
   TAB PANELS
═══════════════════════════════════════ */
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: panelIn .3s ease; }
@keyframes panelIn {
  from { opacity:0; transform:translateY(6px); }
  to   { opacity:1; transform:translateY(0); }
}

/* ═══════════════════════════════════════
   INPUT FIELD
═══════════════════════════════════════ */


.input-wrap {
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.input-wrap:focus-within {
  border-color: #cc2366 !important;
  box-shadow: 0 0 0 3px rgba(204,35,102,.10);
  background: #fff !important;
}
.url-input::placeholder { color: #aaaabc; }

.paste-btn, .hist-btn {
  transition: background .2s, color .2s;
}
.paste-btn:hover svg, .hist-btn:hover svg {
  stroke: #cc2366;
}

/* ═══════════════════════════════════════
   DOWNLOAD BUTTON
═══════════════════════════════════════ */
.download-btn {
  background: var(--grad);
  position: relative; overflow: hidden;
  transition: opacity .2s, transform .15s, box-shadow .2s;
}
.download-btn::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(255,255,255,.15), transparent);
  pointer-events: none;
}
.download-btn:hover {
  opacity: .93; transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(188,24,136,.28);
}
.download-btn:active { transform: translateY(0); }



.download-btn {
  display: flex; align-items: center; gap: 9px; justify-content: center;
  padding: 0 26px;
  background: var(--grad);
  border: none;
  border-radius: var(--radius-md);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem; font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity .2s, transform .15s, box-shadow .2s;
  position: relative;
  overflow: hidden;
}
.download-btn::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(255,255,255,.12), transparent);
  pointer-events: none;
}
.download-btn:hover {
  opacity: .93;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(188,24,136,.35);
}
.download-btn:active { transform: translateY(0); opacity: 1; }


/* ═══════════════════════════════════════
   FAQ
═══════════════════════════════════════ */
.faq-item { transition: border-color .2s, box-shadow .2s; }
.faq-item.open-item {
  border-color: rgba(204,35,102,.3) !important;
  box-shadow: 0 4px 16px rgba(204,35,102,.08) !important;
}
.faq-q { color: #111118; }
.faq-q:hover { color: #cc2366; }
.faq-q.open { color: #cc2366; }
.faq-q.open .faq-arrow { transform: rotate(180deg); stroke: #cc2366; }
.faq-a.open { max-height: 200px !important; padding-bottom: 20px !important; }

/* ═══════════════════════════════════════
   HAMBURGER
═══════════════════════════════════════ */
#hamburger.active .ham-line:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
#hamburger.active .ham-line:nth-child(2) { opacity: 0; }
#hamburger.active .ham-line:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ═══════════════════════════════════════
   SCROLL REVEAL
═══════════════════════════════════════ */
.reveal { opacity: 0; transform: translateY(28px); }
.reveal.visible { opacity: 1; transform: translateY(0); transition: opacity .55s ease, transform .55s ease; }

/* ═══════════════════════════════════════
   SPIN / SHAKE ANIMATIONS
═══════════════════════════════════════ */
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes shake {
  0%,100% { transform: translateX(0); }
  20%      { transform: translateX(-7px); }
  40%      { transform: translateX(7px); }
  60%      { transform: translateX(-5px); }
  80%      { transform: translateX(5px); }
}


/* ═══════════════════════════════════════
   LANGUAGE DROPDOWN
═══════════════════════════════════════ */
.lang-btn {
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.lang-btn:hover {
  border-color: #cc2366 !important;
  box-shadow: 0 0 0 3px rgba(204,35,102,.09), 0 1px 4px rgba(0,0,0,.06);
  background: #fff5f8 !important;
}
.lang-btn.open {
  border-color: #cc2366 !important;
  box-shadow: 0 0 0 3px rgba(204,35,102,.09);
}
#lang-chevron-desktop.rotated { transform: rotate(180deg); }

.lang-dropdown {
  animation: dropIn .18s ease;
  transform-origin: top right;
}
@keyframes dropIn {
  from { opacity:0; transform:scale(.95) translateY(-6px); }
  to   { opacity:1; transform:scale(1) translateY(0); }
}

.lang-option { cursor: pointer; border: none; background: transparent; }
.lang-option:hover { background: #fff5f8 !important; }
.lang-option.selected { background: #fef0f7 !important; }
.lang-option.selected span:last-child { color: #cc2366 !important; font-weight: 600; }
