/* ==========================================================================
   WOLFDOWNLOADER - MULTI-PLATFORM GLASSMORPHISM STYLING
   ========================================================================== */

:root {
  --bg-dark: #070913;
  --bg-card: rgba(18, 22, 41, 0.65);
  --border-card: rgba(255, 255, 255, 0.08);
  --border-card-hover: rgba(255, 0, 128, 0.3);

  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --accent-pink: #ff007a;
  --accent-purple: #7928ca;
  --accent-youtube: #ff0000;
  --accent-spotify: #1db954;
  --accent-tiktok: #25f4ee;
  --accent-twitter: #1da1f2;

  --gradient-wolf: linear-gradient(135deg, #ff007a 0%, #7928ca 50%, #4f46e5 100%);
  --gradient-btn: linear-gradient(90deg, #ff007a 0%, #e100ff 100%);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --shadow-glow: 0 0 25px rgba(255, 0, 122, 0.35);
  --font-main: 'Inter', sans-serif;
  --font-heading: 'Outfit', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-main);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
}

/* Background Glow Orbs */
.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
}

.bg-glow-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 0, 122, 0.2) 0%, transparent 70%);
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
}

.bg-glow-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(121, 40, 202, 0.25) 0%, transparent 70%);
  bottom: 10%;
  left: -100px;
}

.bg-glow-3 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.15) 0%, transparent 70%);
  top: 40%;
  right: -100px;
}

.app-wrapper {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-box {
  width: 54px;
  height: 54px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
}

.logo-box:hover {
  border-color: var(--accent-pink);
  transform: scale(1.05);
  box-shadow: var(--shadow-glow);
}

.wolf-logo-img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #ffffff;
}

.brand-title span {
  background: var(--gradient-wolf);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-tag {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-left: 6px;
}

.wolfsquad-tag {
  background: rgba(255, 0, 85, 0.2);
  color: #ff0055;
  border: 1px solid rgba(255, 0, 85, 0.6);
  box-shadow: 0 0 12px rgba(255, 0, 85, 0.5);
  animation: wolfsquadPulse 1.5s infinite ease-in-out;
}

@keyframes wolfsquadPulse {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 12px rgba(255, 0, 85, 0.5);
    border-color: rgba(255, 0, 85, 0.6);
    transform: scale(1);
  }
  50% {
    opacity: 0.75;
    box-shadow: 0 0 22px rgba(255, 0, 85, 0.95);
    border-color: rgba(255, 0, 85, 1);
    transform: scale(1.04);
  }
}

.header-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 10px #10b981;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.2); }
  100% { opacity: 1; transform: scale(1); }
}

/* Platform Navigation Tabs */
.platform-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 2.5rem;
  scrollbar-width: none;
}

.platform-tabs::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: all 0.25s ease;

}

.tab-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.tab-btn.active {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 0, 122, 0.5);
  color: #fff;
  box-shadow: 0 0 15px rgba(255, 0, 122, 0.2);
}

.instagram-color { color: var(--accent-pink); }
.youtube-color { color: var(--accent-youtube); }
.spotify-color { color: var(--accent-spotify); }
.soundcloud-color { color: #ff5500; }
.tiktok-color { color: var(--accent-tiktok); }
.twitter-color { color: var(--accent-twitter); }

.badge-featured {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  background: var(--gradient-wolf);
  color: #fff;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  margin-left: 4px;
}

/* Main Hero Section */
.hero-section {
  text-align: center;
  margin-bottom: 2.5rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 1.2rem;
}

.text-gradient {
  color: var(--accent-pink);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  background: linear-gradient(180deg, #ffffff 0%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 650px;
  margin: 0 auto;
}

/* Input Card */
.input-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color 0.3s ease;
}

.input-card:focus-within {
  border-color: rgba(255, 0, 122, 0.4);
  box-shadow: 0 0 30px rgba(255, 0, 122, 0.15);
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 4px 8px;
  transition: all 0.25s ease;
}

.input-wrapper:focus-within {
  border-color: var(--accent-pink);
  background: rgba(0, 0, 0, 0.6);
}

.input-icon {
  font-size: 1.4rem;
  color: var(--accent-pink);
  padding: 0 12px;
}

#url-input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 1rem;
  padding: 14px 0;
  font-family: var(--font-main);
}

#url-input::placeholder {
  color: var(--text-muted);
}

.icon-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

/* Primary Button */
.btn-primary {
  width: 100%;
  background: var(--gradient-btn);
  border: none;
  outline: none;
  color: #ffffff;
  padding: 16px;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(255, 0, 122, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 0, 122, 0.5);
}

.btn-primary:active {
  transform: translateY(0);
}

