:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --text-primary: #e0e0e0;
    --text-secondary: #a0a0a0;
    --accent-ask: #4a9eff;
    --accent-learn: #ffaa44;
    --accent-modify: #44ff88;
    --accent-guide: #ff44aa;
    --border: #333;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

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

/* Breadcrumb Navigation */
.breadcrumb {
    padding: 1rem 2rem;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.breadcrumb a {
    color: var(--accent-ask);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb .separator {
    margin: 0 0.5rem;
}

.breadcrumb .current {
    color: var(--text-primary);
}

/* Clippy Assistant */
.clippy-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
}

.clippy {
    width: 120px;
    height: 140px;
    background: linear-gradient(135deg, #4a9eff 0%, #3a7ecf 100%);
    border-radius: 20px;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
    box-shadow: 0 10px 30px rgba(74, 158, 255, 0.3);
}

.clippy:hover {
    transform: translateY(-5px);
}

.clippy-eyes {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
}

.clippy-eye {
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    position: relative;
}

.clippy-pupil {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #0a0a0a;
    border-radius: 50%;
    top: 3px;
    left: 3px;
}

.clippy-mouth {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 20px;
    border: 2px solid white;
    border-top: none;
    border-radius: 0 0 20px 20px;
}

.clippy-speech {
    position: absolute;
    bottom: 160px;
    right: 0;
    background: white;
    color: #0a0a0a;
    padding: 1rem;
    border-radius: 10px;
    max-width: 250px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    display: none;
}

.clippy-speech.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.clippy-speech::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid white;
}

/* Header */
.site-header {
    text-align: center;
    padding: 4rem 2rem 2rem;
}

.site-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--accent-ask), var(--accent-modify));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.site-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.site-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-ask);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Quadrant Grid */
.quadrant-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin: 3rem 0;
}

.quadrant {
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: 15px;
    padding: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.quadrant::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.quadrant.ask { border-color: var(--accent-ask); }
.quadrant.ask::before { background: var(--accent-ask); }
.quadrant.learn { border-color: var(--accent-learn); }
.quadrant.learn::before { background: var(--accent-learn); }
.quadrant.modify { border-color: var(--accent-modify); }
.quadrant.modify::before { background: var(--accent-modify); }
.quadrant.guide { border-color: var(--accent-guide); }
.quadrant.guide::before { background: var(--accent-guide); }

.quadrant:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
}

.quadrant:hover::before {
    opacity: 1;
}

.quadrant-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
}

.quadrant-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.quadrant-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Content Pages */
.content-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border);
}

.content-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.content-section {
    margin: 3rem 0;
}

.content-section h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--accent-ask);
}

.content-section h3 {
    font-size: 1.4rem;
    margin: 2rem 0 1rem;
    color: var(--text-primary);
}

.content-section p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.content-section ul, .content-section ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.content-section li {
    margin-bottom: 0.5rem;
}

.content-section a {
    color: var(--accent-ask);
    text-decoration: none;
}

.content-section a:hover {
    text-decoration: underline;
}

/* ALMG Specific Styles */
.almg-diagram {
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: 10px;
    padding: 2rem;
    margin: 2rem 0;
}

.almg-diagram img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.case-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.case-card:hover {
    border-color: var(--accent-ask);
    transform: translateY(-2px);
}

.case-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.case-coords {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-family: 'Courier New', monospace;
}

.zone-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.zone-green { background: rgba(68, 255, 136, 0.2); color: var(--accent-modify); }
.zone-gold { background: rgba(255, 170, 68, 0.2); color: var(--accent-learn); }
.zone-red { background: rgba(255, 68, 170, 0.2); color: var(--accent-guide); }
.zone-purple { background: rgba(138, 68, 255, 0.2); color: #8a44ff; }

/* Navigation Buttons */
.section-navigation {
    display: flex;
    justify-content: space-between;
    margin: 3rem 0;
    gap: 1rem;
}

.nav-button {
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.nav-button.primary {
    background: var(--accent-ask);
    color: white;
}

.nav-button.secondary {
    background: transparent;
    border: 2px solid var(--accent-ask);
    color: var(--accent-ask);
}

.nav-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 158, 255, 0.3);
}

/* Topic Grid */
.topic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.topic-card {
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: 10px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.topic-card:hover {
    border-color: var(--accent-ask);
    transform: translateY(-3px);
}

.topic-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.topic-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Footer */
.site-footer {
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

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

/* Responsive */
@media (max-width: 768px) {
    .quadrant-grid {
        grid-template-columns: 1fr;
    }
    
    .site-title {
        font-size: 2rem;
    }
    
    .site-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .case-grid {
        grid-template-columns: 1fr;
    }
}
