/* =========================================
   LUMIERE V2 - DESIGN (VISUALS)
   Colors, Typography, Shadows, Borders, Radius.
   ========================================= */

:root {
    /* --- COLOR PALETTE (Premium & Modern) --- */
    --primary-color: #ff8c42;
    --primary-hover: #e67e3a;
    --primary-hover-color: #ff7a2e;
    --secondary-color: #667eea;
    --secondary-hover: #5a6fd6;
    --accent-color: #00bcd4;

    /* --- STATUS COLORS --- */
    --success-color: #10b981;
    --success-hover-color: #059669;
    --alert-color: #ef4444;
    --alert-hover-color: #dc2626;
    --warning-color: #f59e0b;
    --warning-hover-color: #d97706;
    --info-color: #3b82f6;
    --info-hover-color: #2563eb;

    /* --- BACKGROUND --- */
    --bg-body: #f8f9fa;
    --bg-surface: #ffffff;
    --bg-panel: #ffffff;
    --background-color: #fafafa;

    /* --- TEXT --- */
    --text-main: #2c3e50;
    --text-muted: #6c757d;
    --text-light: #ffffff;
    --font-color: rgb(65, 84, 98);

    /* --- HEADER --- */
    --header-bg: #1a3a5c;
    --header-shadow: 0px 2px 10px rgba(0, 0, 0, 0.15);
    --header-text: #ffffff;

    /* --- PANELS --- */
    --panel-bg: rgba(255, 255, 255, 0.95);
    --panel-border: rgba(0, 0, 0, 0.08);
    --panel-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    --panel-radius: 12px;

    /* --- FOOTER --- */
    --footer-bg: rgba(255, 255, 255, 0.9);
    --footer-text: #4b5563;

    /* --- FORMS --- */
    --form-bg: #ffffff;
    --form-border: #e5e7eb;
    --form-focus: #1a1a1a;

    /* --- BORDERS & SHADOWS --- */
    --border-color: #e9ecef;
    --border-radius: 12px;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);

    /* --- TYPOGRAPHY --- */
    --font-main: 'Inter', system-ui, sans-serif;
    --font-heading: 'Outfit', system-ui, sans-serif;
    --font-family: system-ui, -apple-system, 'Segoe UI', 'Roboto', sans-serif;
    --font-size: 16px;

    /* --- LAYOUT --- */
    --container-max-width: 1280px;
    --header-max-width: 1400px;

    /* --- Z-INDEX --- */
    --z-index-background: 0;
    --z-index-container: 1;
    --z-index-header: 100;
    --z-index-alert: 200;

    /* --- HERO REFINEMENTS (Universal Coherence) --- */
    --hero-text-shadow: 2px 2px 8px rgba(0, 0, 0, 1), 0 0 15px rgba(0, 0, 0, 0.8);
    --hero-subtitle-shadow: 1px 1px 5px rgba(0, 0, 0, 1), 0 0 10px rgba(0, 0, 0, 0.7);
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--text-main);
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-color);
}

/* =========================================
   BUTTONS (CTA)
   ========================================= */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.cta-primary {
    background: var(--primary-color, #ff8c42);
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(255, 140, 66, 0.3);
}

.cta-primary:hover {
    background: var(--primary-hover-color, #ff7a2e);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 140, 66, 0.4);
    color: #ffffff !important;
}

.cta-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff !important;
    border: 2px solid rgba(255, 255, 255, 0.5) !important;
    backdrop-filter: blur(5px);
}

.cta-secondary:hover {
    background: #ffffff;
    color: var(--primary-color, #ff8c42) !important;
    border-color: #ffffff !important;
    transform: translateY(-2px);
}


/* =========================================
   CONTAINER & BASE LAYOUT
   ========================================= */
#body-background {
    display: none;
}

#container {
    position: relative;
    z-index: var(--z-index-container);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: transparent;
}

/* =========================================
   HEADER
   ========================================= */
#header {
    position: sticky;
    top: 0;
    width: 100%;
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    box-shadow: var(--header-shadow);
    z-index: var(--z-index-header);
    border-bottom: 1px solid var(--panel-border);
    transition: transform 0.3s ease-in-out;
    transform: translateY(0);
}

