/* DAILY PERSONALITY BANNER */

.daily-per {
    position: relative;
    width: 75%;
    max-width: 1200px;
    min-height: 250px;
    margin: 24px auto 48px auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    gap: 16px;
}

/* Banner heading - using .age p styling */
.daily-per-heading {
    position: relative;
    z-index: 3;
    font-size: 22px;
    margin: 0;
    color: var(--secondary);
    line-height: 22px;
    font-family: Cinzel, serif;
    text-align: center;
}

/* Banner background container */
.daily-per-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 24px;
    overflow: hidden;
    /* Gradient background that fades at edges */
    background: linear-gradient(90deg,
            transparent 0%,
            rgb(from var(--gold-container-bg) r g b / 0.3) 15%,
            rgb(from var(--gold-container-bg) r g b / 0.8) 40%,
            rgb(from var(--gold-container-bg) r g b / 0.9) 50%,
            rgb(from var(--gold-container-bg) r g b / 0.8) 60%,
            rgb(from var(--gold-container-bg) r g b / 0.3) 85%,
            transparent 100%);
    /* Fading borders at top and bottom */
    border-top: 2px solid transparent;
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(90deg,
            transparent 0%,
            rgb(from var(--gold-container-border) r g b / 0.3) 15%,
            rgb(from var(--gold-container-border) r g b / 0.8) 40%,
            rgb(from var(--gold-container-border) r g b / 0.9) 50%,
            rgb(from var(--gold-container-border) r g b / 0.8) 60%,
            rgb(from var(--gold-container-border) r g b / 0.3) 85%,
            transparent 100%) 1;
    z-index: 1;
}

/* Stars container */
.daily-per-stars {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
}

/* Individual star dots */
.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background-color: var(--text-color);
    border-radius: 50%;
    opacity: 0.3;
    animation: flicker var(--flicker-duration, 4s) ease-in-out infinite;
    animation-delay: var(--flicker-delay, 1s);
}

/* Flickering animation for stars */
@keyframes flicker {

    0%,
    100% {
        opacity: 0.1;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.5);
    }
}

/* Personality link in the banner - centered */
.daily-per .personality-link {
    position: relative;
    z-index: 3;
    margin: 0;
    filter: drop-shadow(0 8px 24px rgb(from var(--gold) r g b / 0.4));
}

/* Smaller shenu styling for the daily personality */
.daily-per .shenu {
    transform: scale(0.9);
    transition: all 0.5s ease;
}

.daily-per .shenu:hover {
    transform: scale(1.0);
}

/* Responsive design for tablets */
@media (max-width: 1025px) {
    .daily-per {
        width: 90%;
        height: 220px;
    }

    .daily-per .shenu {
        transform: scale(0.85);
    }

    .daily-per .shenu:hover {
        transform: scale(0.95);
    }
}

/* Responsive design for mobile */
@media (max-width: 768px) {
    .daily-per {
        width: 100%;
        height: 200px;
        margin: 32px auto;
    }

    .daily-per .shenu {
        transform: scale(0.8);
    }

    .daily-per .shenu:hover {
        transform: scale(0.9);
    }
}

/* Small mobile screens */
@media (max-width: 375px) {
    .daily-per {
        height: 180px;
        margin: 24px auto;
    }

    .daily-per .shenu {
        transform: scale(0.75);
    }

    .daily-per .shenu:hover {
        transform: scale(0.85);
    }
}