/* Variáveis globais - Tema Kawaii */
:root {
    --bg-primary: linear-gradient(135deg, #ffeef4 0%, #f3e5ff 100%);
    --bg-secondary: rgba(243, 229, 255, 0.95);
    --text-primary: #b76ed3;
    --text-secondary: #9a6dbb;
    --accent-color: #d183ff;
    --accent-gradient: linear-gradient(45deg, #ff8fab, #d183ff);
    --border-color: #e7c2ff;
    --button-bg: linear-gradient(45deg, #ffb3c6, #c78eff);
    --input-bg: rgba(243, 229, 255, 0.8);
    --card-bg: rgba(243, 229, 255, 0.9);
    --success-color: #b5e0ba;
    --error-color: #ff9aa2;
    --shadow-color: rgba(190, 131, 214, 0.2);
}

/* Reset e estilos base */
* {
    transition: all 0.3s ease;
}

/* Ajuste do background do body - Estilo Kawaii com Lilás */
body {
    font-family: 'Comic Sans MS', 'Segoe UI', Helvetica, Arial, sans-serif;
    background:
        linear-gradient(120deg, #ffecf2 0%, #f1e5ff 100%),
        repeating-linear-gradient(60deg,
            rgba(209, 131, 255, 0.05) 0%,
            rgba(209, 131, 255, 0.05) 1px,
            transparent 1px,
            transparent 15px);
    background-attachment: fixed;
    position: relative;
    margin: 0;
    padding: 20px;
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
}

/* Efeito de brilho no background - Estilo Kawaii com Lilás */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 20%, rgba(209, 131, 255, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(255, 143, 171, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(231, 194, 255, 0.15) 0%, transparent 60%);
    pointer-events: none;
    z-index: -1;
    animation: glowShift 15s infinite alternate;
}

/* Efeito de partículas flutuantes */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(255, 143, 171, 0.05) 20px, transparent 20px),
        radial-gradient(circle at 80% 30%, rgba(255, 194, 209, 0.05) 15px, transparent 15px),
        radial-gradient(circle at 40% 70%, rgba(255, 143, 171, 0.05) 10px, transparent 10px),
        radial-gradient(circle at 70% 80%, rgba(255, 194, 209, 0.05) 25px, transparent 25px);
    background-size: 250px 250px;
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0.3;
        transform: scale(0.8);
    }
    50% {
        opacity: 1;
        transform: scale(1.2) rotate(10deg);
    }
}

/* Animações do background */
@keyframes glowShift {
    0% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.2);
    }

    100% {
        opacity: 0.5;
        transform: scale(1);
    }
}

@keyframes particleFloat {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 100px 100px;
    }
}

/* Efeito de grade sutil */
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(88, 166, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(88, 166, 255, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
    z-index: -1;
}

/* Container principal - Estilo Kawaii */
.container {
    width: 100%;
    max-width: 500px;
    margin: auto;
    background: var(--bg-secondary);
    padding: 40px 30px 30px;
    border-radius: 30px;
    border: 3px solid var(--border-color);
    box-shadow:
        0 12px 40px var(--shadow-color),
        inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    text-align: center;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    -webkit-backdrop-filter: blur(10px);
    background: rgba(255, 240, 245, 0.9);
    /* Decorações kawaii */
    background-image: 
        radial-gradient(circle at 10% 10%, rgba(255, 194, 209, 0.2) 10px, transparent 10px),
        radial-gradient(circle at 90% 10%, rgba(255, 194, 209, 0.2) 10px, transparent 10px),
        radial-gradient(circle at 10% 90%, rgba(255, 194, 209, 0.2) 10px, transparent 10px),
        radial-gradient(circle at 90% 90%, rgba(255, 194, 209, 0.2) 10px, transparent 10px);
}

.container:hover {
    transform: translateY(-5px);
    box-shadow:
        0 12px 40px var(--shadow-color),
        inset 0 0 60px rgba(255, 194, 209, 0.2);
    border-color: #ffa5c0;
}

/* Header - Estilo Kawaii */
.header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.header i {
    font-size: 48px;
    color: var(--accent-color);
    animation: bounce 2s infinite;
    position: relative;
    text-shadow: 0 0 10px rgba(255, 194, 209, 0.7);
}

.header i::after {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    right: -10%;
    bottom: -10%;
    background: radial-gradient(circle at center, rgba(255, 143, 171, 0.3) 0%, transparent 70%);
    z-index: -1;
    animation: glowPulse 2s infinite;
}

.header h1 {
    margin: 0;
    color: var(--text-primary);
    font-size: 2.5em;
    text-shadow: 2px 2px 0 #ffc2d1;
    letter-spacing: 1px;
    font-weight: bold;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-10px) scale(1.1);
    }
}

