/*
Theme Name: LogicEncoder Enhanced
Description: Professional cryptocurrency trading platform theme with unified design system
Version: 2.1
Author: LogicEncoder
Author URI: https://logicencoder.com
Text Domain: logicencoder
*/

/* ===== CSS VARIABLES - UNIFIED DESIGN SYSTEM ===== */
:root {
    --primary: #0066ff;
    --secondary: #00ff88;
    --dark: #0a0a0a;
    --dark-2: #1a1a1a;
    --dark-3: #2a2a2a;
    --text: #ffffff;
    --text-muted: #a0a0a0;
    --crypto-green: #00d4aa;
    --crypto-red: #ff4747;
    --warning: #ffc107;
    --success: #28a745;
    --info: #17a2b8;
    --border: rgba(255, 255, 255, 0.1);
    --border-hover: rgba(255, 255, 255, 0.3);
    --backdrop: rgba(255, 255, 255, 0.05);
    --shadow-light: 0 4px 15px rgba(0, 0, 0, 0.2);
    --shadow-heavy: 0 15px 35px rgba(0, 0, 0, 0.4);
    --gradient-primary: linear-gradient(45deg, var(--primary), var(--secondary));
    --gradient-bg: linear-gradient(135deg, rgba(0, 102, 255, 0.1) 0%, rgba(0, 255, 136, 0.1) 100%);
    --blur-backdrop: blur(10px);
    --border-radius: 15px;
    --border-radius-small: 8px;
}

/* ===== GLOBAL RESET ===== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    min-height: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--dark);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ===== ANIMATED BACKGROUND ===== */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(118, 75, 162, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 40% 80%, rgba(0, 212, 170, 0.1) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

/* ===== UNIFIED NAVIGATION SYSTEM ===== */
.logicencoder-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    padding: 15px 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: var(--blur-backdrop);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
}

.logicencoder-nav.scrolled {
    background: rgba(10, 10, 10, 0.98);
    box-shadow: var(--shadow-light);
}

.logicencoder-nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logicencoder-logo {
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
}

.logicencoder-nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.logicencoder-nav-menu a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
}

.cta-btn {
    background: var(--gradient-primary);
    color: white;
    padding: 12px 25px;
    border-radius: var(--border-radius-small);
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.3);
}

/* Mobile Navigation */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: 2px solid var(--secondary);
    color: var(--secondary);
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.user-indicator {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid var(--secondary);
    color: var(--secondary);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

/* ===== CONTENT WRAPPER SYSTEM ===== */
.content-wrapper {
    flex: 1;
    margin-top: 80px;
    padding-top: 0;
}

/* Admin bar adjustments */
.admin-bar .logicencoder-nav {
    top: 32px;
}

.admin-bar .content-wrapper {
    margin-top: 112px;
}

@media (max-width: 782px) {
    .admin-bar .logicencoder-nav {
        top: 46px;
    }
    
    .admin-bar .content-wrapper {
        margin-top: 126px;
    }
}

/* ===== UNIFIED CONTAINER SYSTEM ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-narrow {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== UNIFIED PAGE SECTIONS ===== */
.page-section {
    padding: 80px 0;
}

.page-section-alt {
    padding: 80px 0;
    background: var(--dark-2);
}

.page-header {
    text-align: center;
    margin-bottom: 50px;
    background: var(--backdrop);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    padding: 40px;
    backdrop-filter: var(--blur-backdrop);
}

.page-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 15px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.page-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== BREADCRUMB SYSTEM ===== */
.breadcrumb {
    margin-bottom: 30px;
    padding: 15px;
    background: var(--backdrop);
    border-radius: var(--border-radius-small);
    border: 1px solid var(--border);
    font-size: 14px;
}

.breadcrumb a {
    color: var(--secondary);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    color: var(--text-muted);
    margin: 0 8px;
}

/* ===== UNIFIED CARDS SYSTEM ===== */
.card {
    background: var(--backdrop);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    padding: 30px;
    backdrop-filter: var(--blur-backdrop);
}

.card:hover {
    background-color: rgba(0, 255, 136, 0.1);
}

.card-small {
    padding: 20px;
}

.card-large {
    padding: 40px;
}

.card-title {
    color: var(--secondary);
    margin-bottom: 15px;
    font-size: 1.3rem;
    font-weight: 600;
}

.card-content {
    color: var(--text-muted);
    line-height: 1.6;
}

/* ===== BUTTON SYSTEM ===== */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius-small);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    font-family: inherit;
}

