/**
 * Стили для хештегов
 */

/* Кликабельные ссылки хештегов */
.hashtag-link {
    color: #FF4D7D;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hashtag-link:hover {
    color: #FF3A70;
    text-decoration: underline;
}

.hashtag-link:active {
    color: #E62F61;
}

/* Хештеги в тексте поста (модальное окно) */
#post-modal-description .hashtag-link {
    color: #FF4D7D;
}

#post-modal-description .hashtag-link:hover {
    color: #FF3A70;
    text-decoration: underline;
}

/* Хештеги в ленте */
.feed-photo-comment .hashtag-link {
    color: #FF4D7D;
}

.feed-photo-comment .hashtag-link:hover {
    color: #FF3A70;
    text-decoration: underline;
}

/* Страница хештега */
.hashtag-page-header {
    padding: 2rem 0;
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 2rem;
}

.hashtag-page-title {
    font-size: 2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.hashtag-page-meta {
    color: #6c757d;
    font-size: 0.9rem;
}

.hashtag-page-posts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Панель управления */
.hashtag-controls {
    padding: 1rem 0;
    border-bottom: 1px solid #dee2e6;
}

.hashtag-controls .btn-group .btn {
    border-radius: 0.375rem;
}

.hashtag-controls .btn-group .btn.active {
    background-color: #5B61FF;
    border-color: #5B61FF;
    color: white;
}

.hashtag-controls .btn-group .btn.active:hover {
    background-color: #4B52FF;
    border-color: #4B52FF;
}

/* Контейнеры для постов — как в профиле пользователя */
.hashtag-posts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    margin-top: 20px;
}

/* Лента: полная ширина, минимальные отступы между постами (как в профиле) */
.hashtag-posts-feed {
    margin-top: 20px;
    padding: 0;
    width: 100%;
}

.hashtag-posts-feed .feed-photo-item {
    margin-bottom: 2px;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 992px) {
    .hashtag-posts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .hashtag-page-title {
        font-size: 1.5rem;
    }
    
    .hashtag-posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1px;
    }
    
    .hashtag-controls {
        padding: 0.75rem 0;
    }
    
    .hashtag-controls .btn-group {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .hashtag-controls .btn-group .btn {
        flex: 1;
        font-size: 0.875rem;
        padding: 0.5rem;
    }
}

@media (max-width: 480px) {
    .hashtag-posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1px;
    }
}

/**
 * Стили для упоминаний пользователей (@логин)
 */

/* Кликабельные ссылки упоминаний */
.mention-link {
    color: #4B52FF;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mention-link:hover {
    color: #3F45E6;
    text-decoration: underline;
}

.mention-link:active {
    color: #3F45E6;
}

/* Упоминания в тексте поста (модальное окно) */
#post-modal-description .mention-link {
    color: #4B52FF;
}

#post-modal-description .mention-link:hover {
    color: #3F45E6;
    text-decoration: underline;
}

/* Упоминания в ленте */
.feed-photo-comment .mention-link {
    color: #4B52FF;
}

.feed-photo-comment .mention-link:hover {
    color: #3F45E6;
    text-decoration: underline;
}
