/* === DELTARUNE PERSONAJES CSS === */

/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier New', monospace;
    background: linear-gradient(270deg, #0a0a23, #1a1a40);
    background-size: 400% 400%;
    animation: gradientShift 20s ease infinite;
    color: #ffffff;
    line-height: 1.6;
    scroll-behavior: smooth;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

a {
    color: #7dd3fc;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
}

a:hover {
    color: #38bdf8;
    transform: scale(1.1);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background: #111133;
    padding: 1rem 0;
    border-bottom: 4px solid #7e22ce;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 60px;
    transition: transform 0.5s ease;
}

.logo img:hover {
    transform: rotate(5deg) scale(1.1);
}

.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav li {
    margin-left: 20px;
}

/* Intro Section */
.intro {
    padding: 60px 20px;
    background: #15152f;
}

.intro-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.intro-content article {
    flex: 1 1 500px;
    margin: 20px;
    color: #d1d5db;
}

.intro-content figure {
    flex: 1 1 400px;
    margin: 20px;
    text-align: center;
}

.intro-content img {
    max-width: 100%;
    border: 5px solid #7e22ce;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7);
    transition: transform 0.5s ease, filter 0.5s ease;
}

.intro-content img:hover {
    transform: rotate(-2deg) scale(1.05);
    filter: brightness(1.2) contrast(1.1);
}

/* Alternating Sections */
.character-section {
    padding: 60px 20px;
    background: #0f0f2f;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    transition: background 0.5s ease;
}

.character-section:nth-child(even) {
    flex-direction: row-reverse;
    background: #15152f;
}

.character-section article {
    flex: 1 1 500px;
    margin: 20px;
}

.character-section figure {
    flex: 1 1 400px;
    margin: 20px;
    text-align: center;
}

.character-section img {
    max-width: 100%;
    border: 5px solid #7e22ce;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7);
    transition: transform 0.5s ease, filter 0.5s ease, box-shadow 0.5s ease;
}

.character-section img:hover {
    transform: scale(1.1) rotate(1deg);
    filter: brightness(1.2) contrast(1.2);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.8);
}

/* Footer */
.site-footer {
    background: #111133;
    text-align: center;
    padding: 20px 0;
    color: #9ca3af;
    border-top: 4px solid #7e22ce;
}

.footer-content p {
    margin: 10px 0;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
    }
    .intro-content, .character-section {
        flex-direction: column;
    }
    .main-nav ul {
        flex-direction: column;
        gap: 10px;
    }
}

h1, h2, h3 {
    text-shadow: 0 0 8px #7e22ce, 0 0 12px #7e22ce;
}