/* Formulário de busca */
.search-box {
    display: flex;
    gap: 15px;
    margin: 0 auto 30px;
    justify-content: center;
    max-width: 500px;
}

input[type="text"] {
    flex: 1;
    padding: 15px 20px;
    background: var(--input-bg);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-primary);
    font-size: 16px;
    font-family: 'Comic Sans MS', cursive;
    box-shadow: inset 0 2px 4px rgba(255, 143, 171, 0.1);
    transition: all 0.3s ease;
}

input[type="text"]:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(255, 143, 171, 0.25);
    transform: scale(1.02);
}

/* Botões - Estilo Kawaii */
button {
    background: var(--button-bg);
    color: white;
    padding: 15px 30px;
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Comic Sans MS', cursive;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 1px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(255, 143, 171, 0.3);
}

button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.4),
            transparent);
    transition: 0.5s;
}

button:hover::before {
    left: 100%;
}

button:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow:
        0 6px 15px rgba(255, 143, 171, 0.5),
        0 0 0 3px rgba(255, 194, 209, 0.4);
    background: linear-gradient(45deg, #ff9fb6, #ffb6c1);
}

/* Estilo da mensagem de erro */
.error-message {
    color: #f85149;
    margin-top: 15px;
    padding: 10px;
    border-radius: 8px;
    background: rgba(248, 81, 73, 0.1);
    animation: shake 0.5s ease;
}

/* Container do resultado com layout atualizado - Estilo Kawaii */
#result {
    margin: 30px auto;
    padding: 30px;
    background: var(--card-bg);
    border-radius: 25px;
    border: 3px solid var(--border-color);
    box-shadow: 0 8px 24px var(--shadow-color);
    animation: slideUp 0.5s ease forwards;
    position: relative;
    overflow: visible;
}

#result::before {
    content: '♡';
    position: absolute;
    top: -15px;
    left: 20px;
    font-size: 30px;
    color: #d183ff;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
}

#result::after {
    content: '♡';
    position: absolute;
    bottom: -15px;
    right: 20px;
    font-size: 30px;
    color: #d183ff;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
}

/* Layout do perfil */
.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

/* Ajustes na imagem de perfil - Estilo Kawaii com Lilás */
#result img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 5px solid #e7c2ff;
    transition: all 0.3s ease;
    flex-shrink: 0;
    object-fit: cover;
    box-shadow: 
        0 0 20px rgba(209, 131, 255, 0.4),
        0 0 0 8px rgba(255, 255, 255, 0.4);
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--bg-secondary);
    display: block;
    margin: 0;
    padding: 0;
    position: relative;
}

/* Container da imagem */
.profile-img-container {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    margin: 0 auto;
}

/* Responsividade da imagem */
@media (max-width: 768px) {

    #result img,
    .profile-img-container {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 480px) {

    #result img,
    .profile-img-container {
        width: 100px;
        height: 100px;
        border-width: 3px;
    }
}

@media (max-width: 360px) {

    #result img,
    .profile-img-container {
        width: 80px;
        height: 80px;
    }
}

@media (min-width: 1200px) {

    #result img,
    .profile-img-container {
        width: 180px;
        height: 180px;
        border-width: 5px;
    }
}

.profile-info {
    text-align: left;
    flex: 1;
}

/* Stats no layout horizontal */
.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 20px;
    background: linear-gradient(to right bottom,
            rgba(255, 255, 255, 0.05),
            rgba(255, 255, 255, 0.1));
    border-radius: 12px;
    padding: 15px;
}

/* Responsividade */
@media (max-width: 768px) {
    #result {
        flex-direction: column;
        text-align: center;
        padding: 20px;
        gap: 20px;
    }

    #result img {
        width: 100px;
        height: 100px;
    }

    #result img {
        margin: 0 auto;
    }

    .stats {
        grid-template-columns: repeat(3, 1fr);
    }

    .profile-header {
        gap: 15px;
    }

    #result img {
        width: 80px;
        height: 80px;
    }

    .octocat-container {
        top: unset;
        bottom: -60px;
        right: 20px;
        transform: none;
    }
}

