/* ============================================
   Сибирская школа геонаук - ИРНИТУ
   Геологический стиль с элементами минералов и пород
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&family=Montserrat:wght@400;600;700&display=swap');

/* ========== ПЕРЕМЕННЫЕ ========== */
:root {
    --istu-blue: #0a4b7a;
    --istu-blue-dark: #063b5e;
    --istu-gold: #c9a03d;
    --istu-gold-dark: #a07d2c;
    --istu-brown: #6b4c3b;
    --istu-sand: #d9c8b2;
    --istu-granite: #6f6f6f;
    --istu-slate: #4a5b6e;
    --istu-slate-light: #7e8c9e;
    --istu-bg-light: #f8f6f2;
    --istu-bg-dark: #2c3e2f;
    --istu-rock: #9b8e7c;
    --istu-fossil: #aa8c6e;
}

/* ========== ОСНОВНЫЕ СТИЛИ ========== */
body {
    font-family: 'Roboto', 'Montserrat', sans-serif;
    background: linear-gradient(135deg, var(--istu-bg-light) 0%, #e8e2d8 100%);
    background-attachment: fixed;
    color: #2c3e2f;
}

/* ========== ШАПКА САЙТА ========== */
.navbar {
    background: linear-gradient(135deg, var(--istu-blue) 0%, var(--istu-blue-dark) 100%) !important;
    border-bottom: 3px solid var(--istu-gold) !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    padding: 0.8rem 0;
}

.navbar-brand {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    color: white !important;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-brand::before {
    content: "⛏️";
    font-size: 1.5rem;
    filter: drop-shadow(2px 2px 2px rgba(0,0,0,0.2));
}

.navbar .nav-link {
    color: rgba(255,255,255,0.9) !important;
    font-weight: 500;
    transition: all 0.3s ease;
}

.navbar .nav-link:hover {
    color: var(--istu-gold) !important;
    transform: translateY(-2px);
}

/* ========== ЗАГОЛОВКИ ========== */
h1, h2, h3, h4, .page-header {
    font-family: 'Montserrat', sans-serif;
    color: var(--istu-blue) !important;
    position: relative;
    padding-bottom: 12px;
    margin-bottom: 25px;
}

h1::after, h2::after, .page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--istu-gold), var(--istu-brown));
    border-radius: 3px;
}

h1 {
    font-size: 2rem;
    font-weight: 700;
}

h2 {
    font-size: 1.5rem;
    font-weight: 600;
}

/* ========== КАРТОЧКИ И БЛОКИ ========== */
.card {
    background: white;
    border: none !important;
    border-radius: 12px !important;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    margin-bottom: 20px;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
}

.card-header {
    background: linear-gradient(135deg, var(--istu-blue) 0%, var(--istu-slate) 100%) !important;
    color: white !important;
    border: none !important;
    padding: 15px 20px;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
}

.card-header::before {
    content: "🗺️";
    margin-right: 8px;
}

.card-body {
    padding: 20px;
}

/* ========== КНОПКИ ========== */
.btn-primary {
    background: linear-gradient(135deg, var(--istu-blue) 0%, var(--istu-slate) 100%) !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 8px 20px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--istu-gold) 0%, var(--istu-brown) 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-success {
    background: linear-gradient(135deg, #2c5e2e 0%, #1e3a20 100%) !important;
    border: none !important;
}

.btn-warning {
    background: linear-gradient(135deg, var(--istu-gold) 0%, var(--istu-gold-dark) 100%) !important;
    border: none !important;
    color: white !important;
}

/* ========== ССЫЛКИ ========== */
a {
    color: var(--istu-blue) !important;
    text-decoration: none !important;
    transition: all 0.3s ease;
    position: relative;
}

a:hover {
    color: var(--istu-gold) !important;
    text-decoration: none !important;
}

a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--istu-gold), var(--istu-brown));
    transition: width 0.3s ease;
}

