/* Custom CSS for Video Downloader */

/* Gradient Text */
.gradient-text {
  background: linear-gradient(90deg, #6366f1, #ec4899);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Ad Container */
.ad-container {
  width: 100%;
}

.ad-placeholder {
  height: 250px;
  background-color: #f8f9fa;
  border: 1px dashed #dee2e6;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Custom Button Styles */
.btn-primary {
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  border: none;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: linear-gradient(90deg, #4f46e5, #7c3aed);
  transform: translateY(-1px);
}

/* Card Hover Effect */
.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

/* Custom Tab Styling */
.nav-tabs .nav-link {
  color: #6c757d;
  font-weight: 500;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 0.75rem 1rem;
}

.nav-tabs .nav-link.active {
  color: #6366f1;
  border-bottom: 2px solid #6366f1;
  background-color: transparent;
}

.nav-tabs .nav-link:hover:not(.active) {
  border-bottom: 2px solid #e9ecef;
}

/* Loading Animation */
.loading-spinner {
  display: inline-block;
  width: 1.5rem;
  height: 1.5rem;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

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

/* Responsive Adjustments */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  .card-body {
    padding: 1.25rem;
  }
}

/* Object Fit for Images */
.object-fit-cover {
  object-fit: cover;
}

/* Custom Focus Styles */
.form-control:focus {
  border-color: #a5b4fc;
  box-shadow: 0 0 0 0.25rem rgba(99, 102, 241, 0.25);
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
  body.dark-mode {
    background-color: #121212;
    color: #e0e0e0;
  }

  body.dark-mode .card,
  body.dark-mode .card-header {
    background-color: #1e1e1e;
    border-color: #333;
  }

  body.dark-mode .bg-light {
    background-color: #2a2a2a !important;
  }

  body.dark-mode .text-muted {
    color: #adb5bd !important;
  }

  body.dark-mode .ad-placeholder {
    background-color: #2a2a2a;
    border-color: #444;
  }
}

/* Add Instagram-specific styling after the existing styles */

/* Instagram Button Styles */
.instagram-tab .btn-primary {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  border: none;
}

.instagram-tab .btn-primary:hover {
  background: linear-gradient(45deg, #e6683c, #dc2743, #cc2366, #bc1888, #f09433);
  transform: translateY(-1px);
}

/* Instagram Result Styling */
.instagram-result .ratio video {
  background-color: #000;
}

/* Instagram Author Badge */
.instagram-author-badge {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  margin-left: 8px;
}
