/* Common CSS for all ExprUA pages */

/* CSS Variables - matching editor theme */
:root {
    --exprua-bg: #1e1e1e;
    --exprua-panel-bg: #252526;
    --exprua-border: #3e3e42;
    --exprua-fg: #d4d4d4;
    --exprua-text-muted: #858585;
    --exprua-accent: #0e639c;
    --exprua-accent-hover: #1177bb;
    --exprua-status-ready: #4ec9b0;
    /* Syntax highlighting */
    --color-variable: #9CDCFE;
    --color-number: #b5cea8;
    --color-unit: #d7ba7d;
    --color-keyword: #C586C0;
    --color-function: #dcdcaa;
    --color-string: #ce9178;
    --color-comment: #6a9955;
    --color-operator: #C8C8C8;
}

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

/* Base Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--exprua-bg);
    color: var(--exprua-fg);
    line-height: 1.6;
}

html {
    scroll-behavior: smooth;
}

/* Navigation Header */
.top-nav {
    position: sticky;
    top: 0;
    background: var(--exprua-panel-bg);
    border-bottom: 1px solid var(--exprua-border);
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.top-nav .nav-brand {
    font-size: 17px;
    font-weight: 500;
    color: #cccccc;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    text-decoration: none;
    transition: color 0.15s ease;
}

.top-nav .nav-brand:hover {
    color: #d4d4d4;
}

.top-nav .nav-links {
    display: flex;
    gap: 28px;
    align-items: center;
}

.top-nav a:not(.nav-brand) {
    color: #a0a0a0;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    transition: color 0.15s ease;
}

.top-nav a:not(.nav-brand):hover {
    color: #cccccc;
}

/* Footer */
footer {
    background: #252526;
    border-top: 1px solid #3e3e42;
    padding: 12px 20px;
    text-align: center;
    font-size: 12px;
    color: #858585;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

footer a {
    color: #0e639c;
    text-decoration: none;
    transition: color 0.2s;
}

footer a:hover {
    color: #1177bb;
}

/* Responsive Navigation */
@media (max-width: 768px) {
    .top-nav {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
        padding: 10px 16px;
    }
    
    .top-nav .nav-brand {
        font-size: 16px;
        padding: 4px 0; /* Add padding for touch target */
        min-height: 44px; /* Touch target size */
        display: flex;
        align-items: center;
    }
    
    .top-nav .nav-links {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
        width: 100%;
    }
    
    .top-nav a:not(.nav-brand) {
        font-size: 15px;
        padding: 8px 0;
        min-height: 44px; /* Touch target size */
        display: flex;
        align-items: center;
        width: 100%;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .top-nav {
        padding: 8px 12px;
        gap: 10px;
    }
    
    .top-nav .nav-brand {
        font-size: 15px;
    }
    
    .top-nav a:not(.nav-brand) {
        font-size: 14px;
        padding: 10px 0;
    }
    
    footer {
        padding: 10px 12px;
        font-size: 11px;
        gap: 12px;
    }
    
    footer a {
        padding: 4px 0;
        min-height: 32px;
        display: inline-flex;
        align-items: center;
    }
}
