/* MoMA Template Base Styles */

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

:root {
    /* Default color variables - overridden by inline styles in templates */
    --primary-color: #212121;
    --secondary-color: #757575;
    --accent-color: #EC1C24;
    --background-color: #ffffff;
    --border-color: #e0e0e0;
    --text-light-color: #9e9e9e;
    --text-dark-color: #424242;
    --separator-color: #bdbdbd;
    --hover-color: #616161;
    --placeholder-bg: #f5f5f5;
    --form-bg: #f8f9fa;
    --important-color: #000000;
    --warning-color: #ff9800;
    
    /* Typography */
    --font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --base-font-size: 14px;
    
    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 40px;
    --spacing-3xl: 48px;
    --spacing-4xl: 60px;
    --spacing-5xl: 80px;
}

body {
    font-family: var(--font-family);
    font-size: var(--base-font-size);
    line-height: 1.6;
    color: var(--primary-color);
    background: var(--background-color);
    display: flex;
    min-height: 100vh;
}

/* Sidebar Navigation */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 280px;
    background: var(--background-color);
    border-right: 1px solid var(--border-color);
    padding: var(--spacing-4xl) var(--spacing-2xl);
    display: flex;
    flex-direction: column;
    z-index: 100;
}

.sidebar-header {
    margin-bottom: var(--spacing-5xl);
}

.sidebar-logo {
    font-size: calc(var(--base-font-size) * 1.43);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--primary-color);
    text-decoration: none;
    display: block;
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
}

.sidebar-logo img {
    max-width: 200px;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.sidebar-tagline {
    font-size: calc(var(--base-font-size) * 0.86);
    color: var(--secondary-color);
    font-weight: 400;
    letter-spacing: 0.02em;
}

.sidebar-nav {
    flex: 1;
}

.sidebar-nav ul {
    list-style: none;
}

.sidebar-nav li {
    margin-bottom: var(--spacing-lg);
}

.sidebar-nav a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: var(--base-font-size);
    font-weight: 400;
    transition: color 0.2s ease;
    display: block;
    position: relative;
    padding-left: 0;
}

.sidebar-nav a:hover {
    color: var(--text-dark-color);
}

.sidebar-nav a.active {
    font-weight: 600;
    color: var(--primary-color);
}

.sidebar-footer {
    margin-top: auto;
    padding-top: var(--spacing-2xl);
    border-top: 1px solid var(--border-color);
}

.sidebar-footer p {
    font-size: 11px;
    color: var(--text-light-color);
    line-height: 1.6;
}

.sidebar-footer a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.sidebar-footer a:hover {
    color: #212121;
}

/* Main Content Area */
.main-content {
    margin-left: 280px;
    flex: 1;
    padding: 60px 80px;
    max-width: 1400px;
    width: 100%;
}

/* Typography */
h1 {
    font-size: 42px;
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-bottom: 32px;
    color: #212121;
}

h2 {
    font-size: 28px;
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.3;
    margin-bottom: 24px;
    color: #212121;
}

h3 {
    font-size: 20px;
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.4;
    margin-bottom: 16px;
    color: #212121;
}

p {
    margin-bottom: 20px;
    color: #424242;
}

.text-large {
    font-size: 18px;
    line-height: 1.7;
    color: #424242;
}

.text-small {
    font-size: 12px;
    color: #757575;
}

/* Links */
a {
    color: #212121;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #EC1C24;
}

/* Language Switcher */
.language-switcher {
    position: fixed;
    top: 30px;
    right: 40px;
    z-index: 101;
    display: flex;
    gap: 12px;
    font-size: 12px;
}

.language-switcher a {
    color: #757575;
    text-decoration: none;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: color 0.2s ease;
}

.language-switcher a:hover,
.language-switcher a.active {
    color: #212121;
}

.language-switcher .divider {
    color: #e0e0e0;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 30px;
    left: 30px;
    z-index: 102;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #212121;
    margin-bottom: 6px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
}

/* Mobile Styles */
@media (max-width: 1024px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        padding: 80px 30px 60px;
    }
    
    .language-switcher {
        right: 30px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        padding: 80px 30px 40px;
    }
    
    .sidebar-logo img {
        max-width: 160px;
        max-height: 50px;
    }
    
    .main-content {
        padding: 80px 20px 60px;
    }
    
    h1 {
        font-size: 32px;
    }
    
    h2 {
        font-size: 24px;
    }
    
    h3 {
        font-size: 18px;
    }
}

/* Utility Classes */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-5 { margin-top: 48px; }
.mt-6 { margin-top: 64px; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mb-5 { margin-bottom: 48px; }
.mb-6 { margin-bottom: 64px; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }