/**
 * NeuraWeb Complete Base Styles
 * 
 * File: /wp-content/plugins/neuraweb/assets/css/neuraweb-base.css
 */

:root {
    --primary: #667eea;
    --accent: #764ba2;
    --bg: #0f0f23;
    --surface: #1a1a2e;
    --text: #e0e0e0;
    --text2: #9ca3af;
    --border: #334155;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.nw-header {
    background: var(--surface);
    border-bottom: 2px solid var(--border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nw-header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nw-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nw-logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
}

.nw-logo-icon {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
}

.nw-logo-text {
    font-size: 20px;
    font-weight: 600;
}

.nw-nav {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nw-nav a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nw-nav a:hover {
    color: var(--primary);
}

.nw-user-greeting {
    color: var(--text2);
    font-size: 14px;
}

/* Search Section */
.nw-search-section {
    background: var(--surface);
    padding: 2rem 0;
    border-bottom: 1px solid var(--border);
}

.nw-search-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
}

.nw-search-input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    font-size: 16px;
}

.nw-search-input:focus {
    outline: none;
    border-color: var(--primary);
}

.nw-search-icon {
    position: absolute;
    right: calc(2rem + 15px);
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
}

/* Main Content */
.nw-main {
    flex: 1;
    padding: 3rem 0;
}

.nw-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Auth Container */
.nw-auth-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
}

.nw-auth-box {
    background: var(--surface);
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.nw-auth-box h1 {
    margin-bottom: 10px;
    font-size: 32px;
    text-align: center;
}

.nw-subtitle {
    text-align: center;
    color: var(--text2);
    margin-bottom: 30px;
}

/* Auth Logo */
.nw-auth-logo {
    text-align: center;
    margin-bottom: 30px;
}

.nw-logo-icon-large {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 36px;
    margin: 0 auto 20px;
    box-shadow: 0 8px 16px rgba(102, 126, 234, 0.3);
}

.nw-auth-logo h1 {
    margin-bottom: 5px;
}

/* Forms */
.nw-form-group {
    margin-bottom: 20px;
}

.nw-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text2);
}

.nw-form input[type="email"],
.nw-form input[type="password"],
.nw-form input[type="text"] {
    width: 100%;
    padding: 15px;
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-size: 16px;
}

.nw-form input:focus {
    outline: none;
    border-color: var(--primary);
}

.nw-form input::placeholder {
    color: var(--text2);
}

.nw-form small {
    display: block;
    margin-top: 5px;
    color: var(--text2);
    font-size: 12px;
}

/* Form Options */
.nw-form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 14px;
}

.nw-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--text2);
}

.nw-checkbox input {
    width: auto !important;
    cursor: pointer;
    margin: 0;
}

.nw-link-secondary {
    color: var(--text2);
    text-decoration: none;
    font-size: 14px;
}

.nw-link-secondary:hover {
    color: var(--primary);
}

/* Buttons */
.nw-btn-primary,
.nw-btn-secondary {
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    border: none;
}

.nw-btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
}

.nw-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.nw-btn-secondary {
    background: transparent;
    border: 2px solid var(--border);
    color: var(--text);
}

.nw-btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.nw-btn-block {
    width: 100%;
    margin-top: 10px;
}

/* Messages */
.nw-error {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.5);
    color: #fca5a5;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
}

.nw-success {
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid rgba(34, 197, 94, 0.5);
    color: #86efac;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
}

/* Auth Divider */
.nw-auth-divider {
    text-align: center;
    margin: 30px 0;
    position: relative;
}

.nw-auth-divider::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: var(--border);
}

.nw-auth-divider span {
    background: var(--surface);
    padding: 0 15px;
    color: var(--text2);
    position: relative;
    z-index: 1;
}

/* Auth Footer */
.nw-auth-footer {
    text-align: center;
    margin-top: 20px;
    color: var(--text2);
}

.nw-auth-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.nw-auth-footer a:hover {
    text-decoration: underline;
}

/* Cards */
.nw-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 20px;
}

.nw-card h3 {
    margin-bottom: 20px;
    font-size: 20px;
}

/* Grid */
.nw-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
}

/* Info Grid */
.nw-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.nw-info-item label {
    display: block;
    color: var(--text2);
    font-size: 14px;
    margin-bottom: 5px;
}

.nw-info-item div {
    font-weight: 500;
}

/* Badges */
.nw-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.nw-badge-registered,
.nw-badge-active {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
}

.nw-badge-super_admin {
    background: rgba(156, 39, 176, 0.2);
    color: #9c27b0;
}

/* Neural ID Display */
.nw-neural-id-display {
    padding: 20px;
    background: var(--bg);
    border-radius: 10px;
    margin-bottom: 20px;
}

.nw-neural-id {
    display: block;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    font-family: monospace;
    font-size: 12px;
    word-break: break-all;
    margin: 10px 0;
    color: var(--primary);
}

.nw-help-text {
    color: var(--text2);
    font-size: 14px;
    margin-top: 10px;
}

/* Dashboard */
.nw-dashboard-welcome {
    text-align: center;
    margin-bottom: 3rem;
}

.nw-dashboard-welcome h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

/* Ecosystem Grid */
.nw-ecosystem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.nw-ecosystem-card {
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
}

.nw-ecosystem-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.2);
}

.nw-ecosystem-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.nw-ecosystem-card h3 {
    margin-bottom: 10px;
    font-size: 22px;
}

.nw-ecosystem-card p {
    color: var(--text2);
    margin-bottom: 20px;
}

/* Footer */
.nw-footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 2rem 0;
    margin-top: auto;
}

.nw-footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.nw-footer-tagline {
    color: var(--text2);
    font-size: 14px;
    margin-top: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .nw-header-inner {
        padding: 0 1rem;
    }
    
    .nw-nav {
        gap: 15px;
        font-size: 14px;
    }
    
    .nw-search-container {
        padding: 0 1rem;
    }
    
    .nw-container {
        padding: 0 1rem;
    }
    
    .nw-auth-box {
        padding: 30px 20px;
    }
    
    .nw-grid {
        grid-template-columns: 1fr;
    }
    
    .nw-ecosystem-grid {
        grid-template-columns: 1fr;
    }
    .nw-form-input {
    width: 100%;
    padding: 15px;
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-size: 16px;
}

.nw-btn-full {
    width: 100%;
}

.nw-alert {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.nw-alert-error {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.5);
    color: #fca5a5;
}

.nw-alert-success {
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid rgba(34, 197, 94, 0.5);
    color: #86efac;
}
}