.spinner {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.btn-loader {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Toast Notifications */
.toast {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 2rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  animation: fadeIn 0.3s ease forwards;
}

.toast.error {
  border-color: rgba(239, 68, 68, 0.5);
  background: rgba(239, 68, 68, 0.1);
  color: #fca5a5;
}

.toast.success {
  border-color: rgba(16, 185, 129, 0.5);
  background: rgba(16, 185, 129, 0.1);
  color: #6ee7b7;
}

.toast.info {
  border-color: rgba(59, 130, 246, 0.5);
  background: rgba(59, 130, 246, 0.1);
  color: #93c5fd;
}

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

/* Result Section */
/* Result Section */
.result-section {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 3rem;
  animation: fadeIn 0.4s ease forwards;
}

.media-result-card {
  width: fit-content;
  max-width: 100%;
  min-width: 320px;
  margin: 0 auto;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-card-hover);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.3s ease;
}

.card-header {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 1.2rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.result-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  max-width: 90%;
  word-break: break-word;
}

.media-type-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-pink);
  background: rgba(255, 0, 122, 0.12);
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
}

/* Media Display Container */
.media-container {
  width: fit-content;
  max-width: 100%;
  background: transparent;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 1.2rem auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6);
  position: relative;
}

.media-container video {
  max-width: 100%;
  max-height: 520px;
  width: auto;
  height: auto;
  border-radius: var(--radius-md);
  outline: none;
  display: block;
}

.media-container audio {
  width: 280px;
  margin: 1.5rem;
  outline: none;
}

.media-container img {
  max-width: 100%;
  max-height: 520px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-md);
  display: block;
}

/* Format & Quality Download Options */
.options-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 1.2rem;
}

.option-btn {
  width: 100%;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  background: var(--gradient-wolf);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(255, 0, 122, 0.3);
  transition: all 0.25s ease;
}

.option-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 0, 122, 0.5);
}

.option-btn.audio-option {
  background: linear-gradient(90deg, #1db954 0%, #10b981 100%);
  box-shadow: 0 4px 15px rgba(29, 185, 84, 0.3);
}

.option-btn.audio-option:hover {
  box-shadow: 0 8px 25px rgba(29, 185, 84, 0.5);
}

/* Action Grid Buttons */
.action-grid {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.action-btn {
  flex: 1 1 140px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  border: none;
  transition: all 0.25s ease;
}

.embed-btn {
  background: rgba(88, 101, 242, 0.15);
  border: 1px solid rgba(88, 101, 242, 0.3);
  color: #5865F2;
}

.embed-btn:hover {
  background: #5865F2;
  color: #ffffff;
}

.direct-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.direct-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.feature-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-4px);
}

.feature-icon {
  width: 46px;
  height: 46px;
  background: rgba(255, 0, 122, 0.1);
  border: 1px solid rgba(255, 0, 122, 0.2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-pink);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.feature-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* FAQ Section */
.faq-section {
  margin-bottom: 4rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 1.8rem;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1rem 1.4rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.faq-item[open] {
  border-color: rgba(255, 0, 122, 0.3);
}

.faq-question {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  outline: none;
  user-select: none;
  color: var(--text-primary);
}

.faq-answer {
  margin-top: 0.8rem;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* Footer */
.footer {
  margin-top: auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-wolf-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.footer-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
}

.footer-credit {
  font-size: 0.95rem;
  color: #e2e8f0;
}

.footer-credit strong {
  color: var(--accent-pink);
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.hidden {
  display: none !important;
}

/* Mobile Responsive Adjustments */
@media (max-width: 640px) {
  .app-wrapper {
    padding: 1rem 0.8rem;
  }
  .header {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.2rem;
  }
  .logo-container {
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
  }
  .brand-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    text-align: center;
  }
  .brand-title {
    font-size: 1.6rem;
    line-height: 1.2;
  }
  .brand-tag {
    margin-left: 0;
    margin-top: 2px;
    font-size: 0.65rem;
  }
  .header-status {
    font-size: 0.78rem;
    padding: 5px 14px;
  }
  .hero-title {
    font-size: 1.5rem;
  }
  .hero-subtitle {
    font-size: 0.88rem;
  }
  .platform-tabs {
    margin-bottom: 1.5rem;
    gap: 6px;
  }
  .tab-btn {
    padding: 8px 14px;
    font-size: 0.82rem;
  }
  .input-card {
    padding: 1rem;
  }
  .input-wrapper {
    padding: 2px 4px;
  }
  #url-input {
    font-size: 0.9rem;
    padding: 10px 0;
  }
  .btn-primary {
    padding: 14px;
    font-size: 1rem;
  }
  .media-result-card {
    padding: 1rem;
    min-width: 100%;
  }
  .card-header {
    margin-bottom: 0.8rem;
  }
  .result-title {
    font-size: 1rem;
  }
  .action-grid {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
  }
  .action-btn {
    width: auto;
    flex: 0 1 auto;
    padding: 7px 12px;
    font-size: 0.78rem;
    border-radius: var(--radius-sm);
  }
  .playlist-track-row {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 10px;
  }
  .playlist-track-btn {
    width: 100%;
    justify-content: center;
  }
}