#header.header-hidden {
    transform: translateY(-100%);
}

#header_content {
    max-width: var(--header-max-width);
    margin: 0 auto;
    padding: 0 24px;
    height: 88px;
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--header-text);
}

.brand-copy {
    display: flex;
    flex-direction: column;
}

#siteName {
    margin: 0;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--header-text);
    letter-spacing: -0.02em;
}

.brand-meta {
    display: none;
}

.site-logo-inline {
    height: 48px;
    width: auto;
    object-fit: contain;
}

/* =========================================
   NAVIGATION
   ========================================= */
.nav-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

#navigation {
    list-style: none;
    display: flex;
    gap: 8px;
    margin: 0;
    padding: 0;
    align-items: center;
    min-height: 0;
}

#navigation>li {
    position: relative;
}

#navigation>li>a {
    display: block;
    padding: 10px 16px;
    color: var(--header-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    border-radius: 8px;
    transition: background-color 0.2s, color 0.2s;
}

#navigation>li>a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary-color);
}

/* --- Dropdown Menus --- */
#navigation>li>ul {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    list-style: none;
    margin: 0;
    padding: 8px 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 1000;
    margin-top: 4px;
}

#navigation>li:hover>ul,
#navigation>li:focus-within>ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#navigation>li>ul>li {
    margin: 0;
}

#navigation>li>ul>li>a {
    display: block;
    padding: 10px 20px;
    color: var(--header-text);
    text-decoration: none;
    font-weight: 400;
    font-size: 14px;
    transition: background-color 0.2s, color 0.2s;
    border-radius: 0;
}

#navigation>li>ul>li>a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary-color);
}

#navigation>li>ul>li:first-child>a {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

#navigation>li>ul>li:last-child>a {
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

/* --- Auth Links (Login/Register) — CTA style --- */
.nav-auth-links {
    display: flex !important;
    align-items: center;
    gap: 10px;
    margin-left: 16px;
    padding-left: 16px;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
}

.nav-auth-links a {
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

/* Register = primary filled CTA */
.nav-auth-links .register-link {
    background: var(--primary-color);
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(255, 140, 66, 0.3);
}

.nav-auth-links .register-link:hover {
    background: var(--primary-hover-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(255, 140, 66, 0.4);
}

/* Login = ghost/outline CTA */
.nav-auth-links .login-link {
    background: transparent;
    color: #ffffff !important;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
}

.nav-auth-links .login-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.7);
    transform: translateY(-1px);
}

/* --- User Avatar Menu --- */
.nav-user-avatar-menu {
    margin-left: 12px;
    padding-left: 12px;
    border-left: 1px solid var(--panel-border);
}

.nav-user-avatar-menu>ul {
    right: 0;
    left: auto;
    min-width: 240px;
}

.nav-avatar-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px !important;
    border-radius: 50% !important;
    transition: transform 0.2s ease;
}

.nav-avatar-link:hover {
    transform: scale(1.05);
    background: transparent !important;
}

.nav-avatar-overlay-bell {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    border: 2px solid #fff;
    z-index: 5;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.user-avatar-img,
.user-avatar-css {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--header-text);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.user-avatar-img {
    object-fit: cover;
}

.user-avatar-css {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
}

.nav-badge {
    background: var(--alert-color);
    color: white;
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: bold;
    min-width: 20px;
    text-align: center;
    margin-left: auto;
}

.nav-badge-text {
    background: var(--info-color);
    color: white;
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    margin-left: auto;
}

.avatar-menu-separator {
    margin: 8px 0;
    padding: 0;
    height: 1px;
    background: var(--panel-border);
}

.avatar-menu-separator hr {
    margin: 0;
    border: none;
    border-top: 1px solid var(--panel-border);
}

.nav-user-avatar-menu>ul>li:last-child>a {
    color: var(--alert-color);
}

.nav-user-avatar-menu>ul>li:last-child>a:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--alert-hover-color);
}

/* --- Mobile Burger Menu (hidden on desktop) --- */
.nav-toggle {
    display: none;
}

