/* MNS-D2 Memory Repository - Professional Styling */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Header Styles */
.header {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header h1 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 300;
    color: #00d4ff;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
    margin-bottom: 0.5rem;
}

.header .subtitle {
    text-align: center;
    color: #a0a0a0;
    font-size: 1.1rem;
    font-weight: 300;
}

/* Container and Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Debug Console Styles */
.debug-console {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(5px);
}

.debug-console h3 {
    color: #00d4ff;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.console-controls {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.console-input {
    flex: 1;
    min-width: 200px;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 4px;
    color: #e0e0e0;
    font-family: 'Courier New', monospace;
}

.console-input:focus {
    outline: none;
    border-color: #00d4ff;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

/* Button Styles */
.btn {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
    color: #000;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn:hover {
    background: linear-gradient(135deg, #00b8e6 0%, #0088bb 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, #666 0%, #444 100%);
    color: #fff;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #777 0%, #555 100%);
}

/* Section Styles */
.section {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.section:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 212, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.section h2 {
    color: #00d4ff;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 300;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.section h3 {
    color: #66d9ff;
    font-size: 1.4rem;
    margin: 1.5rem 0 1rem 0;
    font-weight: 400;
}

/* Identity Section */
.identity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.identity-item {
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    border-radius: 8px;
    border-left: 3px solid #00d4ff;
}

.identity-item strong {
    color: #00d4ff;
    display: block;
    margin-bottom: 0.5rem;
}

/* Project Cards */
.project-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.project-card:hover {
    border-color: rgba(0, 212, 255, 0.5);
    background: rgba(0, 0, 0, 0.4);
    transform: translateX(5px);
}

.project-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.project-icon {
    font-size: 1.5rem;
}

.project-title {
    color: #00d4ff;
    font-size: 1.3rem;
    font-weight: 500;
}

.status-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-left: auto;
}

.status-active {
    background: rgba(0, 255, 0, 0.2);
    color: #00ff00;
    border: 1px solid rgba(0, 255, 0, 0.3);
}

.status-operational {
    background: rgba(0, 212, 255, 0.2);
    color: #00d4ff;
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.status-coordination {
    background: rgba(255, 165, 0, 0.2);
    color: #ffa500;
    border: 1px solid rgba(255, 165, 0, 0.3);
}

/* Links and Interactive Elements */
a {
    color: #00d4ff;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #66d9ff;
    text-shadow: 0 0 5px rgba(0, 212, 255, 0.5);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .console-controls {
        flex-direction: column;
    }
    
    .console-input {
        min-width: 100%;
    }
    
    .identity-grid {
        grid-template-columns: 1fr;
    }
    
    .project-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .status-badge {
        margin-left: 0;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.glow {
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
    }
    to {
        text-shadow: 0 0 20px rgba(0, 212, 255, 0.6);
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #00b8e6 0%, #0088bb 100%);
}

