/* 
 * Minerium Theme - Premium & Modern
 * Author: chaffy999
 */

:root {
  /* Core Colors using OkLCH for better gradients if supported, falling back to hex */
  --primary-color: #ff9800; /* Fallback */
  --primary-rgb: 255, 152, 0;
  
  --bg-dark: #0f1014;
  --bg-darker: #0a0b0e;
  --bg-light: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.05);
  
  --text-main: #ffffff;
  --text-muted: #94a3b8;
  
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-bg: rgba(15, 16, 20, 0.7);
  
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.2), 0 4px 6px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
  
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  
  --font-heading: 'Outfit', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

/* Global Reset & Typography */
html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-main);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.2s ease;
}

a:hover {
    color: var(--text-main);
}

/* Utilities */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
}

.text-gradient {
    background: linear-gradient(135deg, var(--text-main) 0%, rgba(255,255,255,0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Navbar */
.top-banner {
    background: linear-gradient(90deg, var(--primary-color), color-mix(in srgb, var(--primary-color), white 20%));
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.5rem 0;
    text-align: center;
    position: relative;
    z-index: 1010;
}

/* Navbar positioning - stacking fix */
.navbar {
    background: rgba(10, 11, 14, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s ease;
    padding: 1rem 0;
    position: sticky; /*Changed from fixed/top:0 to sticky to naturally stack below banner */
    top: 0;
    z-index: 1000;
}

/* Top Banner - make it scroll naturally with page */
.top-banner {
    position: relative;
    z-index: 1001;
}

/* Input Styling - Dark/Glass Theme */
.form-control, .form-select, input, select, textarea {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid var(--glass-border) !important;
    color: var(--text-main) !important;
    backdrop-filter: blur(5px);
    border-radius: var(--radius-sm);
}

.form-control:focus, .form-select:focus, input:focus, select:focus, textarea:focus {
    background-color: rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 0 0 0.25rem rgba(var(--primary-color-rgb), 0.25) !important;
    border-color: var(--primary-color) !important;
    color: #fff !important;
}

/* Modals & Dropdowns - Dark Theme */
.modal-content {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    color: var(--text-main);
}

.modal-header {
    border-bottom: 1px solid var(--glass-border);
}

.modal-footer {
    border-top: 1px solid var(--glass-border);
}

.btn-close-white {
    filter: invert(1) grayscale(100%) brightness(200%);
}

.dropdown-menu {
    background: var(--bg-darker);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    padding: 0.5rem;
}

.dropdown-item {
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.dropdown-item:hover, .dropdown-item:focus {
    background: rgba(255, 255, 255, 0.05);
    color: var(--primary-color);
}

.dropdown-divider {
    border-top-color: var(--glass-border);
}

/* Widen Layout */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px; /* Standard Bootstrap XXL */
    }
}
@media (min-width: 1600px) {
    .container {
        max-width: 1500px; /* Custom wider breakpoint */
    }
}

/* Fix Content Padding - Redux */
/* With sticky navbar, we don't need huge padding-top, just enough for spacing */
body:not(.home-page) .content, 
body:not(.home-page) main.container.content {
    padding-top: 3rem !important; 
    padding-bottom: 5rem;
}


.nav-logo {
    height: 40px;
    width: auto;
    margin-right: 1rem;
    transition: transform 0.3s ease;
}

.nav-logo:hover {
    transform: scale(1.1);
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    color: var(--text-muted) !important;
    position: relative;
    padding: 0.5rem 1rem !important;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-main) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 20px;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    margin-top: -80px; /* Offset navbar */
    padding-top: 80px;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(10, 11, 14, 0.4), var(--bg-dark));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
}

.hero-logo {
    max-width: 300px;
    filter: drop-shadow(0 0 30px rgba(var(--primary-rgb), 0.3));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Curve Divider */
.hero-curve {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
    z-index: 2;
}

.hero-curve svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 100px;
}

.hero-curve .shape-fill {
    fill: var(--bg-dark);
}

/* Generic Sections */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: left;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin: 1rem 0 0; /* Left aligned margin */
    border-radius: 2px;
}

