/* ==========================================================================
   MoniCraft Network — LeaderOS Arena Frost 1:1 Theme (Purple & White Edition)
   ========================================================================== */

:host, :root, [data-bs-theme="dark"] {
    --tblr-primary: #a855f7;
    --tblr-primary-rgb: 168, 85, 247;
    --tblr-primary-fg: #ffffff;
    --tblr-link-color: #c084fc;
    --tblr-link-hover-color: #e9d5ff;
    --tblr-body-bg: #0A0E14;
    --tblr-body-color: #cbd5e1;
    --tblr-bg-surface: #141a22;
    --tblr-bg-surface-secondary: #0f141a;
    --tblr-bg-forms: #0f141a;
    --tblr-border-color: rgba(255, 255, 255, 0.08);
    --tblr-card-bg: #141a22;
    --tblr-muted: #94a3b8;

    --mc-bg-primary: #0A0E14;
    --mc-bg-secondary: #0f141a;
    --mc-bg-card: #141a22;
    --mc-bg-elevated: #1e2633;
    --mc-text-primary: #ffffff;
    --mc-text-secondary: #a7b7c2;
    --mc-border: #1f2835;
    --mc-accent: #a855f7;
    --mc-accent-hover: #c084fc;
    --arena-primary-dark: rgba(168, 85, 247, 0.8);
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0A0E14; }
::-webkit-scrollbar-thumb { background: var(--tblr-primary); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--arena-primary-dark); }
::selection { background: var(--tblr-primary); color: #fff; }

html, body {
    max-width: 100%;
    overflow-x: clip !important;
}

/* Base Canvas & Atmospheric Top Artwork */
body {
    font-family: "Open Sans", "Inter", -apple-system, BlinkMacSystemFont, sans-serif !important;
    background-color: #0A0E14 !important;
    background-image: url('../images/news_folia.png') !important;
    background-position: top center !important;
    background-size: 100% auto !important;
    background-repeat: no-repeat !important;
    color: #cbd5e1 !important;
    margin: 0;
    position: relative;
    min-height: 100vh;
}

body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1200px;
    background: linear-gradient(
        to bottom,
        rgba(10, 14, 20, 0.35) 0%,
        rgba(18, 12, 30, 0.55) 520px,
        #0A0E14 860px
    );
    z-index: 0;
    pointer-events: none;
}

.page {
    position: relative;
    background: transparent !important;
}

h1, h2, h3 {
    font-family: "Modern Antiqua", "Cinzel", serif;
    color: #ffffff !important;
}

h4, h5, h6 {
    color: #ffffff !important;
}

.cinzel, .hero-title {
    font-family: "Cinzel Decorative", "Cinzel", serif !important;
}

.text-purple {
    color: #c084fc !important;
}

/* Exact 1100px Scale Container */
.mc-container-1to1,
.mc-content-surface > .container-xl {
    max-width: 1100px !important;
}

/* Top Auth & IP Bar */
.auth-widget {
    background: rgba(20, 26, 34, 0.92);
    border: 1px solid #1f2835;
    border-radius: 4px;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    backdrop-filter: blur(6px);
}

.auth-widget .sign-out {
    background: #2a3340;
    padding: 3px 8px;
    border-radius: 2px;
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 0.5px;
    border: 1px solid #364150 !important;
    color: #ffffff !important;
    transition: all 0.2s ease;
}

.auth-widget .sign-out:hover {
    background: rgba(168, 85, 247, 0.25);
    border-color: rgba(168, 85, 247, 0.6) !important;
    color: #ffffff !important;
}

