/* MetaMatrix Patented UI Styles */
:root {
    --mm-bg: #0b0f19;
    --mm-grid: rgba(0, 255, 200, 0.1);
    --mm-node: rgba(0, 255, 200, 0.8);
    --mm-glow: 0 0 15px rgba(0, 255, 200, 0.6);
}

.mm-wrapper {
    width: 100%;
    margin-bottom: 30px;
    font-family: 'Inter', Roboto, sans-serif;
}

.mm-input-wrapper {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    justify-content: center;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.mm-input {
    background: #f5f5f5;
    border: 1px solid #ccc;
    color: #333;
    border-radius: 4px;
    padding: 12px 20px;
    font-size: 1.1rem;
    outline: none;
    width: 350px;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.mm-input:focus {
    border-color: var(--mm-node);
    background: #fff;
    box-shadow: 0 0 8px rgba(0, 255, 200, 0.3);
}

.mm-btn {
    background: var(--mm-bg);
    color: #fff;
    border: 1px solid var(--mm-node);
    border-radius: 4px;
    padding: 12px 30px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.mm-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--mm-glow);
}

#metaMatrixContainer {
    background: var(--mm-bg);
    min-height: 50vh;
    border-radius: 12px;
    padding: 3rem 2rem;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    background-image: 
        linear-gradient(var(--mm-grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--mm-grid) 1px, transparent 1px);
    background-size: 50px 50px;
    box-shadow: inset 0 0 80px rgba(0,0,0,0.9);
}

.mm-header {
    width: 100%;
    text-align: center;
    color: #fff;
    margin-bottom: 2rem;
    z-index: 2;
}
.mm-header h2 {
    color: #fff;
    font-weight: 300;
    letter-spacing: 3px;
    margin: 0 0 10px 0;
}
.mm-header p {
    color: var(--mm-node);
    font-family: monospace;
}

.mm-node {
    width: 200px;
    height: 240px;
    background: rgba(11, 15, 25, 0.85);
    border: 1px solid var(--mm-node);
    border-radius: 12px;
    box-shadow: var(--mm-glow);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    backdrop-filter: blur(5px);
}

.mm-node::before {
    content: '';
    position: absolute;
    top: 5px; right: 5px; bottom: 5px; left: 5px;
    border: 1px dashed rgba(0, 255, 200, 0.3);
    border-radius: 8px;
    pointer-events: none;
}

.mm-node:hover {
    transform: translateY(-15px) scale(1.05) rotateY(10deg);
    box-shadow: 0 15px 35px rgba(0, 255, 200, 0.4), inset 0 0 20px rgba(0, 255, 200, 0.2);
    z-index: 10;
    background: rgba(15, 22, 36, 0.95);
    border-color: #fff;
}

.mm-node-title {
    font-weight: 600;
    margin-top: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    text-align: center;
}

.mm-node-icon {
    font-size: 4rem;
    color: var(--mm-node);
    transition: color 0.3s, transform 0.3s;
}

.mm-node:hover .mm-node-icon {
    color: #fff;
    transform: scale(1.1);
}

/* Animations */
@keyframes mmFadeIn {
    0% { opacity: 0; transform: translateY(30px) scale(0.9); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.mm-animate-in {
    animation: mmFadeIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
