/* MTG Tracker Custom Styles */

:root {
    /* MTG Color Palette */
    --mtg-primary: #1a1a2e;
    --mtg-secondary: #16213e;
    --mtg-accent: #0f3460;
    --mtg-gold: #d4af37;
    --mtg-silver: #c0c0c0;
    --mtg-mystical: #6a4c93;
    --mtg-arcane: #9d4edd;
    --mtg-light: #f8f9fa;
    --mtg-dark: #0d1117;
    --mtg-gradient: linear-gradient(135deg, var(--mtg-primary) 0%, var(--mtg-secondary) 50%, var(--mtg-accent) 100%);
    --mtg-card-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --mtg-glow: 0 0 20px rgba(212, 175, 55, 0.3);
    --mtg-mystical-glow: 0 0 15px rgba(157, 78, 221, 0.4);
}

/* Base Styles */
html {
    font-size: 14px;
    scroll-behavior: smooth;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body.mtg-body {
    font-family: 'Crimson Text', serif;
    background: var(--mtg-gradient);
    background-attachment: fixed;
    color: var(--mtg-light);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Mystical Background Overlay */
.mystical-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 80%, rgba(212, 175, 55, 0.1) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(157, 78, 221, 0.1) 0%, transparent 50%), radial-gradient(circle at 40% 40%, rgba(106, 76, 147, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Header Styles */
.mtg-header {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--mtg-gold);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.mtg-navbar {
    padding: 1rem 0;
}

.mtg-brand {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--mtg-gold) !important;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.brand-icon {
    font-size: 2rem;
    filter: drop-shadow(0 0 8px var(--mtg-gold));
}

.brand-text {
    letter-spacing: 1px;
}

.mtg-nav-link {
    font-family: 'Cinzel', serif;
    font-weight: 500;
    color: var(--mtg-light) !important;
    padding: 0.5rem 1rem !important;
    border-radius: 25px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-icon {
    font-size: 1.1rem;
}

/* Main Content */
.mtg-main {
    padding: 3rem 0;
    min-height: calc(100vh - 200px);
}

.mtg-content-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 3rem;
    margin: 2rem 0;
    box-shadow: var(--mtg-card-shadow);
    border: 2px solid rgba(212, 175, 55, 0.3);
    color: var(--mtg-dark);
    position: relative;
    overflow: hidden;
}

    .mtg-content-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, var(--mtg-gold), var(--mtg-mystical), var(--mtg-arcane));
    }

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Cinzel', serif;
    color: var(--mtg-primary);
    margin-bottom: 1rem;
}

    h1.display-4 {
        font-size: 3rem;
        font-weight: 700;
        text-align: center;
        background: linear-gradient(45deg, var(--mtg-primary), var(--mtg-mystical));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        margin-bottom: 2rem;
    }

/* Forms */
.form-control:focus {
    border-color: var(--mtg-mystical);
    box-shadow: 0 0 0 0.25rem rgba(157, 78, 221, 0.25);
}

.form-control {
    border-radius: 10px;
    border: 2px solid rgba(157, 78, 221, 0.3);
    transition: all 0.3s ease;
}

/* Footer */
.mtg-footer {
    background: rgba(13, 17, 23, 0.95);
    backdrop-filter: blur(10px);
    color: var(--mtg-light);
    padding: 2rem 0;
    border-top: 2px solid var(--mtg-gold);
    margin-top: auto;
}

.footer-link {
    color: var(--mtg-gold);
    text-decoration: none;
    transition: all 0.3s ease;
}

    .footer-link:hover {
        color: var(--mtg-silver);
        text-shadow: var(--mtg-glow);
    }

/* Login Partial Styles */
.navbar-nav .nav-link {
    font-family: 'Cinzel', serif;
    font-weight: 500;
}

#logout {
    background: none !important;
    border: none !important;
    color: var(--mtg-light) !important;
    font-family: 'Cinzel', serif;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: 25px !important;
    transition: all 0.3s ease !important;
}

    #logout:hover {
        background: linear-gradient(45deg, #dc3545, #c82333) !important;
        color: white !important;
        box-shadow: 0 0 15px rgba(220, 53, 69, 0.4) !important;
        transform: translateY(-2px) !important;
    }

/* Card-like sections */
.mtg-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 2rem;
    margin: 1rem 0;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    border: 2px solid rgba(212, 175, 55, 0.2);
    transition: all 0.3s ease;

/* Responsive adjustments */
@media (max-width: 768px) {
    .mtg-content-card {
        padding: 2rem 1rem;
        margin: 1rem;
        border-radius: 15px;
    }

    .mtg-brand {
        font-size: 1.5rem;
    }

    h1.display-4 {
        font-size: 2rem;
    }

    .mtg-nav-link {
        padding: 0.5rem 0.75rem !important;
        font-size: 0.9rem;
    }
}

/* Animation for mystical effects */
@keyframes mysticalGlow {
    0%, 100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.7;
    }
}

.mystical-animation {
    animation: mysticalGlow 3s ease-in-out infinite;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--mtg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--mtg-gold);
    border-radius: 4px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: var(--mtg-silver);
    }

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1001 !important;
    width: 100vw;
    height: 100vh;
    background-color: #000;
}