/* ESTILO GERAL */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    position: relative;
    min-height: 100vh;
    padding-bottom: 100px;
}

/* ILHAS/BOXES */
.island {
    background: white;
    border: 3px solid var(--border);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 8px 8px 0px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.island::before {
    content: "";
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 2px dotted var(--accent);
    border-radius: 18px;
    pointer-events: none;
    opacity: 0.5;
}

/* CABEÇALHO */
.header {
    text-align: center;
    background: linear-gradient(to right, #FFD6E0, #FFF);
    border: 3px dashed var(--accent-dark);
    margin-top: 20px;
    position: relative;
}

.header h1 {
    color: var(--accent-dark);
    text-shadow: 2px 2px 0px rgba(0,0,0,0.1);
    font-size: 2.5em;
    margin: 0;
    padding: 10px;
}

.subtitle {
    font-size: 1.2em;
    color: var(--accent);
    margin-top: 5px;
}

.pixel-corners {
    position: absolute;
    width: 15px;
    height: 15px;
    background: var(--accent-dark);
}

.pixel-corners:nth-child(1) {
    top: 5px;
    left: 5px;
}
.pixel-corners:nth-child(2) {
    top: 5px;
    right: 5px;
}
.pixel-corners.bottom:nth-child(1) {
    bottom: 5px;
    left: 5px;
}
.pixel-corners.bottom:nth-child(2) {
    bottom: 5px;
    right: 5px;
}

/* NAVEGAÇÃO */
.nav {
    display: flex;
    justify-content: space-around;
    padding: 15px;
    background: linear-gradient(to bottom, #FFF, #FFEEF2);
}

.nav-link {
    text-decoration: none;
    color: var(--accent-dark);
    font-weight: bold;
    padding: 5px 10px;
    position: relative;
}

.nav-link:hover {
    color: var(--accent);
}

.nav-link i {
    margin-right: 5px;
}

.nav-decoration {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, var(--accent), var(--accent-dark), var(--accent));
}

/* SEÇÃO DE LINKS */
.links-section {
    background: linear-gradient(to bottom, #FFF, #FFFAFB);
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 10px;
    background: white;
    border: 2px solid var(--border);
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.link-card:hover {
    background: #FFEEF2;
    transform: translateY(-5px);
    box-shadow: 0 5px 0px var(--accent);
}

.link-card i {
    font-size: 2.5em;
    margin-bottom: 10px;
    color: var(--accent-dark);
    transition: all 0.3s;
}

.link-card:hover i {
    transform: scale(1.2);
}

.link-underline {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.link-card:hover .link-underline {
    transform: scaleX(1);
}

.section-footer {
    height: 3px;
    background: linear-gradient(to right, transparent, var(--accent), transparent);
    margin-top: 20px;
}

/* SEÇÃO DE CHAT */
.chat-section {
    background: linear-gradient(to bottom, #FFF, #F9F9F9);
}

.chat-container {
    border: 2px solid var(--border);
    border-radius: 10px;
    background: white;
    overflow: hidden;
    margin-top: 15px;
}

.chat-messages {
    height: 250px;
    padding: 10px;
    overflow-y: auto;
    background-color: #FFF9FA;
    border-bottom: 2px dashed var(--border);
}

.message {
    margin-bottom: 10px;
    padding: 8px 12px;
    background: white;
    border-left: 3px solid var(--accent);
    border-radius: 0 5px 5px 0;
}

.message.system {
    background: #F0F0F0;
    border-left-color: #CCC;
}

.sender {
    font-weight: bold;
    color: var(--accent-dark);
}

.chat-input-container {
    padding: 10px;
    background: #FFEEF2;
    display: flex;
}

.chat-input {
    flex: 1;
    padding: 8px 12px;
    border: 2px solid var(--border);
    border-radius: 5px;
    font-family: inherit;
    background: white;
}

.chat-button {
    margin-left: 10px;
    padding: 8px 15px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
}

.chat-button:hover {
    background: var(--accent-dark);
}

.chat-rules {
    font-size: 0.8em;
    color: #666;
    text-align: center;
    margin-top: 10px;
    font-style: italic;
}

/* SEÇÃO SOBRE */
.about-section {
    background: linear-gradient(to bottom, #FFF, #FFF5F5);
}

.about-content {
    display: flex;
    gap: 20px;
    margin-top: 15px;
}

.about-text {
    flex: 1;
}

.about-image {
    flex-shrink: 0;
}

.profile-pic {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 3px solid var(--accent);
    object-fit: cover;
}

.favorite-list {
    margin-top: 15px;
    background: #FFF9FA;
    padding: 15px;
    border-radius: 10px;
    border: 1px dashed var(--border);
}

.favorite-list h3 {
    color: var(--accent-dark);
    margin-bottom: 10px;
}

.favorite-list li {
    list-style: none;
    margin-bottom: 8px;
}

.favorite-list i {
    color: var(--accent);
    margin-right: 8px;
    width: 20px;
    text-align: center;
}

.guestbook {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.guestbook textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid var(--border);
    border-radius: 5px;
    font-family: inherit;
    margin-top: 10px;
    resize: vertical;
    min-height: 80px;
}

.guestbook-button {
    margin-top: 10px;
    background: var(--accent);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
}

.guestbook-button:hover {
    background: var(--accent-dark);
}

/* RODAPÉ */
.footer {
    text-align: center;
    background: linear-gradient(to right, #FFD6E0, #FFF);
    border: 3px dashed var(--accent-dark);
    margin-top: 30px;
}

.footer-content {
    padding: 15px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.footer-link {
    color: var(--accent-dark);
    font-size: 1.2em;
    transition: all 0.3s;
}

.footer-link:hover {
    color: var(--accent);
    transform: translateY(-3px);
}

/* PERSONAGEM E ELEMENTOS DECORATIVOS */
.character-container {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 100;
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-10px) rotate(2deg); }
    50% { transform: translateY(-20px) rotate(0deg); }
    75% { transform: translateY(-10px) rotate(-2deg); }
}

.character {
    width: 150px;
    height: auto;
    cursor: pointer;
    filter: drop-shadow(5px 5px 0px rgba(0,0,0,0.2));
    transition: all 0.3s;
}

.character:hover {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(8px 8px 0px rgba(0,0,0,0.3));
}

.speech-bubble {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 8px 15px;
    border-radius: 15px;
    border: 2px solid var(--accent-dark);
    box-shadow: 3px 3px 0px var(--shadow-color);
    opacity: 0;
    transition: opacity 0.3s;
    width: max-content;
    max-width: 200px;
    text-align: center;
    font-size: 0.9em;
}

.character-container:hover .speech-bubble {
    opacity: 1;
}

.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: -1;
}

.floating-star, .floating-heart {
    position: absolute;
    opacity: 0.1;
    animation: float-random 10s infinite linear;
}

.floating-star {
    color: var(--accent);
    font-size: 20px;
}

.floating-heart {
    color: var(--accent-dark);
    font-size: 24px;
}

@keyframes float-random {
    0% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.1;
    }
    90% {
        opacity: 0.1;
    }
    100% {
        transform: translate(calc(var(--random-x) * 100vw), calc(var(--random-y) * 100vh)) rotate(360deg);
        opacity: 0;
    }
}

/* EASTER EGG */
.secret-area {
    position: fixed;
    top: 0;
    left: 0;
    width: 50px;
    height: 50px;
    background-color: transparent;
    z-index: 1000;
}

/* RESPONSIVIDADE */
@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
    }
    
    .about-image {
        order: -1;
        margin-bottom: 20px;
        align-self: center;
    }
    
    .links-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    .character-container {
        right: 10px;
        bottom: 10px;
    }
    
    .character {
        width: 100px;
    }
}

@media (max-width: 480px) {
    .nav {
        flex-direction: column;
        gap: 10px;
    }
    
    .links-grid {
        grid-template-columns: 1fr 1fr;
    }
}