/**
 * SPA Links Template Styles
 * Style inspiré de Taplink
 */

/* Import des polices Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@400;700&family=Open+Sans:wght@400;600;700&family=PT+Mono:wght@400;700&display=swap');

/* Variables CSS pour le thème */
:root {
    --spa-links-bg-color: #040804;
    --spa-links-text-color: #ffffff;
    --spa-links-link-bg: #e3c39f;
    --spa-links-link-color: #000000;
    --spa-links-link-radius: 10px;
    --spa-links-font-family: 'Open Sans', sans-serif;
    --spa-links-heading-font: 'Merriweather', serif;
}

/* Container principal */
.spa-links-wrapper {
    min-height: 100vh;
    background-color: var(--spa-links-bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    font-family: var(--spa-links-font-family);
}

.spa-links-container {
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
    padding: 2rem 0;
}

/* Avatar / Logo */
.spa-links-avatar {
    text-align: center;
    margin-bottom: 2rem;
}

.spa-links-avatar-inner {
    display: inline-block;
    position: relative;
}

.spa-links-logo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

/* Liste des liens */
.spa-links-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0 1rem;
}

/* Boutons de liens */
.spa-link-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--spa-links-link-bg);
    color: var(--spa-links-link-color);
    text-decoration: none;
    border-radius: var(--spa-links-link-radius);
    padding: 1rem 2rem;
    min-height: 60px;
    transition: transform 0.5s cubic-bezier(0.2, 2, 0.2, 1),
                opacity 0.5s cubic-bezier(0.2, 2, 0.2, 1),
                box-shadow 0.5s cubic-bezier(0.2, 2, 0.2, 1);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.spa-link-button:hover {
    opacity: 0.9;
    text-decoration: none;
    color: var(--spa-links-link-color);
}

.spa-link-button:focus {
    outline: 2px solid var(--spa-links-link-bg);
    outline-offset: 2px;
}

/* Titre du lien */
.spa-link-title {
    font-family: var(--spa-links-font-family);
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.2;
    letter-spacing: 0px;
    text-align: center;
    word-break: break-word;
}

/* Message vide */
.spa-links-empty {
    text-align: center;
    color: var(--spa-links-text-color);
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: var(--spa-links-link-radius);
}

.spa-links-empty p {
    margin: 0.5rem 0;
}

.spa-links-empty small {
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 768px) {
    .spa-links-wrapper {
        padding: 1rem 0.5rem;
    }

    .spa-links-container {
        padding: 1rem 0;
    }

    .spa-links-logo {
        width: 120px;
        height: 120px;
    }

    .spa-link-button {
        padding: 0.875rem 1.5rem;
        min-height: 52px;
    }

    .spa-link-title {
        font-size: 14px;
    }

    .spa-links-list {
        gap: 0.75rem;
        padding: 0 0.5rem;
    }
}

@media (max-width: 480px) {
    .spa-links-logo {
        width: 100px;
        height: 100px;
    }

    .spa-link-button {
        padding: 0.75rem 1rem;
        min-height: 48px;
    }

    .spa-link-title {
        font-size: 13px;
    }
}

/* Animation subtile au chargement */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.spa-link-button {
    animation: fadeInUp 0.5s ease-out backwards;
}

.spa-link-button:nth-child(1) { animation-delay: 0.1s; }
.spa-link-button:nth-child(2) { animation-delay: 0.2s; }
.spa-link-button:nth-child(3) { animation-delay: 0.3s; }
.spa-link-button:nth-child(4) { animation-delay: 0.4s; }
.spa-link-button:nth-child(5) { animation-delay: 0.5s; }
.spa-link-button:nth-child(6) { animation-delay: 0.6s; }
.spa-link-button:nth-child(7) { animation-delay: 0.7s; }
.spa-link-button:nth-child(8) { animation-delay: 0.8s; }

/* Logo animation */
.spa-links-avatar {
    animation: fadeInUp 0.5s ease-out;
}

/* Si on veut masquer le header/footer WordPress sur une page complète */
.page-template-spa-links .site-header,
.page-template-spa-links .site-footer,
body.spa-links-fullpage #header,
body.spa-links-fullpage #footer {
    display: none !important;
}

body.spa-links-fullpage {
    margin: 0;
    padding: 0;
}
