﻿/* Глобальные стили */
:root {
    --primary-color: #4e73df;
    --secondary-color: #858796;
    --success-color: #1cc88a;
    --info-color: #36b9cc;
    --warning-color: #f6c23e;
    --danger-color: #e74a3b;
    --dark-color: #5a5c69;
    --light-color: #f8f9fc;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fc;
    color: #5a5c69;
}

/* Hero секция */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 60px 0;
    margin-bottom: 40px;
}

/* Карточки репетиторов */
.tutor-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 15px;
    overflow: hidden;
}

    .tutor-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
    }

.tutor-avatar {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    padding: 3px;
}

.tutor-avatar-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--info-color));
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: bold;
}

/* Рейтинг звезды */
.rating-stars {
    color: #ffc107;
    font-size: 14px;
}

.rating-number {
    font-weight: bold;
    color: var(--dark-color);
}

/* Фильтры */
.filter-card {
    position: sticky;
    top: 20px;
    border: none;
    border-radius: 15px;
    overflow: hidden;
}

    .filter-card .card-header {
        background: linear-gradient(135deg, var(--primary-color), var(--info-color));
        border: none;
        padding: 15px 20px;
    }

/* Кнопки */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--info-color));
    border: none;
    transition: all 0.3s ease;
}

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(78, 115, 223, 0.3);
        background: linear-gradient(135deg, var(--info-color), var(--primary-color));
    }

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    transition: all 0.3s ease;
}

    .btn-outline-primary:hover {
        transform: translateY(-2px);
        background: linear-gradient(135deg, var(--primary-color), var(--info-color));
        border-color: transparent;
    }

/* Карточка профиля репетитора */
.profile-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.profile-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px 0;
    text-align: center;
    color: white;
}

/* Отзывы */
.review-card {
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

    .review-card:hover {
        background-color: #f8f9fc;
        transform: translateX(5px);
    }

/* Статистика на главной */
.stat-card {
    border: none;
    border-radius: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
}

    .stat-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }

.stat-icon {
    font-size: 48px;
    background: linear-gradient(135deg, var(--primary-color), var(--info-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Навигация */
.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

/* Формы */
.form-control, .form-select {
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

    .form-control:focus, .form-select:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25);
    }

/* Пагинация */
.pagination .page-link {
    border-radius: 10px;
    margin: 0 3px;
    color: var(--primary-color);
    border: none;
    transition: all 0.3s ease;
}

    .pagination .page-link:hover {
        background-color: var(--primary-color);
        color: white;
        transform: translateY(-2px);
    }

.pagination .active .page-link {
    background: linear-gradient(135deg, var(--primary-color), var(--info-color));
    color: white;
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Badges */
.badge-subject {
    background: linear-gradient(135deg, var(--primary-color), var(--info-color));
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: normal;
}

/* Цены */
.price-tag {
    font-size: 28px;
    font-weight: bold;
    color: var(--primary-color);
}

    .price-tag small {
        font-size: 14px;
        color: var(--secondary-color);
    }

/* Уведомления */
.alert {
    border-radius: 15px;
    border: none;
}

/* Footer */
.footer {
    margin-top: auto;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    padding: 20px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 28px;
    }

    .tutor-avatar, .tutor-avatar-placeholder {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }

    .price-tag {
        font-size: 20px;
    }
}
/* Исправление кликабельности кнопок */
.btn,
a.btn,
button,
.nav-link,
.dropdown-item,
.navbar-brand,
.pagination .page-link {
    cursor: pointer !important;
    pointer-events: auto !important;
    position: relative;
    z-index: 1000;
}

/* Убедимся что карточки не перекрывают кнопки */
.card {
    overflow: visible !important;
}

.card-body {
    overflow: visible !important;
}

/* Фикс для hero секции */
.hero-section {
    position: relative;
    z-index: 1;
}

    .hero-section .btn {
        position: relative;
        z-index: 10;
        pointer-events: auto !important;
    }

/* Фикс для навигации */
.navbar {
    z-index: 2000;
}

.nav-link {
    pointer-events: auto !important;
}

/* Убираем возможные перекрытия */
.container,
.row,
.col-md-3,
.col-md-9,
.col-md-4,
.col-md-8 {
    overflow: visible !important;
}

/* Фикс для ссылок в карточках */
.tutor-card a,
.card a {
    display: inline-block;
    position: relative;
    z-index: 5;
}