/* Font Awesome loaded via <link> in HTML for non-blocking parallel loading */

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #7c3aed;
  --primary-dark: #5b21b6;
  --primary-light: #a78bfa;
  --accent: #f59e0b;
  --bg-dark: #0f0a1e;
  --bg-card: #1a1230;
  --bg-card2: #221840;
  --text: #f3f0ff;
  --text-muted: #9ca3af;
  --border: #2e2060;
  --success: #10b981;
  --error: #ef4444;
  --radius: 14px;
  --shadow: 0 4px 32px rgba(124,58,237,.18);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg-dark);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}

a { color: var(--primary-light); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== HEADER / NAV ===== */
.site-header {
  background: rgba(15,10,30,.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(124,58,237,.25);
  box-shadow: 0 2px 24px rgba(0,0,0,.4);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  font-size: 1.3rem;
  font-weight: 800;
  background: linear-gradient(135deg, #a78bfa, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
}
.logo-img {
  background: none;
  -webkit-text-fill-color: unset;
  display: flex;
  align-items: center;
  text-decoration: none;
}
.nav-logo-img {
  height: 165px;
  width: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(124,58,237,.35));
}

.nav-links {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.nav-links a {
  font-size: .8rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: 20px;
  transition: all .2s;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--primary);
  color: #fff;
  text-decoration: none;
}

/* ===== DROPDOWN NAV ===== */
.nav-dropdown { position: relative; }

.nav-direct-link {
  font-size: .8rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: 20px;
  text-decoration: none;
  transition: all .2s;
  white-space: nowrap;
}
.nav-direct-link:hover,
.nav-direct-link.active {
  background: var(--primary);
  color: #fff;
  text-decoration: none;
}

.nav-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: .8rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: 20px;
  background: none;
  border: none;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
  font-family: inherit;
}

.nav-dropdown-btn:hover,
.nav-dropdown.active .nav-dropdown-btn {
  background: var(--primary);
  color: #fff;
}

.nav-arrow { font-size: .6rem; transition: transform .2s; }
.nav-dropdown.open .nav-arrow { transform: rotate(180deg); }

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(20,15,40,.98);
  border: 1px solid var(--border);
  border-radius: 10px;
  min-width: 150px;
  z-index: 300;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,.5);
}

.nav-dropdown.open .nav-dropdown-menu { display: block; }

.nav-dropdown-menu a {
  display: block;
  padding: 9px 16px;
  font-size: .82rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  transition: all .15s;
  white-space: nowrap;
}
.nav-dropdown-menu a:last-child { border-bottom: none; }
.nav-dropdown-menu a:hover,
.nav-dropdown-menu a.active {
  background: var(--primary);
  color: #fff;
  text-decoration: none;
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, #0f0a1e 0%, #1a0a3e 50%, #0f172a 100%);
  padding: 60px 20px 40px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 14px;
  background: linear-gradient(135deg, #e0d7ff, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 32px;
}

/* ===== TOOL CARD ===== */
.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  max-width: 700px;
  margin: 0 auto;
  box-shadow: var(--shadow);
}

/* Tabs */
.tabs {
  display: flex;
  gap: 4px;
  background: var(--bg-dark);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 22px;
}

