/* style.css */
:root {
    --primary-color: #6d28d9;
    --primary-light: #8b5cf6;
    --primary-dark: #4c1d95;
    --text-color: #333;
    --text-light: #666;
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --border-radius: 12px;
    --box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* Header Styles */
.glass-header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 15px 0;
}

.brand-logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    margin-right: 10px;
    vertical-align: middle;
}

.brand-name {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
    vertical-align: middle;
}

.nav-link {
    color: var(--text-color);
    font-weight: 500;
    padding: 8px 15px !important;
    margin: 0 5px;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
    background: rgba(109, 40, 217, 0.1);
}

.nav-link i {
    margin-right: 8px;
}

/* Hero Section */
.hero-section {
    padding: 120px 0 60px;
    text-align: center;
    background: linear-gradient(135deg, rgba(109, 40, 217, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    margin-bottom: 40px;
}

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 15px;
    background: linear-gradient(to right, var(--primary-color), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Search Container */
.search-container {
    max-width: 800px;
    margin: 0 auto;
}

.input-group {
    display: flex;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

#inputUrl {
    flex: 1;
    padding: 15px 20px;
    border: none;
    font-size: 1rem;
    background: var(--card-bg);
    color: var(--text-color);
}

#inputUrl:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.2);
}

.btn-download {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0 25px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.btn-download:hover {
    background: var(--primary-dark);
}

.btn-download i {
    font-size: 1.1rem;
}

/* Loading Animation */
.loading-container {
    text-align: center;
    display: none;
    margin: 30px auto;
    max-width: 500px;
}

.wave-loader {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 120px;
}

.wave {
    width: 6px;
    height: 60px;
    background: linear-gradient(45deg, var(--primary-color), var(--primary-light));
    margin: 0 5px;
    border-radius: 20px;
    animation: wave 1s linear infinite;
}

.wave:nth-child(2) { animation-delay: 0.1s; }
.wave:nth-child(3) { animation-delay: 0.2s; }
.wave:nth-child(4) { animation-delay: 0.3s; }
.wave:nth-child(5) { animation-delay: 0.4s; }
.wave:nth-child(6) { animation-delay: 0.5s; }
.wave:nth-child(7) { animation-delay: 0.6s; }
.wave:nth-child(8) { animation-delay: 0.7s; }
.wave:nth-child(9) { animation-delay: 0.8s; }
.wave:nth-child(10) { animation-delay: 0.9s; }

.loading-text {
    margin-top: 20px;
    font-size: 1.1rem;
    color: var(--text-light);
    font-weight: 500;
}

/* Results Container */
.results-container {
    display: none;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    margin-bottom: 40px;
}

.video-preview {
    width: 100%;
    background: #000;
}

.video-preview video {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    background: #000;
}

.video-info {
    padding: 25px;
    text-align: left;
}

.video-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.video-description {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.7;
}

.video-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.meta-item i {
    color: var(--primary-color);
}

/* Download Options */
.download-options {
    padding: 20px;
    background: rgba(109, 40, 217, 0.05);
    border-top: 1px solid rgba(109, 40, 217, 0.1);
}

.options-title {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.download-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.dlbtns {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: var(--border-radius);
    font-weight: 600;
    color: white;
    cursor: pointer;
    min-width: 160px;
    transition: var(--transition);
    text-decoration: none;
    border: none;
    gap: 8px;
}

.dlbtns i {
    font-size: 1rem;
}

.dlbtns:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Features Section */
.features-section {
    margin: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: var(--text-color);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--primary-light));
    margin: 15px auto 0;
    border-radius: 2px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.feature-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: rgba(109, 40, 217, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary-color);
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Footer */
.main-footer {
    background: var(--card-bg);
    padding: 40px 0 20px;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.03);
    margin-top: 60px;
}

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

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(109, 40, 217, 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--text-light);
    font-size: 0.9rem;
}

.copyright a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

/* Animations */
@keyframes wave {
    0% { transform: scale(0); }
    50% { transform: scale(1); }
    100% { transform: scale(0); }
}

/* Responsive Styles */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    #inputUrl {
        border-radius: var(--border-radius) var(--border-radius) 0 0;
    }
    
    .btn-download {
        border-radius: 0 0 var(--border-radius) var(--border-radius);
        padding: 15px;
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .brand-name {
        font-size: 1.2rem;
    }
    
    .nav-link {
        padding: 8px 10px !important;
        font-size: 0.9rem;
    }
    
    .video-title {
        font-size: 1.3rem;
    }
    
    .video-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .dlbtns {
        min-width: 100%;
    }

/* Mobile Responsiveness Fixes */
@media only screen and (max-width: 767px) {
    .search-container {
      width: 95%;
      margin: 0 auto;
      padding: 0 10px;
    }
  
    .input-group {
      flex-direction: column;
      border-radius: 12px;
      overflow: hidden;
    }
  
    #inputUrl {
      width: 100%;
      border-radius: 12px 12px 0 0 !important;
      padding: 12px 15px;
      font-size: 14px;
    }
  
    .btn-download {
      width: 100%;
      border-radius: 0 0 12px 12px !important;
      padding: 12px;
      justify-content: center;
    }
  
    .hero-section {
      padding: 100px 0 40px;
    }
  
    .hero-content h1 {
      font-size: 1.8rem;
      line-height: 1.3;
    }
  
    .subtitle {
      font-size: 1rem;
      padding: 0 10px;
    }
  }
  
