/* =====================================================
   HELP SAFE HASHTAGS PRO - FRONTEND STYLES
   ===================================================== */

/* Базовые переменные (на случай, если их нет в теме) */
:root {
    --color-bg: #f9f9f9;
    --color-main: #1877f2;
    --color-muted: #666;
    --color-text: #333;
    --color-border: #e2ebf5;
    --color-accent: #0056b3;
    --font-accent: inherit;
}

/* === 1. БЛОК ТЕГОВ ПОД СТАТЬЁЙ === */
.hs-hashtags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 22px 0 10px;
    padding-top: 14px;
    border-top: 1px solid #ececec;
}

.hs-tag {
    display: inline-block;
    padding: 7px 13px;
    border-radius: 30px;
    background: #f3f7fb;
    border: 1px solid #e2ebf5;
    color: #1877f2;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: .2s ease;
}

.hs-tag:hover {
    background: #1877f2;
    border-color: #1877f2;
    color: #fff;
    transform: translateY(-2px);
}

/* === 2. АРХИВ ХЭШТЕГОВ (КАРТОЧКИ) === */
.hashtag-archive-page {
    padding: 60px 0;
    background: var(--color-bg);
    min-height: 80vh;
}

/* Шапка архива */
.hashtag-archive-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 30px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border: 1px solid var(--color-border);
}

.archive-intro-text {
    font-size: 1.25rem;
    color: var(--color-muted);
    margin: 5px 0;
    line-height: 1.4;
}

.archive-hashtag-title {
    font-size: 2.5rem;
    color: var(--color-main);
    margin: 10px 0 15px;
    font-family: var(--font-accent);
    display: inline-block;
    background: #f0f7ff;
    padding: 5px 20px;
    border-radius: 12px;
    border: 2px solid var(--color-main);
}

/* Сетка постов */
.hashtag-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.hashtag-item.card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--color-border);
}

.hashtag-item.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.hashtag-item .card-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.hashtag-item-title {
    font-size: 1.3rem;
    margin: 0 0 12px;
    line-height: 1.3;
    font-family: var(--font-accent);
}

.hashtag-item-title a {
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.2s;
}

.hashtag-item-title a:hover {
    color: var(--color-main);
}

.hashtag-item-meta {
    display: flex;
    gap: 16px;
    font-size: 0.9rem;
    color: var(--color-muted);
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--color-border);
}

.hashtag-item-excerpt {
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.hashtag-read-more {
    display: inline-block;
    color: var(--color-main);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    align-self: flex-start;
    margin-top: auto;
}

.hashtag-read-more:hover {
    color: var(--color-accent);
    transform: translateX(4px);
}

/* Адаптив */
@media (max-width: 768px) {
    .archive-hashtag-title { font-size: 2rem; }
    .hashtag-posts-grid { grid-template-columns: 1fr; }
    .hashtag-archive-header { padding: 20px; }
}