#mobile_menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
    gap: 5px;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
    color: var(--header-text);
    font-size: 1.4rem;
}

#mobile_menu span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--header-text);
    transition: all 0.3s;
}

/* =========================================
   HEADER SEARCH BAR (expandable)
   Collapsed: only magnifying glass icon visible
   Hover/Focus: text input slides open
   ========================================= */
.search-pos-header {
    display: flex;
    align-items: center;
}

.header-search-form {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 50px;
    overflow: hidden;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid transparent;
}

.header-search-form:hover,
.header-search-form:focus-within {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

/* Magnifying glass button — always visible */
.header-search-form button {
    background: none;
    border: none;
    color: var(--header-text);
    cursor: pointer;
    padding: 10px 12px;
    font-size: 15px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.header-search-form button:hover {
    color: var(--primary-color);
}

/* Text input — collapsed by default, expands on hover/focus */
.header-search-form input[type="text"] {
    width: 0;
    padding: 8px 0;
    border: none;
    background: transparent;
    color: var(--header-text);
    font-size: 14px;
    outline: none;
    transition: width 0.35s ease, padding 0.35s ease, opacity 0.25s ease;
    opacity: 0;
    font-family: inherit;
}

.header-search-form input[type="text"]::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Expand on hover or when input is focused */
.header-search-form:hover input[type="text"],
.header-search-form:focus-within input[type="text"] {
    width: 220px;
    padding: 8px 14px 8px 0;
    opacity: 1;
}

/* =========================================
   BANNER
   ========================================= */
#banner {
    background: url('../header.jpg') no-repeat center;
    background-size: cover;
    backdrop-filter: blur(10px);
    padding: 20px 24px;
    text-align: center;
    border-bottom: 1px solid var(--panel-border);
    position: relative;
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

#banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

#banner>* {
    position: relative;
    z-index: 2;
}

.hero-inner {
    max-width: var(--container-max-width);
    width: 100%;
    margin: 0 auto;
}

#siteDesc {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #ffffff;
    max-width: 800px;
    margin: 0 auto;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8), 0 1px 3px rgba(0, 0, 0, 0.9);
}

#siteDesc h1 {
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

#siteDesc .search-hero h1 {
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

#siteDesc .search-subtitle {
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Dashboard container positioning (global hero) */
.lumiere-dashboard-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 600px;
    margin: 15px auto 0;
}

.lumiere-dashboard-container>* {
    pointer-events: auto;
}

/* ============================================
   GLASSMORPHISM: Shared glossy/frosted glass
   ============================================ */
.glass-panel,
.lumiere-dashboard-container .hero-dashboard,
.searchui-dashboard-inline,
.landing-intent-container,
.search-cta-buttons {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    color: #fff;
    padding: 16px 24px;
}

.lumiere-dashboard-container .hero-dashboard h2,
.searchui-dashboard-inline h2 {
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    margin: 0 0 8px 0;
    font-size: 1.15rem;
    font-weight: 600;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.hero-stat-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 0.85rem;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
}

/* Inline version for SearchUI (replaces intent position) */
.searchui-dashboard-inline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.searchui-dashboard-inline h2 {
    font-size: 1.1rem;
    margin: 0;
}

/* Intent block (guest) glassmorphism */
.landing-intent-container {
    text-align: center;
    margin-top: 15px;
}

.landing-intent-title {
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    font-size: 0.95rem;
    margin: 0 0 12px 0;
    font-weight: 500;
}