.auth-widget .sign-in-accent {
    background: linear-gradient(135deg, #9333ea 0%, #7e22ce 100%);
    border-color: rgba(216, 180, 254, 0.45) !important;
}

.auth-widget .sign-in-accent:hover {
    background: linear-gradient(135deg, #a855f7 0%, #9333ea 100%);
}

/* Main Navigation Bar (1:1 Scale) */
.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.nav-logo-container {
    width: 260px;
    z-index: 10;
    flex-shrink: 0;
    margin-right: 16px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none !important;
    transition: transform 0.22s ease;
}

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

.nav-mascot-img {
    height: 62px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 16px rgba(168, 85, 247, 0.65));
}

.nav-brand-wordmark {
    font-family: "Cinzel Decorative", "Cinzel", serif;
    font-size: 23px;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1;
    display: flex;
    flex-direction: column;
    filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.85));
}

.nav-brand-wordmark .brand-main {
    display: inline-block;
    white-space: nowrap;
}

.nav-brand-wordmark .brand-moni {
    color: #ffffff;
}

.nav-brand-wordmark .brand-craft {
    background: linear-gradient(180deg, #f3e8ff 0%, #c084fc 55%, #9333ea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-brand-wordmark .brand-sub {
    font-family: "Open Sans", sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2.5px;
    color: #d8b4fe;
    margin-top: 4px;
    text-transform: uppercase;
}

.nav-links {
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px 15px;
    flex-grow: 1;
}

.nav-link-item {
    font-family: "Cinzel", serif;
    font-weight: 700;
    font-size: 13.5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none !important;
    display: flex;
    align-items: center;
    color: #e2e8f0;
    transition: color 0.2s ease, text-shadow 0.2s ease;
    white-space: nowrap;
}

.nav-link-item:hover,
.nav-link-item.active {
    color: #c084fc !important;
    text-shadow: 0 0 12px rgba(168, 85, 247, 0.6);
    text-decoration: none !important;
}

.play-now-btn {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.85) 0%, rgba(107, 33, 168, 0.94) 52%, rgba(147, 51, 234, 0.88) 100%) !important;
    border: 1.5px solid rgba(233, 213, 255, 0.85) !important;
    box-shadow: 0 0 18px rgba(168, 85, 247, 0.55), inset 0 0 12px rgba(255, 255, 255, 0.2);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.85);
    color: #ffffff !important;
    font-family: "Cinzel", serif;
    font-weight: 700;
    text-transform: uppercase;
    padding: 9px 28px;
    border-radius: 4px;
    font-size: 14px !important;
    display: inline-block;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}

.play-now-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 26px rgba(192, 132, 252, 0.78), inset 0 0 14px rgba(255, 255, 255, 0.3);
    color: #ffffff !important;
}

/* Mobile Nav Collapse */
.mobile-nav-panel {
    background: rgba(20, 26, 34, 0.96);
    border: 1px solid rgba(168, 85, 247, 0.25);
    border-radius: 4px;
    padding: 12px 16px;
    margin-bottom: 12px;
    backdrop-filter: blur(8px);
}

