/**
 * Alto About Page Styles
 * Design modal avec fond gris et boîte blanche centrée
 * Palette: Teal #5BA3A0 + Orange #D97C4A
 */

/* Reset de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: transparent;
    margin: 0;
    padding: 0;
}

/* Overlay modal - fond gris semi-transparent - FORCER AU-DESSUS D'AXELOR */
.about-modal-overlay,
#alto-about-modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.6) !important; /* Fond noir semi-transparent */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 999999 !important; /* Le plus haut possible */
    padding: 20px !important;
    backdrop-filter: blur(2px); /* Effet flou moderne (optionnel) */
}

/* Contenu modal - boîte blanche centrée - AU-DESSUS DE L'OVERLAY */
.about-modal-content {
    background: #ffffff !important;
    border-radius: 8px !important;
    padding: 40px !important;
    max-width: 650px !important;
    width: 90% !important;
    max-height: 85vh !important;
    overflow-y: auto !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3) !important;
    animation: slideIn 0.3s ease-out;
    position: relative !important;
    z-index: 1000000 !important; /* Au-dessus de l'overlay */
}

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

/* Header avec logo */
.about-header {
    text-align: center;
    margin-bottom: 30px;
}

.about-logo {
    max-width: 300px;
    height: auto;
    display: inline-block;
}

/* Section titre */
.about-title-section {
    text-align: center;
    margin-bottom: 25px;
}

.about-title {
    font-size: 22px;
    font-weight: 600;
    color: #5BA3A0; /* Teal Alto */
    margin-bottom: 8px;
}

.about-subtitle {
    font-size: 16px;
    color: #555;
    margin-bottom: 12px;
}

.about-version {
    font-size: 14px;
    color: #777;
    font-weight: 500;
}

/* Copyright */
.about-copyright-section {
    text-align: center;
    margin: 20px 0;
}

.about-copyright {
    font-size: 13px;
    color: #666;
}

/* Liens */
.about-links-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin: 20px 0;
}

.about-link {
    color: #5BA3A0; /* Teal Alto */
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
    padding: 4px 8px;
    border-radius: 4px;
}

.about-link:hover {
    color: #D97C4A; /* Orange Alto */
    background: #fdf5f0;
    text-decoration: underline;
}

/* Séparateur */
.about-separator {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 30px 0;
}

/* Section SDK */
.about-sdk-section {
    text-align: center;
    margin: 25px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 6px;
}

.about-sdk-title {
    font-size: 18px;
    font-weight: 600;
    color: #5BA3A0; /* Teal Alto */
    margin-bottom: 10px;
}

.about-sdk-version {
    font-size: 14px;
    color: #555;
    margin-bottom: 8px;
    font-weight: 500;
}

.about-sdk-build {
    font-size: 12px;
    color: #999;
    font-family: 'Courier New', monospace;
    margin-bottom: 12px;
}

.about-sdk-copyright {
    font-size: 13px;
    color: #666;
}

/* Footer avec bouton */
.about-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.about-btn-ok {
    background: linear-gradient(135deg, #5BA3A0 0%, #4A8C89 100%); /* Teal gradient */
    color: white;
    border: none;
    border-radius: 6px;
    padding: 12px 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(91, 163, 160, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.about-btn-ok:hover {
    background: linear-gradient(135deg, #4A8C89 0%, #3A7673 100%);
    box-shadow: 0 6px 16px rgba(91, 163, 160, 0.4);
    transform: translateY(-2px);
}

.about-btn-ok:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(91, 163, 160, 0.3);
}

/* Scrollbar personnalisée */
.about-modal-content::-webkit-scrollbar {
    width: 8px;
}

.about-modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.about-modal-content::-webkit-scrollbar-thumb {
    background: #5BA3A0; /* Teal Alto */
    border-radius: 4px;
}

.about-modal-content::-webkit-scrollbar-thumb:hover {
    background: #4A8C89;
}

/* Responsive */
@media (max-width: 768px) {
    .about-modal-content {
        padding: 30px 20px;
    }

    .about-logo {
        max-width: 200px;
    }

    .about-title {
        font-size: 18px;
    }

    .about-btn-ok {
        padding: 10px 40px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .about-modal-overlay {
        padding: 10px;
    }

    .about-modal-content {
        padding: 20px 15px;
        border-radius: 6px;
    }

    .about-logo {
        max-width: 150px;
    }

    .about-title {
        font-size: 16px;
    }

    .about-subtitle {
        font-size: 14px;
    }
}

/* Empêcher le scroll du body quand la modal est ouverte */
body.modal-open,
body.alto-modal-open {
    overflow: hidden !important;
    height: 100vh !important;
}