.landing-intent-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.intent-btn {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    padding: 8px 18px;
    color: #fff;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.intent-btn:hover,
.intent-btn.active {
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.intent-btn.highlight-pro {
    background: rgba(232, 126, 4, 0.4);
    border-color: rgba(232, 126, 4, 0.5);
}

.intent-btn.highlight-pro:hover,
.intent-btn.highlight-pro.active {
    background: rgba(232, 126, 4, 0.6);
}

.landing-intent-ctas {
    margin-top: 12px;
}

.landing-intent-ctas .intent-block {
    animation: fadeInUp 0.3s ease;
}

.landing-intent-ctas .intent-block p {
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    margin: 0 0 10px 0;
    font-size: 0.9rem;
}

.cta-button {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.cta-button.cta-primary {
    background: rgba(232, 126, 4, 0.85);
    color: #fff;
    border: 1px solid rgba(232, 126, 4, 0.9);
}

.cta-button.cta-primary:hover {
    background: rgba(232, 126, 4, 1);
    transform: translateY(-1px);
}

.cta-button.cta-secondary {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.cta-button.cta-secondary:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
}

/* SearchUI CTA buttons glassmorphism */
.search-cta-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 15px;
}

.search-cta-buttons .button {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 25px;
    padding: 10px 22px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.search-cta-buttons .button.primary {
    background: rgba(232, 126, 4, 0.85);
    color: #fff;
    border: 1px solid rgba(232, 126, 4, 0.9);
}

.search-cta-buttons .button.secondary {
    background: rgba(26, 35, 126, 0.7);
    color: #fff;
    border: 1px solid rgba(26, 35, 126, 0.8);
}

.search-cta-buttons .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.site-logo-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.site-logo-header img {
    max-height: 200px;
    width: auto;
    height: auto;
}

/* =========================================
   MAIN CONTENT
   ========================================= */
#body {
    flex: 1;
    padding: 32px 24px 60px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

#body-page {
    max-width: var(--container-max-width);
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    gap: 32px;
    align-items: flex-start;
}

#content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
}

body.page-module #content,
body.blog-plugin #content {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.content-panel {
    background: var(--panel-bg);
    backdrop-filter: blur(10px);
    border-radius: var(--panel-radius);
    padding: 24px 32px;
    margin-bottom: 24px;
    border: 1px solid var(--panel-border);
    box-shadow: var(--panel-shadow);
}

.content-panel h1 {
    margin: 0;
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* =========================================
   ALERT MESSAGES
   ========================================= */
#alert-msg {
    position: fixed;
    width: calc(100% - 40px);
    left: 20px;
    top: 110px;
    z-index: var(--z-index-alert);
    max-width: 600px;
}

.msg,
.msg.info,
div.info,
div.success,
div.warning,
div.error {
    border-radius: 12px;
    padding: 16px 20px;
    border-left-width: 4px;
    border-left-style: solid;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-size: 15px;
    line-height: 1.5;
    background: #ffffff;
}

.msg.success {
    background: #ecfdf5;
    border-left-color: var(--success-color);
    color: #065f46;
}

.msg.error {
    background: #fef2f2;
    border-left-color: var(--alert-color);
    color: #991b1b;
}

.msg.warning {
    background: #fffbeb;
    border-left-color: var(--warning-color);
    color: #92400e;
}

.msg.info {
    background: #eff6ff;
    border-left-color: var(--info-color);
    color: #1e40af;
}

.msg a.msg-button-close {
    display: block;
    width: 20px;
    height: 20px;
    position: absolute;
    right: 16px;
    top: 16px;
    opacity: 0.7;
    color: inherit;
    text-decoration: none;
    font-size: 18px;
    line-height: 20px;
    text-align: center;
}

.msg a.msg-button-close:hover {
    opacity: 1;
}

/* =========================================
   FOOTER
   ========================================= */
#footer {
    background: #1a3a5c;
    color: #ffffff;
    padding: 32px 24px;
    margin-top: auto;
    border-top: 1px solid var(--panel-border);
}

.footer-inner {
    max-width: var(--container-max-width);
    margin: 0 auto;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    font-size: 0.9rem;
}

.footer-inner a {
    color: var(--primary-color);
    text-decoration: none;
}

.footer-inner a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.footer-inner span {
    color: #9ca3af;
}

/* =========================================
   SIDEBAR
   ========================================= */
aside {
    min-width: 280px;
    max-width: 320px;
    background: var(--panel-bg);
    backdrop-filter: blur(10px);
    border-radius: var(--panel-radius);
    border: 1px solid var(--panel-border);
    box-shadow: var(--panel-shadow);
    padding: 24px;
}

/* =========================================
   FORMS – Unified Visual Identity
   All forms (contact, newsletter, auth, etc.)
   share the same label, input, and button styles.
   ========================================= */

