/* Hashtag Guide & Manager Modal Styles */
.hashtag-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 100000;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.hashtag-overlay.active {
  display: flex !important;
}

.hashtag-modal-card {
  width: 100%;
  max-width: 860px;
  max-height: 90vh;
  background: #1e1e24;
  color: #f1f1f1;
  border-radius: 14px;
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  animation: hashtagModalIn 0.22s ease-out;
}

@keyframes hashtagModalIn {
  from {
    opacity: 0;
    transform: translateY(-16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Header */
.hashtag-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 22px;
  background: #25252d;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hashtag-modal-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hashtag-modal-icon {
  font-size: 28px;
  color: #df6223;
  background: rgba(223, 98, 35, 0.15);
  padding: 8px;
  border-radius: 10px;
}

.hashtag-modal-title {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
  color: #fff;
}

.hashtag-modal-subtitle {
  margin: 2px 0 0 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

/* URL Input & Controls Bar */
.hashtag-url-bar {
  padding: 14px 22px;
  background: #19191f;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.hashtag-url-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #df6223;
  margin-bottom: 6px;
}

.hashtag-url-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #2b2b35;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 4px 6px 4px 12px;
}

.hashtag-prefix {
  font-size: 16px;
  font-weight: 700;
  color: #df6223;
  user-select: none;
}

.hashtag-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-family: monospace;
  font-size: 13px;
  min-width: 120px;
}

.hashtag-btn-primary {
  background: #df6223;
  color: #fff;
  border: none;
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}

.hashtag-btn-primary:hover {
  background: #f16f2c;
}

.hashtag-btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background 0.2s,
    color 0.2s;
}

.hashtag-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

/* Toolbar & Filters */
.hashtag-toolbar {
  padding: 12px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.hashtag-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #25252d;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 6px 12px;
}

.hashtag-search-box .material-icons {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.5);
}

.hashtag-search-box input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 13px;
}

.hashtag-filter-chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.hashtag-chip {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  padding: 4px 11px;
  border-radius: 20px;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.hashtag-chip:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.hashtag-chip.active {
  background: #df6223;
  border-color: #df6223;
  color: #fff;
  font-weight: 500;
}

/* List container */
.hashtag-list-container {
  flex: 1;
  overflow-y: auto;
  padding: 12px 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Individual hashtag card */
.hashtag-item {
  background: #25252e;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  transition:
    border-color 0.2s,
    background 0.2s;
}

.hashtag-item:hover {
  background: #2b2b36;
  border-color: rgba(255, 255, 255, 0.12);
}

.hashtag-item.is-active {
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.05);
}

.hashtag-item-info {
  flex: 1;
  min-width: 0;
}

.hashtag-item-header {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.hashtag-code {
  font-family: monospace;
  font-size: 13px;
  font-weight: 600;
  color: #fb923c;
  background: rgba(251, 146, 60, 0.1);
  padding: 2px 7px;
  border-radius: 5px;
}

.badge-active-tag {
  background: #38bdf8;
  color: #0b1120;
  font-size: 9px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 3px;
  text-transform: uppercase;
}

.hashtag-desc {
  font-size: 12.5px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
}

.hashtag-param-tip {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 3px;
  font-family: monospace;
}

.hashtag-item-action {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hashtag-value-input {
  width: 90px;
  background: #1b1b22;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  padding: 5px 8px;
  color: #fff;
  font-size: 12px;
  font-family: monospace;
  text-align: center;
}

.hashtag-value-input:focus {
  outline: none;
  border-color: #df6223;
}

.hashtag-action-btn {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #4ade80;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.hashtag-action-btn:hover {
  background: rgba(34, 197, 94, 0.28);
  color: #86efac;
}

.hashtag-action-btn.active {
  background: rgba(239, 68, 68, 0.25);
  border-color: rgba(239, 68, 68, 0.5);
  color: #fca5a5;
}

.hashtag-action-btn.active:hover {
  background: rgba(239, 68, 68, 0.4);
  border-color: rgba(239, 68, 68, 0.7);
  color: #fff;
}

.hashtag-empty-state {
  text-align: center;
  padding: 40px 20px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
}