/* Better touch targets */
input, button {
    min-height: 44px; /* Apple recommended minimum */
    touch-action: manipulation;
  }
#inputUrl:focus, #downloadBtn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
  }
}

/* Guide Section */
.guide-section {
    padding: 60px 0;
    background: linear-gradient(to bottom, rgba(109, 40, 217, 0.03), rgba(255, 255, 255, 0));
}

.guide-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.step {
    display: flex;
    gap: 20px;
    background: var(--card-bg);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.step:hover {
    transform: translateY(-5px);
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

.step-content p {
    color: var(--text-light);
    line-height: 1.6;
}

/* FAQ Section */
.faq-section {
    padding: 60px 0;
    background-color: var(--bg-color);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.faq-question {
    width: 100%;
    padding: 18px 25px;
    text-align: left;
    background: var(--card-bg);
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.faq-question:hover {
    background: rgba(109, 40, 217, 0.05);
}

.faq-question i {
    transition: transform 0.3s ease;
}

.faq-question.active i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: var(--card-bg);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.faq-answer p {
    padding: 15px 0;
    color: var(--text-light);
    line-height: 1.7;
}

.faq-answer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.faq-answer a:hover {
    text-decoration: underline;
}


/* Blog Page Styles */
.blog-content {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 1.1rem;
}

.blog-content ol,
.blog-content ul {
    margin: 20px 0;
    padding-left: 20px;
}

.blog-content li {
    margin-bottom: 15px;
}

.blog-content strong {
    color: var(--text-color);
}

.blog-content p {
    margin-bottom: 20px;
}

.text-muted {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 30px;
    display: block;
}

@media (max-width: 768px) {
    .blog-content {
        font-size: 1rem;
    }
    
    .blog-content li {
        margin-bottom: 10px;
    }
}

/* Ensure navbar toggler works properly */
.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Better dropdown styling */
.dropdown-menu {
    border: none;
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
    padding: 0;
    overflow: hidden;
}

.dropdown-item {
    padding: 10px 20px;
    transition: var(--transition);
}

.dropdown-item:hover {
    background-color: rgba(109, 40, 217, 0.1);
    color: var(--primary-color);
}

.dropdown-item.active, .dropdown-item:active {
    color: var(--text-color);
    text-decoration: none;
    background-color: rgba(109, 40, 217, 0.1);
}

/* Add padding to main content to account for fixed header */
main.container.py-5 {
    padding-top: 100px !important; /* Adjust this value based on your header height */
}

/* For mobile devices */
@media (max-width: 768px) {
    main.container.py-5 {
        padding-top: 80px !important;
    }
}

/* Combined Intro & Platforms Card */
.intro-platform-card {
    padding: 40px;
    text-align: center;
}

.intro-content h2 {
    font-size: 1.8rem;
    color: var(--text-color);
    margin-bottom: 20px;
    background: linear-gradient(to right, var(--primary-color), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.intro-text {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.platforms-title {
    font-size: 1.4rem;
    color: var(--text-color);
    margin: 30px 0 20px;
    position: relative;
    display: inline-block;
}

.platforms-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--primary-light));
    margin: 10px auto 0;
    border-radius: 2px;
}

.platforms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.platform-item {
    padding: 20px;
    border-radius: 10px;
    transition: var(--transition);
}

.platform-item:hover {
    background: rgba(109, 40, 217, 0.05);
}

.platform-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 15px;
    background: rgba(109, 40, 217, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.platform-item h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

.platform-item p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .intro-platform-card {
        padding: 25px;
    }
    
    .intro-content h2 {
        font-size: 1.5rem;
    }
    
    .platforms-grid {
        grid-template-columns: 1fr 1fr;
    }
}

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

/* Language dropdown container */
.language-dropdown .dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Language dropdown menu */
.language-dropdown-menu {
    max-height: 300px;
    overflow-y: auto;
    padding: 0;
    border: none;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    margin-top: 8px;
}

/* Language dropdown items */
.language-dropdown-menu .dropdown-item {
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.language-dropdown-menu .dropdown-item:hover {
    background-color: rgba(109, 40, 217, 0.1);
    color: #6d28d9;
}

/* Language name styling */
.language-dropdown-menu .dropdown-item span[lang] {
    font-weight: 500;
    min-width: 120px;
}

/* Scrollbar styling */
.language-dropdown-menu::-webkit-scrollbar {
    width: 8px;
}

.language-dropdown-menu::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.language-dropdown-menu::-webkit-scrollbar-thumb {
    background: #8b5cf6;
    border-radius: 4px;
}

.language-dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: #6d28d9;
}

/* Active language indicator */
.language-dropdown-menu .dropdown-item.active {
    background-color: rgba(109, 40, 217, 0.1);
    color: #6d28d9;
    font-weight: 600;
}

/* Mobile styles */
@media (max-width: 768px) {
    .language-dropdown-menu {
        max-height: 60vh;
        width: auto;
        min-width: 200px;
        right: 0 !important;
        left: auto !important;
    }
    
    .language-dropdown-menu .dropdown-item {
        padding: 12px 20px;
    }
    
    .language-dropdown .dropdown-toggle::after {
        margin-left: auto;
    }
}

/* RTL language support */
[dir="rtl"] .language-dropdown-menu {
    right: auto !important;
    left: 0 !important;
    text-align: right;
}

[dir="rtl"] .language-dropdown-menu .dropdown-item {
    text-align: right;
    flex-direction: row-reverse;
}