/* --- Global Labels --- */
form label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    color: var(--text-main);
    font-size: 14px;
    letter-spacing: 0.01em;
}

/* --- Global Inputs --- */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="url"],
input[type="tel"],
input[type="search"],
input[type="date"],
textarea,
select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--form-border);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    background: var(--form-bg);
    color: var(--font-color);
    box-sizing: border-box;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

input[type="text"]:hover,
input[type="email"]:hover,
input[type="password"]:hover,
input[type="number"]:hover,
input[type="url"]:hover,
input[type="tel"]:hover,
input[type="search"]:hover,
input[type="date"]:hover,
textarea:hover,
select:hover {
    border-color: #cbd5e1;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 140, 66, 0.15);
    background: #fff;
}

textarea {
    min-height: 140px;
    resize: vertical;
    line-height: 1.6;
}

select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236c757d' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

/* --- Checkboxes & Radios inline --- */
form p.checkbox,
form .field.checkbox,
form .acceptation {
    display: flex;
    align-items: center;
    gap: 8px;
}

form p.checkbox label,
form .field.checkbox label,
form .acceptation label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
    font-size: 14px;
    cursor: pointer;
    margin-bottom: 0;
}

input[type="checkbox"],
input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
    cursor: pointer;
    flex-shrink: 0;
}

/* --- Field spacing for all forms --- */
form p,
form .field {
    margin-bottom: 1.25rem;
}

form p:last-child,
form .field:last-child {
    margin-bottom: 0;
}

/* --- Password toggle wrapper --- */
.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrapper input {
    padding-right: 48px;
}

.password-input-wrapper .toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px 6px;
    font-size: 14px;
    transition: color 0.2s;
}

.password-input-wrapper .toggle-password:hover {
    color: var(--primary-color);
}

/* --- Field validation messages --- */
.field-validation {
    display: block;
    font-size: 12px;
    margin-top: 4px;
    color: var(--alert-color);
    min-height: 16px;
}

/* --- Submit buttons (input & button) --- */
input[type="submit"],
button[type="submit"] {
    display: inline-block;
    padding: 12px 28px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
    background: var(--primary-color);
    color: #ffffff;
    letter-spacing: 0.01em;
}

input[type="submit"]:hover,
button[type="submit"]:hover {
    background: var(--primary-hover-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 140, 66, 0.25);
}

/* --- Form actions row --- */
form .actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

/* --- Form links (forgot password, etc.) --- */
form .links {
    text-align: center;
    margin-top: 1rem;
}

form .links a {
    font-size: 14px;
    color: var(--secondary-color);
    text-decoration: none;
}

form .links a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* =========================================
   FORM WRAPPERS – Panel-style forms
   (contact, newsletter, auth, etc.)
   ========================================= */
section>form,
.newsletter-subscribe-page form,
.contact-page form {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    background: var(--panel-bg);
    border-radius: var(--panel-radius);
    box-shadow: var(--panel-shadow);
    border: 1px solid var(--panel-border);
}

/* =========================================
   BUTTONS
   ========================================= */
.button {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    text-align: center;
    background: var(--primary-color);
    color: #ffffff;
    letter-spacing: 0.01em;
}

.button:hover {
    background: var(--primary-hover-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 140, 66, 0.25);
    color: #ffffff;
}

.button.success {
    background: var(--success-color);
}

.button.success:hover {
    background: var(--success-hover-color);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.button.alert {
    background: var(--alert-color);
}

.button.alert:hover {
    background: var(--alert-hover-color);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}

.button.warning {
    background: var(--warning-color);
}

.button.warning:hover {
    background: var(--warning-hover-color);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
}

.button.secondary {
    background: var(--secondary-color);
}

.button.secondary:hover {
    background: var(--secondary-hover);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25);
}

.button.outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.button.outline:hover {
    background: var(--primary-color);
    color: #ffffff;
}

/* =========================================
   TABLES
   ========================================= */
table {
    width: 100%;
    border-collapse: collapse;
    background: var(--panel-bg);
    backdrop-filter: blur(10px);
    border-radius: var(--panel-radius);
    overflow: hidden;
    border: 1px solid var(--panel-border);
}