.subtitle {
    text-align: left;
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: -1rem 0 3rem; /* Left aligned */
}

/* Blog Cards */
.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(var(--primary-rgb), 0.3);
}

.blog-image {
    height: 220px;
    object-fit: cover;
    width: 100%;
    border-bottom: 1px solid var(--glass-border);
}

.blog-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.blog-meta {
    margin-top: auto;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
}

/* Stats Cards */
.stats-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: var(--radius-md);
    text-align: center;
    transition: all 0.3s ease;
}

.stats-card:hover {
    transform: scale(1.05);
    background: linear-gradient(145deg, var(--bg-card), rgba(var(--primary-rgb), 0.1));
    border-color: var(--primary-color);
}

.stats-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px rgba(var(--primary-rgb), 0.4));
}

.stats-value {
    font-size: 3rem;
    font-weight: 800;
    font-family: var(--font-heading);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stats-label {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* CTA Section */
.cta-wrapper {
    background: radial-gradient(circle at center, rgba(var(--primary-rgb), 0.15) 0%, transparent 70%), 
                rgba(15, 16, 20, 0.5);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    border-radius: var(--radius-lg);
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(to right, white, var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn-primary {
    background: var(--primary-color);
    border: none;
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 50px; /* Pill shape */
    font-weight: 600;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.3);
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.btn-primary:hover {
    background: color-mix(in srgb, var(--primary-color), white 10%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(var(--primary-rgb), 0.5);
    color: white;
}

/* Footer */
.footer {
    background: var(--bg-darker);
    border-top: 1px solid var(--glass-border);
    padding: 5rem 0 2rem;
    margin-top: 5rem;
    color: var(--text-muted);
}

.footer-title {
    color: var(--text-main);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(var(--primary-rgb), 0.3);
    display: inline-block;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--text-muted);
    transition: padding-left 0.2s ease, color 0.2s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

/* Plugins Support - General */
.bg-card {
    background-color: var(--bg-card);
}

.card {
    background-color: var(--bg-card);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
}

.card-body {
    padding: 2rem;
}

.table {
    color: var(--text-main);
}
.table-hover tbody tr:hover {
    color: var(--text-main);
    background-color: rgba(255,255,255,0.05);
}

/* Leaderboard Specifics */
.leaderboard-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    margin-bottom: 0.5rem;
    border-radius: var(--radius-sm);
    padding: 1rem;
    display: flex;
    align-items: center;
    transition: background 0.2s ease;
}

.leaderboard-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.rank {
    font-size: 1.5rem;
    font-weight: 800;
    width: 60px;
    color: var(--primary-color);
    opacity: 0.8;
}

.player-info {
    display: flex;
    align-items: center;
    flex-grow: 1;
}

.player-name {
    font-weight: 600;
    color: var(--text-main);
}

.vote-count {
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Accordion & List Group Dark Overrides */
.accordion-item, .accordion-button {
    background: transparent !important;
    color: var(--text-main) !important;
    border: none !important;
    box-shadow: none !important;
}

.accordion-button.collapsed {
    background: transparent !important;
    color: var(--text-main) !important;
}

.accordion-button:not(.collapsed) {
    background: rgba(255, 255, 255, 0.05) !important;
    color: var(--primary-color) !important;
}

.accordion-button::after {
    filter: invert(1) grayscale(100%) brightness(200%);
}

.list-group-item {
    color: var(--text-muted);
    transition: all 0.2s ease;
}

.list-group-item:not(.active) {
    color: rgba(255, 255, 255, 0.7) !important;
    background: transparent !important;
    border-color: transparent !important;
}

.list-group-item:hover, .list-group-item.active {
    background: rgba(255, 255, 255, 0.05) !important;
    color: var(--primary-color) !important;
    border-color: transparent !important;
}

/* Text Utility Overrides for Contrast */
.text-muted {
    color: #94a3b8 !important; /* Ensure adequate contrast on dark */
}
