/* Tag Badges */
.post-tags {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

/* Blue glassmorphic style for tag-badge and tag-chip (write page, post detail) */
.tag-badge,
.tag-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background: rgba(0, 122, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 122, 255, 0.2);
    border-radius: 30px;
    font-size: 13px;
    color: #007aff;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}

.tag-badge:hover,
.tag-chip:hover {
    background: rgba(0, 122, 255, 0.25);
    transform: scale(0.97);
}

/* Gray pill style for post lists (original style) */
.tag-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.4rem;
    background: var(--bg-secondary);
    border-radius: 3px;
    font-size: 0.6rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}

.tag-pill:hover {
    background: var(--border-medium);
}

/* Tag type colors - keeping these for specialty tags */
.tag-genre {
    background: rgba(30, 64, 175, 0.15);
    color: #1e40af;
    border-color: rgba(30, 64, 175, 0.2);
}

.tag-genre:hover {
    background: rgba(30, 64, 175, 0.25);
}

.tag-mood {
    background: rgba(190, 18, 60, 0.15);
    color: #be123c;
    border-color: rgba(190, 18, 60, 0.2);
}

.tag-mood:hover {
    background: rgba(190, 18, 60, 0.25);
}

.tag-purpose {
    background: rgba(21, 128, 61, 0.15);
    color: #15803d;
    border-color: rgba(21, 128, 61, 0.2);
}

.tag-purpose:hover {
    background: rgba(21, 128, 61, 0.25);
}

.tag-scene {
    background: rgba(161, 98, 7, 0.15);
    color: #a16207;
    border-color: rgba(161, 98, 7, 0.2);
}

.tag-scene:hover {
    background: rgba(161, 98, 7, 0.25);
}

.tag-format {
    background: rgba(67, 56, 202, 0.15);
    color: #4338ca;
    border-color: rgba(67, 56, 202, 0.2);
}

.tag-format:hover {
    background: rgba(67, 56, 202, 0.25);
}

.tag-free {
    background: rgba(0, 122, 255, 0.15);
    color: #007aff;
    border-color: rgba(0, 122, 255, 0.2);
}

.tag-free:hover {
    background: rgba(0, 122, 255, 0.25);
}

/* Tag Cloud (for sidebar/popular tags) */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-cloud-item {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s;
}

.tag-cloud-item:hover {
    background: var(--border-medium);
    transform: translateY(-1px);
}

.tag-cloud-item .tag-count {
    margin-left: 0.25rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}