/*
Theme Name: SnapTik Pro
Theme URI: https://snaptik.help/
Author: Antigravity AI
Author URI: https://snaptik.help/
Description: Giao diện chuyên nghiệp tải video TikTok chuẩn videotree.ie dành cho snaptik.help. Tích hợp tùy chỉnh 100% nội dung và nhúng shortcode [tiktok_downloader].
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: snaptik-theme
*/

:root {
  --st-primary: #00f2fe;
  --st-secondary: #4facfe;
  --st-accent: #ff0050;
  --st-accent-hover: #e00046;
  --st-dark-bg: #070a11;
  --st-header-bg: #0b0f19;
  --st-card-bg: #ffffff;
  --st-card-border: #e2e8f0;
  --st-text-main: #0f172a;
  --st-text-muted: #64748b;
  --st-text-light: #94a3b8;
  --st-gradient-hero: linear-gradient(135deg, #070a11 0%, #111726 50%, #090e1a 100%);
  --st-gradient-btn: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  --st-gradient-accent: linear-gradient(135deg, #ff0050 0%, #00f2fe 100%);
  --st-gradient-text: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  --st-radius-sm: 8px;
  --st-radius-md: 14px;
  --st-radius-lg: 20px;
  --st-radius-full: 9999px;
  --st-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --st-shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
  --st-shadow-glow: 0 0 35px rgba(0, 242, 254, 0.15);
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--st-text-main);
  background-color: #f8fafc;
  line-height: 1.6;
}

* {
  box-sizing: border-box;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

.snaptik-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 0. HEADER & NAVBAR */
.snaptik-site-header {
  background: var(--st-header-bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.snaptik-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.snaptik-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.snaptik-logo .logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.snaptik-logo .logo-ext {
  color: var(--st-primary);
  font-size: 1.1rem;
}

.snaptik-main-nav .snaptik-menu-list {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 28px;
}

.snaptik-main-nav a {
  color: #cbd5e1;
  font-weight: 600;
  font-size: 0.95rem;
}

.snaptik-main-nav a:hover,
.snaptik-main-nav a.active {
  color: var(--st-primary);
}

.snaptik-header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.snaptik-header-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--st-gradient-btn);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: var(--st-radius-full);
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.snaptik-header-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
  color: #ffffff;
}

.snaptik-mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.snaptik-mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* 1. HERO SECTION */
.snaptik-hero-section {
  background: var(--st-gradient-hero);
  color: #ffffff;
  padding: 60px 0 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.snaptik-hero-section::before {
  content: "";
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.12) 0%, rgba(255, 0, 80, 0.05) 50%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}

.snaptik-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #38bdf8;
  padding: 6px 18px;
  border-radius: var(--st-radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.snaptik-hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.25;
  margin: 0 auto 16px auto;
  max-width: 900px;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.snaptik-hero-subtitle {
  font-size: 1.15rem;
  color: #cbd5e1;
  max-width: 760px;
  margin: 0 auto 35px auto;
  line-height: 1.6;
}

/* Tool Downloader Box */
.snaptik-downloader-box {
  max-width: 820px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 24px;
  border-radius: var(--st-radius-lg);
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), var(--st-shadow-glow);
}

.snaptik-shortcode-container {
  width: 100%;
}

.snaptik-shortcode-container input[type="text"],
.snaptik-shortcode-container input[type="url"] {
  width: 100%;
  height: 58px;
  border-radius: var(--st-radius-md);
  border: 2px solid transparent;
  padding: 0 20px;
  font-size: 1.05rem;
  background: #ffffff;
  color: #1e293b;
  outline: none;
  transition: all 0.25s ease;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
}

.snaptik-shortcode-container input[type="text"]:focus,
.snaptik-shortcode-container input[type="url"]:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.25);
}

.snaptik-shortcode-container button,
.snaptik-shortcode-container input[type="submit"] {
  height: 56px;
  background: var(--st-gradient-btn);
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  border: none;
  border-radius: var(--st-radius-md);
  padding: 0 32px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
}

.snaptik-shortcode-container button:hover,
.snaptik-shortcode-container input[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(37, 99, 235, 0.45);
}

.snaptik-hero-note {
  font-size: 0.88rem;
  color: #94a3b8;
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Badges List */
.snaptik-hero-badges-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.snaptik-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  font-size: 0.85rem;
  padding: 6px 14px;
  border-radius: var(--st-radius-full);
}

/* 2. SECTION COMMON */
.snaptik-section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 50px auto;
}

.snaptik-section-title {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--st-text-main);
  margin: 0 0 14px 0;
  letter-spacing: -0.01em;
}

.snaptik-section-subtitle {
  font-size: 1.05rem;
  color: var(--st-text-muted);
  margin: 0;
  line-height: 1.6;
}

/* 3. HOW TO SECTION */
.snaptik-howto-section {
  padding: 80px 0;
  background: #ffffff;
}

.snaptik-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.snaptik-step-card {
  background: #f8fafc;
  border: 1px solid var(--st-card-border);
  border-radius: var(--st-radius-lg);
  padding: 35px 25px;
  text-align: center;
  position: relative;
  transition: all 0.3s ease;
}

.snaptik-step-card:hover {
  transform: translateY(-5px);
  border-color: #cbd5e1;
  box-shadow: var(--st-shadow-md);
  background: #ffffff;
}

.snaptik-step-number {
  width: 54px;
  height: 54px;
  background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%);
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
  box-shadow: 0 8px 20px rgba(14, 165, 233, 0.3);
}