.btn:hover {
    background-color: rgba(0, 102, 255, 0.2);
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.3);
}

.btn-primary:hover {
    background: var(--gradient-primary);
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--secondary);
    border: 2px solid var(--secondary);
}

.btn-secondary:hover {
    background: rgba(0, 255, 136, 0.1);
    border: 2px solid var(--secondary);
}

.btn-danger {
    background: transparent;
    color: var(--crypto-red);
    border: 2px solid var(--crypto-red);
}

.btn-danger:hover {
    background: rgba(255, 71, 71, 0.1);
    border: 2px solid var(--crypto-red);
}

.btn-small {
    padding: 8px 16px;
    font-size: 12px;
}

.btn-large {
    padding: 15px 30px;
    font-size: 16px;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===== FORM SYSTEM ===== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text);
    font-weight: 500;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--border);
    border-radius: var(--border-radius-small);
    color: white;
    font-size: 14px;
    box-sizing: border-box;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.1);
}

.form-control::placeholder {
    color: #888;
}

.form-control:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Checkbox and Radio */
.checkbox-group, .radio-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    background: rgba(0, 255, 136, 0.05);
    border-radius: var(--border-radius-small);
    border: 1px solid rgba(0, 255, 136, 0.2);
}

.checkbox-group:hover, .radio-group:hover {
    background-color: rgba(0, 255, 136, 0.1);
}

.checkbox-group input[type="checkbox"], 
.radio-group input[type="radio"] {
    width: 16px;
    height: 16px;
    accent-color: var(--secondary);
    margin-top: 2px;
}

.checkbox-group label, 
.radio-group label {
    margin: 0;
    color: #d0d0d0;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 400;
}

/* ===== ALERT SYSTEM ===== */
.alert {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-weight: 500;
    border: 2px solid;
    text-align: center;
}

.alert-success {
    background: rgba(0, 255, 136, 0.1);
    border-color: var(--secondary);
    color: var(--secondary);
}

.alert-error {
    background: rgba(255, 71, 71, 0.1);
    border-color: var(--crypto-red);
    color: #ff8a8a;
}

.alert-warning {
    background: rgba(255, 193, 7, 0.1);
    border-color: var(--warning);
    color: var(--warning);
}

.alert-info {
    background: rgba(23, 162, 184, 0.1);
    border-color: var(--info);
    color: var(--info);
}

