/* Sirilite Custom Mystical Styles */

:root {
    --mystical-purple: #6f42c1;
    --mystical-gold: #ffd700;
    --mystical-blue: #4c6ef5;
    --mystical-dark: #0d1117;
    --mystical-darker: #010409;
    --mystical-border: #21262d;
}

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

::-webkit-scrollbar-track {
    background: var(--mystical-dark);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, var(--mystical-purple), var(--mystical-blue));
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, var(--mystical-blue), var(--mystical-gold));
}

/* Body and base styles */
body {
    background: linear-gradient(135deg, #0d1117 0%, #1a1f2e 50%, #0d1117 100%);
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    position: relative;
    font-size: 1.05rem;
    line-height: 1.7;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(111, 66, 193, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(76, 110, 245, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(255, 215, 0, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Navigation styles */
.navbar {
    backdrop-filter: blur(10px);
    background: rgba(13, 17, 23, 0.95) !important;
    box-shadow: 0 2px 20px rgba(111, 66, 193, 0.2);
    z-index: 50;
}

.navbar-brand {
    font-size: 1.5rem;
    text-shadow: 0 0 10px rgba(111, 66, 193, 0.5);
}

.navbar-brand:hover {
    color: var(--mystical-gold) !important;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.7);
}

.nav-link {
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--mystical-gold) !important;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--mystical-purple), var(--mystical-gold));
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

/* Dropdown menu */
.dropdown-menu {
    background: rgba(13, 17, 23, 0.95) !important;
    backdrop-filter: blur(10px);
    border: 1px solid var(--mystical-border);
    box-shadow: 0 10px 30px rgba(111, 66, 193, 0.3);
    z-index: 1060 !important;
    /* Higher than any content */
}

.dropdown-item {
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: linear-gradient(45deg, rgba(111, 66, 193, 0.2), rgba(76, 110, 245, 0.2));
    color: var(--mystical-gold) !important;
}

/* Fix dropdown toggle positioning - let Bootstrap handle ::after */
.dropdown-toggle {
    cursor: pointer !important;
}

.dropdown-toggle:focus {
    box-shadow: none !important;
}

/* Buttons */
.btn-mystical {
    background: linear-gradient(45deg, var(--mystical-purple), var(--mystical-blue));
    border: none;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(111, 66, 193, 0.3);
}

.btn-mystical:hover {
    background: linear-gradient(45deg, var(--mystical-blue), var(--mystical-gold));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(111, 66, 193, 0.4);
    color: white;
}

/* Cards */
.card-mystical {
    background: rgba(13, 17, 23, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid var(--mystical-border);
    box-shadow: 0 8px 32px rgba(111, 66, 193, 0.2);
    transition: all 0.3s ease;
}

.card-mystical:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(111, 66, 193, 0.3);
    border-color: var(--mystical-purple);
}

/* Glowing text effect */
.text-glow {
    text-shadow: 0 0 10px currentColor;
}

.text-glow-gold {
    color: var(--mystical-gold);
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
}

.text-glow-purple {
    color: var(--mystical-purple);
    text-shadow: 0 0 15px rgba(111, 66, 193, 0.6);
}



/* Floating animation */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.floating {
    animation: float 3s ease-in-out infinite;
}

/* Sparkle animation */
@keyframes sparkle {

    0%,
    100% {
        opacity: 0;
        transform: scale(0);
    }

    50% {
        opacity: 1;
        transform: scale(1);
    }
}

.sparkle {
    animation: sparkle 2s ease-in-out infinite;
}

/* Loading spinner */
.loading-spinner {
    border: 4px solid rgba(111, 66, 193, 0.3);
    border-left: 4px solid var(--mystical-purple);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

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

    100% {
        transform: rotate(360deg);
    }
}

/* Form styles */
.form-control:focus {
    border-color: var(--mystical-purple);
    box-shadow: 0 0 0 0.2rem rgba(111, 66, 193, 0.25);
}

.form-control {
    background: rgba(13, 17, 23, 0.8);
    border-color: var(--mystical-border);
    color: white;
}

.form-control::placeholder {
    color: #6c757d;
}

/* Footer */
footer {
    backdrop-filter: blur(10px);
    background: rgba(13, 17, 23, 0.95) !important;
}

/* Responsive design */
@media (max-width: 768px) {


    .navbar-brand {
        font-size: 1.2rem;
    }
}

/* Icon animations */
.bi {
    transition: all 0.3s ease;
}

.nav-link:hover .bi,
.dropdown-item:hover .bi {
    transform: scale(1.1);
    color: var(--mystical-gold);
}

/* Custom text styles */
.text-mystical {
    background: linear-gradient(45deg, var(--mystical-purple), var(--mystical-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Shadow effects */
.shadow-mystical {
    box-shadow: 0 10px 30px rgba(111, 66, 193, 0.3) !important;
}

.shadow-mystical-lg {
    box-shadow: 0 15px 40px rgba(111, 66, 193, 0.4) !important;
}

/* Article content styling */
.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #e0e0e0;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content strong,
.article-content b {
    color: #ffd700;
    font-weight: 600;
}

.article-content em,
.article-content i {
    color: #b19cd9;
    font-style: italic;
}

.article-content h2,
.article-content h3,
.article-content h4 {
    color: #ffd700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.article-content ul,
.article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-content blockquote {
    border-left: 4px solid #6f42c1;
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #b19cd9;
}

/* Global text improvements for better readability across the entire site */
.text-secondary {
    color: #9ca3af !important;
}

.text-muted {
    color: #9ca3af !important;
}

.lead {
    font-size: 1.3rem !important;
    color: #9ca3af !important;
    line-height: 1.6;
}

.small, small {
    font-size: 0.925rem;
}

.card-text {
    line-height: 1.6;
}

p {
    margin-bottom: 1rem;
}

/* Ensure breadcrumb is readable */
.breadcrumb-item,
.breadcrumb-item a {
    color: #9ca3af !important;
}

.breadcrumb-item.active {
    color: #d1d5db !important;
}