/* ================================================= */
/* --- Configurações Globais e Variáveis de Cor --- */
/* ================================================= */
:root {
    --background-color: rgb(18, 24, 31);
    --text-color: #F5F5F5;
    --button-bg: rgb(12, 42, 42);
    --button-hover-bg: rgb(50, 230, 226);
    --border-color: rgb(77, 86, 95);
    --shadow-color: rgba(50, 230, 226, 0.2);
}

/* ================================================= */
/* --- Reset Básico e Estilo do Corpo --- */
/* ================================================= */
body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ================================================= */
/* --- Layout Principal --- */
/* ================================================= */
.container {
    max-width: 680px;
    width: 100%;
    text-align: center;
}

/* Estilos do Cabeçalho (Perfil) */
header {
    margin-bottom: 30px;
}
header h1 {
    margin: 0 0 5px;
    font-size: 2.2em;
    font-weight: 700;
    letter-spacing: -1px;
}
header p {
    margin: 0;
    font-size: 1.1em;
    color: #a7a7a7;
}

/* Estilos dos Botões de Link */
main {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.link-button {
    position: relative;
    display: flex;
    align-items: center;
    background-color: var(--button-bg);
    color: var(--text-color);
    text-decoration: none;
    padding: 18px 20px;
    border-radius: 8px;
    font-size: 1em;
    font-weight: bold;
    border: 1px solid var(--border-color);
    transition: background-color 0.3s ease, transform 0.2s ease, color 0.3s ease, box-shadow 0.3s ease;
}
.link-button:hover {
    background-color: var(--button-hover-bg);
    transform: translateY(-2px) scale(1.02);
    color: var(--background-color);
    box-shadow: 0 4px 20px var(--shadow-color);
}
.link-button i {
    position: absolute;
    left: 25px;
    font-size: 1.5em;
    width: 25px;
    text-align: center;
}
.link-button span {
    width: 100%;
    text-align: center;
}
.custom-icon-button .custom-icon {
    position: absolute;
    left: 25px;
    width: 25px;
    height: 25px;
    object-fit: contain;
}

/* Estilos do Rodapé (Ícones) */
footer {
    margin-top: 40px;
}
footer a {
    color: #a7a7a7;
    font-size: 1.6em;
    margin: 0 15px;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.2s ease;
}
footer a:hover {
    color: var(--button-hover-bg);
    transform: scale(1.1);
}

/* ================================================= */
/* --- Estilos para o Perfil (Estático) --- */
/* ================================================= */
.profile-story-ring {
    /* Esta div agora serve apenas como um container */
    margin-bottom: 15px;
}
.profile-picture {
    width: 128px;
    height: 128px;
    border-radius: 50%;
    object-fit: cover;
    /* Uma borda simples e estática usando a cor do tema */
    border: 3px solid var(--border-color);
}

/* ================================================= */
/* --- Estilos para a Galeria Popup (Modal) --- */
/* ================================================= */
@keyframes zoomIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(18, 24, 31, 0.95);
    justify-content: center;
    align-items: center;
}
.modal-content {
    max-width: 85vw;
    max-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: zoomIn 0.3s ease-out;
}
#gallery-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 4px;
}
.close-button, .prev-button, .next-button {
    cursor: pointer;
    position: absolute;
    color: white;
    font-size: 3em;
    font-weight: bold;
    transition: 0.3s;
    user-select: none;
}
.close-button:hover, .prev-button:hover, .next-button:hover {
    color: #bbb;
}
.close-button { top: 20px; right: 35px; }
.prev-button, .next-button { top: 50%; transform: translateY(-50%); }
.prev-button { left: 20px; }
.next-button { right: 20px; }

/* ================================================= */
/* --- Media Queries para Responsividade --- */
/* ================================================= */
@media (max-width: 480px) {
    header h1 {
        font-size: 1.8em;
    }
    .link-button {
        padding: 15px;
    }
    .profile-story-ring {
        width: auto; /* Ajuste para centralização correta */
        height: auto;
    }
    .profile-picture {
        width: 108px;
        height: 108px;
    }
}

@media (min-width: 481px) {
    .modal-content {
        max-width: 550px;
        max-height: 85vh;
    }
}