@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&family=Lato:wght@300;400;700&display=swap');

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1a102e; 
}
::-webkit-scrollbar-thumb {
    background: #4c3b6e; 
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #d4af37; 
}

body {
    font-family: 'Lato', sans-serif;
    background-color: #0f0818; /* Very dark violet */
    color: #e2e8f0;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .mystic-font {
    font-family: 'Cinzel', serif;
}

/* Starry Background Animation */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: transparent;
    z-index: -1;
}

/* Card Flip Animation */
.tarot-card-container {
    perspective: 1000px;
}

.tarot-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    cursor: pointer;
}

.tarot-card-container.flipped .tarot-card-inner {
    transform: rotateY(180deg);
}

.tarot-card-front, .tarot-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.tarot-card-back {
    background: linear-gradient(135deg, #2d1b4e 0%, #000000 100%);
    border: 2px solid #d4af37;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Pattern on the back of the card */
.card-pattern {
    width: 80%;
    height: 90%;
    border: 1px solid rgba(212, 175, 55, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tarot-card-front {
    background-color: #1a102e;
    transform: rotateY(180deg);
    border: 1px solid #d4af37;
    overflow: hidden;
}

/* Custom glowing effects */
.glow-text {
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.mystic-border {
    border: 1px solid rgba(212, 175, 55, 0.3);
}

/* Unique Navigation */
.sidebar-nav {
    backdrop-filter: blur(10px);
    background: rgba(15, 8, 24, 0.8);
    border-right: 1px solid rgba(212, 175, 55, 0.2);
}

/* Loading Spinner */
.loader {
    border: 5px solid #1a102e;
    border-top: 5px solid #d4af37;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
