/* Custom styles for Montana Computing Consortium — MSU Theme Update */

/* Font styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: #2d3748;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    letter-spacing: -0.025em;
    color: #0b285f;
}

h1 {
    font-weight: 700;
}

/* Code */
code, pre {
    font-family: 'JetBrains Mono', 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

/* Header */
header {
    background: linear-gradient(135deg, #0b285f 50%, #ffc82e 100%);
    color: white;
    padding: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header h1 {
    margin: 0;
    padding: 1rem 2rem;
    font-size: 1.8rem;
    font-weight: 700;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
}

/* Navigation Bar */
nav {
    display: flex;
    align-items: stretch;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    padding: 0;
    border-top: 1px solid rgba(255,255,255,0.2);
    height: 3.5rem;
}

/* Navigation Links */
nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2rem;
    height: 100%;
    color: #0b285f;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.025em;
    transition: all 0.3s ease;
    border-right: 1px solid rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
}

nav a:first-child {
    border-left: none;
}

nav a:hover {
    background: linear-gradient(135deg, #0b285f 0%, #133c91 100%);
    color: #ffc82e;
    box-shadow: 0 4px 12px rgba(11, 40, 95, 0.3);
}

nav a:active {
    transform: translateY(0);
}

/* Shimmer animation */
nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transition: left 0.5s;
}

nav a:hover::before {
    left: 100%;
}

/* Main Content */
main {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    flex: 1;
}

p {
    margin-bottom: 1.5rem;
    color: #3c4a68;
}

/* Links */
main a {
    color: #0b285f;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease, color 0.3s ease;
}

main a:hover {
    border-bottom-color: #ffc82e;
    color: #133c91;
}

/* Welcome Section */
.welcome-section {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    padding: 3rem 2rem;
    margin: -2rem -2rem 2rem -2rem;
    border-radius: 0 0 20px 20px;
    text-align: center;
}

.welcome-section h1 {
    color: #0b285f;
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

/* Footer */
footer {
    background: #0b285f;
    color: #d1d8e0;
    text-align: center;
    padding: 2rem;
    margin-top: auto;
    border-top: 2px solid #ffc82e;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        padding: 1rem;
        font-size: 1.5rem;
    }

    nav {
        flex-direction: column;
    }

    nav a {
        border-right: none;
        border-bottom: 1px solid rgba(0,0,0,0.1);
        text-align: center;
    }

    nav a:last-child {
        border-bottom: none;
    }

    main {
        padding: 1rem;
    }

    .welcome-section {
        margin: -1rem -1rem 1rem -1rem;
        padding: 2rem 1rem;
    }

    .welcome-section h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.3rem;
    }

    nav a {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
}