.tab-btn {
  flex: 1;
  padding: 9px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.tab-btn.active {
  background: var(--primary);
  color: #fff;
}

/* Input row */
.input-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.url-input {
  flex: 1;
  padding: 12px 16px;
  background: var(--bg-dark);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 1rem;
  outline: none;
  transition: border-color .2s;
}

.url-input:focus { border-color: var(--primary); }
.url-input::placeholder { color: var(--text-muted); }

.btn {
  padding: 12px 20px;
  border: none;
  border-radius: 10px;
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  padding: 12px 28px;
  width: 100%;
  justify-content: center;
  font-size: 1rem;
  margin-top: 8px;
}

.btn-primary:hover { filter: brightness(1.12); transform: translateY(-1px); }
.btn-primary:active { transform: none; }

.btn-paste {
  background: var(--bg-card2);
  color: var(--text-muted);
  border: 1.5px solid var(--border);
}
.btn-paste:hover { border-color: var(--primary-light); color: var(--primary-light); }

/* Hint text */
.hint {
  font-size: .8rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 10px;
}

/* ===== LOADING ===== */
.spinner {
  display: none;
  width: 36px;
  height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  margin: 20px auto;
}

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

/* ===== ERROR ===== */
.error-box {
  display: none;
  background: rgba(239,68,68,.1);
  border: 1px solid rgba(239,68,68,.3);
  border-radius: 10px;
  padding: 14px 16px;
  color: #fca5a5;
  font-size: .9rem;
  margin-top: 14px;
  text-align: center;
}

/* ===== RESULTS ===== */
.results {
  display: none;
  margin-top: 20px;
  animation: fadeIn .3s ease;
}

@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.media-preview {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 18px;
  background: var(--bg-dark);
  border-radius: 10px;
  padding: 14px;
}

.media-thumb {
  width: 100px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  background: var(--bg-card2);
}

.media-info { flex: 1; min-width: 0; }

.media-title {
  font-size: .95rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.media-meta {
  font-size: .8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.formats-label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 10px;
}

.formats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 8px;
}

.format-btn {
  background: var(--bg-dark);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  color: var(--text);
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.format-btn:hover {
  border-color: var(--primary);
  background: rgba(124,58,237,.12);
  color: var(--primary-light);
}

.format-btn .f-label { font-size: .9rem; }
.format-btn .f-sub { font-size: .75rem; color: var(--text-muted); }

/* ===== SECTION: INFO CONTENT (HOW TO / FAQ) ===== */
.content-section {
  max-width: 800px;
  margin: 60px auto;
  padding: 0 20px;
}

.content-section h2 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--text);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}

.step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
  text-align: center;
}

.step-num {
  width: 38px;
  height: 38px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  margin: 0 auto 12px;
}

.step h3 { font-size: .95rem; margin-bottom: 6px; }
.step p { font-size: .85rem; color: var(--text-muted); }

/* Features list */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 40px;
}

.feature {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.feature-icon { font-size: 1.4rem; flex-shrink: 0; }
.feature h3 { font-size: .9rem; font-weight: 700; margin-bottom: 4px; }
.feature p { font-size: .82rem; color: var(--text-muted); }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 10px; }

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.faq-q {
  padding: 16px 20px;
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-q:hover { background: var(--bg-card2); }
.faq-q::after { content: '+'; font-size: 1.2rem; color: var(--primary-light); transition: transform .2s; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }

.faq-a {
  display: none;
  padding: 0 20px 16px;
  font-size: .88rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.faq-item.open .faq-a { display: block; }

/* ===== PLATFORM CARDS (HOME PAGE) ===== */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 20px;
}

.platform-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
  transition: all .2s;
  cursor: pointer;
  text-decoration: none;
  display: block;
}

.platform-card:hover {
  border-color: var(--primary);
  background: var(--bg-card2);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  text-decoration: none;
}

