/* ==========================================================================
   KANADAPACK — BLUE (#2563EB) & WHITE BRAND DESIGN SYSTEM
   Professional Minecraft PvP, Resource Pack & FPS Optimization Hub
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@500;700;800&display=swap');

:root {
    --bg-main: #0B0F19;
    --bg-surface: #0F172A;
    --bg-surface-elevated: #1E293B;
    --bg-card: #162032;
    --bg-card-hover: #1E2E47;
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-accent: rgba(59, 130, 246, 0.4);
    
    --brand-blue: #2563EB;
    --brand-blue-light: #3B82F6;
    --brand-blue-dark: #1D4ED8;
    
    --text-heading: #FFFFFF;
    --text-body: #E2E8F0;
    --text-muted: #94A3B8;
    --text-dim: #64748B;
}

* {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    box-sizing: border-box;
}

html, body {
    max-width: 100vw;
    overflow-x: hidden;
    background-color: var(--bg-main);
    color: var(--text-body);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* Universal Image Safety Constraints */
img {
    max-width: 100%;
    height: auto;
}

code, pre, .font-mono {
    font-family: 'JetBrains Mono', monospace;
}

/* Header & Glass Navigation */
.header-nav {
    background: rgba(11, 15, 25, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
}

/* Brand Emblem Badge - Strictly Bounded (Cannot overflow or resize) */
.brand-emblem-wrap {
    width: 36px !important;
    height: 36px !important;
    max-width: 36px !important;
    max-height: 36px !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    border: 1px solid rgba(59, 130, 246, 0.4) !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25) !important;
    flex-shrink: 0 !important;
    display: inline-block !important;
    position: relative !important;
}

.brand-emblem-wrap img {
    width: 36px !important;
    height: 36px !important;
    max-width: 36px !important;
    max-height: 36px !important;
    object-fit: cover !important;
    display: block !important;
}

/* Brand Card Flag Box - Strictly Bounded (Cannot overflow or resize) */
.brand-card-flag-box {
    width: 120px !important;
    height: 140px !important;
    max-width: 120px !important;
    max-height: 140px !important;
    overflow: hidden !important;
    border-radius: 12px !important;
    border: 1px solid rgba(59, 130, 246, 0.4) !important;
    flex-shrink: 0 !important;
    display: block !important;
    position: relative !important;
}

.brand-card-flag-box img {
    width: 100% !important;
    height: 100% !important;
    max-width: 120px !important;
    max-height: 140px !important;
    object-fit: cover !important;
    display: block !important;
}

/* Hero Section Subtle Ambient Gradient */
.hero-container {
    background: radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.12) 0%, rgba(11, 15, 25, 0) 70%);
}

.hero-search-box {
    background: #0F172A;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    box-shadow: 0 10px 28px -6px rgba(0, 0, 0, 0.5);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hero-search-box:focus-within {
    border-color: var(--brand-blue-light);
    box-shadow: 0 10px 28px -4px rgba(59, 130, 246, 0.3);
}

/* Buttons */
.btn-brand-primary {
    background: var(--brand-blue);
    color: #FFFFFF;
    font-weight: 700;
    border-radius: 8px;
    transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 3px 12px rgba(37, 99, 235, 0.25);
}

.btn-brand-primary:hover {
    background: var(--brand-blue-dark);
    transform: translateY(-1px);
    box-shadow: 0 5px 16px rgba(37, 99, 235, 0.35);
}

.btn-brand-secondary {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #F8FAFC;
    border-radius: 8px;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.btn-brand-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
}

/* Section Panels */
.section-panel {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    max-width: 100%;
    overflow: hidden;
}

/* Multi-Tier Content Cards */
.card-featured-hero {
    background: linear-gradient(180deg, #162032 0%, #0F172A 100%);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.card-featured-hero:hover {
    transform: translateY(-2px);
    border-color: var(--brand-blue-light);
    box-shadow: 0 10px 28px -6px rgba(37, 99, 235, 0.25);
}

.card-standard {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.card-standard:hover {
    transform: translateY(-2px);
    border-color: var(--border-accent);
    box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.5);
}

/* PvP Hub Interactive Filter Chips */
.pvp-chip-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.15s ease;
}

.pvp-chip-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-heading);
}

.pvp-chip-btn.active {
    background: rgba(37, 99, 235, 0.2) !important;
    color: var(--brand-blue-light) !important;
    border-color: var(--brand-blue) !important;
}

/* FPS Lab Meter Card */
.fps-meter-card {
    background: #0F172A;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 4px solid var(--brand-blue);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.fps-meter-card:hover {
    border-color: var(--brand-blue-light);
    box-shadow: 0 8px 20px -4px rgba(37, 99, 235, 0.2);
}

/* Mobile Bottom Bar */
.mobile-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 40;
    background: rgba(11, 15, 25, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--border-subtle);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}

::-webkit-scrollbar-track {
    background: #0B0F19;
}

::-webkit-scrollbar-thumb {
    background: #1E293B;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--brand-blue);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