a:hover::after {
    width: 100%;
}

/* ========== ТАБЛИЦЫ ========== */
.table {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.table thead {
    background: linear-gradient(135deg, var(--istu-slate) 0%, var(--istu-blue) 100%);
    color: white;
}

.table thead th {
    border: none !important;
    padding: 12px;
    font-weight: 600;
}

.table tbody tr {
    transition: all 0.2s ease;
}

.table tbody tr:hover {
    background: var(--istu-sand);
}

/* ========== ФОРМЫ ========== */
.form-control, .form-select {
    border: 1px solid var(--istu-sand) !important;
    border-radius: 8px !important;
    padding: 10px 15px !important;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--istu-gold) !important;
    box-shadow: 0 0 0 3px rgba(201, 160, 61, 0.2) !important;
}

/* ========== ФУТЕР ========== */
footer {
    background: linear-gradient(135deg, var(--istu-blue-dark) 0%, var(--istu-brown) 100%) !important;
    color: rgba(255,255,255,0.8) !important;
    padding: 30px 0 20px !important;
    margin-top: 50px;
    border-top: 3px solid var(--istu-gold);
    position: relative;
}

footer::before {
    content: "⛏️";
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    background: var(--istu-bg-light);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

footer a {
    color: var(--istu-gold) !important;
}

footer a:hover {
    color: white !important;
}

/* ========== ПАНЕЛЬ УПРАВЛЕНИЯ ========== */
.sidebar, .left-panel {
    background: white;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.nav-pills .nav-link {
    color: var(--istu-blue) !important;
    border-radius: 8px !important;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.nav-pills .nav-link:hover {
    background: var(--istu-sand) !important;
    color: var(--istu-blue) !important;
}

.nav-pills .nav-link.active {
    background: linear-gradient(135deg, var(--istu-blue) 0%, var(--istu-slate) 100%) !important;
    color: white !important;
}

/* ========== АНИМАЦИИ ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card, .table, .form-group {
    animation: fadeInUp 0.5s ease-out;
}

/* ========== КАРТА ========== */
.leaflet-container {
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* ========== БАДЖИ / МЕТКИ ========== */
.badge {
    padding: 5px 10px !important;
    border-radius: 20px !important;
    font-weight: 500 !important;
}

.badge-primary {
    background: linear-gradient(135deg, var(--istu-blue), var(--istu-slate)) !important;
}

.badge-warning {
    background: linear-gradient(135deg, var(--istu-gold), var(--istu-gold-dark)) !important;
}

/* ========== ПРОГРЕСС-БАР ========== */
.progress {
    background: var(--istu-sand) !important;
    border-radius: 10px !important;
    height: 8px !important;
}

.progress-bar {
    background: linear-gradient(90deg, var(--istu-gold), var(--istu-brown)) !important;
    border-radius: 10px !important;
}

/* ========== АДАПТИВНОСТЬ ========== */
@media (max-width: 768px) {
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.2rem;
    }
    
    .navbar-brand {
        font-size: 1rem !important;
    }
    
    .card {
        margin-bottom: 15px;
    }
}

/* ========== ВОДЯНОЙ ЗНАК ========== */
body::after {
    content: "⛏️ Сибирская школа геонаук • ИРНИТУ ⛰️";
    position: fixed;
    bottom: 10px;
    right: 10px;
    opacity: 0.15;
    font-size: 11px;
    color: var(--istu-blue);
    pointer-events: none;
    z-index: 1000;
    font-family: 'Montserrat', sans-serif;
    white-space: nowrap;
}

/* ========== ДОПОЛНИТЕЛЬНЫЕ ЭЛЕМЕНТЫ ========== */
blockquote {
    border-left: 4px solid var(--istu-gold);
    background: var(--istu-sand);
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 8px;
    font-style: italic;
}

hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--istu-gold), transparent);
    margin: 30px 0;
}