@media (max-width: 480px) {

    #result img,
    .profile-img-container {
        width: 90px;
        height: 90px;
        border-width: 3px;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    #result img {
        margin: 0 auto;
    }

    .profile-info {
        text-align: center;
    }

    .octocat-container {
        bottom: -40px;
        right: 10px;
    }

    .octocat {
        width: 60px;
    }
}

@media (max-width: 360px) {

    #result img,
    .profile-img-container {
        width: 80px;
        height: 80px;
    }
}

/* Stats - Estilo Kawaii */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    background: linear-gradient(to right bottom,
            rgba(255, 255, 255, 0.5),
            rgba(255, 255, 255, 0.3));
    border: 2px solid var(--border-color);
    backdrop-filter: blur(5px);
    padding: 20px;
    -webkit-backdrop-filter: blur(5px);
    position: relative;
}

.stat-item {
    padding: 15px;
    border-radius: 15px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    text-align: center;
    padding: 15px 10px;
    box-shadow: 0 4px 12px var(--shadow-color);
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-gradient);
    opacity: 0.7;
}

.stat-item:hover {
    transform: translateY(-5px) scale(1.05);
    background: rgba(255, 255, 255, 0.7);
    border-color: #ffa5c0;
}

.stat-value {
    font-size: 28px;
    font-weight: bold;
    color: var(--accent-color);
    text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.7);
    font-family: 'Comic Sans MS', cursive;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 8px;
    font-weight: bold;
    letter-spacing: 0.5px;
}

/* Octocat - Estilo Kawaii - Reposicionado */
.octocat-container {
    position: absolute;
    top: -40px;
    right: -30px;
    z-index: 1;
    transition: all 0.3s ease;
    filter: drop-shadow(0 5px 15px rgba(255, 143, 171, 0.5));
}

.octocat {
    width: 100px;
    cursor: pointer;
    transition: transform 0.3s ease;
    height: auto;
    transform-origin: bottom center;
}

/* Ajustes responsivos para o Octocat */
@media (min-width: 1200px) {
    .octocat-container {
        top: -25px;
        right: -40px;
    }

    .octocat {
        width: 120px;
    }
}

/* Ajuste específico para telas muito grandes */
@media (min-width: 1600px) {
    .octocat-container {
        top: -20px;
        right: -35px;
    }

    .octocat {
        width: 110px;
    }
}

@media (max-width: 768px) {
    .octocat-container {
        top: -40px;
        right: -30px;
    }

    .octocat {
        width: 80px;
    }
}

@media (max-width: 480px) {
    .octocat-container {
        top: -35px;
        right: -25px;
    }

    .octocat {
        width: 70px;
    }
    
    .theme-toggle-btn {
        width: 38px;
        height: 38px;
        top: 10px;
        left: 10px;
        font-size: 14px;
    }

    .theme-toggle-btn::after {
        font-size: 10px;
        padding: 4px 8px;
    }
}

@media (max-width: 360px) {
    .octocat-container {
        top: -25px;
        right: -15px;
    }

    .octocat {
        width: 60px;
    }
    
    .theme-toggle-btn {
        width: 32px;
        height: 32px;
        top: 8px;
        left: 8px;
        font-size: 12px;
    }
}

@media (max-width: 360px) {
    .octocat-container {
        top: -30px;
        right: -20px;
    }

    .octocat {
        width: 60px;
    }
}

/* Ajuste para visualização em paisagem */
@media (max-height: 500px) and (orientation: landscape) {
    .octocat-container {
        top: -35px;
        right: -25px;
    }

    .octocat {
        width: 70px;
    }
}

/* Animações do Octocat */
@keyframes walking {
    0% {
        transform: translateX(0) rotate(0);
    }

    25% {
        transform: translateX(-20px) rotate(-5deg);
    }

    75% {
        transform: translateX(20px) rotate(5deg);
    }

    100% {
        transform: translateX(0) rotate(0);
    }
}

@keyframes jumping {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-20px) scale(1.1);
    }
}

@keyframes waving {
    0% {
        transform: rotate(0);
    }

    25% {
        transform: rotate(-15deg);
    }

    75% {
        transform: rotate(15deg);
    }

    100% {
        transform: rotate(0);
    }
}

