/* Tag Extractor Tool Styles */

/* Tag Extractor Tool Styles */

/* Search bar */
#te-url-input {
  flex: 1;
  padding: 1rem 1.5rem;
  padding-right: 230px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: #ffffff;
  color: #0f172a;
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: all 0.3s ease;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}
#te-url-input::placeholder { color: #64748b; }
#te-url-input:focus { border-color: #ffffff; box-shadow: 0 0 25px rgba(255, 255, 255, 0.4); }

#te-fetch-btn {
  position: absolute;
  right: 6px;
  top: 6px;
  bottom: 6px;
  padding: 0 1.5rem;
  border: none;
  border-radius: 8px;
  background: var(--accent-cyan);
  color: white;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 212, 255, 0.3);
}
#te-fetch-btn:hover { background: #00b4d8; box-shadow: 0 6px 18px rgba(0, 212, 255, 0.5); }
#te-fetch-btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* Hide Results Initially */
.hidden {
  display: none !important;
}

/* Override hover animations for interactive cards */
#te-stats-bar:hover,
#te-video-info:hover,
.te-tags-section:hover,
.te-hashtags-section:hover,
.te-analytics:hover {
  transform: none !important;
  box-shadow: var(--card-shadow) !important;
}

/* Stats Bar */
.te-stats-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.te-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.te-stat-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.te-stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

#te-seo-stars {
  color: #fbbf24; /* Golden yellow */
  font-size: 1.25rem;
}

/* Video Info Card */
.te-video-info {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}

.te-video-info img {
  max-width: 100%;
}

.te-video-thumb-container {
  flex-shrink: 0;
  width: 280px;
  max-width: 100%;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 16/9;
  background: var(--bg-secondary);
}

.te-video-thumb-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.te-video-details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

#te-video-title {
  font-size: 1.25rem;
  line-height: 1.4;
  margin: 0;
  color: var(--text-primary);
}

#te-channel-name {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.te-video-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}

.te-video-meta span {
  font-size: 0.85rem;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Tags Section */
.te-tags-section, .te-hashtags-section {
  margin-bottom: 1.5rem;
}

.te-tags-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.te-tags-header h3 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
}

/* Toolbar */
.te-toolbar {
  display: flex;
  gap: 0.75rem;
}

.te-dropdown {
  position: relative;
}

.te-btn {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--input-border);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s;
}

.te-btn:hover {
  background: var(--input-border);
}

.te-btn-primary {
  background: var(--accent-cyan);
  color: #fff;
  border: none;
}

.te-btn-primary:hover {
  background: #00b4d8;
}

.te-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.5rem;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  min-width: 180px;
  z-index: 100;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.te-menu button {
  background: transparent;
  border: none;
  padding: 0.75rem 1rem;
  text-align: left;
  color: var(--text-primary);
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.2s;
}

.te-menu button:hover {
  background: rgba(0, 212, 255, 0.1);
}

/* Tags Container & Pills */
.te-tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  background: var(--bg-secondary);
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid var(--input-border);
  min-height: 100px;
}

.te-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--glass-bg);
  border: 1px solid var(--input-border);
  color: var(--text-primary);
  padding: 0.4rem 0.8rem;
  border-radius: 100px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}

/* Tag Length Colors */
.te-tag-pill.len-short {
  border-color: rgba(34, 197, 94, 0.4);
  background: rgba(34, 197, 94, 0.05);
}
.te-tag-pill.len-med {
  border-color: rgba(59, 130, 246, 0.4);
  background: rgba(59, 130, 246, 0.05);
}
.te-tag-pill.len-long {
  border-color: rgba(245, 158, 11, 0.4);
  background: rgba(245, 158, 11, 0.05);
}

.te-tag-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-color: var(--accent-cyan);
}

.te-tag-pill i {
  font-size: 0.8rem;
  opacity: 0.6;
}

.te-tag-pill.copied {
  border-color: rgba(16, 185, 129, 0.6);
  background: rgba(16, 185, 129, 0.1);
}

.te-tag-pill.copied i {
  color: #10b981;
  opacity: 1;
}

/* Empty State */
.te-empty-state {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  color: var(--text-secondary);
  gap: 1rem;
}

.te-empty-state i {
  font-size: 3rem;
  opacity: 0.5;
}

/* Analytics */
.te-analytics h3 {
  margin: 0 0 1.25rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
}

.te-analytics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.te-analytics-card {
  background: var(--bg-secondary);
  padding: 1.25rem;
  border-radius: 8px;
  border: 1px solid var(--input-border);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.te-analytics-card .lbl {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
}

.te-analytics-card .val {
  font-size: 1.1rem;
  color: var(--text-primary);
  font-weight: 500;
  word-break: break-word;
}

/* Responsive */
@media (max-width: 768px) {
  .te-video-info {
    flex-direction: column;
  }
  .te-video-thumb-container {
    width: 100%;
  }
  .te-stats-bar {
    justify-content: center;
    gap: 1.5rem;
  }
}
