/* Trafficholic Social portal — light, clean, high contrast */

/* Hide marketing chrome on portal pages */
body.th-social-portal .site-header .nav-center,
body.th-social-portal .site-header .menu-toggle,
body.th-social-portal .site-header .header-actions,
body.th-social-portal .site-header .header-cta,
body.th-social-portal .site-header .header-milo,
body.th-social-portal .site-header .nav-mobile-top,
body.th-social-portal .milo-widget,
body.th-social-portal .milo-fab,
body.th-social-portal .milo-panel,
body.th-social-portal #milo-widget,
body.th-social-portal [class*="milo-fab"],
body.th-social-portal [class*="milo-panel"],
body.th-social-portal .site-footer .footer-grid,
body.th-social-portal .site-footer .footer-friends,
body.th-social-portal .site-footer .footer-brand-block,
body.th-social-portal .site-footer .footer-legal-links,
body.th-social-portal .site-footer .footer-tagline,
body.th-social-portal .site-footer .footer-milo,
body.th-social-portal .site-footer .footer-cta,
body.th-social-portal .site-footer .footer-phone,
body.th-social-portal .site-footer .footer-email,
body.th-social-portal .site-footer .contact-icons,
body.th-social-portal #th-page-loader,
body.th-social-portal .th-page-loader {
  display: none !important;
}

body.th-social-portal.th-loader-active .th-page-loader,
body.th-social-portal.th-loader-active #th-page-loader {
  display: none !important;
}

body.th-social-portal {
  /* Kill any leftover sticker / decorative milo layers */
}

body.th-social-portal .site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #ffffff;
  border-bottom: 1px solid #e7ebdf;
  box-shadow: none;
  min-height: 0;
}

body.th-social-portal.admin-bar .site-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  body.th-social-portal.admin-bar .site-header {
    top: 46px;
  }
}

body.th-social-portal .site-header::after {
  display: none !important;
  content: none !important;
}

body.th-social-portal .header-inner {
  max-width: min(1400px, 100%);
  margin: 0 auto;
  padding: 0 0.85rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  min-height: 48px;
  height: 52px;
}

body.th-social-portal .brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

body.th-social-portal .brand-mark,
body.th-social-portal .brand img,
body.th-social-portal .brand picture {
  height: 18px !important;
  width: auto !important;
  max-width: 120px;
  filter: none !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Portal menubar inside site header */
body.th-social-portal .th-portal-menubar {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  justify-content: flex-end;
  position: relative;
}

body.th-social-portal .th-portal-menubar__hub {
  margin-left: auto;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8a9380;
}

body.th-social-portal .th-portal-menubar__links {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.15rem;
  margin-left: auto;
}

body.th-social-portal .th-portal-menubar__links a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.55rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 650;
  color: #3a4236;
  text-decoration: none;
  white-space: nowrap;
}

body.th-social-portal .th-portal-menubar__links a:hover {
  background: #f2f7e6;
}

body.th-social-portal .th-portal-menubar__links a.is-active {
  background: #151a14;
  color: #e7f5c8;
}

body.th-social-portal .th-portal-menubar__toggle {
  display: none;
  align-items: center;
  gap: 0.4rem;
  margin-left: auto;
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  border: 1px solid #e7ebdf;
  background: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  color: #151a14;
}

body.th-social-portal .th-portal-menubar__burger {
  width: 14px;
  height: 10px;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat;
}

@media (max-width: 900px) {
  body.th-social-portal .th-portal-menubar__toggle {
    display: inline-flex;
  }
  body.th-social-portal .th-portal-menubar__links {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 0.35rem);
    flex-direction: column;
    align-items: stretch;
    min-width: 11rem;
    padding: 0.35rem;
    border: 1px solid #e7ebdf;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(17, 20, 17, 0.12);
    z-index: 50;
  }
  body.th-social-portal .th-portal-menubar.is-open .th-portal-menubar__links {
    display: flex;
  }
}

/* App workspace: reclaim vertical space for inbox / AI */
body.th-social-portal .th-social-app__inner {
  padding-top: 0.35rem;
}
body.th-social-portal .site-footer {
  padding-top: 0.75rem;
  padding-bottom: 1rem;
}

