/* ========================================================
   MTV TOOLS - Portal / Dashboard Specific Styles
   ======================================================== */

.portal-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 20px 60px;
}

/* ================= Hero Section ================= */
.hero {
  text-align: center;
  max-width: 820px;
  margin: 20px auto 40px;
  position: relative;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-soft);
  color: var(--primary);
  border: 1px solid rgba(79, 70, 229, 0.2);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 18px;
  box-shadow: 0 2px 6px var(--primary-glow);
}

.hero-pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px var(--green-soft);
}

.hero h1 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
  color: var(--ink);
}

.hero-highlight {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 680px;
  margin: 0 auto 28px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-value {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
}

.stat-label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

/* ================= Search & Filters ================= */
.tools-filter-wrapper {
  margin-bottom: 32px;
}

.search-box-container {
  max-width: 580px;
  margin: 0 auto 20px;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 14px 16px 14px 44px;
  font-size: 15px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-glow);
}

.search-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.category-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.category-tab {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
}

.category-tab:hover {
  background: var(--panel-elevated);
  color: var(--ink);
}

.category-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  box-shadow: 0 2px 8px var(--primary-glow);
}

/* ================= Tools Grid ================= */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 22px;
  margin-bottom: 50px;
}

.tool-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.tool-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-focus);
}

.tool-card.featured {
  border-color: rgba(79, 70, 229, 0.4);
  box-shadow: 0 6px 20px -2px var(--primary-glow);
}

.tool-card.featured::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  background: var(--panel-elevated);
  border: 1px solid var(--line);
  color: var(--primary);
}

.card-icon.featured-icon {
  background: linear-gradient(135deg, var(--primary-soft) 0%, var(--accent-soft) 100%);
  color: var(--primary);
  border-color: rgba(79, 70, 229, 0.2);
}

.card-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.card-body h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.card-body p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 16px;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.card-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  background: var(--panel-elevated);
  padding: 3px 8px;
  border-radius: var(--radius-xs);
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}

.card-actions .btn {
  flex: 1;
}

/* ================= Info / How to use Section ================= */
.guide-section {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 36px 30px;
  margin-bottom: 50px;
}

.guide-title {
  text-align: center;
  margin-bottom: 30px;
}

.guide-title h2 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 8px;
}

.guide-title p {
  color: var(--muted);
  font-size: 15px;
}

.guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.step-card {
  padding: 20px;
  background: var(--panel-elevated);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  position: relative;
}

.step-num {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 12px;
}

.step-card h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.step-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

/* ================= Empty search result ================= */
.no-results {
  text-align: center;
  padding: 40px 20px;
  background: var(--panel);
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
  color: var(--muted);
  display: none;
}

.no-results-icon {
  font-size: 36px;
  margin-bottom: 10px;
}

@media (max-width: 640px) {
  .tools-grid {
    grid-template-columns: 1fr;
  }
  .portal-container {
    padding: 20px 14px 40px;
  }
}

