/* ============================================
   GENZFLOW — HASHTAG MANAGER
   Dropdown panel + tag chips for Create Post
   ============================================ */

/* Trigger button */
.hashtag-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary, #8a8a9a);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.hashtag-trigger:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary, #f0f0f5);
}

/* Dropdown panel */
.hashtag-panel {
    position: absolute;
    z-index: 1500;
    background: var(--card-bg, #1a1a24);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    width: 320px;
    max-height: 400px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: hashPanelIn 0.2s ease;
}

.hashtag-panel.open {
    display: flex;
}

@keyframes hashPanelIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Panel header */
.hashtag-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.hashtag-panel-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary, #f0f0f5);
}

.hashtag-add-btn {
    background: hsl(245, 70%, 62%);
    color: #fff;
    border: none;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease;
    font-family: inherit;
}

.hashtag-add-btn:hover {
    background: hsl(245, 70%, 55%);
}

/* Set list */
.hashtag-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
    max-height: 300px;
}

/* Set card */
.hashtag-set {
    padding: 10px 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.15s ease;
    margin-bottom: 4px;
}

.hashtag-set:hover {
    background: rgba(255, 255, 255, 0.05);
}

.hashtag-set-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.hashtag-set-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary, #f0f0f5);
}

.hashtag-set-actions {
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.hashtag-set:hover .hashtag-set-actions {
    opacity: 1;
}

.hashtag-set-actions button {
    background: none;
    border: none;
    color: var(--text-muted, #55556a);
    cursor: pointer;
    padding: 2px;
    border-radius: 4px;
    transition: color 0.15s ease;
}

.hashtag-set-actions button:hover {
    color: var(--text-primary, #f0f0f5);
}

/* Tag chips */
.hashtag-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.hashtag-chip {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    background: rgba(110, 86, 207, 0.12);
    color: hsl(245, 70%, 72%);
}

/* Insert feedback */
.hashtag-inserted {
    position: fixed;
    bottom: 80px;
    right: 24px;
    background: hsl(145, 60%, 42%);
    color: #fff;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    animation: hashFeedback 0.3s ease;
    z-index: 9999;
}

@keyframes hashFeedback {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Create/Edit modal (simple) */
.hashtag-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hashtag-modal {
    background: var(--card-bg, #1a1a24);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 24px;
    width: 90vw;
    max-width: 400px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

.hashtag-modal h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary, #f0f0f5);
    margin-bottom: 16px;
}

.hashtag-modal input,
.hashtag-modal textarea {
    width: 100%;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary, #f0f0f5);
    font-size: 14px;
    font-family: inherit;
    margin-bottom: 12px;
    outline: none;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.hashtag-modal input:focus,
.hashtag-modal textarea:focus {
    border-color: hsl(245, 70%, 62%);
}

.hashtag-modal textarea {
    min-height: 80px;
    resize: vertical;
}

.hashtag-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 8px;
}

/* Panel empty state */
.hashtag-empty {
    text-align: center;
    padding: 32px 16px;
    color: var(--text-muted, #55556a);
    font-size: 13px;
}

/* Light mode */
[data-theme="light"] .hashtag-panel {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .hashtag-modal {
    background: #fff;
}