/* 
* GoEvo - Основные стили 
* Версия: 1.0.0
*/

:root {
    --primary-color: #4361ee;
    --secondary-color: #ff6b6b;
    --accent-color: #4ecdc4;
    --background-light: #f7f7fc;
    --background-dark: #2b2d42;
    --text-color: #2b2d42;
    --text-color-light: #6c757d;
    --text-color-lighter: #adb5bd;
    --success-color: #2ecc71;
    --danger-color: #e74c3c;
    --warning-color: #f1c40f;
    --info-color: #3498db;
    
    /* Добавляем новые переменные для теней и скруглений */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
}

/* Общие стили */
body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: var(--text-color);
    background-color: #f5f7fa;
    line-height: 1.6;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #3f40a0;
    text-decoration: underline;
}

/* Кнопки и элементы форм */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: #3f40a0;
    border-color: #3f40a0;
}

.btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-secondary:hover, .btn-secondary:focus {
    background-color: #e78a3d;
    border-color: #e78a3d;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(82, 83, 185, 0.25);
}

/* Заголовки */
.section-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title:after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--accent-color);
    position: absolute;
    bottom: 0;
    left: 0;
}

/* Карточки */
.card {
    border-radius: var(--radius-md);
    border: none;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    background: linear-gradient(to bottom right, #ffffff, #f8f9fa);
}

.card:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(to bottom right, #ffffff, #f0f2f5);
}

.btn {
    border-radius: var(--radius-sm);
    padding: 0.625rem 1.25rem;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.btn:active::after {
    width: 200px;
    height: 200px;
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

/* Навигация */
.navbar {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid rgba(231, 231, 231, 0.8);
}

.navbar-brand {
    font-weight: 600;
    background: linear-gradient(120deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-link {
    position: relative;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.navbar-brand img {
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.nav-link {
    position: relative;
    margin: 0 5px;
    font-weight: 500;
}

.nav-link:before {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: white;
    transition: width 0.3s ease;
}

.nav-link:hover:before, .nav-item.active .nav-link:before {
    width: 100%;
}

/* Аватар пользователя */
.avatar-xs {
    width: 24px;
    height: 24px;
}

.avatar-sm {
    width: 32px;
    height: 32px;
}

.avatar-md {
    width: 48px;
    height: 48px;
}

.avatar-lg {
    width: 64px;
    height: 64px;
}

.avatar-xl {
    width: 96px;
    height: 96px;
}

/* Hero секция */
.hero-section {
    background-color: var(--primary-color);
    color: white;
    padding: 5rem 0;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.hero-section:before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(135deg, rgba(82, 83, 185, 0.9) 0%, rgba(62, 207, 178, 0.8) 100%);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Формы аутентификации */
.auth-container {
    max-width: 480px;
    margin: 3rem auto;
    padding: 2rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.auth-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo img {
    max-height: 60px;
}

.auth-title {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
    font-weight: 600;
}

.auth-footer {
    text-align: center;
    margin-top: 2rem;
    color: var(--text-color-light);
}

.auth-social {
    border-top: 1px solid #eee;
    padding-top: 1.5rem;
}

/* Бейджи и теги */
.badge {
    font-weight: 500;
    padding: 0.5em 0.8em;
    border-radius: 20px;
}

.badge-outline-primary {
    color: var(--primary-color);
    background-color: rgba(82, 83, 185, 0.1);
    border: 1px solid var(--primary-color);
}

.badge-outline-secondary {
    color: var(--secondary-color);
    background-color: rgba(249, 151, 70, 0.1);
    border: 1px solid var(--secondary-color);
}

/* Социальные иконки */
.social-icons a {
    display: inline-block;
    transition: transform 0.3s ease;
}

.social-icons a:hover {
    transform: translateY(-3px);
}

/* Медиа-запросы */
@media (max-width: 767.98px) {
    .hero-section {
        padding: 3rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .card-img-top {
        height: 180px;
    }
}

@media (max-width: 575.98px) {
    .hero-section {
        padding: 2rem 0;
    }
    
    .auth-container {
        padding: 1.5rem;
    }
}

/* Всплывающие подсказки и уведомления */
.tooltip {
    font-size: 0.85rem;
}

.toast {
    background-color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Пустые состояния (empty states) */
.empty-state {
    padding: 3rem 1rem;
    text-align: center;
}

.empty-state-icon {
    width: 180px;
    height: 150px;
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.empty-state h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-weight: 500;
}

.empty-state p {
    color: var(--text-color-light);
    max-width: 400px;
    margin: 0 auto;
}

.dark-theme .empty-state-icon {
    filter: brightness(0.85);
}

/* Элементы сфер */
.sphere-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
}

/* Компактные стили для карточек сфер */
#spheres .card {
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

#spheres .card-body {
    padding: 0.75rem;
}

#spheres .sphere-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem !important;
}

#spheres .card-title {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

#spheres .card-text {
    font-size: 0.75rem;
    line-height: 1.2;
    margin-bottom: 0;
}

/* Пользовательский переключатель темы */
.theme-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.theme-switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 30px;
}

.theme-switch-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .theme-switch-slider {
    background-color: var(--primary-color);
}

input:checked + .theme-switch-slider:before {
    transform: translateX(30px);
}

/* Кастомные стили для темной темы */
.dark-theme {
    --text-color: #f8f9fa;
    --text-color-light: #e9ecef;
    --text-color-lighter: #adb5bd;
    --background-light: #343a40;
    --background-dark: #212529;
    
    background-color: #212529;
    color: var(--text-color);
}

.dark-theme .card,
.dark-theme .auth-container {
    background-color: #343a40;
    color: var(--text-color);
}

.dark-theme .card-footer {
    background-color: rgba(0, 0, 0, 0.1);
}

.dark-theme .form-control {
    background-color: #495057;
    border-color: #6c757d;
    color: #f8f9fa;
}

.dark-theme .form-control:focus {
    background-color: #495057;
    color: #f8f9fa;
}

/* Анимации и эффекты */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes slideInUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.slide-in-up {
    animation: slideInUp 0.5s ease-in-out;
}

/* Круглые аватары экспертов на странице списка */
.expert-avatar-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.expert-avatar-circle:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.expert-avatar-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Стили для рейтинга звездами */
.rating {
    display: flex;
    margin-bottom: 0.5rem;
}

.rating-star {
    color: #e0e0e0;
    font-size: 1.2rem;
    margin-right: 2px;
}

.rating-star.filled {
    color: #ffc107;
}

/* Стили для временной шкалы событий */
.event-timeline {
    position: relative;
    padding-left: 40px;
}

.event-timeline:before {
    content: '';
    position: absolute;
    left: 9px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--accent-color);
    opacity: 0.5;
}

.event-item {
    position: relative;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    display: flex;
}

.event-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
}

.event-time {
    position: absolute;
    left: -40px;
    width: 20px;
    height: 20px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-right: 1rem;
}

.event-time:before {
    content: attr(data-time);
    position: absolute;
    left: -50px;
    top: 0;
    width: 40px;
    text-align: right;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-color);
}

.event-content {
    flex: 1;
    background-color: white;
    border-radius: 8px;
    padding: 1rem;
    border-left: 3px solid var(--primary-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.dark-theme .event-content {
    background-color: var(--background-light);
}

.event-item:hover .event-content {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    transition: all 0.3s ease;
}