/* HUB CSS */
@import url('paywall.css');
/* Ensuring consistent variables */

:root {
    --primary-color: #00ffcc;
    --secondary-color: #ff00ff;
    --bg-color: #050505;
    --text-color: #e0e0e0;
    --card-bg: rgba(20, 20, 20, 0.9);
    --border-glow: #00ffcc66;
}

body {
    margin: 0;
    padding: 0;
    background: var(--bg-color);
    color: var(--text-color);
    font-family: 'Roboto Mono', monospace;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 50%, rgba(0, 0, 0, 0.1) 50%, rgba(0, 0, 0, 0.1));
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 10;
}

.background-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 255, 204, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 204, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -1;
    animation: gridScroll 20s linear infinite;
}

@keyframes gridScroll {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(40px);
    }
}

header {
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--primary-color);
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    text-shadow: 0 0 10px var(--primary-color);
}

.system-status {
    color: var(--primary-color);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.indicator {
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-color);
    animation: blink 2s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

main {
    flex: 1;
    padding: 4rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
}

.module-card {
    background: var(--card-bg);
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    padding: 2rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.module-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 0 20px var(--border-glow);
    background: rgba(0, 255, 204, 0.1);
}

.module-card .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.module-card:hover .icon {
    transform: scale(1.1);
}

.module-card h2 {
    font-family: 'Orbitron', sans-serif;
    margin: 0.5rem 0;
    color: var(--primary-color);
}

.module-card p {
    font-size: 0.9rem;
    color: #aaa;
    margin-bottom: 1.5rem;
}

.module-card .status {
    margin-top: auto;
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
    border: 1px solid var(--primary-color);
    border-radius: 2px;
    color: var(--primary-color);
}

/* Specific Card Styling */
.module-card:nth-child(5) {
    /* Paradox Core */
    border-color: var(--secondary-color);
}

.module-card:nth-child(5) h2,
.module-card:nth-child(5) .status {
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.module-card:nth-child(5):hover {
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.4);
    background: rgba(255, 0, 255, 0.1);
}

footer {
    text-align: center;
    padding: 2rem;
    color: #555;
    font-size: 0.8rem;
    border-top: 1px solid #222;
}