/* Custom styles for CrystalAuraOracle */
:root {
    --mystic-purple: #2d1b4e;
    --mystic-blue: #1a2a6c;
    --crystal-glow: #00f2fe;
    --crystal-accent: #7b2ff7;
}

body {
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    color: #e0e0e0;
    font-family: 'Playfair Display', serif;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
}

.crystal-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.crystal-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 0 30px rgba(123, 47, 247, 0.4);
    border-color: var(--crystal-glow);
}

.glow-text {
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.7);
}

.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0f0c29;
}
::-webkit-scrollbar-thumb {
    background: var(--crystal-accent);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--crystal-glow);
}

/* Mobile responsiveness improvements */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    .crystal-card:hover {
        transform: none;
        box-shadow: 0 0 20px rgba(123, 47, 247, 0.3);
    }

    /* Reduce animations on mobile for better performance */
    .floating {
        animation-duration: 6s;
    }

    /* Improve touch targets */
    button, a {
        min-height: 44px;
        min-width: 44px;
    }

    /* Better text scaling */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
}

@media (max-width: 480px) {
    body {
        font-size: 13px;
    }

    .hero-title {
        font-size: 2.5rem !important;
        letter-spacing: 0.05em;
    }

    .main-crystal {
        width: 200px !important;
        height: 200px !important;
    }

    /* Stack elements vertically on very small screens */
    .flex-col.lg\\:flex-row {
        flex-direction: column !important;
    }

    /* Reduce padding on mobile */
    .crystal-card {
        padding: 1rem !important;
    }

    /* Better spacing for mobile grids */
    .nav-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    /* Improve button layouts */
    .flex.gap-4 {
        flex-direction: column !important;
        gap: 0.5rem !important;
    }

    .flex.gap-4 > * {
        text-align: center !important;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .crystal-card:hover {
        transform: none;
        box-shadow: none;
    }

    /* Remove hover effects on touch devices */
    a:hover, button:hover {
        transform: none;
        box-shadow: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .crystal-card {
        border: 2px solid rgba(255, 255, 255, 0.3);
        background: rgba(255, 255, 255, 0.1);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .floating {
        animation: none;
    }

    .crystal-card {
        transition: none;
    }

    .main-crystal {
        animation: none;
    }

    * {
        transition: none !important;
    }
}

/* Better focus states for accessibility */
.crystal-card:focus,
button:focus,
a:focus {
    outline: 2px solid var(--crystal-glow);
    outline-offset: 2px;
}

/* Prevent horizontal scroll on mobile */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* Improve readability on mobile */
@media (max-width: 768px) {
    p, li {
        line-height: 1.6;
    }

    .text-lg {
        font-size: 1rem;
    }

    .text-xl {
        font-size: 1.125rem;
    }
}

