/* Fortune Page Styles */
.fortune-container {
    max-width: 450px;
}

.subtitle {
    color: var(--text-color);
    opacity: 0.7;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.fortune-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    color: white;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

[data-theme="dark"] .fortune-card {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
}

.fortune-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.fortune-card.revealed {
    animation: cardReveal 0.6s ease;
}

@keyframes cardReveal {
    0% { transform: scale(0.9) rotateY(90deg); }
    50% { transform: scale(1.05) rotateY(0deg); }
    100% { transform: scale(1) rotateY(0deg); }
}

.fortune-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.fortune-category {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.fortune-text {
    font-size: 1.2rem;
    text-align: center;
    line-height: 1.6;
    font-weight: 500;
}

.fortune-score {
    margin-top: 1rem;
    font-size: 1.5rem;
}

.fortune-categories {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.category-btn {
    padding: 0.5rem 1rem;
    border: 2px solid var(--number-bg);
    border-radius: 20px;
    background: transparent;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.category-btn:hover {
    border-color: var(--btn-color);
    color: var(--btn-color);
}

.category-btn.active {
    background-color: var(--btn-color);
    border-color: var(--btn-color);
    color: white;
}

#fortune-btn {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    font-weight: 600;
}

#fortune-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.5);
}

/* Fortune Effect (Stars) */
.fortune-effect {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    overflow: hidden;
}

.star {
    position: absolute;
    font-size: 1.5rem;
    animation: starFall linear forwards;
    opacity: 0;
}

.star.active {
    opacity: 1;
}

@keyframes starFall {
    0% {
        transform: translateY(0) rotate(0deg) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg) scale(0.5);
        opacity: 0;
    }
}

/* Navigation */
.site-nav {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    background-color: var(--container-bg);
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    box-shadow: 0 5px 20px var(--shadow-color);
    z-index: 100;
}

.site-nav a {
    color: var(--text-color);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.site-nav a:hover {
    background-color: var(--number-bg);
}

.site-nav a.active {
    background-color: var(--btn-color);
    color: white;
}

/* Responsive */
@media (max-width: 480px) {
    .fortune-categories {
        gap: 0.3rem;
    }

    .category-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    .site-nav {
        width: 90%;
        justify-content: center;
    }
}
