/* Reset CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body principal */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #1b1b1b;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: 100vh;
    padding: 20px;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

/* En-tête avec logo */
.header {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    animation: neonGlow 1.5s ease-in-out infinite alternate;
}

.logo {
    width: 200px;
    height: auto;
    filter: brightness(0) saturate(100%) invert(100%);
}

/* Animation néon pour le logo */
@keyframes neonGlow {
    0% {
        text-shadow: 0 0 15px #ff00ff, 0 0 30px #ff00ff, 0 0 45px #ff00ff, 0 0 60px #ff00ff;
    }

    50% {
        text-shadow: 0 0 25px #00ff00, 0 0 35px #00ff00, 0 0 50px #00ff00, 0 0 75px #00ff00;
    }

    100% {
        text-shadow: 0 0 15px #ff00ff, 0 0 30px #ff00ff, 0 0 45px #ff00ff, 0 0 60px #ff00ff;
    }
}

/* Module de recherche */
.search-container {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    width: 100%;
    max-width: 700px;
}

#urlInput {
    padding: 15px;
    width: 350px;
    background: transparent;
    border: 2px solid #00ff00;
    color: #00ff00;
    font-size: 16px;
    border-radius: 25px;
    transition: border-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

#urlInput:focus {
    border-color: #ff00ff;
    outline: none;
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.7);
}

#scrapButton {
    padding: 15px 25px;
    background-color: #00ff00;
    color: #000;
    border: none;
    border-radius: 25px;
    margin-left: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

#scrapButton:hover {
    background-color: #008800;
    transform: scale(1.05);
}

/* Menu des liens */
.links-container {
    width: 100%;
    margin-top: 40px;
    max-width: 700px;
    overflow: hidden;
}

.links-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    overflow-x: auto;
    animation: slideIn 1.5s ease-in-out;
}

.link-item {
    background: rgba(0, 255, 0, 0.3);
    padding: 15px;
    border-radius: 15px;
    cursor: move;
    transition: transform 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
}

.link-item:hover {
    transform: scale(1.1);
    background-color: rgba(0, 255, 0, 0.5);
}

.delete-btn {
    margin-left: 15px;
    background-color: red;
    color: white;
    border: none;
    padding: 8px;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.delete-btn:hover {
    background-color: darkred;
}

/* Fenêtre d'affichage (iframe) */
.display-container {
    width: 100%;
    height: 500px;
    margin-top: 40px;
    position: relative;
    max-width: 900px;
    overflow: hidden;
    animation: fadeIn 1s ease-out;
}

#site-iframe {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    border: 2px solid #00ff00;
    transition: transform 0.3s ease;
}

#site-iframe:hover {
    transform: scale(1.05);
}

/* Boutons de sauvegarde, importation et exportation */
.control-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    width: 100%;
    max-width: 700px;
}

.control-btn {
    padding: 15px 25px;
    background-color: #00ff00;
    color: #000;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.control-btn:hover {
    background-color: #008800;
    transform: scale(1.05);
}

/* Animation d'entrée pour le menu des liens */
@keyframes slideIn {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(0);
    }
}

/* Animation de fade-in pour l'iframe */
@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

/* Responsivité pour les écrans mobiles */
@media (max-width: 768px) {
    body {
        padding: 15px;
    }

    .search-container {
        flex-direction: column;
        align-items: center;
    }

    #urlInput {
        width: 100%;
        margin-bottom: 15px;
    }

    #scrapButton {
        width: 100%;
    }
}