/**
 * Styles spécifiques pour la page de conversion MP3
 * Intégré avec le style général du site Fdownloador
 */

/* Couleurs spécifiques à la page MP3 */
.mp3-page {
    --mp3-primary: #4361ee;
    --mp3-secondary: #3f37c9;
    --mp3-gradient-start: #4361ee;
    --mp3-gradient-end: #3f37c9;
    --mp3-accent: #4cc9f0;
    --mp3-light: #f8f9fa;
    --mp3-dark: #212529;
}

/* Hero section avec thème MP3 */
.mp3-hero {
    background: linear-gradient(135deg, var(--mp3-gradient-start), var(--mp3-gradient-end));
    border-radius: var(--border-radius);
    padding: 3rem 2rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.mp3-hero::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: var(--mp3-accent);
    opacity: 0.1;
    border-radius: 50%;
}

.mp3-hero::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 150px;
    height: 150px;
    background: var(--mp3-accent);
    opacity: 0.1;
    border-radius: 50%;
}

.mp3-hero .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.mp3-hero .hero-content h1 {
    font-size: 2.8rem;
    margin-bottom: 1.2rem;
    color: white;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.mp3-hero .hero-content p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Formulaire de conversion */
.downloader-box {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2.5rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.download-form {
    position: relative;
}

.input-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.input-group input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: var(--mp3-primary);
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--mp3-primary);
    font-size: 1.2rem;
}

.options-group {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.8rem;
}

.quality-selector,
.format-selector {
    flex: 1;
}

.quality-selector label,
.format-selector label {
    display: block;
    margin-bottom: 0.7rem;
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.95rem;
}

.quality-selector select,
.format-selector select {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius);
    background-color: var(--white);
    font-size: 1rem;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%234361ee' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 1rem) center;
    padding-right: 2.5rem;
}

.quality-selector select:focus,
.format-selector select:focus {
    outline: none;
    border-color: var(--mp3-primary);
    background-color: var(--white);
    box-shadow: 0 0 0 4px rgba(67, 97, 238, 0.1);
}

/* Bouton de conversion MP3 */
.mp3-page .download-btn {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--border-radius);
    background: linear-gradient(90deg, var(--mp3-gradient-start), var(--mp3-gradient-end));
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
}

.mp3-page .download-btn i {
    font-size: 1.2rem;
}

.mp3-page .download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(67, 97, 238, 0.25);
}

/* Résultat de conversion */
.audio-result {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2.5rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    animation: fadeIn 0.5s ease-out;
}

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

.audio-info {
    display: flex;
    align-items: center;
    margin-bottom: 1.8rem;
}

.audio-thumbnail {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    object-fit: cover;
    margin-right: 2rem;
    border: 3px solid white;
}

.audio-details {
    flex: 1;
}

.audio-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--mp3-dark);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.audio-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    margin-bottom: 1.2rem;
    font-size: 0.95rem;
    color: #555;
}

.audio-meta span {
    display: flex;
    align-items: center;
    background-color: rgba(67, 97, 238, 0.08);
    padding: 0.5rem 0.8rem;
    border-radius: 8px;
}

.audio-meta i {
    margin-right: 0.6rem;
    color: var(--mp3-primary);
}

.audio-quality-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    background: linear-gradient(90deg, var(--mp3-gradient-start), var(--mp3-gradient-end));
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.audio-download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    width: 100%;
    padding: 1.1rem;
    background: linear-gradient(90deg, var(--mp3-gradient-start), var(--mp3-gradient-end));
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    letter-spacing: 0.5px;
}

.audio-download-btn:hover {
    transform: translateY(-3px);
}

.audio-player {
    width: 100%;
    margin: 1.5rem 0;
    border-radius: 8px;
    overflow: hidden;
}

/* FAQ Section */
.faq-section {
    margin-top: 3rem;
    padding: 2rem;
    background-color: var(--white);
    border-radius: var(--border-radius);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.faq-section h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--mp3-dark);
    text-align: center;
}

.faq-items {
    margin-top: 2rem;
}

.faq-item {
    border: 1px solid rgba(67, 97, 238, 0.15);
    border-radius: var(--border-radius);
    margin-bottom: 1.2rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    background-color: rgba(67, 97, 238, 0.02);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background-color: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background-color: rgba(67, 97, 238, 0.03);
}

.faq-question h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--mp3-dark);
    line-height: 1.4;
}

.faq-question i {
    color: var(--mp3-primary);
    transition: transform 0.3s ease;
    font-size: 1.1rem;
    background-color: rgba(67, 97, 238, 0.08);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq-item.active {
    border-color: rgba(67, 97, 238, 0.3);
}

.faq-item.active .faq-question {
    background-color: rgba(67, 97, 238, 0.05);
}

.faq-item.active .faq-question h3 {
    color: var(--mp3-primary);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
    background-color: var(--mp3-primary);
    color: white;
}

.faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background-color: var(--white);
}

.faq-item.active .faq-answer {
    padding: 1.5rem;
    max-height: 500px;
    border-top: 1px solid rgba(67, 97, 238, 0.1);
}

.faq-answer p {
    margin: 0;
    line-height: 1.6;
    color: #555;
    font-size: 1.05rem;
}