table th {
    background: rgba(0, 0, 0, 0.03);
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: var(--primary-color);
    border-bottom: 2px solid var(--panel-border);
}

table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--panel-border);
}

table tr:last-child td {
    border-bottom: none;
}

table tr:hover {
    background: rgba(0, 0, 0, 0.02);
}

/* =========================================
   HONEYPOT (must remain invisible)
   ========================================= */
.hp-field,
input[name="_email"].hp-field,
input.hp-field[name="_email"],
input[type="text"][name="_email"],
.user-auth-form input[type="text"][name="_email"],
.user-auth-form .hp-field,
form input[type="text"][name="_email"][aria-hidden="true"],
form>input[type="text"][name="_email"],
#login input[type="text"][name="_email"],
#login form>input[type="text"][name="_email"],
input.honeypot,
input[name="_name"] {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    visibility: hidden !important;
    display: none !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    z-index: -1 !important;
    pointer-events: none !important;
}

/* =========================================
   AUTH FORMS
   ========================================= */
.user-auth-form {
    max-width: 500px;
    margin: 2rem auto;
    padding: 2rem;
    background: var(--panel-bg);
    backdrop-filter: blur(10px);
    border-radius: var(--panel-radius);
    box-shadow: var(--panel-shadow);
    border: 1px solid var(--panel-border);
    position: relative;
}

.user-auth-form form {
    position: relative;
}

.user-auth-form .button {
    width: 100%;
}

body.login {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 1rem;
}

body.login #login.card {
    max-width: 500px;
    width: 100%;
    background: var(--panel-bg);
    backdrop-filter: blur(10px);
    border-radius: var(--panel-radius);
    box-shadow: var(--panel-shadow);
    padding: 2rem;
    border: 1px solid var(--panel-border);
}

/* =========================================
   LOGIN REQUIRED COMPONENT
   ========================================= */
.login-required-notice {
    background: linear-gradient(to right, #667eea, #764ba2);
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.login-required-content {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    min-width: 300px;
}

.login-required-notice i.icon-main {
    font-size: 1.8rem;
    opacity: 0.9;
    margin: 0;
    background: rgba(255, 255, 255, 0.2);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.login-required-text h3 {
    margin: 0;
    color: white;
    font-size: 1.1rem;
    line-height: 1.3;
}

.login-required-text p {
    margin: 2px 0 0 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.login-required-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.login-required-buttons .button.large {
    padding: 8px 16px;
    font-size: 0.95rem;
    white-space: nowrap;
}

.login-required-buttons .btn-register {
    background: white;
    color: #667eea;
}

.login-required-buttons .btn-login {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.login-required-buttons .btn-login:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

.login-required-notice .footer-note {
    display: none;
}

/* =========================================
   HEADER LINKS COLORS
   ========================================= */
#header_content a {
    color: #ffffff;
}

#header_content a:hover {
    color: var(--primary-color);
}

#navigation>li>a {
    color: #ffffff;
}

#navigation>li>a:hover {
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.1);
}

/* =========================================
   SEARCH BAR (VivreBourges style)
   ========================================= */
.search-form-container,
.searchV2-banner-content .search-form-container {
    margin-bottom: 1rem;
}

