/* Дополнительные стили для DailyBuzHub */

/* Анимации */
.img-zoomin {
    transition: transform 0.3s ease-in-out;
}

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

.card:hover {
    transform: translateY(-5px);
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
}

.btn {
    transition: all 0.3s ease;
}

.link-hover:hover {
    color: #007bff !important;
    transition: color 0.3s ease;
}

/* Улучшенная навигация */
.navbar-nav .nav-link:hover {
    color: #007bff !important;
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

/* Карусель */
.carousel-item img {
    transition: transform 0.5s ease-in-out;
}

.carousel:hover .carousel-item img {
    transform: scale(1.02);
}

/* Spinner улучшения */
#spinner {
    background: linear-gradient(135deg, #007bff, #0056b3);
}

/* Пагинация */
.pagination .page-link {
    border-radius: 50px;
    margin: 0 2px;
    border: none;
    color: #007bff;
}

.pagination .page-link:hover {
    background-color: #007bff;
    color: white;
    transform: translateY(-2px);
}

.pagination .page-item.active .page-link {
    background-color: #007bff;
    border-color: #007bff;
}

/* Хлебные крошки */
.breadcrumb-item a {
    color: #007bff;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Кнопка "Наверх" */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: scale(1.1);
}

/* Статья - улучшенное форматирование */
.article-content {
    font-family: 'Open Sans', sans-serif;
}

.article-content p {
    text-align: justify;
    text-indent: 1.5em;
}

.article-content p:first-child {
    text-indent: 0;
    font-size: 1.1em;
    font-weight: 500;
}

/* Социальные кнопки */
.btn-square {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-square:hover {
    transform: scale(1.1) rotate(5deg);
}

/* Модальное окно поиска */
.modal-fullscreen .modal-content {
    background: linear-gradient(135deg, rgba(0,123,255,0.9), rgba(0,86,179,0.9));
}

.modal-fullscreen input {
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Категории в сайдбаре */
.features-item:hover {
    transform: translateX(5px);
    transition: all 0.3s ease;
}

/* Топ-бар анимация */
#note {
    animation: slideLeft 15s infinite linear;
}

@keyframes slideLeft {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Тёмная тема (опционально) */
@media (prefers-color-scheme: dark) {
    .bg-light {
        background-color: #343a40 !important;
        color: #fff !important;
    }
    
    .card {
        background-color: #495057;
        color: #fff;
    }
    
    .text-dark {
        color: #fff !important;
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    .carousel-item img {
        height: 250px !important;
    }
    
    .display-5 {
        font-size: 1.8rem;
    }
    
    .features-item {
        margin-bottom: 2rem;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 576px) {
    .carousel-item img {
        height: 200px !important;
    }
    
    .card-img-top {
        height: 150px !important;
    }
    
    .topbar {
        display: none !important;
    }
}

/* Загрузка и прелоадер */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid #007bff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Плавные переходы между страницами */
.page-transition {
    animation: fadeIn 0.5s ease-in-out;
}

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