/* Global Reset & Typography */
:root {
    --bg-color: #0d0d12;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --accent-primary: #6366f1;
    /* Indigo */
    --accent-secondary: #ec4899;
    /* Pink */
    --accent-tertiary: #06b6d4;
    /* Cyan */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Dynamic Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 90% 50%, rgba(236, 72, 153, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 50% 80%, rgba(6, 182, 212, 0.15) 0%, transparent 40%);
    z-index: -1;
}

/* Typography Utilities */
h1,
h2,
h3 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary), var(--accent-tertiary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

section {
    padding: 2rem 0;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 50px;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer */
footer {
    padding: 2rem 0;
    text-align: center;
    color: var(--text-secondary);
    border-top: 1px solid var(--glass-border);
    margin-top: 2rem;
}
/* Traffic Log Colors */
.log-turn-1 { color: #06b6d4; } /* Cyan */
.log-turn-2 { color: #d946ef; } /* Magenta */
.log-turn-3 { color: #22c55e; } /* Green */
.log-turn-0 { color: #3b82f6; } /* Blue */
.log-line { margin-bottom: 2px; }

/* Responsive Layout Classes */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
}

.main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.col-left {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.col-right {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.map-input {
    background: #1e1e24;
    color: #a0a0b0;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 0.5rem;
    font-family: monospace;
    font-size: 0.8rem;
    width: 100%;
    resize: none;
    flex: 1;
    min-height: 75vh;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .main-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1rem;
    }

    .container {
        padding: 0 1rem;
    }
    
    .map-input {
        min-height: 50vh;
    }
    
    h2 {
        font-size: 2rem !important; /* Override inline if needed, though inline usually wins, we will remove inline in HTML */
    }
}