.search-form,
.searchV2-banner-content .search-form {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.search-input-group-with-button {
    display: flex;
    width: 100%;
    gap: 0;
}

.search-input-group {
    flex: 1;
}

.search-input-group label {
    display: none !important;
    visibility: hidden !important;
    position: absolute !important;
    left: -9999px !important;
}

.search-input-group input[type="text"] {
    flex: 1;
    border: none;
    padding: 18px 25px;
    font-size: 16px;
    outline: none;
    margin: 0;
    border-radius: 0;
    background: transparent;
}

.search-button-group {
    display: flex;
}

.search-button-group button,
.search-form button[type="submit"] {
    background: #ff8c42;
    border: none;
    padding: 18px 30px;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 50px;
    /* Changed from 0 to 50px for round/pill shape */
    margin: 0;
    font-size: 16px;
}

.search-button-group button:hover,
.search-form button[type="submit"]:hover {
    background: #ff7a2e;
}

.search-button-group button i {
    font-size: 18px;
}

/* =========================================
   RESPONSIVE — Tablet (≤1024px)
   ========================================= */
@media (max-width: 1024px) {
    #header_content {
        flex-wrap: wrap;
        height: auto;
        min-height: 64px;
        padding: 16px 24px;
    }

    #navigation {
        flex-direction: column;
        gap: 4px;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        -webkit-overflow-scrolling: touch;
        will-change: max-height;
        min-height: 0;
    }

    #mobile_menu {
        display: flex;
    }

    .nav-toggle:checked~.header-links #navigation {
        max-height: 500px;
        padding-top: 12px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    #body-page {
        flex-direction: column;
    }

    aside {
        width: 100%;
        max-width: 100%;
    }

    /* Flatten dropdowns on mobile */
    #navigation>li>ul {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: transparent;
        margin-top: 0;
        padding: 0;
        margin-left: 20px;
        min-width: auto;
    }

    #navigation>li>ul>li>a {
        padding: 8px 16px;
        font-size: 14px;
        border-radius: 0;
    }
}

/* =========================================
   RESPONSIVE — Mobile (≤768px)
   ========================================= */
@media (max-width: 768px) {
    .nav-user-avatar-menu {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
    }

    .nav-user-avatar-menu>ul {
        right: 0;
        left: auto;
        min-width: 200px;
    }

    .user-avatar-img,
    .user-avatar-css {
        width: 36px;
        height: 36px;
        font-size: 12px;
    }

    /* Disable costly backdrop-filter on mobile */
    * {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
}

/* =========================================
   RESPONSIVE — Small Mobile (≤640px)
   ========================================= */
@media (max-width: 640px) {
    #banner {
        padding: 40px 16px;
    }

    #header_content {
        padding: 12px 16px;
    }

    #body {
        padding: 0 auto;
    }

    body.page-module #content,
    body.blog-plugin #content {
        padding: 20px;
    }

    .content-panel {
        padding: 20px;
    }

    .nav-auth-links {
        flex-direction: column;
        border-left: none;
        border-top: 1px solid var(--panel-border);
        padding-left: 0;
        padding-top: 12px;
        margin-left: 0;
        margin-top: 12px;
    }
}

/* --- SURFACE DESIGN --- */
.card,
.panel {
    background: var(--bg-surface);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

/* --- UTILITIES: COLORS --- */
.text-primary {
    color: var(--primary-color) !important;
}

.text-secondary {
    color: var(--secondary-color) !important;
}

.text-accent {
    color: var(--accent-color) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

.text-light {
    color: var(--text-light) !important;
}

.text-danger {
    color: #e74c3c !important;
}

.text-success {
    color: #2ecc71 !important;
}

.text-warning {
    color: #f1c40f !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
    color: white;
}

.bg-secondary {
    background-color: var(--secondary-color) !important;
    color: white;
}

.bg-light {
    background-color: var(--bg-body) !important;
}

.bg-white {
    background-color: white !important;
}

.bg-dark {
    background-color: #2c3e50 !important;
    color: white;
}

/* --- UTILITIES: BORDERS & SHADOWS --- */
.border-0 {
    border: none !important;
}

.rounded-circle {
    border-radius: 50% !important;
}

.rounded-pill {
    border-radius: 50rem !important;
}

.rounded {
    border-radius: var(--border-radius) !important;
}

.shadow-none {
    box-shadow: none !important;
}

.shadow-sm {
    box-shadow: var(--shadow-sm) !important;
}

.shadow-lg {
    box-shadow: var(--shadow-lg) !important;
}

/* --- UTILITIES: TYPOGRAPHY --- */
.fw-bold {
    font-weight: 700 !important;
}

.fw-normal {
    font-weight: 400 !important;
}

.fw-light {
    font-weight: 300 !important;
}

.fs-sm {
    font-size: 0.875rem !important;
}

.fs-lg {
    font-size: 1.25rem !important;
}

.fs-xl {
    font-size: 1.5rem !important;
}

.text-uppercase {
    text-transform: uppercase !important;
}

.text-decoration-none {
    text-decoration: none !important;
}