/* Dynamic Footer Styles */
.dynamic-footer {
    background: #ffffff;
    border-top: 1px solid #e0e0e0;
    margin-top: 40px;
    padding: 15px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    position: relative;
    z-index: 10;
}

/* Кнопки навигации */
.footer-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.footer-buttons::-webkit-scrollbar {
    display: none;
}

.nav-arrow {
    background: #6c757d;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    flex-shrink: 0;
}

.nav-arrow:hover {
    background: #5a6268;
}

.nav-arrow:disabled {
    background: #dee2e6;
    cursor: not-allowed;
}

.buttons-container {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex: 1;
}

.buttons-container::-webkit-scrollbar {
    display: none;
}

.footer-button {
    background: #e9ecef;
    border: 1px solid #dee2e6;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 13px;
    white-space: nowrap;
    text-decoration: none;
    color: #495057;
    transition: all 0.3s ease;
    flex-shrink: 0;
    display: inline-block;
}

.footer-button:hover {
    background: #dee2e6;
    color: #212529;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Убираем стили для вкладок и сетки ссылок - они больше не нужны */

/* Адаптивность */
@media (max-width: 768px) {
    .dynamic-footer {
        padding: 10px 0;
    }
    
    .footer-buttons {
        padding: 10px 15px;
    }
    
    .footer-button {
        padding: 6px 12px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .footer-buttons {
        padding: 8px 10px;
    }
    
    .footer-button {
        padding: 5px 10px;
        font-size: 11px;
    }
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dynamic-footer {
    animation: fadeIn 0.5s ease-out;
}

/* Скрытие стрелок навигации если кнопок мало */
.footer-buttons:not(.has-scroll) .nav-arrow {
    display: none;
}

/* Стили для скролла кнопок */
.buttons-container.scrolling {
    scroll-behavior: smooth;
}

/* Дополнительные стили для лучшего отображения */
.dynamic-footer * {
    box-sizing: border-box;
}

.footer-button:focus,
.nav-arrow:focus,
.tab:focus {
    outline: 2px solid #e91e63;
    outline-offset: 2px;
}

/* Стили для пустого состояния */
.dynamic-footer.empty {
    display: none;
}