/* Hero Section (1:1 Scale) */
.hero-section {
    text-align: center;
    padding-top: 90px;
    padding-bottom: 60px;
    background: transparent;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: clamp(28px, 7.2vw, 72px);
    font-weight: 700;
    text-transform: uppercase;
    background: linear-gradient(180deg, #ffffff 0%, #f3e8ff 42%, #c084fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 5px 8px rgba(0, 0, 0, 0.85));
    margin-bottom: 10px;
    line-height: 1;
}

.hero-subtitle {
    font-size: clamp(12.5px, 3.2vw, 16px);
    font-weight: 600;
    color: #ffffff;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.9);
    margin-bottom: 25px;
}

@media (max-width: 767.98px) {
    body {
        background-size: auto 440px !important;
    }
    body::before {
        height: 460px;
        background: linear-gradient(to bottom, rgba(10, 14, 20, 0.35) 0%, rgba(18, 12, 30, 0.65) 260px, #0A0E14 430px);
    }
    .hero-section {
        padding-top: 28px;
        padding-bottom: 24px;
    }
    .hero-fade-bridge {
        height: 80px;
        margin-top: -40px;
    }
    .nav-logo-container {
        width: auto;
        margin-right: 8px;
        gap: 8px;
    }
    .nav-mascot-img {
        height: 40px;
    }
    .nav-brand-wordmark {
        font-size: 17px;
    }
    .nav-brand-wordmark .brand-sub {
        font-size: 8px;
        letter-spacing: 1.5px;
    }
    .auth-widget {
        font-size: 11px;
        padding: 3px 8px;
        gap: 6px;
    }
}

/* Hero-to-Body Gradient Bridge */
.hero-fade-bridge {
    height: 200px;
    background: linear-gradient(to bottom, rgba(10, 14, 20, 0) 0%, #0A0E14 100%);
    margin-top: -100px;
    position: relative;
    z-index: 1;
    pointer-events: none;
}

.mc-content-surface {
    background: #0A0E14;
    padding-top: 20px;
    padding-bottom: 30px;
    position: relative;
    z-index: 2;
}

/* Frost Cards (Exact LeaderOS Frost Card Scale & Feel, Purple-Tinted) */
.frost-card,
.mc-content-surface .card:not(.vip-card):not(.bg-transparent) {
    background: radial-gradient(circle at 50% -30%, #241b35 0%, #141a22 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 4px !important;
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.7), 0 0 20px rgba(255, 255, 255, 0.03), inset 0 0 15px rgba(255, 255, 255, 0.02);
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.frost-card::before,
.mc-content-surface .card:not(.vip-card):not(.bg-transparent)::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(216, 180, 254, 0.25) 50%, transparent 100%);
    pointer-events: none;
}

.frost-card:hover,
.mc-content-surface .card-hover:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(168, 85, 247, 0.14);
    border-color: rgba(168, 85, 247, 0.35) !important;
}

.card-hover-effect {
    transition: all 0.3s ease;
}

.card-hover-effect:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.55), 0 0 20px rgba(168, 85, 247, 0.2) !important;
    border-color: #a855f7 !important;
}

.frost-card.card-header,
.mc-content-surface .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(20, 26, 34, 0.45) 100%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    padding: 12px 20px !important;
}

.card-title-text {
    font-family: "Modern Antiqua", "Cinzel", serif;
    font-size: 13px !important;
    font-weight: 700;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #ffffff !important;
    letter-spacing: 0.6px;
}

.card-title-icon {
    font-size: 14px;
    color: #c084fc !important;
}

/* Breadcrumb (1:1 Scale) */
.breadcrumb {
    background: rgba(20, 26, 34, 0.6) !important;
    padding: 8px 15px !important;
    border-radius: 4px !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    backdrop-filter: blur(5px);
    display: inline-flex;
    margin-bottom: 0;
}

.breadcrumb-item {
    font-size: 10px !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
}

.breadcrumb-item a {
    color: #a7b7c2 !important;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: #c084fc !important;
}

.breadcrumb-item.active {
    color: #ffffff !important;
    opacity: 0.85;
}

