@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Inter:wght@300;400;500&display=swap');

:root {
    --gold: #d4af37;
    --gold-light: #f3e5ab;
    --text-dark: #2d3748;
    --text-light: #718096;
    --bg-gradient-start: #fdfbf7;
    --bg-gradient-end: #ebf4ff;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, #fff1eb 50%, var(--bg-gradient-end) 100%);
    color: var(--text-dark);
    min-height: 100vh;
    overflow-x: hidden;
}

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

/* Glassmorphism Utilities */
.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

.glass-sidebar {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    border-right: 1px solid rgba(212, 175, 55, 0.2);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.4);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 175, 55, 0.7);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

.card-flip-container {
    perspective: 1000px;
}

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

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

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.card-front {
    background: linear-gradient(135deg, #fff 0%, #f7f7f7 100%);
    border: 2px solid var(--gold);
    color: var(--gold);
    cursor: pointer;
}

.card-back {
    background: white;
    transform: rotateY(180deg);
    border: 1px solid var(--gold-light);
    flex-direction: column;
    padding: 2rem;
    overflow-y: auto;
}

/* Arcane Elements */
.mystic-border {
    border: 1px solid var(--gold);
    position: relative;
}

.mystic-border::after {
    content: '';
    position: absolute;
    top: -4px; left: -4px; right: -4px; bottom: -4px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    z-index: -1;
}

.gold-text {
    color: var(--gold);
}

.nav-item {
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.nav-item:hover, .nav-item.active {
    background: rgba(212, 175, 55, 0.1);
    color: var(--text-dark);
    border-left: 3px solid var(--gold);
    padding-left: 1.5rem;
}

/* Mobile Nav */
@media (max-width: 768px) {
    .glass-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        z-index: 50;
    }
    .glass-sidebar.open {
        transform: translateX(0);
    }
}
