/* Main Styles for YouTube to MP3 Converter */

/* Global Styles */
body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #333;
    line-height: 1.6;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
    padding: 80px 0;
}

.hero-section h1 {
    color: #212529;
    font-weight: 700;
}

.converter-box {
    transition: all 0.3s ease;
    border-radius: 10px;
}

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

/* Feature Icons */
.feature-icon {
    height: 80px;
    width: 80px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
}

/* Cards */
.card {
    transition: all 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
}

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

/* How It Works Section */
.step {
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.step:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.step-number .badge {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto;
}

/* FAQ Section */
.accordion-button:not(.collapsed) {
    background-color: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(13, 110, 253, 0.25);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
}

/* Language Switcher */
.language-switcher {
    display: flex;
    align-items: center;
    margin-left: 15px;
}

.language-switcher .dropdown-toggle::after {
    margin-left: 0.5em;
}

.language-switcher .dropdown-menu {
    min-width: 100px;
}

.language-switcher .flag-icon {
    width: 20px;
    height: 15px;
    margin-right: 5px;
    object-fit: cover;
}

.language-switcher .nav-link {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
}

.language-switcher .dropdown-item {
    display: flex;
    align-items: center;
}

/* Footer */
.footer {
    background-color: #212529;
}

.footer a:hover {
    color: #0d6efd !important;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: #0d6efd;
    transform: translateY(-3px);
}

/* Result Container */
#result-container {
    transition: all 0.3s ease;
}

#download-btn {
    transition: all 0.3s ease;
}

#download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(25, 135, 84, 0.3);
}

/* Loading Animation */
@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }
    
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
    }
    
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

.spinner-border.text-danger {
    animation: spinner-border 0.75s linear infinite, pulse 2s infinite;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section {
        padding: 50px 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .converter-box {
        padding: 15px !important;
    }
    
    .step {
        margin-bottom: 20px;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Tooltip Styling */
.tooltip {
    font-size: 0.8rem;
}

/* Custom Input Focus */
.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Navbar Custom Styling */
.navbar-brand {
    font-weight: 700;
    font-size: 1.4rem;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: #0d6efd;
}

/* Custom Button Hover Effects */
.btn {
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

/* Image Hover Effects */
.card-img-top {
    transition: all 0.5s ease;
}

.card:hover .card-img-top {
    transform: scale(1.05);
}
