/* Midgard Legend RO Modern Theme - Based on blackout-remake-project */
/* Gaming Dark Theme Color Palette */
:root {
    /* Base colors - Brighter Version */
    --background: hsl(234, 25%, 15%);
    --foreground: hsl(45, 100%, 90%);
    
    --card: hsl(240, 20%, 20%);
    --card-foreground: hsl(45, 100%, 90%);
    
    --primary: hsl(267, 85%, 45%);
    --primary-foreground: hsl(0, 0%, 100%);
    
    --secondary: hsl(240, 15%, 25%);
    --secondary-foreground: hsl(45, 100%, 90%);
    
    --muted: hsl(240, 10%, 28%);
    --muted-foreground: hsl(240, 5%, 70%);
    
    --accent: hsl(45, 100%, 65%);
    --accent-foreground: hsl(234, 25%, 15%);
    
    --border: hsl(240, 15%, 30%);
    --input: hsl(240, 15%, 30%);
    --ring: hsl(267, 85%, 45%);
    
    /* Gaming specific colors - Brighter Version */
    --gaming-purple: hsl(267, 85%, 45%);
    --gaming-purple-dark: hsl(267, 85%, 35%);
    --gaming-gold: hsl(45, 100%, 65%);
    --gaming-silver: hsl(220, 15%, 75%);
    --gaming-dark: hsl(234, 25%, 15%);
    --gaming-card: hsl(240, 20%, 20%);
    --gaming-accent: hsl(240, 15%, 25%);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--gaming-purple), var(--gaming-purple-dark));
    --gradient-dark: linear-gradient(180deg, var(--gaming-dark), var(--gaming-card));
    --gradient-card: linear-gradient(145deg, var(--gaming-card), var(--gaming-accent));
    --gradient-gold: linear-gradient(135deg, var(--gaming-gold), hsl(45, 80%, 55%));
    
    /* Shadows and effects */
    --shadow-gaming: 0 10px 30px -10px hsla(267, 85%, 45%, 0.4);
    --shadow-glow: 0 0 40px hsla(267, 85%, 45%, 0.3);
    --shadow-gold: 0 5px 20px -5px hsla(45, 100%, 65%, 0.3);
    
    /* Border radius */
    --radius: 0.75rem;
}

/* Base styles */
* {
    box-sizing: border-box;
}

body {
    background: var(--background);
    color: var(--foreground);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* Layout components */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.8)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Card components */
.card {
    background: var(--gradient-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-gaming);
}

.card-header {
    margin-bottom: 1rem;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gaming-gold);
    margin: 0 0 0.5rem 0;
}

.card-content {
    color: var(--muted-foreground);
}

/* Button components */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    padding: 0.75rem 1.5rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--primary-foreground);
    box-shadow: var(--shadow-gaming);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-outline {
    background: transparent;
    color: var(--gaming-purple);
    border: 2px solid var(--gaming-purple);
}

.btn-outline:hover {
    background: var(--gaming-purple);
    color: var(--primary-foreground);
}

.btn-ghost {
    background: transparent;
    color: var(--muted-foreground);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    background: var(--secondary);
    color: var(--secondary-foreground);
}

/* Navigation */
.navbar {
    background: var(--gaming-card);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.brand-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gaming-gold, #FFD700);
    background: linear-gradient(45deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 4px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--gaming-gold);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.navbar-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--muted-foreground);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--gaming-gold);
}

/* Form elements */
.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    background: var(--input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--foreground);
    font-size: 1rem;
}

.form-input:focus {
    outline: none;
    border-color: var(--gaming-purple);
    box-shadow: 0 0 0 2px hsla(267, 85%, 45%, 0.2);
}

/* Typography */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gold {
    color: var(--gaming-gold);
}

.text-purple {
    color: var(--gaming-purple);
}