/* Estados do Octocat */
.octocat.walking {
    animation: walking 1s infinite;
}

.octocat.jumping {
    animation: jumping 0.5s ease;
}

.octocat.waving {
    animation: waving 0.5s ease;
}

/* Balão de fala - Estilo Kawaii com Lilás */
.speech-bubble {
    position: absolute;
    background: linear-gradient(135deg, #ffebf0 0%, #f3e5ff 100%);
    border-radius: 22px;
    padding: 14px 20px;
    color: #b76ed3;
    font-size: 14px;
    max-width: 150px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    box-shadow:
        0 4px 15px rgba(209, 131, 255, 0.25),
        0 0 0 2px rgba(255, 255, 255, 0.3);
    transform-origin: bottom center;
    animation: floatBubble 0.3s ease-out;
    font-family: 'Comic Sans MS', cursive;
    border: 2px solid #e7c2ff;
    letter-spacing: 0.5px;
}

.speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    border-width: 12px 12px 0;
    border-style: solid;
    border-color: #e7c2ff transparent;
    margin-left: -12px;
}

.speech-bubble.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes floatBubble {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.8);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Animações para o Octocat */
@keyframes floating {

    0%,
    100% {
        transform: translateY(0) rotate(0);
    }

    50% {
        transform: translateY(-10px) rotate(5deg);
    }
}

/* Animação quando encontra um usuário */
.octocat.success {
    animation: celebrate 1s ease;
}

@keyframes celebrate {
    0% {
        transform: scale(1) rotate(0);
    }

    25% {
        transform: scale(1.2) rotate(-10deg);
    }

    50% {
        transform: scale(1.1) rotate(10deg);
    }

    75% {
        transform: scale(1.2) rotate(-10deg);
    }

    100% {
        transform: scale(1) rotate(0);
    }
}

/* Animação quando há erro */
.octocat.error {
    animation: shake 0.5s ease;
}

/* Responsividade */
@media (max-width: 768px) {
    .container {
        padding: 30px 20px;
    }

    .octocat {
        width: 100px;
    }

    .header h1 {
        font-size: 2em;
    }

    .container {
        max-width: 90%;
        margin: 60px auto;
        padding: 30px 20px;
    }

    .octocat-container {
        top: -60px;
        right: -45px;
        /* Ajustado para dar mais espaço */
    }

    .header h1 {
        font-size: 2em;
    }

    .speech-bubble {
        max-width: 120px;
        font-size: 12px;
    }

    .theme-toggle {
        top: 15px;
        right: 15px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 20px 15px;
    }

    .search-box {
        flex-direction: column;
    }

    .octocat {
        width: 80px;
    }

    button {
        width: 100%;
    }

    body {
        padding: 10px;
    }

    .container {
        padding: 20px 15px;
        margin: 40px auto;
    }

    .octocat-container {
        top: -50px;
        right: -35px;
        /* Ajustado para dar mais espaço */
    }

    .octocat {
        width: 80px;
    }

    .header {
        flex-direction: column;
        gap: 10px;
    }

    .header i {
        font-size: 36px;
    }

    .header h1 {
        font-size: 1.8em;
    }

    .search-box {
        flex-direction: column;
        gap: 10px;
    }

    input[type="text"] {
        padding: 12px;
        font-size: 14px;
    }

    button {
        width: 100%;
        padding: 12px;
        justify-content: center;
        font-size: 14px;
    }

    #result {
        margin: 20px auto;
    }

    #result img {
        width: 140px;
    }

    #result h2 {
        font-size: 22px;
    }

    #result p {
        font-size: 14px;
    }

    .speech-bubble {
        max-width: 100px;
        font-size: 11px;
        padding: 8px;
    }

    .theme-toggle {
        top: 10px;
        right: 10px;
        padding: 6px;
        /* Botão um pouco menor em telas pequenas */
    }

    .github-link,
    .share-btn {
        width: 100%;
        /* Botões ocupam toda a largura em telas pequenas */
        padding: 10px 20px;
        font-size: 14px;
    }
}

@media (max-width: 360px) {
    .container {
        padding: 15px 10px;
    }

    .octocat-container {
        top: -40px;
        right: -15px;
    }

    .octocat {
        width: 60px;
    }

    .header h1 {
        font-size: 1.5em;
    }

    #result img {
        width: 120px;
    }
}