/* ===== GRID SYSTEMS ===== */
.grid {
    display: grid;
    gap: 30px;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.stat-card {
    background: var(--backdrop);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    padding: 20px;
    text-align: center;
    backdrop-filter: var(--blur-backdrop);
}

.stat-card:hover {
    background-color: rgba(0, 102, 255, 0.1);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary);
    display: block;
    margin-bottom: 5px;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== TYPOGRAPHY SYSTEM ===== */
h1, h2, h3, h4, h5, h6 {
    color: var(--text);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.3rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
}

a {
    color: var(--secondary);
    text-decoration: none;
}

a:hover {
    color: var(--primary);
}

strong {
    color: var(--text);
    font-weight: 600;
}

em {
    color: var(--text);
    font-style: italic;
}

code {
    background: rgba(255, 255, 255, 0.1);
    padding: 3px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: var(--secondary);
    font-size: 0.9em;
}

pre {
    background: var(--backdrop);
    padding: 20px;
    border-radius: var(--border-radius);
    overflow-x: auto;
    margin: 20px 0;
    border: 1px solid var(--border);
}

pre code {
    background: none;
    padding: 0;
    color: var(--text);
}

blockquote {
    background: rgba(0, 102, 255, 0.1);
    border-left: 4px solid var(--primary);
    padding: 20px;
    margin: 20px 0;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    font-style: italic;
    color: #f0f0f0;
}

/* ===== LIST STYLES ===== */
ul, ol {
    margin-left: 20px;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

li {
    margin-bottom: 0.5rem;
}

/* ===== TABLE STYLES ===== */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: var(--backdrop);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

th {
    background: rgba(0, 102, 255, 0.1);
    color: var(--secondary);
    font-weight: 600;
}

tr:hover td {
    background-color: rgba(0, 255, 136, 0.1);
}

/* ===== IMAGE STYLES ===== */
img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin: 15px 0;
}

img:hover {
    opacity: 0.9;
}

.featured-image {
    box-shadow: var(--shadow-heavy);
}

/* ===== UTILITY CLASSES ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--crypto-red); }
.text-muted { color: var(--text-muted); }

.bg-primary { background: var(--primary); }
.bg-secondary { background: var(--secondary); }
.bg-dark { background: var(--dark-2); }
.bg-card { background: var(--backdrop); }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.p-0 { padding: 0; }
.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }
.p-5 { padding: 3rem; }

/* ===== WORDPRESS COMPATIBILITY ===== */
.alignleft {
    float: left;
    margin-right: 1.5em;
    margin-bottom: 1em;
}

.alignright {
    float: right;
    margin-left: 1.5em;
    margin-bottom: 1em;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1em;
}

.wp-caption {
    max-width: 100%;
    margin-bottom: 1.5em;
}

.wp-caption img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
}

.wp-caption .wp-caption-text {
    color: var(--text-muted);
    font-size: 0.9em;
    text-align: center;
    margin-top: 0.5em;
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .container, .container-wide {
        padding: 0 15px;
    }
    
    .page-section {
        padding: 60px 0;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .logicencoder-nav-menu {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .logicencoder-nav-container {
        padding: 0 15px;
    }
    
    .logicencoder-logo {
        font-size: 1.5rem;
    }
    
    .content-wrapper {
        margin-top: 70px;
    }
    
    .admin-bar .content-wrapper {
        margin-top: 116px;
    }
    
    .page-section {
        padding: 40px 0;
    }
    
    .page-header {
        padding: 25px;
    }
    
    .grid-2, .grid-3, .grid-4, .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .card {
        padding: 20px;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.3rem; }
}

@media (max-width: 480px) {
    .container, .container-wide, .container-narrow {
        padding: 0 10px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .form-control {
        padding: 10px 12px;
        font-size: 16px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
}

/* ===== FOOTER SYSTEM ===== */
.logicencoder-footer {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
    color: var(--text);
    margin-top: auto;
    border-top: 1px solid var(--border);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-top {
    padding: 60px 0 40px;
    border-bottom: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-column h4 {
    color: var(--secondary);
    margin-bottom: 20px;
    font-size: 1.2rem;
    font-weight: 600;
}

.footer-logo a {
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 15px;
}

.footer-description {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: var(--secondary);
}

.footer-bottom {
    padding: 25px 0;
    background: rgba(0, 0, 0, 0.3);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-fadeIn {
    animation: fadeIn 0.6s ease forwards;
}

/* ===== ACCESSIBILITY ===== */
.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip-link:focus {
    position: absolute;
    left: 6px;
    top: 7px;
    width: auto;
    height: auto;
    padding: 8px 16px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    z-index: 999999;
}

/* ===== PRINT STYLES ===== */
@media print {
    * {
        background: transparent !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    .logicencoder-nav,
    .logicencoder-footer,
    .mobile-menu-toggle {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.3;
    }
    
    .content-wrapper {
        margin-top: 0;
    }
}

/* ===== HIGH CONTRAST MODE ===== */
@media (prefers-contrast: high) {
    :root {
        --border: rgba(255, 255, 255, 0.5);
        --border-hover: rgba(255, 255, 255, 0.8);
        --backdrop: rgba(255, 255, 255, 0.15);
    }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
    }
    
    .bg-animation {
        animation: none;
    }
}