.text-muted {
    color: var(--muted-foreground);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out;
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-glow-pulse {
    animation: glowPulse 2s ease-in-out infinite;
}

/* Modern Grid System */
.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-auto-fit {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.gap-4 {
    gap: 1rem;
}

.gap-8 {
    gap: 2rem;
}

/* Flexbox utilities */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.flex-wrap {
    flex-wrap: wrap;
}

/* Spacing utilities */
.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-8 {
    margin-top: 2rem;
}

.p-4 {
    padding: 1rem;
}

.p-6 {
    padding: 1.5rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.py-8 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.py-16 {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

/* Visual utilities */
.rounded {
    border-radius: var(--radius);
}

.shadow-gaming {
    box-shadow: var(--shadow-gaming);
}

.backdrop-blur {
    backdrop-filter: blur(10px);
}

.opacity-30 {
    opacity: 0.3;
}

.opacity-50 {
    opacity: 0.5;
}

.opacity-80 {
    opacity: 0.8;
}

/* Position utilities */
.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.fixed {
    position: fixed;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.z-10 {
    z-index: 10;
}

.z-100 {
    z-index: 100;
}

.z-1000 {
    z-index: 1000;
}

/* Advanced animations and effects */
@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

@keyframes slideInFromLeft {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInFromRight {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes scaleIn {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.animate-shimmer {
    animation: shimmer 2s linear infinite;
}

.animate-slide-in-left {
    animation: slideInFromLeft 0.8s ease-out;
}

.animate-slide-in-right {
    animation: slideInFromRight 0.8s ease-out;
}

.animate-scale-in {
    animation: scaleIn 0.6s ease-out;
}

/* Enhanced card styles */
.card-interactive {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.card-interactive:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-glow), 0 20px 40px -10px rgba(0, 0, 0, 0.3);
}

.card-interactive:active {
    transform: translateY(-4px) scale(1.01);
}

/* Glass morphism effect */
.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-dark {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Modern scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gaming-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--gaming-purple);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gaming-gold);
}

/* Selection styling */
::selection {
    background: var(--gaming-purple);
    color: var(--primary-foreground);
}

::-moz-selection {
    background: var(--gaming-purple);
    color: var(--primary-foreground);
}

/* Focus states */
.btn:focus,
.form-input:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--gaming-purple), 0 0 0 4px rgba(124, 58, 237, 0.2);
}

/* Loading states */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 2s infinite;
}

/* Status indicators */
.status-online {
    position: relative;
}

.status-online::before {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    background: #10B981;
    border-radius: 50%;
    border: 2px solid var(--background);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Modern tooltips */
[data-tooltip] {
    position: relative;
}

[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gaming-dark);
    color: var(--foreground);
    padding: 0.5rem 0.75rem;
    border-radius: calc(var(--radius) - 2px);
    font-size: 0.875rem;
    white-space: nowrap;
    z-index: 1000;
    margin-bottom: 0.5rem;
    box-shadow: var(--shadow-gaming);
}

[data-tooltip]:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: var(--gaming-dark);
    z-index: 1000;
}

/* Enhanced responsive design */
@media (max-width: 1200px) {
    .container {
        max-width: 1000px;
    }
}

@media (max-width: 992px) {
    .hero-section {
        padding: 2rem 0;
    }
    
    .grid-cols-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    .text-gradient {
        font-size: clamp(2.5rem, 6vw, 4rem) !important;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero-section {
        min-height: 80vh;
        background-attachment: scroll;
    }
    
    /* Mobile Navigation */
    .mobile-menu-toggle {
        display: flex;
    }
    
    .navbar-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--gaming-card);
        border: 1px solid var(--border);
        border-top: none;
        flex-direction: column;
        gap: 0;
        padding: 1rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        box-shadow: var(--shadow-gaming);
    }
    
    .navbar-nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .navbar-nav li {
        width: 100%;
        border-bottom: 1px solid var(--border);
    }
    
    .navbar-nav li:last-child {
        border-bottom: none;
    }
    
    .nav-link {
        display: block;
        padding: 1rem;
        text-align: center;
        border-radius: var(--radius);
        transition: all 0.3s ease;
    }
    
    .nav-link:hover {
        background: var(--secondary);
        color: var(--secondary-foreground);
    }
    
    .brand-text {
        font-size: 1.4rem;
    }
    
    .grid-cols-2,
    .grid-cols-3 {
        grid-template-columns: 1fr;
    }
    
    .grid-auto-fit {
        grid-template-columns: 1fr;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    .py-16 {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-section {
        min-height: 70vh;
    }
    
    .card {
        padding: 1rem;
    }
    
    .text-gradient {
        font-size: clamp(2rem, 8vw, 3rem) !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .card {
        border-width: 2px;
    }
    
    .btn {
        border-width: 2px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .animate-fade-in,
    .animate-float,
    .animate-glow-pulse,
    .animate-shimmer,
    .animate-slide-in-left,
    .animate-slide-in-right,
    .animate-scale-in {
        animation: none;
    }
    
    .card-interactive:hover {
        transform: none;
    }
    
    * {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* Print styles */
@media print {
    .navbar,
    .hero-section,
    .btn,
    .dropdown-menu {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .card {
        border: 1px solid black;
        background: white;
        box-shadow: none;
    }
}

/* FluxCP specific overrides */
#main {
    background: var(--background);
    color: var(--foreground);
}

.generic-table {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.generic-table th {
    background: var(--gaming-accent);
    color: var(--gaming-gold);
    padding: 0.75rem;
    font-weight: 600;
}

.generic-table td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.generic-table tr:hover {
    background: var(--secondary);
}

/* Login box styling */
.loginbox {
    background: var(--gradient-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-gaming);
}

.loginbox h2 {
    color: var(--gaming-gold);
    margin-bottom: 1.5rem;
}