/* Orientação Paisagem em dispositivos móveis */
@media (max-height: 500px) and (orientation: landscape) {
    body {
        padding: 10px;
    }

    .container {
        margin: 20px auto;
        padding: 20px;
    }

    .octocat-container {
        top: -35px;
        right: -25px;
    }

    .octocat {
        width: 70px;
    }

    .header {
        margin-bottom: 20px;
    }

    #result {
        display: flex;
        align-items: center;
        gap: 20px;
        text-align: left;
    }

    #result img {
        width: 100px;
        margin: 0;
    }
}

/* Telas muito grandes */
@media (min-width: 1200px) {
    .container {
        max-width: 600px;
        /* Máximo em telas grandes */
        padding: 40px;
    }

    .octocat {
        width: 150px;
    }

    .header h1 {
        font-size: 3em;
    }

    input[type="text"] {
        font-size: 18px;
    }

    button {
        font-size: 18px;
    }

    #result img {
        width: 200px;
    }

    #result h2 {
        font-size: 32px;
    }

    #result p {
        font-size: 18px;
    }
}

/* Adicionar margin-top ao container para melhorar a visualização do Octocat */
@media (min-width: 992px) {
    .container {
        margin-top: 30px;
    }
}

@media (min-width: 1200px) {
    .container {
        margin-top: 40px;
    }
}

@keyframes glowPulse {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

.theme-toggle {
    position: relative;
    top: unset;
    right: unset;
    margin: 20px auto 0;
    padding: 12px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-secondary);
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    font-size: 16px;
    box-shadow: 0 4px 12px var(--shadow-color);
    cursor: pointer;
}

/* Estilo específico para o botão de tema - Reposicionado para não sobrepor o Octocat */
.theme-toggle-btn {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(209, 131, 255, 0.3);
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 10; 
    animation: pulse-theme-btn 3s infinite;
    cursor: pointer;
}

@keyframes pulse-theme-btn {
    0%, 100% {
        box-shadow: 0 3px 10px rgba(209, 131, 255, 0.3);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 5px 20px rgba(209, 131, 255, 0.8), 0 0 0 4px rgba(209, 131, 255, 0.3);
        transform: scale(1.05);
    }
}

.theme-toggle-btn:hover {
    transform: translateY(-3px) rotate(15deg) scale(1.1);
    background: var(--accent-gradient);
    color: white;
    border-color: #ffa5c0;
    box-shadow: 0 5px 15px rgba(209, 131, 255, 0.6);
}

.theme-toggle-btn i {
    font-size: 20px;
}

/* Adicionar tooltip ao botão de tema - Ajustado para nova posição */
.theme-toggle-btn::after {
    content: "Mudar tema ✨";
    position: absolute;
    top: 110%;
    left: 0;
    background-color: rgba(209, 131, 255, 0.9);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    font-family: 'Comic Sans MS', cursive;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
    border: 1px solid white;
}

.theme-toggle-btn:hover::after {
    opacity: 1;
    visibility: visible;
    animation: bounce-tooltip 0.5s ease;
}