/* Responsive design */
@media (max-width: 768px) {
    .mp3-hero {
        padding: 2rem 1.5rem;
    }
    
    .mp3-hero .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .mp3-hero .hero-content p {
        font-size: 1.1rem;
    }
    
    .downloader-box {
        padding: 1.5rem;
    }
    
    .options-group {
        flex-direction: column;
        gap: 1.2rem;
    }
    
    .audio-result {
        padding: 1.5rem;
    }
    
    .audio-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .audio-thumbnail {
        margin-right: 0;
        margin-bottom: 1.5rem;
        width: 150px;
        height: 150px;
    }
    
    .audio-meta {
        justify-content: center;
        gap: 0.8rem;
    }
    
    .audio-quality-badge {
        margin: 0.5rem auto 1rem;
    }
    
    .faq-question h3 {
        font-size: 1rem;
    }
    
    /* Responsive styles for How-to section */
    .how-to-section,
    .features-section,
    .faq-section {
        padding: 1.5rem;
        margin: 2.5rem 0;
    }
    
    .how-to-section h2,
    .features-section h2,
    .faq-section h2 {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .steps,
    .features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .step,
    .feature {
        padding: 1.2rem;
    }
    
    .step-icon {
        width: 60px;
        height: 60px;
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    /* Responsive footer */
    .mp3-page .site-footer {
        padding: 2rem 1.5rem 1.5rem;
        margin-top: 2.5rem;
    }
    
    .mp3-page .footer-links {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .mp3-page .footer-section {
        text-align: center;
    }
    
    .mp3-page .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .mp3-page .social-links {
        justify-content: center;
    }
    
    .mp3-page .footer-section ul li a:hover {
        transform: translateX(0) scale(1.05);
    }
}

/* Section Comment convertir */
.how-to-section {
    margin: 4rem 0;
    padding: 2.5rem;
    background-color: var(--white);
    border-radius: var(--border-radius);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.how-to-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--mp3-gradient-start), var(--mp3-gradient-end));
}

.how-to-section h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    color: var(--mp3-dark);
    text-align: center;
    position: relative;
}

.how-to-section h2::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--mp3-gradient-start), var(--mp3-gradient-end));
    border-radius: 2px;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

.step {
    text-align: center;
    padding: 1.5rem;
    background-color: rgba(67, 97, 238, 0.03);
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    border: 1px solid rgba(67, 97, 238, 0.08);
}

.step:hover {
    transform: translateY(-5px);
    background-color: rgba(67, 97, 238, 0.05);
}

.step-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--mp3-gradient-start), var(--mp3-gradient-end));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
    position: relative;
    color: white;
    font-size: 1.5rem;
}

.step-number {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 25px;
    height: 25px;
    background-color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mp3-primary);
    font-weight: 700;
    font-size: 0.9rem;
}

.step h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: var(--mp3-dark);
}

.step p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
}

/* Features Section */
.features-section {
    margin: 4rem 0;
    padding: 2.5rem;
    background-color: var(--white);
    border-radius: var(--border-radius);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.features-section h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    color: var(--mp3-dark);
    text-align: center;
    position: relative;
}

.features-section h2::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--mp3-gradient-start), var(--mp3-gradient-end));
    border-radius: 2px;
}

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

.feature {
    text-align: center;
    padding: 1.8rem;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    background-color: rgba(67, 97, 238, 0.03);
    border: 1px solid rgba(67, 97, 238, 0.08);
}

.feature:hover {
    transform: translateY(-5px);
    background-color: rgba(67, 97, 238, 0.05);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--mp3-gradient-start), var(--mp3-gradient-end));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
    color: white;
    font-size: 1.4rem;
    box-shadow: 0 8px 20px rgba(67, 97, 238, 0.2);
}

.feature h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: var(--mp3-dark);
}

.feature p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
}

/* Footer styles */
.mp3-page .site-footer {
    margin-top: 4rem;
    padding: 3rem 2rem 2rem;
    background-color: var(--white);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: var(--border-radius);
}

.mp3-page .footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.mp3-page .footer-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    color: var(--mp3-dark);
    position: relative;
    padding-bottom: 0.5rem;
}

.mp3-page .footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--mp3-gradient-start), var(--mp3-gradient-end));
    border-radius: 2px;
}

.mp3-page .footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mp3-page .footer-section ul li {
    margin-bottom: 0.8rem;
}

.mp3-page .footer-section ul li a {
    color: #555;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    display: inline-block;
}

.mp3-page .footer-section ul li a:hover {
    color: var(--mp3-primary);
    transform: translateX(3px);
}

.mp3-page .social-links {
    display: flex;
    gap: 1rem;
}

.mp3-page .social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(67, 97, 238, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mp3-primary);
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.mp3-page .social-links a:hover {
    background-color: var(--mp3-primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.2);
}

.mp3-page .footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    color: #666;
    font-size: 0.9rem;
}

.mp3-page .footer-bottom p {
    margin-bottom: 0.5rem;
}

.mp3-page .disclaimer {
    font-size: 0.85rem;
    color: #888;
}

/* Animation de chargement */
.loader-container {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
}

.loader {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(67, 97, 238, 0.1);
    border-top: 5px solid var(--mp3-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Toast notification */
.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--mp3-primary);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.toast.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -10px);
}

.toast.success {
    background-color: #28a745;
}

.toast.error {
    background-color: #dc3545;
}

.toast.info {
    background-color: var(--mp3-primary);
}