.snaptik-step-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--st-text-main);
  margin: 0 0 12px 0;
}

.snaptik-step-desc {
  font-size: 0.95rem;
  color: var(--st-text-muted);
  margin: 0;
  line-height: 1.6;
}

/* 4. FEATURES SECTION */
.snaptik-features-section {
  padding: 80px 0;
  background: #f1f5f9;
}

.snaptik-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.snaptik-feature-card {
  background: #ffffff;
  border: 1px solid var(--st-card-border);
  border-radius: var(--st-radius-md);
  padding: 30px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.snaptik-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--st-shadow-md);
  border-color: #93c5fd;
}

.snaptik-feature-icon {
  width: 50px;
  height: 50px;
  background: rgba(37, 99, 235, 0.08);
  color: #2563eb;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 20px;
}

.snaptik-feature-title {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--st-text-main);
  margin: 0 0 10px 0;
}

.snaptik-feature-desc {
  font-size: 0.94rem;
  color: var(--st-text-muted);
  margin: 0;
  line-height: 1.6;
}

/* 5. SEO SECTION */
.snaptik-seo-section {
  padding: 80px 0;
  background: #ffffff;
}

.snaptik-seo-card {
  background: #ffffff;
  border: 1px solid var(--st-card-border);
  border-radius: var(--st-radius-lg);
  padding: 45px 50px;
  box-shadow: var(--st-shadow-sm);
}

.snaptik-seo-card h2 {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--st-text-main);
  margin-top: 0;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 15px;
}

.snaptik-seo-card h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: #2563eb;
  border-radius: 2px;
}

.snaptik-seo-body {
  font-size: 1.02rem;
  color: #334155;
  line-height: 1.75;
}

.snaptik-seo-body h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #0f172a;
  margin-top: 30px;
  margin-bottom: 12px;
}

.snaptik-seo-body p {
  margin-bottom: 18px;
}

.snaptik-seo-body ul {
  padding-left: 24px;
  margin-bottom: 20px;
}

.snaptik-seo-body li {
  margin-bottom: 8px;
}

/* 6. FAQ SECTION */
.snaptik-faq-section {
  padding: 80px 0;
  background: #f8fafc;
}

.snaptik-faq-accordion {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.snaptik-faq-item {
  background: #ffffff;
  border: 1px solid var(--st-card-border);
  border-radius: var(--st-radius-md);
  overflow: hidden;
  transition: all 0.25s ease;
}

.snaptik-faq-item.active {
  border-color: #3b82f6;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.08);
}

.snaptik-faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 24px;
  text-align: left;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--st-text-main);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: color 0.2s;
}

.snaptik-faq-question:hover {
  color: #2563eb;
}

.snaptik-faq-chevron {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  color: #64748b;
  flex-shrink: 0;
  margin-left: 15px;
}

.snaptik-faq-item.active .snaptik-faq-chevron {
  transform: rotate(180deg);
  color: #2563eb;
}

.snaptik-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  background: #fdfdfd;
}

.snaptik-faq-answer-inner {
  padding: 0 24px 22px 24px;
  font-size: 0.98rem;
  color: var(--st-text-muted);
  line-height: 1.7;
}

/* 7. MODERN 4-COLUMN FOOTER */
.snaptik-site-footer {
  background: #06090e;
  color: #94a3b8;
  padding: 70px 0 35px 0;
  font-size: 0.92rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.snaptik-footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1.2fr;
  gap: 50px;
  margin-bottom: 60px;
}

.snaptik-footer-brand {
  padding-right: 20px;
}

.snaptik-footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  text-decoration: none;
}

.snaptik-footer-logo .logo-box {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.snaptik-footer-logo .logo-text {
  font-family: Georgia, Cambria, "Times New Roman", Times, serif;
  font-size: 1.6rem;
  font-weight: 700;
  font-style: italic;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.snaptik-footer-logo .logo-dot {
  color: #ff0050;
}

.snaptik-footer-desc {
  font-size: 0.88rem;
  color: #8b949e;
  line-height: 1.7;
  margin: 0;
  max-width: 360px;
}

.snaptik-footer-heading {
  font-size: 0.82rem;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 24px 0;
}

.snaptik-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.snaptik-footer-links a {
  color: #cbd5e1;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.snaptik-footer-links a:hover {
  color: #ffffff;
  padding-left: 3px;
}

.snaptik-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.78rem;
  color: #64748b;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

/* RESPONSIVE DESIGN */
@media (max-width: 992px) {
  .snaptik-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .snaptik-hero-title {
    font-size: 2.2rem;
  }
  .snaptik-steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .snaptik-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .snaptik-footer-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .snaptik-footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  .snaptik-mobile-toggle {
    display: flex;
  }
  .snaptik-main-nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: #0b0f19;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .snaptik-main-nav.mobile-open {
    display: block;
  }
  .snaptik-main-nav .snaptik-menu-list {
    flex-direction: column;
    gap: 15px;
  }
  .snaptik-hero-section {
    padding: 45px 0 60px 0;
  }
  .snaptik-hero-title {
    font-size: 1.85rem;
  }
  .snaptik-hero-subtitle {
    font-size: 1rem;
    margin-bottom: 25px;
  }
  .snaptik-downloader-box {
    padding: 16px;
  }
  .snaptik-steps-grid {
    grid-template-columns: 1fr;
  }
  .snaptik-features-grid {
    grid-template-columns: 1fr;
  }
  .snaptik-seo-card {
    padding: 25px 20px;
  }
  .snaptik-section-title {
    font-size: 1.65rem;
  }
}