@keyframes bounce-tooltip {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* Adicionar suporte para o tema claro - Estilo Kawaii Lilás */
[data-theme="light"] {
    --bg-primary: linear-gradient(135deg, #f9f5ff 0%, #faf8ff 100%);
    --bg-secondary: rgba(250, 245, 255, 0.95);
    --text-primary: #9f6bbd;
    --text-secondary: #b28fd2;
    --border-color: #d6c2e7;
    --input-bg: rgba(250, 245, 255, 0.8);
    --card-bg: rgba(250, 245, 255, 0.9);
    --accent-color: #c2a6e7;
    --accent-gradient: linear-gradient(45deg, #c2a6e7, #d4c2ea);
    --button-bg: linear-gradient(45deg, #c2a6e7, #b28fd2);
    --shadow-color: rgba(159, 107, 189, 0.15);
    --success-color: #c9deba;
    --error-color: #d4a6e7;
}

[data-theme="light"] body {
    background:
        linear-gradient(120deg, #f9f5ff 0%, #faf8ff 100%),
        repeating-linear-gradient(60deg,
            rgba(194, 166, 231, 0.05) 0%,
            rgba(194, 166, 231, 0.05) 1px,
            transparent 1px,
            transparent 15px);
}

/* Estilo para os links sociais - Estilo Kawaii */
.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.profile-btn,
.share-btn {
    background: var(--accent-gradient);
    color: white;
    padding: 14px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.7);
    cursor: pointer;
    width: 180px;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(255, 143, 171, 0.4);
    font-family: 'Comic Sans MS', cursive;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.profile-btn {
    background: var(--accent-gradient);
    color: white;
    position: relative;
    overflow: hidden;
}

.profile-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.3),
            transparent);
    transition: 0.5s;
}

.profile-btn:hover::before {
    left: 100%;
}

.profile-btn:hover,
.share-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 
        0 10px 25px rgba(209, 131, 255, 0.6),
        0 0 0 3px rgba(231, 194, 255, 0.4);
    background: linear-gradient(45deg, #c78eff, #ffb3c6);
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.5);
}

.profile-btn::before,
.share-btn::before {
    content: '♡';
    position: absolute;
    top: -15px;
    right: 10px;
    font-size: 20px;
    color: #f3e5ff;
    opacity: 0;
    transition: all 0.3s ease;
}

.profile-btn:hover::before,
.share-btn:hover::before {
    opacity: 0.8;
    animation: float-hearts 2s infinite;
}

@keyframes float-hearts {
    0%, 100% {
        transform: translateY(0) rotate(0);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-10px) rotate(15deg);
        opacity: 0.5;
    }
}

.profile-btn i,
.share-btn i {
    font-size: 18px;
    margin-right: 5px;
}

/* Efeito de pulsação para o botão Ver Perfil */
.profile-btn {
    animation: subtle-pulse 3s infinite;
}

@keyframes subtle-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    }
    50% {
        transform: scale(1.03);
        box-shadow: 0 6px 15px rgba(88, 166, 255, 0.4);
    }
}

/* Animações e elementos decorativos Kawaii adicionais com Lilás */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(209, 131, 255, 0.05) 20px, transparent 20px),
        radial-gradient(circle at 80% 30%, rgba(231, 194, 255, 0.05) 15px, transparent 15px),
        radial-gradient(circle at 40% 70%, rgba(255, 143, 171, 0.05) 10px, transparent 10px),
        radial-gradient(circle at 70% 80%, rgba(231, 194, 255, 0.05) 25px, transparent 25px);
    background-size: 250px 250px;
}

/* Estrelas e corações flutuantes - com Lilás */
.container::before {
    content: '★';
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 20px;
    color: #d183ff;
    animation: twinkle 3s infinite ease-in-out;
}

.container::after {
    content: '♡';
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-size: 20px;
    color: #c78eff;
    animation: twinkle 3s infinite ease-in-out 1s;
}

/* Ajuste do placeholder do input com fonte kawaii */
input::placeholder {
    font-family: 'Comic Sans MS', cursive;
    color: #c78eff;
    opacity: 0.7;
}

/* Animação dos botões */
button i {
    animation: wiggle 3s infinite;
}

@keyframes wiggle {
    0%, 100% {
        transform: rotate(0);
    }
    25% {
        transform: rotate(-10deg);
    }
    75% {
        transform: rotate(10deg);
    }
}

/* Estilos para a mensagem de boas-vindas */
.welcome-message {
    background: linear-gradient(to bottom right, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
    border-radius: 25px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(209, 131, 255, 0.3);
    border: 2px dashed var(--accent-color);
    margin-top: 30px;
    animation: fade-in 0.8s ease;
    font-family: 'Comic Sans MS', cursive;
}

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

.welcome-message h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 22px;
}

.welcome-message p {
    color: var(--text-color);
    margin-bottom: 15px;
    line-height: 1.5;
    font-size: 16px;
}

.welcome-message ul {
    text-align: left;
    display: inline-block;
    margin: 15px auto;
    padding-left: 20px;
    color: var(--accent-color);
    font-weight: bold;
}

.welcome-message li {
    margin: 8px 0;
    position: relative;
}

.welcome-icon {
    font-size: 48px;
    color: var(--accent-color);
    margin-bottom: 15px;
    animation: bounce-welcome 2s infinite;
}