/* Right Sidebar Widgets (1:1 Scale) */
.players-online-widget {
    background: radial-gradient(circle at 50% -30%, #3b1d5e 0%, #141a22 100%) !important;
    border: 1px solid rgba(168, 85, 247, 0.28) !important;
    text-align: center;
    padding: 30px 20px;
    border-radius: 4px;
    margin-bottom: 25px;
}

.players-online-count {
    font-size: 42px;
    font-weight: 800;
    display: block;
    line-height: 1;
    margin-bottom: 6px;
    color: #ffffff;
    text-shadow: 0 0 25px rgba(168, 85, 247, 0.65);
}

.players-online-text {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    color: #d8b4fe;
}

.tabs-header {
    display: flex;
}

.tab-item {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    background: #0f141a;
    color: #94a3b8;
    border-bottom: 2px solid #1f2835;
    transition: all 0.2s ease;
    user-select: none;
}

.tab-item.active {
    background: #141a22;
    color: #ffffff;
    border-bottom: 2px solid #a855f7;
}

.tab-item i {
    margin-right: 5px;
    color: #c084fc;
}

.player-entry {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.25s ease;
}

.player-entry:last-child {
    border-bottom: none;
}

.player-entry:hover {
    background: rgba(168, 85, 247, 0.05);
}

.player-avatar {
    width: 38px;
    height: 38px;
    border-radius: 4px;
    border: 1px solid #1f2835;
    background: #0A0E14;
    margin-right: 15px;
    flex-shrink: 0;
}

.player-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.player-name {
    font-weight: 700;
    font-size: 13px;
    line-height: 1.2;
    color: #ffffff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.player-meta {
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 600;
    color: #94a3b8;
}

.player-value {
    font-weight: 700;
    font-size: 12px;
    text-align: right;
    color: #c084fc;
    white-space: nowrap;
}

.btn-view-more {
    display: block;
    background: #1a222c;
    color: #a7b7c2 !important;
    text-align: center;
    padding: 12px 0;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none !important;
    border-top: 1px solid #1f2835;
    transition: all 0.2s ease;
}

.btn-view-more:hover {
    background: rgba(168, 85, 247, 0.16);
    color: #ffffff !important;
}

/* Store Category Grid & Tabs Harmony */
.nav-tabs .nav-link.active {
    background: #141a22 !important;
    border-color: rgba(168, 85, 247, 0.4) !important;
    border-bottom-color: #141a22 !important;
    color: #ffffff !important;
}

.btn-primary {
    background: linear-gradient(135deg, #a855f7 0%, #7e22ce 100%) !important;
    border-color: #c084fc !important;
    color: #ffffff !important;
    border-radius: 4px !important;
}

.mc-content-surface .btn {
    border-radius: 4px !important;
}

.btn-primary:hover, .btn-primary:focus {
    background: linear-gradient(135deg, #c084fc 0%, #9333ea 100%) !important;
    border-color: #e9d5ff !important;
    box-shadow: 0 0 16px rgba(168, 85, 247, 0.45) !important;
}

/* Footer 1:1 Scale */
.footer-1to1 {
    background: url('../images/news_boss.png') center bottom/cover no-repeat, #0A0E14;
    padding: 80px 0 60px;
    border-top: none;
    box-shadow: 0 -30px 60px #0A0E14;
    position: relative;
    z-index: 10;
    margin-top: auto;
}

.footer-1to1::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, #0A0E14 0%, rgba(12, 10, 22, 0.72) 45%, rgba(10, 14, 20, 0.92) 100%);
    z-index: -1;
}

.footer-logo-area {
    text-align: center;
}

@media (min-width: 768px) {
    .footer-logo-area {
        text-align: left;
    }
}

.footer-disclaimer {
    color: #94a3b8;
    font-size: 10.5px;
    line-height: 1.65;
    max-width: 340px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .footer-disclaimer {
        margin: 0;
    }
}

.footer-column-title {
    color: #ffffff;
    font-family: "Cinzel Decorative", "Cinzel", serif;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-shadow: 0 0 10px rgba(168, 85, 247, 0.55);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #a7b7c2 !important;
    font-size: 11.5px;
    text-decoration: none;
    transition: color 0.25s ease;
}

.footer-links a:hover {
    color: #d8b4fe !important;
}

.f-bottom-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: 50px;
    padding-top: 25px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    align-items: center;
    color: #94a3b8;
    font-size: 11px;
    width: 100%;
}

.dropdown-menu {
    background: #141a22 !important;
    border: 1px solid #1f2835 !important;
    z-index: 1060;
}

.dropdown-item {
    color: #e2e8f0 !important;
}

.dropdown-item:hover {
    background: rgba(168, 85, 247, 0.16) !important;
    color: #ffffff !important;
}
