/* Estilos generales */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f0; /* Beige claro en lugar de blanco */
    color: #333;
    transition: background-color 0.5s ease, color 0.5s ease, background-image 0.5s ease;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Modo noche */
body.dark-mode {
    background-color: #1a1a1a;
    color: #f4f4f9;
    background-image: url('media/space.png');
}

/* Asegurar que el fondo cubra toda la pantalla */
html, body {
    height: 100%;
}

/* Transición suave para las tarjetas en modo oscuro */
body.dark-mode .sign-card {
    background-color: #333;
    color: #f4f4f9;
    transition: background-color 0.5s ease, color 0.5s ease;
}

body.dark-mode .sign-card p {
    color: #ccc;
    transition: color 0.5s ease;
}

body.dark-mode .sign-card .date-range {
    color: #999;
    transition: color 0.5s ease;
}

/* Agregar sombra blanca a las imágenes de la temporada actual en modo oscuro */
body.dark-mode .current-season-images img {
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.7));
    transition: filter 0.5s ease;
}

/* Scroll moderno y minimalista */
body::-webkit-scrollbar {
    width: 10px;
}

body::-webkit-scrollbar-track {
    background: #f5f5dc; /* Beige claro */
}

body::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}

body.dark-mode::-webkit-scrollbar-track {
    background: #1a1a1a;
}

body.dark-mode::-webkit-scrollbar-thumb {
    background: #555;
}

/* Contenedor principal */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Botón de modo noche */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1000;
    padding: 10px;
    border-radius: 50%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.theme-toggle:hover {
    transform: scale(1.1);
}

.theme-toggle img {
    width: 50px; /* Botón más grande */
    height: 50px;
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.3)); /* Sombra para el PNG */
    transition: filter 0.3s ease;
}

/* Efecto de sombra amarilla en gradiente en modo oscuro */
body.dark-mode .theme-toggle img {
    filter: drop-shadow(0 0 10px rgba(255, 255, 0, 0.7)) drop-shadow(0 0 20px rgba(255, 255, 0, 0.5));
    animation: turnOn 0.5s ease;
}

@keyframes turnOn {
    0% {
        filter: drop-shadow(0 0 0 rgba(255, 255, 0, 0));
    }
    100% {
        filter: drop-shadow(0 0 10px rgba(255, 255, 0, 0.7)) drop-shadow(0 0 20px rgba(255, 255, 0, 0.5));
    }
}

/* Estilos para la temporada actual */
.current-season {
    text-align: center;
    margin-bottom: 40px;
}

.current-season h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.current-season-images {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.current-season-images img {
    max-width: 150px;
    height: auto;
    transition: filter 0.5s ease;
}

/* Estilos para la cuadrícula de signos */
.signs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columnas */
    grid-template-rows: repeat(3, 1fr); /* 3 filas */
    gap: 20px;
    padding-bottom: 60px; /* Espacio para el footer */
}

.sign-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, background-color 0.5s ease, color 0.5s ease;
}

.sign-card:hover {
    transform: translateY(-10px);
}

.sign-card img {
    max-width: 50px;
    height: auto;
    margin-bottom: 15px;
}

.sign-card h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.sign-card p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}

.sign-card .date-range {
    font-size: 0.8rem;
    color: #888;
}

/* Footer */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(247, 247, 230, 0.9); /* Beige claro con transparencia */
    text-align: center;
    padding: 10px 0;
    font-size: 0.9rem;
    color: #333;
    border-top: 1px solid #ddd;
    transition: background-color 0.5s ease, color 0.5s ease;
}

body.dark-mode footer {
    background-color: rgba(26, 26, 26, 0.9);
    color: #f4f4f9;
    border-top: 1px solid #444;
}

/* Estilos responsivos */
@media (max-width: 1200px) {
    .signs-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 columnas en pantallas medianas */
    }
}

@media (max-width: 768px) {
    .current-season h1 {
        font-size: 2rem;
    }

    .current-season-images img {
        max-width: 100px;
    }

    .signs-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columnas en pantallas pequeñas */
    }

    .sign-card h2 {
        font-size: 1.2rem;
    }

    .sign-card p {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .current-season h1 {
        font-size: 1.5rem;
    }

    .current-season-images img {
        max-width: 80px;
    }

    .signs-grid {
        grid-template-columns: repeat(1, 1fr); /* 1 columna en pantallas muy pequeñas */
    }

    .sign-card h2 {
        font-size: 1rem;
    }

    .sign-card p {
        font-size: 0.7rem;
    }
}