/* Common Mystical Styles for HorusGaze */

:root {
    --gold: #D4AF37;
    --dark-bg: #0B0E14;
    --egypt-blue: #1E3A8A;
    --sand: #C2B280;
    --text-light: #E5E7EB;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-light);
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.gold-text { color: var(--gold); }
.blue-text { color: var(--egypt-blue); }

.mystical-card {
    background: rgba(30, 58, 138, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.action-btn {
    background: linear-gradient(135deg, var(--egypt-blue), #000);
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 0.75rem 2rem;
    font-family: 'Cinzel', serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.action-btn:hover {
    background: var(--gold);
    color: var(--dark-bg);
    box-shadow: 0 0 15px var(--gold);
}

/* Mobile-friendly enhancements */
@media (max-width: 768px) {
    .action-btn {
        padding: 1rem 2rem;
        font-size: 1rem;
        min-height: 48px; /* Ensure minimum touch target size */
    }

    .mystical-card {
        padding: 1.5rem;
        margin: 0 1rem;
    }

    /* Improve readability on small screens */
    .chinese-answer {
        font-size: 1.25rem;
        line-height: 1.8;
    }

    /* Better spacing for mobile */
    .fade-in {
        animation-duration: 0.5s; /* Faster animation on mobile */
    }

    /* Mobile-friendly header */
    header a {
        padding: 0.5rem;
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    /* Ensure footer links are touch-friendly */
    footer a {
        padding: 0.5rem;
        min-height: 44px;
    }
}

/* Page transitions */
.fade-in {
    animation: fadeIn 1s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mystical Background Animation */
.bg-pulse {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 50% 50%, rgba(30, 58, 138, 0.05) 0%, transparent 70%);
    animation: pulse 10s infinite alternate;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.3; }
    100% { transform: scale(1.2); opacity: 0.6; }
}

/* Result display area */
#result-container {
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 1.5rem;
    line-height: 2rem;
    color: var(--gold);
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    margin-top: 2rem;
    padding-top: 2rem;
}

.chinese-answer {
    font-family: 'Noto Sans SC', sans-serif; /* Fallback for mystical English text */
    font-weight: 300;
}
