/* 
   RagnaVerse Premium Stylesheet 
   Tailored HSL aesthetic, premium modern design 
*/

:root {
    /* Color Palette - Cyberpunk/Fantasy Dark Mode */
    --base-hue: 220;
    /* Deep blueish tint for bg */
    --bg-dark: hsl(var(--base-hue), 30%, 6%);
    --bg-card: hsl(var(--base-hue), 25%, 10%);
    --bg-alt: hsl(var(--base-hue), 20%, 8%);

    /* Primary is now Ragnaverse Blue */
    --primary: hsl(210, 100%, 50%);
    --primary-hover: hsl(210, 100%, 65%);
    --primary-glow: hsla(210, 100%, 50%, 0.4);

    /* Secondary is now Purple/Pink */
    --secondary: hsl(270, 80%, 60%);
    --secondary-hover: hsl(270, 80%, 70%);

    --accent: hsl(180, 80%, 50%);

    --text-main: hsl(var(--base-hue), 10%, 95%);
    --text-muted: hsl(var(--base-hue), 10%, 70%);

    --glass-border: hsla(0, 0%, 100%, 0.08);
    --glass-bg: hsla(var(--base-hue), 25%, 15%, 0.5);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

/* Typography Classes */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 700;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

/* Layout Constraints */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
}

.bg-alt {
    background-color: var(--bg-alt);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    font-family: var(--font-heading);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-smooth);
    border: none;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    box-shadow: 0 0 20px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px var(--primary-glow);
    filter: brightness(1.1);
}

.btn-secondary {
    background-color: var(--bg-card);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
}

.btn-secondary:hover {
    background-color: var(--glass-bg);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
    box-shadow: 0 0 20px var(--primary-glow);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all var(--transition-smooth);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    padding: 1rem 0;
    background-color: rgba(9, 9, 14, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo-accent {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1rem;
    color: var(--text-muted);
    position: relative;
    padding-bottom: 0.25rem;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-main);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--primary);
    transition: width var(--transition-fast);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Vote Widget */
.vote-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 500;
    background: var(--bg-card);
    border: 1px solid var(--primary-glow);
    border-radius: 16px;
    padding: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px var(--primary-glow);
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transform: translateY(150%);
    opacity: 0;
}

.vote-widget.visible {
    transform: translateY(0);
    opacity: 1;
}

@keyframes slideUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.vote-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.vote-text h4 {
    margin: 0;
    font-size: 1rem;
    color: var(--primary);
}

.vote-text p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

.vote-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    position: absolute;
    top: -10px;
    right: -10px;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.vote-close:hover {
    color: white;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 2rem;
    background: transparent;
    overflow: hidden;
}

/* Generate a simulated aesthetic background using CSS */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 30%, hsla(210, 80%, 40%, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, hsla(180, 80%, 40%, 0.15) 0%, transparent 40%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeIn 1s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 1.5rem;
    backdrop-filter: blur(4px);
}

.hero-title {
    font-size: clamp(3rem, 5vw, 4.5rem);
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 4rem;
}

.server-stats {
    display: flex;
    gap: 3rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 1.5rem 3rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    color: white;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Features */
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.125rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    transition: transform var(--transition-smooth), border-color var(--transition-smooth);
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    background: linear-gradient(180deg, var(--bg-card) 0%, rgba(20, 30, 60, 0.4) 100%);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

/* Resources */
.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.resource-pill {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    padding: 1.5rem;
    border-radius: 16px;
    transition: all var(--transition-fast);
}

.resource-pill:hover {
    background: var(--glass-bg);
    border-color: var(--secondary);
    transform: scale(1.02);
}

.r-icon {
    font-size: 1.5rem;
    margin-right: 1rem;
}

.r-title {
    font-weight: 600;
    font-family: var(--font-heading);
    flex-grow: 1;
}

.r-arrow {
    color: var(--secondary);
    font-weight: bold;
    transition: transform var(--transition-fast);
}

.resource-pill:hover .r-arrow {
    transform: translateX(5px);
}

/* Download Section */
.download-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.download-content h2 {
    font-size: 3rem;
}

.download-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.download-visual {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.glass-orb {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 158, 227, 0.4), rgba(43, 138, 226, 0.1));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 50px rgba(0, 158, 227, 0.3), inset 0 0 30px rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Footer */
footer {
    background: var(--bg-card);
    border-top: 1px solid var(--glass-border);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 1rem;
    max-width: 300px;
}

.footer-links {
    display: flex;
    gap: 4rem;
}

.link-group h4 {
    margin-bottom: 1.5rem;
    color: white;
}

.link-group a {
    display: block;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.link-group a:hover {
    color: var(--primary);
    transform: translateX(3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Master Hub Grid System */
.dashboard {
    padding-top: 100px;
    padding-bottom: 50px;
}

.sidebar {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar li {
    margin-bottom: 1rem;
}

.sidebar a {
    color: var(--text-main);
    font-weight: 500;
    display: block;
    padding: 0.5rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.sidebar a:hover {
    background: var(--glass-bg);
    color: var(--primary);
}

.sidebar a.active {
    background: var(--primary) !important;
    color: white !important;
}

.main-panel {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
}

.grid-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .classes-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}



/* Floating Discord Widget */
.discord-floating-widget {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: #5865F2;
    /* Cor oficial do Discord */
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.5rem;
    box-shadow: 0 5px 15px rgba(88, 101, 242, 0.4);
    z-index: 1000;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.discord-floating-widget:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 8px 25px rgba(88, 101, 242, 0.6);
}

/* Master Hub Sidebar */