/* Typography System - Gamer Professional Style */
:root {
    --font-title: 'Orbitron', sans-serif;
    --font-subtitle: 'Rajdhani', sans-serif;
    --font-body: 'Inter', 'Poppins', system-ui, sans-serif;

    /* Purple/Lilac Color Palette */
    --primary-purple: #9A4DFF;
    --primary-purple-dark: #7B2FE0;
    --primary-purple-light: #B87AFF;
    --carousel-card-bg: rgba(8, 5, 18, 0.97);
    --carousel-card-bg-solid: #0A0614;
    --carousel-card-shadow: rgba(150, 0, 255, 0.25);
    --text-shadow-dark: rgba(0, 0, 0, 0.7);
    --overlay-dark: rgba(0, 0, 0, 0.4);
}

html, body {
    font-family: var(--font-body);
}

/* Titles - Orbitron for futuristic impact */
h1, h2, h3 {
    font-family: var(--font-title);
    letter-spacing: 0.04em;
    font-weight: 700;
    line-height: 1.15;
}

/* Subtitles - Rajdhani for technical feel */
h4, h5, h6 {
    font-family: var(--font-subtitle);
    letter-spacing: 0.3px;
    font-weight: 600;
}

/* Body text - Poppins for readability */
p, span, li, a, button {
    font-family: var(--font-body);
    line-height: 1.7;
}

/* Mono/Technical text - Rajdhani */
code, pre, .font-mono {
    font-family: var(--font-subtitle);
    letter-spacing: 0.1em;
}

