/* Custom CSS for Video Downloader */

:root {
  --primary-color: #1da1f2;
  --secondary-color: #e1306c;
  --accent-color: #4267b2;
  --gradient-start: #667eea;
  --gradient-end: #764ba2;
  --dark-bg: #1a1a1a;
  --light-bg: #f8f9fa;
  --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Global Styles */
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  padding-top: 76px; /* Account for fixed navbar */
  max-width: 80%;
  margin: 0 auto;
  background: #f8f9fa;
}

/* Gradient Text */
.gradient-text {
  background: linear-gradient(
    135deg,
    #ffffff 0%,
    #e0f2fe 25%,
    #bae6fd 50%,
    #7dd3fc 75%,
    #38bdf8 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
  animation: textGlow 2s ease-in-out infinite alternate;
}

@keyframes textGlow {
  0% { filter: brightness(1); }
  100% { filter: brightness(1.2); }
}

/* Navigation */
.navbar {
  box-shadow: var(--shadow-light);
  backdrop-filter: blur(10px);
  background: rgba(13, 110, 253, 0.95) !important;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 25%, #3b82f6 50%, #60a5fa 75%, #93c5fd 100%);
  color: white;
  padding: 0;
  position: relative;
  overflow: hidden;
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(59, 130, 246, 0.2) 0%, transparent 50%);
  animation: float 6s ease-in-out infinite;
}

.hero-section::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
  opacity: 0.4;
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(1deg); }
}

@keyframes shimmer {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.6; }
}

.hero-section .container {
  position: relative;
  z-index: 2;
  padding: 0;
}

/* Hero Text Styles */
.hero-section h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  text-align: center;
  letter-spacing: -0.02em;
}

