/* static/css/base.css */

:root {
    --ita-blue: #2563eb;
    --ita-blue-hover: #1d4ed8;
    --ita-dark-blue: #1e3a8a;
    --text-primary: #111827;
    --text-secondary: #374151;
    --text-tertiary: #6b7280;
    --bg-light: #f9fafb;
    --bg-main: #ffffff;
    --bg-lighter: #f3f4f6;
    --border-main: #e5e7eb;
    --border-dark: #d1d5db;
}

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

body {
    font-family: 'Inter', 'Roboto', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.5;
}

.container-default {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* High Contrast Mode */
.high-contrast {
    --ita-blue: #0000ff;
    --ita-blue-hover: #0000cc;
    --ita-dark-blue: #000080;
    --text-primary: #000000;
    --text-secondary: #000000;
    --text-tertiary: #000000;
    --bg-light: #ffffff;
    --bg-main: #ffffff;
    --border-main: #000000;
    filter: contrast(150%);
}

.high-contrast a,
.high-contrast button {
    border: 2px solid currentColor;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

/* Main content */
#main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* Responsive */
@media (max-width: 768px) {
    .container-default {
        padding: 0 0.75rem;
    }
}

/* Дополнительные стили для кнопок */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--ita-blue);
    color: white;
}

.btn-primary:hover {
    background-color: var(--ita-blue-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background-color: var(--bg-light);
    color: var(--text-secondary);
    border: 1px solid var(--border-main);
}

.btn-secondary:hover {
    background-color: var(--border-dark);
    color: var(--ita-blue);
}

/* Utility classes */
.text-center {
    text-align: center;
}

.text-ita-blue {
    color: var(--ita-blue);
}

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

.text-text-secondary {
    color: var(--text-secondary);
}

.max-w-lg {
    max-width: 32rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}