/* ==========================================================================
   NEOLIBERTY CORE THEME
   ========================================================================== */

:root {
    /* DEFAULT: MATRIX MODE (Dark) */
    --bg-color: #000000;
    --panel-bg: rgba(0, 20, 0, 0.9);
    --text-color: #00FF00;
    --text-dim: #004400;
    --accent-color: #00FF00;
    --border-color: #00FF00;
    --glow-color: rgba(0, 255, 0, 0.5);
    --font-main: 'Courier New', Courier, monospace;
    --link-color: #00FF00;
    --button-hover: #003300;
    --shadow-color: #004400;

    /* Signal Colors */
    --buy-color: #00FF00;
    --sell-color: #FF3333;
}

/* LIGHT MODE OVERRIDES */
body.light-mode {
    background-color: #F0F2F5; /* Opaque background for light mode */
    --bg-color: #F0F2F5;
    --panel-bg: #FFFFFF;
    --text-color: #1A1A1A;
    --text-dim: #666666;
    --accent-color: #008800; /* Darker green for readability on white */
    --border-color: #CCCCCC;
    --glow-color: rgba(0, 100, 0, 0.2);
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --link-color: #006600;
    --button-hover: #E8F5E9;
    --shadow-color: #BBBBBB;

    /* Signal Colors Light */
    --buy-color: #00AA00;
    --sell-color: #CC0000;
}

body.light-mode #matrix-background {
    display: none;
}

/* GLOBAL RESET */
* {
    box-sizing: border-box;
}

html {
    background-color: #000000; /* Prevent white flash */
}

body {
    background-color: transparent; /* Let Matrix rain show through in dark mode */
    color: var(--text-color);
    font-family: var(--font-main);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* MATRIX RAIN CANVAS */
#matrix-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

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

a:hover {
    text-decoration: underline;
    text-shadow: 0 0 5px var(--glow-color);
}

/* ==========================================================================
   LAYOUT COMPONENTS
   ========================================================================== */

.neoliberty-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.neoliberty-container.narrow {
    max-width: 800px;
}

/* CARDS / PANELS */
.neoliberty-frame {
    background-color: var(--panel-bg);
    border: 1px solid var(--border-color);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 0 10px var(--shadow-color);
    border-radius: 15px; /* Increased rounding per user request */
    transition: all 0.3s ease;
}

.neoliberty-frame.narrow {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* BUTTONS */
.neoliberty-btn, .neo-btn {
    display: inline-block;
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid var(--accent-color);
    padding: 10px 20px;
    text-transform: uppercase;
    cursor: pointer;
    font-family: inherit;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    border-radius: 15px; /* Increased rounding per user request */
    box-shadow: 0 0 5px var(--glow-color); /* Base illumination */
}

.neoliberty-btn:hover, .neo-btn:hover {
    background-color: var(--accent-color);
    color: var(--bg-color); /* Invert on hover */
    box-shadow: 0 0 20px var(--accent-color); /* Stronger glow */
    text-decoration: none;
}

.neoliberty-btn.outline {
    border-style: dashed;
}

.neoliberty-btn.small {
    padding: 5px 10px;
    font-size: 0.8rem;
}

.neoliberty-btn.full-width {
    width: 100%;
    display: block;
}

/* FORMS */
.neo-input {
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 10px;
    font-family: inherit;
    width: 100%;
    margin-bottom: 10px;
}

.neo-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 5px var(--glow-color);
}

.neo-select {
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 5px 10px;
    font-family: inherit;
    cursor: pointer;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-green { color: var(--accent-color); }
.text-xl { font-size: 1.5rem; font-weight: bold; }
.text-sm { font-size: 0.8rem; opacity: 0.8; }


/* ==========================================================================
   THEME TOGGLE SWITCH
   ========================================================================== */
.theme-toggle-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    background: var(--panel-bg);
    border: 1px solid var(--accent-color);
    color: var(--text-color);
    padding: 10px;
    cursor: pointer;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 0 10px var(--shadow-color);
}

.theme-toggle-btn:hover {
    transform: scale(1.1);
}

/* ==========================================================================
   SPECIFIC PAGE STYLES
   ========================================================================== */

/* LANDING PAGE */
.neo-hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    background: radial-gradient(circle, var(--text-dim) 0%, transparent 70%); /* Modified to transparent for rain visibility */
}

.neo-cta-group {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
}

.neo-title-row {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
}

h1.neo-brand-title {
    font-size: 4rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    margin: 0;
    text-shadow: 0 0 15px var(--accent-color);
}

.neo-subtitle {
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: 50px;
    opacity: 0.8;
}

.pill {
    width: 60px;
    height: 120px;
    border-radius: 50px;
    display: inline-block;
    border: 5px solid #1a1a1a;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
    box-shadow: 0 0 15px var(--accent-color);
    overflow: hidden;
}

/* Divider line */
.pill::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 5px;
    background-color: #1a1a1a;
    transform: translateY(-50%);
    z-index: 2;
}

/* Glossy reflection */
.pill::after {
    content: "";
    position: absolute;
    top: 15px;
    right: 12px;
    width: 20px;
    height: 30px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    transform: rotate(15deg);
    opacity: 0.7;
    z-index: 3;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
}

.pill.blue {
    background: linear-gradient(135deg, #3399ff 0%, #0044cc 100%);
}

.pill.red {
    background: linear-gradient(135deg, #ff4d4d 0%, #990000 100%);
}

.pill:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px var(--accent-color);
}

/* AUTH / LOGIN */
.neoliberty-auth-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
}
.auth-container {
    width: 100%;
    max-width: 400px;
}
.auth-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}
.tab-btn {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-dim);
    padding: 10px;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
}
.tab-btn.active {
    color: var(--text-color);
    border-bottom: 2px solid var(--accent-color);
    font-weight: bold;
}
.social-login {
    margin-top: 20px;
    text-align: center;
}

/* PRICING */
.pricing-card {
    text-align: center;
    display: flex;
    flex-direction: column;
}
.pricing-card .feature-list {
    flex-grow: 1;
    text-align: left;
    list-style: none;
    padding: 0;
}
.pricing-card .feature-list li {
    padding: 8px 0;
    border-bottom: 1px solid var(--text-dim);
}
.pricing-card .feature-list li:before {
    content: "> ";
    color: var(--accent-color);
}
.pricing-card.featured {
    border: 2px solid var(--accent-color);
    transform: scale(1.02);
    position: relative;
}
.badge-popular {
    background: var(--accent-color);
    color: var(--bg-color);
    font-weight: bold;
    padding: 5px;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    text-transform: uppercase;
    font-size: 0.8rem;
}
.price-tag {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 20px 0;
}

/* SIDEBAR LAYOUT */
.neoliberty-dashboard-wrapper {
    display: flex;
    min-height: 100vh;
}
.neo-sidebar {
    width: 250px;
    background-color: var(--panel-bg);
    border-right: 1px solid var(--border-color);
    padding: 20px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}
.neo-brand {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 40px;
    letter-spacing: 2px;
    text-shadow: 0 0 5px var(--accent-color);
}
.neo-nav a {
    display: block;
    padding: 10px 0;
    color: var(--text-dim);
    border-bottom: 1px solid var(--text-dim);
}
.neo-nav a:hover, .neo-nav a.active {
    color: var(--text-color);
    padding-left: 10px;
    border-left: 3px solid var(--accent-color);
}
.neo-main-content {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
}
.neo-grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
}
.neo-grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}
.neo-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}
.neo-table th, .neo-table td {
    text-align: left;
    padding: 10px;
    border-bottom: 1px solid var(--text-dim);
}
.neo-table th {
    color: var(--accent-color);
    text-transform: uppercase;
    font-size: 0.9rem;
}

/* DASHBOARD SPECIFICS */
.neo-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 10px;
}

.neo-sidebar-footer {
    margin-top: auto;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    font-size: 0.8rem;
    color: var(--text-dim);
}
.neo-stat-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}
.status-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: var(--accent-color);
    border-radius: 50%;
    box-shadow: 0 0 5px var(--accent-color);
    margin-right: 5px;
}

/* SIGNALS / SCANNER APP SPECIFICS */
.control-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

input[type="range"] {
    accent-color: var(--accent-color);
}