.platform-icon { font-size: 2.4rem; margin-bottom: 10px; line-height: 1; }
.platform-icon .fa-instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.platform-icon .fa-facebook { color: #1877F2; }
.platform-icon .fa-x-twitter { color: #e7e7e7; }
.platform-icon .fa-youtube { color: #FF0000; }
.platform-icon .fa-music { color: #FF0000; }
.platform-icon .fa-tiktok { color: #EE1D52; }
.platform-icon .fa-reddit { color: #FF4500; }
.platform-name { font-weight: 800; font-size: 1rem; margin-bottom: 4px; color: var(--text); }
.platform-desc { font-size: .8rem; color: var(--text-muted); }

/* ===== FOOTER ===== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 36px 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: .85rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 24px;
  margin-bottom: 16px;
}

.footer-links a { color: var(--text-muted); font-size: .85rem; }
.footer-links a:hover { color: var(--primary-light); }
.footer-legal { margin-top: -6px; padding-top: 10px; border-top: 1px solid var(--border); }
.footer-legal a { font-size: .8rem; }
.footer-copy { font-size: .8rem; margin-top: 10px; }

/* ===== STATS GRID ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 16px;
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 900;
  background: linear-gradient(135deg, #a78bfa, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.stat-label {
  font-size: .82rem;
  color: var(--text-muted);
  margin-top: 6px;
}

/* ===== TESTIMONIALS ===== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.testimonial-stars { color: #f59e0b; font-size: 1rem; letter-spacing: 2px; }
.testimonial-text { font-size: .9rem; color: var(--text-muted); line-height: 1.7; font-style: italic; }

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}

.author-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: .9rem;
  color: #fff;
  flex-shrink: 0;
}

.author-name { font-weight: 700; font-size: .88rem; }
.author-handle { font-size: .78rem; color: var(--text-muted); }

/* ===== CONTACT FORM ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}

@media (max-width: 700px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.contact-info-card h3 { font-size: 1.1rem; margin-bottom: 18px; }

.contact-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.contact-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }
.contact-item h4 { font-size: .9rem; font-weight: 700; margin-bottom: 3px; }
.contact-item p { font-size: .85rem; color: var(--text-muted); }
.contact-item a { color: var(--primary-light); }

.contact-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.contact-form-card h3 { font-size: 1.1rem; margin-bottom: 18px; }

.form-group { margin-bottom: 16px; }

.form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  background: var(--bg-dark);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: .9rem;
  outline: none;
  transition: border-color .2s;
  font-family: inherit;
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--primary); }

.form-group textarea { min-height: 110px; }
.form-group select option { background: var(--bg-card); }

/* ===== LEGAL PAGES ===== */
.legal-content {
  max-width: 820px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}

.legal-content h1 { font-size: 1.8rem; margin-bottom: 8px; }
.legal-content .legal-meta { font-size: .85rem; color: var(--text-muted); margin-bottom: 36px; }

.legal-content h2 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary-light);
  margin: 32px 0 10px;
}

.legal-content h3 { font-size: 1rem; font-weight: 700; margin: 20px 0 8px; }

.legal-content p,
.legal-content li {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 10px;
}

.legal-content ul,
.legal-content ol {
  padding-left: 22px;
  margin-bottom: 14px;
}

.legal-content li { margin-bottom: 6px; }

.legal-content a { color: var(--primary-light); }

.legal-highlight {
  background: rgba(124,58,237,.08);
  border-left: 3px solid var(--primary);
  border-radius: 0 8px 8px 0;
  padding: 14px 18px;
  margin: 20px 0;
  font-size: .88rem;
  color: var(--text-muted);
}

/* ===== HAMBURGER BUTTON ===== */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: var(--bg-card2);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.hamburger-btn span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all .25s;
  transform-origin: center;
}

.hamburger-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-btn.open span:nth-child(2) { opacity: 0; }
.hamburger-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== RESPONSIVE ===== */
@media (max-width: 700px) {
  .hero { padding: 40px 16px 30px; }
  .tool-card { padding: 18px; }
  .media-preview { flex-direction: column; }
  .media-thumb { width: 100%; height: 160px; }
  .input-row { flex-direction: column; }
  .btn-paste { width: 100%; justify-content: center; }

  /* Show hamburger, hide inline nav */
  .hamburger-btn { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    z-index: 200;
    flex-direction: column;
    background: rgba(15,10,30,.98);
    border-bottom: 1px solid var(--border);
    padding: 12px 16px 16px;
    gap: 4px;
  }

  .nav-links.mobile-open { display: flex; }

  .nav-links a {
    font-size: .95rem;
    padding: 10px 14px;
    border-radius: 8px;
    width: 100%;
    text-align: left;
  }

  /* Dropdown overrides for mobile */
  .nav-dropdown { width: 100%; }

  .nav-dropdown-btn {
    font-size: .95rem;
    padding: 10px 14px;
    border-radius: 8px;
    width: 100%;
    text-align: left;
    justify-content: space-between;
  }

  .nav-dropdown-menu {
    position: static;
    transform: none;
    background: rgba(255,255,255,.06);
    border: none;
    border-radius: 8px;
    box-shadow: none;
    margin: 2px 0 4px;
  }

  .nav-dropdown-menu a {
    padding: 8px 20px;
    border-radius: 6px;
    font-size: .9rem;
  }

  /* Make header relative so dropdown positions correctly */
  .site-header { position: relative; }
}