body.th-social-portal .site-footer {
  background: #fff;
  border-top: 1px solid #e7ebdf;
  margin-top: 0;
  padding: 1.25rem 1rem 2rem;
}

body.th-social-portal .site-footer .footer-inner {
  max-width: 720px;
  margin: 0 auto;
}

body.th-social-portal .site-footer .footer-meta {
  margin: 0;
  color: #5c6758;
  font-size: 0.85rem;
}

body.th-social-portal .site-wrap > main,
body.th-social-portal main {
  background: transparent;
}

.th-social-app {
  --th-ink: #111411;
  --th-muted: #5a6458;
  --th-line: #e4e9dc;
  --th-panel: #ffffff;
  --th-wash: #f4f7ef;
  --th-lime: #b8f03a;
  --th-lime-ink: #1a2a05;
  min-height: calc(100vh - 140px);
  padding: 2rem 1.25rem 3rem;
  background:
    radial-gradient(ellipse 90% 55% at 0% -10%, rgba(184, 240, 58, 0.28), transparent 55%),
    radial-gradient(ellipse 70% 45% at 100% 0%, rgba(255, 120, 160, 0.1), transparent 50%),
    linear-gradient(180deg, #fbfcf7 0%, var(--th-wash) 100%);
  color: var(--th-ink);
}

.th-social-app__inner {
  max-width: 560px;
  margin: 0 auto;
}

.th-social-portal-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 1rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--th-line);
  background: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #3d4a34;
}

.th-social-portal-badge::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--th-lime);
  box-shadow: 0 0 0 3px rgba(184, 240, 58, 0.35);
}

.th-social-app__header {
  margin-bottom: 1.35rem;
}

.th-social-app__header h1 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.85rem, 4.5vw, 2.4rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--th-ink);
}

.th-social-app__lead {
  margin: 0;
  color: var(--th-muted);
  line-height: 1.55;
  font-size: 1rem;
}

.th-social-app__lead strong {
  color: var(--th-ink);
  font-weight: 600;
}

.th-social-progress {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin: 0 0 1.25rem;
}

.th-social-progress__item {
  border-radius: 12px;
  border: 1px solid var(--th-line);
  background: #fff;
  padding: 0.65rem 0.7rem;
  text-align: left;
}

.th-social-progress__item.is-active {
  border-color: #9fd428;
  background: linear-gradient(180deg, #f7ffe8, #fff);
  box-shadow: 0 0 0 3px rgba(184, 240, 58, 0.18);
}

.th-social-progress__item.is-done {
  border-color: #cfe7a0;
  background: #f8fcee;
}

.th-social-progress__n {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7a876c;
  margin-bottom: 0.2rem;
}

.th-social-progress__item.is-active .th-social-progress__n {
  color: #4d6b10;
}

.th-social-progress__t {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--th-ink);
  line-height: 1.25;
}

.th-social-card {
  background: var(--th-panel);
  border: 1px solid var(--th-line);
  border-radius: 18px;
  padding: 1.35rem 1.25rem 1.4rem;
  margin-bottom: 1rem;
  box-shadow: 0 10px 30px rgba(20, 30, 10, 0.04);
}

.th-social-card--warn {
  border-color: #f0c56a;
  background: #fff9ec;
}

.th-social-card h2 {
  margin: 0 0 0.55rem;
  font-size: 1.28rem;
  line-height: 1.25;
  color: var(--th-ink);
}

.th-social-card h3 {
  margin: 1.35rem 0 0.65rem;
  font-size: 1rem;
  color: var(--th-ink);
}

.th-social-card > p {
  margin: 0 0 1rem;
  color: var(--th-muted);
  line-height: 1.5;
}

.th-social-step {
  margin: 0 0 0.35rem !important;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #5d7a18 !important;
}

.th-social-form {
  display: grid;
  gap: 0.85rem;
}

.th-social-form label {
  display: grid;
  gap: 0.35rem;
  color: var(--th-ink);
  font-size: 0.92rem;
  font-weight: 600;
}

.th-social-form input {
  border: 1px solid #d5dcc8;
  border-radius: 12px;
  background: #fbfcf8;
  color: var(--th-ink);
  padding: 0.8rem 0.9rem;
  font: inherit;
  font-weight: 400;
}

