@tailwind base;
@tailwind components;
@tailwind utilities;

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}
::-webkit-scrollbar-track {
    background: #0f172a; 
}
::-webkit-scrollbar-thumb {
    background: #D4AF37; 
    border-radius: 6px;
    border: 2px solid #0f172a;
}
::-webkit-scrollbar-thumb:hover {
    background: #FFD700; 
}

/* Animations */
@keyframes glow {
    0%, 100% { box-shadow: 0 0 10px #D4AF37, 0 0 20px #D4AF37; }
    50% { box-shadow: 0 0 20px #FFD700, 0 0 40px #FFD700; }
}

@keyframes ice-shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

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

.sapphire-glow {
    box-shadow: 0 0 15px rgba(15, 82, 186, 0.6);
}

.parchment-texture {
    background-color: #f5deb3;
    background-image: url('https://www.transparenttextures.com/patterns/aged-paper.png');
    /* This is a placeholder for actual parchment texture */
}

/* Glassmorphism for cards */
.glass-panel {
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Runes decoration */
.rune-border {
    position: relative;
}
.rune-border::before, .rune-border::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid #D4AF37;
    transition: all 0.3s ease;
}
.rune-border::before { top: -5px; left: -5px; border-right: none; border-bottom: none; }
.rune-border::after { bottom: -5px; right: -5px; border-left: none; border-top: none; }

.card-hover:hover .rune-border::before { top: -10px; left: -10px; }
.card-hover:hover .rune-border::after { bottom: -10px; right: -10px; }

/* Custom utility for text gradient */
.text-gradient-gold {
    background: linear-gradient(to right, #B8860B, #FFD700, #B8860B);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.frost-effect {
    background: radial-gradient(circle at center, transparent 0%, rgba(165, 242, 243, 0.05) 100%);
    pointer-events: none;
}

/* Form Styles */
.form-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid #D4AF37;
    color: #D4AF37;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    font-family: 'Playfair Display', serif;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
    background: rgba(15, 82, 186, 0.1);
}

.form-label {
    display: block;
    color: #D4AF37;
    font-family: 'Cinzel', serif;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-primary {
    width: 100%;
    background: #0F52BA;
    color: #D4AF37;
    border: 1px solid #D4AF37;
    padding: 0.75rem;
    font-family: 'Cinzel', serif;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #082567;
    box-shadow: 0 0 15px rgba(15, 82, 186, 0.6);
}

.dashboard-card {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 1.5rem;
    border-radius: 0.5rem;
}
