/* Taventa public portal — tbrandtool.com */

.portal-page {
  font-family: "Plus Jakarta Sans", "Public Sans", system-ui, sans-serif;
  background: var(--portal-bg, #f5f6fa);
  color: var(--bs-body-color);
}

[data-bs-theme="dark"] .portal-page {
  --portal-bg: #232333;
  --portal-surface: #2b2c40;
  --portal-border: rgba(255, 255, 255, 0.08);
  --portal-hero-glow: rgba(105, 108, 255, 0.22);
}

:root:not([data-bs-theme="dark"]) .portal-page {
  --portal-surface: #ffffff;
  --portal-border: rgba(67, 89, 113, 0.12);
  --portal-hero-glow: rgba(105, 108, 255, 0.14);
}

/* Header */
.portal-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--portal-surface) 88%, transparent);
  border-bottom: 1px solid var(--portal-border);
}

.portal-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

.portal-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--bs-heading-color);
  font-weight: 700;
  font-size: 1.125rem;
}

.portal-logo-mark {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #696cff 0%, #8592ff 100%);
  color: #fff;
  font-size: 1.25rem;
  box-shadow: 0 8px 20px rgba(105, 108, 255, 0.28);
}

.portal-logo-mark.sm {
  width: 2rem;
  height: 2rem;
  font-size: 1rem;
}

.portal-nav {
  gap: 1.75rem;
}

.portal-nav a {
  color: var(--bs-body-color);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  transition: color 0.15s ease;
}

.portal-nav a:hover {
  color: var(--bs-primary);
}

/* Hero */
.portal-hero {
  padding: 4.5rem 0 3rem;
  position: relative;
  overflow: hidden;
}

.portal-hero::before {
  content: "";
  position: absolute;
  inset: -30% auto auto 50%;
  width: 42rem;
  height: 42rem;
  transform: translateX(-50%);
  background: radial-gradient(circle, var(--portal-hero-glow) 0%, transparent 68%);
  pointer-events: none;
}

.portal-eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bs-primary);
  margin-bottom: 1rem;
}

.portal-hero-title {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.portal-gradient-text {
  background: linear-gradient(135deg, #696cff 0%, #71dd37 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.portal-hero-sub {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--bs-secondary-color);
  max-width: 34rem;
  margin-bottom: 1.75rem;
}

.portal-btn-primary {
  border: 0;
  box-shadow: 0 10px 24px rgba(105, 108, 255, 0.28);
}

.portal-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--portal-border);
}

.portal-stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
}

.portal-stat-label {
  font-size: 0.8125rem;
  color: var(--bs-secondary-color);
}

.portal-hero-panel {
  position: relative;
  min-height: 18rem;
}

.portal-hero-panel-glow {
  position: absolute;
  inset: 10% 5%;
  border-radius: 2rem;
  background: linear-gradient(135deg, rgba(105, 108, 255, 0.18), rgba(113, 221, 55, 0.12));
  filter: blur(24px);
}

.portal-hero-panel-card {
  position: relative;
  background: var(--portal-surface);
  border: 1px solid var(--portal-border);
  border-radius: 1.25rem;
  padding: 1.75rem;
  box-shadow: 0 20px 50px rgba(67, 89, 113, 0.12);
}

[data-bs-theme="dark"] .portal-hero-panel-card {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.portal-panel-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(105, 108, 255, 0.12);
  color: var(--bs-primary);
  font-size: 1.35rem;
}

.portal-panel-lines span {
  display: block;
  height: 0.55rem;
  border-radius: 999px;
  background: var(--portal-border);
  margin-bottom: 0.65rem;
}

.portal-panel-lines span:nth-child(1) { width: 92%; }
.portal-panel-lines span:nth-child(2) { width: 76%; }
.portal-panel-lines span:nth-child(3) { width: 58%; }

.portal-panel-badge {
  display: inline-block;
  margin-top: 1.25rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(105, 108, 255, 0.12);
  color: var(--bs-primary);
}

/* Tools section */
.portal-tools-section {
  padding: 1rem 0 5rem;
}

.portal-section-head {
  margin-bottom: 2rem;
}

.portal-section-title {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.portal-section-sub {
  color: var(--bs-secondary-color);
  max-width: 40rem;
  margin-bottom: 0;
}

.portal-tool-card {
  position: relative;
  background: var(--portal-surface);
  border: 1px solid var(--portal-border);
  border-radius: 1.25rem;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.portal-tool-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(67, 89, 113, 0.14);
  border-color: color-mix(in srgb, var(--bs-primary) 35%, var(--portal-border));
}

[data-bs-theme="dark"] .portal-tool-card:hover {
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
}

.portal-tool-card-accent {
  height: 4px;
  background: linear-gradient(90deg, #696cff, #71dd37);
}

.portal-tool-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.portal-tool-avatar {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.65rem;
  background: rgba(105, 108, 255, 0.1);
}

.portal-version-badge {
  background: rgba(105, 108, 255, 0.12) !important;
  color: var(--bs-primary) !important;
  font-weight: 600;
}

.portal-tool-name {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.portal-tool-desc {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--bs-secondary-color);
  margin-bottom: 0.75rem;
  flex-grow: 1;
}

.portal-tool-meta {
  font-size: 0.8125rem;
  color: var(--bs-secondary-color);
  margin-bottom: 1rem;
}

.portal-tool-meta i {
  margin-right: 0.25rem;
}

.portal-tool-actions {
  margin-top: auto;
}

.portal-empty-state {
  text-align: center;
  padding: 4rem 1.5rem;
  border: 1px dashed var(--portal-border);
  border-radius: 1.25rem;
  background: var(--portal-surface);
}

.portal-empty-icon {
  font-size: 2.5rem;
  color: var(--bs-secondary-color);
  margin-bottom: 1rem;
}

.portal-notes {
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.65;
}

/* Footer */
.portal-site-footer {
  background: var(--portal-surface);
  border-top: 1px solid var(--portal-border);
  padding: 3rem 0 0;
}

.portal-footer-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.0625rem;
}

.portal-footer-heading {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  margin-bottom: 0.85rem;
}

.portal-footer-text {
  color: var(--bs-secondary-color);
  line-height: 1.65;
}

.portal-footer-links a {
  color: var(--bs-body-color);
  text-decoration: none;
  display: inline-block;
  padding: 0.2rem 0;
}

.portal-footer-links a:hover {
  color: var(--bs-primary);
}

.portal-footer-bottom {
  margin-top: 2.5rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--portal-border);
  font-size: 0.875rem;
  color: var(--bs-secondary-color);
}

@media (max-width: 767.98px) {
  .portal-hero {
    padding-top: 3rem;
  }

  .portal-stats {
    gap: 1.25rem;
  }
}