.hero-section .lead {
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: 3rem;
  text-align: center;
  opacity: 0.95;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-section .form-text {
  font-size: 0.95rem;
  opacity: 0.8;
  margin-top: 1rem;
  text-align: center;
  font-weight: 500;
  display: none; /* Desteklenen platformlar yazısını gizle */
}

/* Floating Elements */
.floating-element {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  animation: floatElement 8s ease-in-out infinite;
}

.floating-element:nth-child(1) {
  width: 80px;
  height: 80px;
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.floating-element:nth-child(2) {
  width: 60px;
  height: 60px;
  top: 60%;
  right: 15%;
  animation-delay: 2s;
}

.floating-element:nth-child(3) {
  width: 40px;
  height: 40px;
  top: 30%;
  right: 25%;
  animation-delay: 4s;
}

@keyframes floatElement {
  0%, 100% { 
    transform: translateY(0px) rotate(0deg); 
    opacity: 0.7;
  }
  50% { 
    transform: translateY(-30px) rotate(180deg); 
    opacity: 1;
  }
}

/* URL Input Container */
.url-input-container {
  max-width: 500px;
  margin: 0 auto;
  position: relative;
}

.url-input-container::before {
  content: "";
  position: absolute;
  top: -20px;
  left: -20px;
  right: -20px;
  bottom: -20px;
  background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  border-radius: 60px;
  z-index: -1;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.input-group-lg .form-control {
  border-radius: 50px 0 0 50px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  padding: 18px 30px;
  font-size: 1.1rem;
  color: #1e40af;
  transition: all 0.3s ease;
}

.input-group-lg .form-control:focus {
  border-color: #3b82f6;
  box-shadow: 
    0 0 0 3px rgba(59, 130, 246, 0.2),
    0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 1);
}

.input-group-lg .form-control::placeholder {
  color: #64748b;
  font-weight: 400;
}

.input-group-lg .btn {
  border-radius: 0 50px 50px 0;
  padding: 18px 35px;
  font-weight: 700;
  font-size: 1.1rem;
  border: none;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 50%, #1e40af 100%);
  box-shadow: 
    0 8px 32px rgba(59, 130, 246, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.input-group-lg .btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.input-group-lg .btn:hover::before {
  left: 100%;
}

.input-group-lg .btn:hover {
  transform: translateY(-3px);
  box-shadow: 
    0 12px 40px rgba(59, 130, 246, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 50%, #1e3a8a 100%);
}

.input-group-lg .btn:active {
  transform: translateY(-1px);
}

/* Features Section */
.features-section {
  padding: 100px 0;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  position: relative;
  overflow: hidden;
}

.features-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(147, 197, 253, 0.05) 0%, transparent 50%);
}

.section-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
  position: relative;
  z-index: 2;
}

.section-subtitle {
  font-size: 1.3rem;
  color: #64748b;
  margin-bottom: 4rem;
  text-align: center;
  font-weight: 500;
  position: relative;
  z-index: 2;
}

.feature-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 50px 40px;
  border-radius: 24px;
  box-shadow: 
    0 10px 40px rgba(0, 0, 0, 0.1),
    0 4px 20px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6, #60a5fa, #93c5fd);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 
    0 20px 60px rgba(59, 130, 246, 0.15),
    0 8px 30px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.feature-icon {
  width: 90px;
  height: 90px;
  margin: 0 auto 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 2.2rem;
  color: white;
  position: relative;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.feature-icon::before {
  content: "";
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border-radius: 50%;
  background: linear-gradient(45deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover .feature-icon::before {
  opacity: 1;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
}

.feature-card:nth-child(1) .feature-icon {
  background: linear-gradient(135deg, #1da1f2 0%, #0d8bd9 50%, #0a7bb8 100%);
}

.feature-card:nth-child(2) .feature-icon {
  background: linear-gradient(135deg, #e1306c 0%, #c13584 50%, #a02d6b 100%);
}

.feature-card:nth-child(3) .feature-icon {
  background: linear-gradient(135deg, #4267b2 0%, #365899 50%, #2d4a7c 100%);
}

.feature-card h5 {
  font-weight: 700;
  margin-bottom: 20px;
  color: #1e40af;
  font-size: 1.4rem;
  text-align: center;
  position: relative;
}

.feature-card h5::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
  border-radius: 2px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover h5::after {
  opacity: 1;
}

.feature-card p {
  color: #64748b;
  margin-bottom: 0;
  line-height: 1.7;
  text-align: center;
  font-size: 1rem;
  font-weight: 400;
}

/* How it Works Section */
.how-it-works-section {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  padding: 100px 0 120px 0;
  position: relative;
  overflow: hidden;
}

.how-it-works-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(147, 197, 253, 0.05) 0%, transparent 50%);
}

.how-it-works-section .section-title {
  color: #1e40af;
  text-shadow: none;
}

.how-it-works-section .section-subtitle {
  color: #64748b;
}

.step-card {
  background: white;
  padding: 50px 40px;
  border-radius: 24px;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.08),
    0 8px 30px rgba(0, 0, 0, 0.04),
    0 2px 10px rgba(0, 0, 0, 0.02);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  border: 1px solid rgba(226, 232, 240, 0.5);
  overflow: hidden;
  height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.step-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.03), rgba(147, 197, 253, 0.03));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.step-card:hover::before {
  opacity: 1;
}

.step-card:hover {
  transform: translateY(-15px);
  box-shadow: 
    0 30px 80px rgba(0, 0, 0, 0.12),
    0 12px 40px rgba(0, 0, 0, 0.06),
    0 4px 15px rgba(0, 0, 0, 0.03);
}

.step-number {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 50%, #1e40af 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 800;
  margin: 0 0 25px 0;
  position: relative;
  box-shadow: 
    0 10px 30px rgba(59, 130, 246, 0.3),
    0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.step-number::before {
  content: "";
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.step-card:hover .step-number::before {
  opacity: 1;
}

.step-card:hover .step-number {
  transform: scale(1.1) rotate(10deg);
  box-shadow: 
    0 15px 40px rgba(59, 130, 246, 0.4),
    0 6px 20px rgba(0, 0, 0, 0.15);
}

.step-card h5 {
  font-weight: 700;
  margin-bottom: 20px;
  color: #1e40af;
  font-size: 1.4rem;
  text-align: center;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.step-card h5::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
  border-radius: 2px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.step-card:hover h5::after {
  opacity: 1;
}

.step-card p {
  color: #64748b;
  margin-bottom: 0;
  line-height: 1.7;
  text-align: center;
  font-size: 1rem;
  font-weight: 400;
  position: relative;
  z-index: 2;
  flex-grow: 1;
  display: flex;
  align-items: center;
}

/* Modals */
.modal-content {
  border-radius: 20px;
  border: none;
  box-shadow: var(--shadow-medium);
}

.modal-header {
  border-bottom: 1px solid #eee;
  padding: 20px 30px;
}

.modal-body {
  padding: 30px;
}

.progress {
  height: 10px;
  border-radius: 5px;
  background-color: #e9ecef;
}

.progress-bar {
  border-radius: 5px;
  background: linear-gradient(
    45deg,
    var(--gradient-start),
    var(--gradient-end)
  );
  transition: width 0.3s ease;
}

/* Video Preview */
#videoPreview {
  text-align: center;
  margin-bottom: 20px;
}

#videoPreview video {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: var(--shadow-light);
}

#downloadOptions .btn {
  border-radius: 10px;
  padding: 12px 20px;
  font-weight: 600;
  transition: all 0.3s ease;
}

#downloadOptions .btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-light);
}

/* Footer */
.footer {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%) !important;
  padding: 40px 0;
  color: white;
}

.footer p {
  color: white !important;
}

.footer small {
  color: rgba(255, 255, 255, 0.8) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
  body {
    max-width: 90%;
  }

  .hero-section {
    height: 90vh;
  }

  .hero-section .container {
    padding: 20px 0;
  }

  .hero-section h1 {
    font-size: 2.8rem;
    margin-bottom: 1.2rem;
  }

  .hero-section .lead {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
  }

  .url-input-container {
    max-width: 100%;
    padding: 0 15px;
  }

  .input-group-lg .form-control,
  .input-group-lg .btn {
    border-radius: 25px;
    margin-bottom: 10px;
    padding: 15px 20px;
  }

  .input-group-lg .btn {
    width: 100%;
    font-size: 1rem;
  }

  .floating-element {
    display: none;
  }

  .section-title {
    font-size: 2.5rem;
  }

  .features-section {
    padding: 80px 0;
  }

  .feature-card {
    padding: 40px 30px;
    margin-bottom: 30px;
  }

  .feature-icon {
    width: 80px;
    height: 80px;
    font-size: 2rem;
  }

  .feature-card h5 {
    font-size: 1.2rem;
  }

  .how-it-works-section {
    padding: 80px 0 100px 0;
  }

  .step-card {
    padding: 40px 30px;
    margin-bottom: 30px;
    height: 250px;
  }

  .step-number {
    width: 70px;
    height: 70px;
    font-size: 1.6rem;
  }

  .step-card h5 {
    font-size: 1.2rem;
  }
}

@media (max-width: 576px) {
  body {
    max-width: 95%;
  }

  .hero-section {
    height: 90vh;
  }

  .hero-section .container {
    padding: 15px 0;
  }

  .hero-section h1 {
    font-size: 2.2rem;
    line-height: 1.2;
  }

  .hero-section .lead {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .url-input-container::before {
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
  }

  .input-group-lg .form-control {
    padding: 12px 18px;
    font-size: 1rem;
  }

  .input-group-lg .btn {
    padding: 12px 25px;
    font-size: 0.95rem;
  }

  .feature-card {
    padding: 35px 25px;
  }

  .feature-icon {
    width: 70px;
    height: 70px;
    font-size: 1.8rem;
  }

  .feature-card h5 {
    font-size: 1.1rem;
  }

  .step-card {
    padding: 35px 25px;
    height: 220px;
  }

  .step-number {
    width: 60px;
    height: 60px;
    font-size: 1.4rem;
  }

  .step-card h5 {
    font-size: 1.1rem;
  }

  .modal-body {
    padding: 20px;
  }
}

/* Loading Animation */
.loading-dots {
  display: inline-block;
  position: relative;
  width: 80px;
  height: 80px;
}

.loading-dots div {
  position: absolute;
  top: 33px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--primary-color);
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
}

.loading-dots div:nth-child(1) {
  left: 8px;
  animation: loading-dots1 0.6s infinite;
}

.loading-dots div:nth-child(2) {
  left: 8px;
  animation: loading-dots2 0.6s infinite;
}

.loading-dots div:nth-child(3) {
  left: 32px;
  animation: loading-dots2 0.6s infinite;
}

.loading-dots div:nth-child(4) {
  left: 56px;
  animation: loading-dots3 0.6s infinite;
}

@keyframes loading-dots1 {
  0% {
    transform: scale(0);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes loading-dots3 {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(0);
  }
}

@keyframes loading-dots2 {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(24px, 0);
  }
}

/* Alert Styles */
.alert {
  border-radius: 15px;
  border: none;
  box-shadow: var(--shadow-light);
}

.alert-success {
  background: linear-gradient(45deg, #d4edda, #c3e6cb);
  color: #155724;
}

.alert-danger {
  background: linear-gradient(45deg, #f8d7da, #f5c6cb);
  color: #721c24;
}

.alert-warning {
  background: linear-gradient(45deg, #fff3cd, #ffeaa7);
  color: #856404;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}