.process-status {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.progress-container {
    width: 100%;
    height: 20px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    background: rgba(0,0,0,0.3);
}
.progress-bar {
    height: 100%;
    background-color: var(--accent-color);
    width: 0%;
    transition: width 0.2s linear;
}

.terminal-output {
    font-size: 0.9em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0.8;
    color: var(--text-color);
}

.buy-row { color: var(--buy-color); font-weight: bold; }
.sell-row { color: var(--sell-color); font-weight: bold; }
.badge-buy { background: var(--buy-color); color: #000; padding: 2px 5px; border-radius: 3px; }
.badge-sell { background: var(--sell-color); color: #fff; padding: 2px 5px; border-radius: 3px; }

@media(max-width: 768px) {
    .neoliberty-dashboard-wrapper {
        flex-direction: column;
    }
    .neo-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.neo-footer {
    padding: 30px 0;
    margin-top: 50px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-dim);
    font-size: 0.8rem;
    position: relative;
    z-index: 1; /* Ensure above rain */
    background-color: rgba(0, 0, 0, 0.8); /* Slight contrast against rain */
}

.neo-footer a {
    color: var(--text-dim);
    margin: 0 10px;
    text-transform: uppercase;
}

.neo-footer a:hover {
    color: var(--accent-color);
    text-decoration: none;
}

/* --- HOTFIX: HIDE WORDPRESS THEME HEADERS --- */
/* Requested by user to remove 'neoliberty.online' and 'DASHBOARD' titles coming from WP Theme */
.site-header,
.wp-block-site-title,
.wp-block-site-logo,
.wp-block-post-title,
.entry-title,
.site-branding,
.wp-block-template-part header {
    display: none !important;
}
/* UKRYWANIE NAGŁÓWKÓW WORDPRESSA */
.site-header,
.wp-block-site-title,
.wp-block-site-logo,
.wp-block-post-title,
.entry-title,
.site-branding,
.wp-block-template-part header {
    display: none !important;
}

/* ==========================================================================
   LIGHT MODE – HERO 2030 (czytelność na jasnym tle)
   ========================================================================== */
body.light-mode #neo-hero-2030 {
    background: transparent;
}

body.light-mode #neo-hero-2030 .hero-shell {
    background: linear-gradient(180deg, rgba(0, 45, 0, 0.98) 0%, rgba(0, 15, 0, 0.99) 100%);
    border: 1px solid rgba(0, 160, 0, 0.5);
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 140, 0, 0.35);
    backdrop-filter: none;
}

body.light-mode #neo-hero-2030 .hero-glow-orbit {
    border-color: rgba(0, 140, 0, 0.3);
    box-shadow: 0 0 40px rgba(0, 140, 0, 0.35);
    opacity: 0.5;
}

body.light-mode #neo-hero-2030 .hero-kpi,
body.light-mode #neo-hero-2030 .hero-title,
body.light-mode #neo-hero-2030 .hero-ticker,
body.light-mode #neo-hero-2030 .hero-subtitle {
    color: #00ff9d;
}

body.light-mode #neo-hero-2030 .metric-card {
    background: rgba(0, 25, 0, 0.95);
    border: 1px solid rgba(0, 160, 0, 0.4);
}

body.light-mode #neo-hero-2030 .metric-label,
body.light-mode #neo-hero-2030 .metric-value {
    color: #00ff9d;
}

body.light-mode #neo-hero-2030 .hero-scan-panel {
    background: linear-gradient(180deg, rgba(0, 50, 0, 0.98) 0%, rgba(0, 18, 0, 0.99) 100%);
    border: 1px solid rgba(0, 160, 0, 0.4);
}

body.light-mode #neo-hero-2030 .scan-header,
body.light-mode #neo-hero-2030 .scan-body,
body.light-mode #neo-hero-2030 .scan-row {
    color: #00ff9d;
}

body.light-mode #neo-hero-2030 .hero-btn-enter {
    background: linear-gradient(180deg, rgba(0, 180, 0, 0.25) 0%, rgba(0, 30, 0, 0.98) 100%);
    color: #00ff9d;
    border-color: rgba(0, 200, 0, 0.8);
    box-shadow: 0 0 25px rgba(0, 180, 0, 0.7);
}

body.light-mode #neo-hero-2030 .hero-btn-enter:hover {
    box-shadow: 0 0 40px rgba(0, 200, 0, 0.9);
}

body.light-mode #neo-hero-2030 .hint,
body.light-mode #neo-hero-2030 .hero-footer-soft {
    color: rgba(0, 255, 157, 0.85);
}

body.light-mode #neo-hero-2030 .hero-footer-soft a:hover {
    color: #00ff9d;
}