a, .btn-link {
    color: var(--link-color, #48D6FF);
}
a:hover {
    color: var(--link-hover, #7DE6FF);
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}


.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

/* ============================================
   Futuristic Carousel Styles (Swiper.js)
   ============================================ */

/* Container */
.futuristic-carousel {
    width: 100%;
    padding: 1rem 0;
}

/* Slide Base */
.futuristic-carousel .swiper-slide {
    height: auto;
    opacity: 0.5;
    transform: scale(0.9);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Adjacent Slides */
.futuristic-carousel .swiper-slide-prev,
.futuristic-carousel .swiper-slide-next {
    opacity: 0.65;
    transform: scale(0.92);
}

/* Active Slide - Center card with elevation */
.futuristic-carousel .swiper-slide-active {
    opacity: 1;
    transform: scale(1.05);
    z-index: 2;
}

/* Card inside slide */
.futuristic-carousel .carousel-card {
    background: var(--carousel-card-bg-solid);
    background: linear-gradient(165deg, var(--carousel-card-bg) 0%, rgba(6, 3, 14, 0.98) 100%);
    backdrop-filter: blur(18px) saturate(1.2);
    -webkit-backdrop-filter: blur(18px) saturate(1.2);
    border: 1px solid rgba(140, 98, 255, 0.25);
    border-radius: 1.5rem;
    padding: 1.5rem;
    min-height: 350px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    box-shadow: 0 18px 60px rgba(0,0,0,0.65), 0 0 12px var(--carousel-card-shadow);
}

@supports not (backdrop-filter: blur(1px)) {
    .futuristic-carousel .carousel-card {
        background: var(--carousel-card-bg-solid);
    }
}

.futuristic-carousel .swiper-slide-active .carousel-card {
    border-color: rgba(154, 77, 255, 0.6);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.7), 0 0 30px var(--carousel-card-shadow);
}

/* Bottom accent bar */
.carousel-card .accent-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-color, #9A4DFF), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.futuristic-carousel .swiper-slide-active .carousel-card .accent-bar {
    opacity: 1;
}

/* Navigation Buttons */
.carousel-nav-btn {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: rgba(154, 77, 255, 0.2);
    border: 1px solid rgba(154, 77, 255, 0.5);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 20;
}

.carousel-nav-btn:hover {
    background: rgba(154, 77, 255, 0.35);
    border-color: rgba(184, 122, 255, 0.7);
    color: #B87AFF;
    box-shadow: 0 0 20px rgba(154, 77, 255, 0.4);
    transform: scale(1.1);
}

.carousel-nav-btn:active {
    transform: scale(0.95);
}

.carousel-nav-btn.swiper-button-disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

@media (min-width: 768px) {
    .carousel-nav-btn {
        width: 3.5rem;
        height: 3.5rem;
    }
}

/* Pagination */
.carousel-pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.carousel-pagination .swiper-pagination-bullet {
    width: 0.5rem;
    height: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 9999px;
    transition: all 0.3s ease;
    cursor: pointer;
    opacity: 1;
}

.carousel-pagination .swiper-pagination-bullet:hover {
    background: rgba(255, 255, 255, 0.4);
}

.carousel-pagination .swiper-pagination-bullet-active {
    width: 2rem;
    background: linear-gradient(90deg, #9A4DFF, #B87AFF);
    box-shadow: 0 0 10px rgba(154, 77, 255, 0.6);
}

/* Color Variants */
.carousel-card.color-cyan {
    --accent-color: #06b6d4;
}
.carousel-card.color-cyan .accent-bar {
    background: linear-gradient(90deg, transparent, #06b6d4, transparent);
}
.futuristic-carousel .swiper-slide-active .carousel-card.color-cyan {
    border-color: rgba(6, 182, 212, 0.5);
    box-shadow: 0 0 40px rgba(6, 182, 212, 0.2), 0 4px 30px rgba(0, 0, 0, 0.5);
}

.carousel-card.color-purple {
    --accent-color: #8b5cf6;
}
.carousel-card.color-purple .accent-bar {
    background: linear-gradient(90deg, transparent, #8b5cf6, transparent);
}

.carousel-card.color-yellow {
    --accent-color: #eab308;
}
.carousel-card.color-yellow .accent-bar {
    background: linear-gradient(90deg, transparent, #eab308, transparent);
}
.futuristic-carousel .swiper-slide-active .carousel-card.color-yellow {
    border-color: rgba(234, 179, 8, 0.5);
    box-shadow: 0 0 40px rgba(234, 179, 8, 0.2), 0 4px 30px rgba(0, 0, 0, 0.5);
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .futuristic-carousel .carousel-card {
        min-height: 320px;
        padding: 1.25rem;
    }
}

/* ============================================
   Logo Grid - About Section
   ============================================ */

.logo-card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border-radius: 0.75rem;
    background: var(--item-bg, rgba(10, 6, 22, 0.65));
    border: 1px solid var(--item-border, rgba(140, 98, 255, 0.18));
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.logo-card:hover {
    background: var(--item-bg-hover, rgba(10, 6, 22, 0.80));
    border-color: var(--item-border-hover, rgba(140, 98, 255, 0.45));
    transform: scale(1.05);
}

.logo-container {
    width: 100%;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    opacity: 0.75;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.2));
    transition: all 0.3s ease;
}

.logo-card:hover .logo-image {
    opacity: 1;
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.4));
}

/* Responsive logo sizes */
@media (min-width: 640px) {
    .logo-container {
        height: 48px;
    }
    .logo-card {
        padding: 1.25rem;
    }
}

@media (min-width: 768px) {
    .logo-container {
        height: 56px;
    }
    .logo-card {
        padding: 1.5rem;
    }
}

/* ============================================
   Futuristic Title Effects
   ============================================ */

/* Animated Gradient Reflection Title */
.title-futuristic-glow {
    position: relative;
    background: linear-gradient(
        90deg, 
        #ffffff 0%, 
        var(--primary-purple-light) 25%, 
        #ffffff 50%, 
        var(--primary-purple) 75%, 
        #ffffff 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmerTitle 3s linear infinite;
    text-shadow: none;
}

@keyframes shimmerTitle {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* Purple glow text effect - reduced for legibility */
.text-glow-purple {
    text-shadow: 
        0 0 10px rgba(154, 77, 255, 0.35),
        0 0 20px rgba(154, 77, 255, 0.15);
}

/* Dark overlay for starfield background */
.starfield-overlay {
    position: relative;
}

.starfield-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--overlay-dark);
    pointer-events: none;
    z-index: 1;
}

.starfield-overlay > * {
    position: relative;
    z-index: 2;
}

/* ============================================ */

/* ============================================
   Planet Hitbox - Expanded Click Area
   ============================================ */

.planet-hitbox {
    background: transparent;
    border: none;
    padding: 0;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    --orbit-counter-rotate: 0deg;
    rotate: var(--orbit-counter-rotate);
}

/* Counter-rotate planet visuals so they stay upright while orbit rotates */
.planet-visual {
    will-change: transform;
}

/* Counter-rotate labels to keep them readable */
[id^="label-"] {
    --orbit-counter-rotate: 0deg;
    rotate: var(--orbit-counter-rotate);
}

/* Sun target needs clear pointer-events */
.sun-target {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

/* Debug mode - uncomment to see hitbox area */
/* .planet-hitbox { background: rgba(255, 0, 0, 0.2); } */

.planet-hitbox:focus-visible {
    outline: 2px solid var(--link-color, #48D6FF);
    outline-offset: 2px;
    border-radius: 50%;
}

.planet-hitbox:active .planet-visual {
    transform: scale(0.92);
}

/* ============================================
   System Controls Panel - Pointer Isolation
   ============================================ */

.system-controls-panel {
    touch-action: auto;
    user-select: none;
    -webkit-user-select: none;
}

/* Enhanced slider for cross-device reliability */
.slider-enhanced {
    touch-action: none;
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(to right, rgba(6, 182, 212, 0.3), rgba(139, 92, 246, 0.3));
    outline: none;
    cursor: pointer;
}

.slider-enhanced::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #06b6d4, #8b5cf6);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
    transition: transform 0.15s, box-shadow 0.15s;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.slider-enhanced::-webkit-slider-thumb:hover {
    transform: scale(1.25);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.7);
}

.slider-enhanced::-webkit-slider-thumb:active {
    transform: scale(1.15);
}

.slider-enhanced::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #06b6d4, #8b5cf6);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.slider-enhanced:focus-visible {
    outline: 2px solid var(--link-color, #48D6FF);
    outline-offset: 2px;
}

/* ============================================ */

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyI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 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}