.th-social-form input:focus {
  outline: none;
  border-color: #9fd428;
  box-shadow: 0 0 0 3px rgba(184, 240, 58, 0.35);
  background: #fff;
}

.th-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 999px;
  padding: 0.85rem 1.35rem;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.th-social-btn:hover {
  transform: translateY(-1px);
}

.th-social-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.th-social-btn--primary {
  width: 100%;
  background: var(--th-ink);
  color: #fff;
}

.th-social-btn--primary:hover {
  background: #222;
  color: #fff;
}

.th-social-btn--ig {
  width: 100%;
  background: linear-gradient(135deg, #f58529, #dd2a7b 48%, #8134af);
  color: #fff;
  box-shadow: 0 8px 20px rgba(221, 42, 123, 0.22);
}

.th-social-btn--ghost {
  background: #fff;
  border-color: var(--th-line);
  color: var(--th-ink);
}

.th-social-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin: 1.1rem 0 0.25rem;
}

.th-social-actions .th-social-btn {
  width: 100%;
}

.th-social-userbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin: 0 0 1.15rem;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  background: var(--th-wash);
  border: 1px solid var(--th-line);
}

.th-social-userbar p {
  margin: 0;
  color: var(--th-ink);
  font-size: 0.92rem;
}

.th-social-link {
  color: #4d6b10;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}

.th-social-link:hover {
  text-decoration: underline;
}

.th-social-code {
  overflow-x: auto;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: #151a14;
  border: 1px solid #2a3228;
  color: #e7f5c8;
  font-size: 0.8rem;
  line-height: 1.5;
  margin: 0 0 0.85rem;
}

.th-social-flash {
  border-radius: 14px;
  padding: 0.9rem 1rem;
  margin-bottom: 1rem;
  line-height: 1.45;
  font-size: 0.95rem;
}

.th-social-flash--error {
  background: #fff1f1;
  border: 1px solid #f0b4b4;
  color: #8a1f1f;
}

.th-social-flash--ok {
  background: #f3fbe3;
  border: 1px solid #c6e68a;
  color: #355208;
}

.th-social-profile {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 0.85rem;
  border-radius: 14px;
  background: var(--th-wash);
  border: 1px solid var(--th-line);
}

.th-social-profile img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px #9fd428;
}

.th-social-profile__name {
  margin: 0 0 0.25rem !important;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--th-ink) !important;
}

.th-social-profile p {
  margin: 0 0 0.25rem;
  color: var(--th-muted);
}

.th-social-meta {
  margin: 0.15rem 0 !important;
  font-size: 0.88rem;
  color: var(--th-muted) !important;
}

.th-social-meta code {
  font-size: 0.84em;
  color: #3f5a0c;
  background: #eef8d4;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

.th-social-note {
  margin: 0.85rem 0 0 !important;
  font-size: 0.88rem;
  color: var(--th-muted) !important;
}

.th-social-media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}

.th-social-media-card {
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--th-line);
  background: #fff;
  color: inherit;
  text-decoration: none;
  min-height: 110px;
}

.th-social-media-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.th-social-media-fallback {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  color: var(--th-muted);
  font-size: 0.72rem;
  background: var(--th-wash);
}

.th-social-media-cap {
  padding: 0.4rem 0.5rem;
  font-size: 0.7rem;
  color: var(--th-muted);
  line-height: 1.35;
}

.th-social-btn--fb {
  background: #1877f2;
  color: #fff !important;
  border: none;
}

.th-social-btn--fb:hover {
  background: #0f66d8;
  color: #fff !important;
}

.th-social-hashtag {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--th-line);
}

.th-social-hashtag-form {
  margin-top: 1rem;
}

.th-social-roadmap {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--th-line);
}

.th-social-roadmap ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--th-muted);
  line-height: 1.55;
  font-size: 0.92rem;
}

.th-social-app__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.15rem;
  margin-top: 1.35rem;
  padding-top: 0.25rem;
  font-size: 0.88rem;
}

.th-social-app__footer a {
  color: var(--th-muted);
  text-decoration: none;
  font-weight: 500;
}

.th-social-app__footer a:hover {
  color: var(--th-ink);
}

@media (max-width: 640px) {
  .th-social-progress {
    grid-template-columns: 1fr;
  }

  .th-social-media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .th-social-actions {
    grid-template-columns: 1fr;
  }
}