@keyframes bounce-welcome {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.welcome-tip {
    background: rgba(209, 131, 255, 0.2);
    padding: 10px 15px;
    border-radius: 15px;
    font-style: italic;
    border: 1px solid var(--accent-color);
    margin-top: 20px;
    font-size: 14px !important;
}

/* Ajuste para tema escuro */
[data-theme="dark"] .welcome-message {
    background: linear-gradient(to bottom right, rgba(40, 40, 65, 0.95), rgba(33, 33, 52, 0.85));
    border-color: var(--accent-color);
}

[data-theme="dark"] .welcome-message h3 {
    color: var(--accent-color);
}

[data-theme="dark"] .welcome-message p {
    color: #f0f0f0;
}

[data-theme="dark"] .welcome-message ul {
    color: #d3a7ff;
}

[data-theme="dark"] .welcome-tip {
    background: rgba(209, 131, 255, 0.15);
    border-color: #d3a7ff;
}

/* Estilos para o footer com informação do autor */
.footer {
    margin-top: 30px;
    padding-top: 15px;
    border-top: 2px dashed var(--accent-color);
    text-align: center;
    animation: fade-in 0.8s ease;
}

.author-info {
    display: inline-block;
    background: linear-gradient(to right, rgba(209, 131, 255, 0.2), rgba(255, 175, 204, 0.2));
    padding: 10px 20px;
    border-radius: 50px;
    box-shadow: 0 3px 10px rgba(209, 131, 255, 0.2);
    border: 1px solid var(--accent-color);
    transform: rotate(-1deg);
    transition: all 0.3s ease;
}

.author-info:hover {
    transform: rotate(0deg) scale(1.05);
    box-shadow: 0 5px 15px rgba(209, 131, 255, 0.4);
}

.author-info p {
    margin: 0;
    font-size: 14px;
    color: var(--text-color);
}

.author-info h3 {
    margin: 5px 0;
    color: var(--accent-color);
    font-size: 20px;
    font-family: 'Comic Sans MS', cursive;
    position: relative;
    display: inline-block;
}

.author-info h3::before,
.author-info h3::after {
    content: "★";
    color: var(--primary-color);
    margin: 0 8px;
    font-size: 16px;
    opacity: 0.8;
}

.author-info .fa-heart {
    color: #ff6b6b;
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.social-links {
    margin-top: 10px;
}

.social-links a {
    display: inline-block;
    margin: 0 8px;
    color: var(--accent-color);
    font-size: 18px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-3px);
    color: var(--primary-color);
}

/* Badge flutuante de autoria */
.author-badge {
    position: fixed;
    top: 18px;
    left: 18px;
    background: linear-gradient(90deg, #d183ff 60%, #f7c1ff 100%);
    color: #fff;
    font-weight: bold;
    font-family: 'Comic Sans MS', cursive;
    padding: 8px 18px;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(209, 131, 255, 0.2);
    z-index: 9999;
    font-size: 15px;
    letter-spacing: 1px;
    border: 2px solid #fff;
    animation: pulse-theme-btn 2s infinite;
}

@media (max-width: 600px) {
    .author-badge {
        top: 8px;
        left: 8px;
        font-size: 12px;
        padding: 6px 12px;
    }
}

/* Footer de autoria */
.footer {
    margin-top: 40px;
    padding: 20px 0 10px 0;
    text-align: center;
    background: none;
}

.author-info {
    color: var(--accent-color);
    font-family: 'Comic Sans MS', cursive;
    font-size: 16px;
    margin-bottom: 0;
}

.author-info h3 {
    margin: 8px 0 10px 0;
    font-size: 22px;
    color: var(--primary-color);
    font-weight: bold;
    letter-spacing: 1px;
}

.author-info .social-links {
    margin-top: 8px;
}

.author-info .social-links a {
    color: var(--accent-color);
    margin: 0 8px;
    font-size: 22px;
    transition: color 0.2s;
}

.author-info .social-links a:hover {
    color: #8a2be2;
}

.author-info i.fa-heart {
    color: #ff69b4;
    margin: 0 2px;
    animation: pulse-heart 1.2s infinite;
}

@keyframes pulse-heart {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

@media (max-width: 600px) {
    .footer {
        padding: 10px 0 5px 0;
    }
    .author-info h3 {
        font-size: 16px;
    }
    .author-info {
        font-size: 13px;
    }
    .author-info .social-links a {
        font-size: 18px;
    }
}