/**
 * Базовые стили для приложения GoEvo
 * Включает общие элементы, используемые во всех разделах
 */

/* Основные стили контейнеров */
.content-container {
    padding: 30px 0;
}

.section-header {
    margin-bottom: 25px;
    border-bottom: 2px solid #f8f9fa;
    padding-bottom: 15px;
}

.section-title {
    font-weight: 700;
    position: relative;
}

.section-title.with-badge::after {
    content: attr(data-badge);
    position: absolute;
    top: -5px;
    right: -50px;
    background-color: #007bff;
    color: white;
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 0.7em;
}

/* Карточки и контейнеры элементов */
.card {
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.125);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-img-container {
    position: relative;
    overflow: hidden;
    height: 180px;
}

.card-img-top {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-body {
    padding: 15px;
}

.card-title {
    font-weight: 700;
    margin-bottom: 10px;
}

.card-text {
    color: #6c757d;
    margin-bottom: 10px;
}

/* Бейджи и категории */
.badge {
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
}

.badge-primary {
    background-color: #007bff;
    color: #fff;
}

.badge-info {
    background-color: #17a2b8;
    color: #fff;
}

.badge-success {
    background-color: #28a745;
    color: #fff;
}

.badge-warning {
    background-color: #ffc107;
    color: #212529;
}

.badge-danger {
    background-color: #dc3545;
    color: #fff;
}

.badge-featured {
    background-color: #6f42c1;
    color: #fff;
}

.category-badge, .sphere-badge {
    text-decoration: none;
    display: inline-block;
    margin-right: 5px;
    margin-bottom: 5px;
}

/* Аватары и изображения */
.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

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

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

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

.avatar-placeholder {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f8f9fa;
    color: #adb5bd;
}

/* Списки и элементы списка */
.list-group-item {
    border-left: none;
    border-right: none;
    padding: 15px;
}

.list-group-item:first-child {
    border-top: none;
}

.list-group-item:last-child {
    border-bottom: none;
}

/* Кнопки действий */
.action-btn {
    border-radius: 20px;
    padding: 8px 20px;
    font-weight: 600;
}

.floating-action-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Адаптивные стили */
@media (max-width: 768px) {
    .section-header {
        margin-bottom: 15px;
        padding-bottom: 10px;
    }
    
    .card-img-container {
        height: 150px;
    }
    
    .section-title.with-badge::after {
        position: static;
        display: inline-block;
        margin-left: 10px;
    }
    
    .floating-action-btn {
        bottom: 20px;
        right: 20px;
    }
}

/* Стили для плейсхолдеров изображений */
.placeholder-image {
    background-color: #f8f9fa;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #adb5bd;
    font-size: 1.5rem;
}

/* Элементы навигации */
.pagination {
    justify-content: center;
    margin-top: 30px;
}

.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin-bottom: 20px;
}

/* Стили форм */
.form-control:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.1);
}

.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

.btn-primary:hover {
    background-color: #0069d9;
    border-color: #0062cc;
}