/* Morning Trip — author sidebar + author dashboard */
:root {
  --mt-ink: #1a2332;
  --mt-muted: #5b6675;
  --mt-accent: #0e7c86;
  --mt-accent-deep: #0a5c63;
  --mt-sand: #f3efe6;
  --mt-card: #ffffff;
  --mt-line: rgba(26, 35, 50, 0.08);
  --mt-shadow: 0 18px 40px rgba(26, 35, 50, 0.1);
}

/* —— Blog detail author sidebar —— */
.mt-author-sidebar .mt-author-card {
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--mt-line);
  background:
    radial-gradient(420px 180px at 50% -20%, rgba(14, 124, 134, 0.16), transparent 60%),
    var(--mt-card);
}

.mt-author-sidebar .widget-inner {
  padding: 28px 22px 24px;
}

.mt-author-avatar {
  position: relative;
  width: 110px;
  height: 110px;
  margin: 0 auto 18px;
}

.mt-author-avatar a {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  z-index: 1;
  box-shadow: 0 12px 28px rgba(14, 124, 134, 0.22);
}

.mt-author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.mt-author-avatar a:hover img {
  transform: scale(1.08);
}

.mt-author-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--mt-accent);
  border-right-color: rgba(232, 168, 73, 0.7);
  animation: mtAuthorSpin 6s linear infinite;
  pointer-events: none;
}

@keyframes mtAuthorSpin {
  to { transform: rotate(360deg); }
}

.mt-author-sidebar .profile-name h3 {
  margin: 0 0 4px;
  font-size: 1.35rem;
}

.mt-author-sidebar .profile-name h3 a {
  color: var(--mt-ink);
  transition: color 0.25s ease;
}

.mt-author-sidebar .profile-name h3 a:hover {
  color: var(--mt-accent);
}

.mt-author-sidebar .profile-name p {
  margin: 0;
  color: var(--mt-accent-deep);
  font-weight: 600;
  font-size: 0.9rem;
}

.mt-author-handle {
  display: inline-block;
  margin-top: 6px;
  color: var(--mt-muted);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.mt-author-bio {
  margin: 14px 0 0;
  color: var(--mt-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.mt-author-stat {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  margin: 18px 0 8px;
  padding: 10px 18px;
  border-radius: 14px;
  background: rgba(14, 124, 134, 0.08);
  min-width: 88px;
}

.mt-author-stat strong {
  font-size: 1.4rem;
  color: var(--mt-ink);
  line-height: 1.1;
}

.mt-author-stat span {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mt-muted);
  margin-top: 4px;
}

.mt-author-profile-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--mt-accent);
  color: #fff !important;
  font-weight: 600;
  font-size: 0.88rem;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.mt-author-profile-btn:hover {
  background: var(--mt-accent-deep);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(14, 124, 134, 0.28);
  color: #fff !important;
}

.mt-related-widget {
  margin-top: 28px;
  border-radius: 18px;
  border: 1px solid var(--mt-line);
  overflow: hidden;
}

.mt-related-widget .widget-title h3 {
  font-size: 1.05rem;
}

.mt-related-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mt-related-card {
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--mt-line);
  background: #fff;
  opacity: 0;
  transform: translateY(16px);
  animation: mtStoryIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--mt-delay, 0s);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.mt-related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(26, 35, 50, 0.1);
}

.mt-related-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #d9e2e4;
}

.mt-related-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease, opacity 0.4s ease;
}

.mt-related-media img.mt-lazy:not(.is-loaded) {
  opacity: 0;
}

.mt-related-card:hover .mt-related-media img {
  transform: scale(1.08);
}

.mt-related-body {
  padding: 14px 14px 12px;
}

.mt-related-body h4 {
  margin: 0 0 6px;
  font-size: 0.98rem;
  line-height: 1.35;
}

.mt-related-body h4 a {
  color: var(--mt-ink);
}

.mt-related-body h4 a:hover {
  color: var(--mt-accent);
}

.mt-related-body > p {
  margin: 0 0 10px;
  color: var(--mt-muted);
  font-size: 0.84rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mt-related-body .mt-story-meta {
  padding-top: 10px;
  gap: 8px 10px;
  font-size: 0.78rem;
}

.mt-related-empty p {
  margin: 0;
  color: var(--mt-muted);
  font-size: 0.9rem;
}

/* —— Author dashboard page —— */
.mt-author-dash {
  position: relative;
  overflow: hidden;
  padding: 72px 0 100px;
  background:
    radial-gradient(900px 420px at 8% -10%, rgba(14, 124, 134, 0.18), transparent 55%),
    radial-gradient(700px 380px at 100% 10%, rgba(232, 168, 73, 0.16), transparent 50%),
    linear-gradient(165deg, #faf8f4 0%, #eef5f5 48%, #f3efe6 100%);
}

.mt-author-orbit {
  position: absolute;
  width: 520px;
  height: 520px;
  top: -120px;
  right: -80px;
  border-radius: 50%;
  border: 1px solid rgba(14, 124, 134, 0.12);
  pointer-events: none;
  animation: mtAuthorOrbit 18s linear infinite;
}

.mt-author-orbit::before,
.mt-author-orbit::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: var(--mt-accent);
}

.mt-author-orbit::before {
  width: 10px;
  height: 10px;
  top: 40px;
  left: 50%;
  box-shadow: 0 0 18px rgba(14, 124, 134, 0.55);
}

.mt-author-orbit::after {
  width: 7px;
  height: 7px;
  bottom: 70px;
  left: 18%;
  background: #e8a849;
  box-shadow: 0 0 14px rgba(232, 168, 73, 0.55);
}

@keyframes mtAuthorOrbit {
  to { transform: rotate(360deg); }
}

.mt-author-mesh {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(26, 35, 50, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 35, 50, 0.03) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.4), transparent 80%);
}

.mt-author-dash-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

.mt-author-panel {
  position: sticky;
  top: 24px;
}

.mt-author-panel-inner {
  padding: 32px 28px 28px;
  border-radius: 24px;
  border: 1px solid var(--mt-line);
  background:
    linear-gradient(160deg, rgba(255,255,255,0.96), rgba(255,255,255,0.88)),
    #fff;
  box-shadow: 0 20px 50px rgba(26, 35, 50, 0.08);
  backdrop-filter: blur(8px);
  animation: mtStoryIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.mt-author-hero-avatar {
  position: relative;
  width: 132px;
  height: 132px;
  margin: 0 auto 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--mt-accent), #e8a849);
  padding: 4px;
  box-shadow: 0 16px 36px rgba(14, 124, 134, 0.28);
}

.mt-author-hero-avatar img,
.mt-author-initial {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #0a5c63;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 2.6rem;
  font-weight: 700;
}

.mt-author-pulse {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px solid rgba(14, 124, 134, 0.35);
  animation: mtAuthorPulse 2.4s ease-out infinite;
}

@keyframes mtAuthorPulse {
  0% { transform: scale(0.92); opacity: 0.7; }
  100% { transform: scale(1.18); opacity: 0; }
}

.mt-author-name {
  margin: 8px 0 6px;
  font-size: clamp(1.7rem, 2.4vw, 2.15rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--mt-ink);
  text-align: center;
}

.mt-author-role {
  margin: 0;
  text-align: center;
  color: var(--mt-accent-deep);
  font-weight: 600;
}

.mt-author-panel .mt-author-handle {
  display: block;
  text-align: center;
  margin-top: 8px;
}

.mt-author-panel .mt-stories-eyebrow {
  display: block;
  text-align: center;
}

.mt-author-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 24px 0 8px;
}

.mt-author-metric {
  text-align: center;
  padding: 12px 8px;
  border-radius: 14px;
  background: rgba(14, 124, 134, 0.07);
  border: 1px solid rgba(14, 124, 134, 0.08);
  opacity: 0;
  transform: translateY(12px);
  animation: mtStoryIn 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--mt-delay, 0s);
  transition: transform 0.3s ease, background 0.3s ease;
}

.mt-author-metric:hover {
  transform: translateY(-3px);
  background: rgba(14, 124, 134, 0.12);
}

.mt-author-metric strong {
  display: block;
  font-size: 1.2rem;
  color: var(--mt-ink);
  line-height: 1.2;
}

.mt-author-metric span {
  display: block;
  margin-top: 3px;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mt-muted);
}

.mt-author-about {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--mt-line);
}

.mt-author-about h2 {
  margin: 0 0 8px;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mt-accent-deep);
}

.mt-author-about p {
  margin: 0;
  color: var(--mt-muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.mt-author-socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}

.mt-author-socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--mt-accent-deep);
  background: rgba(14, 124, 134, 0.08);
  border: 1px solid rgba(14, 124, 134, 0.12);
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.mt-author-socials a:hover {
  background: var(--mt-accent);
  color: #fff;
  transform: translateY(-3px);
}

.mt-author-back {
  display: inline-flex;
  margin-top: 22px;
  width: 100%;
  justify-content: center;
}

.mt-author-stream-head {
  margin-bottom: 28px;
  animation: mtStoryIn 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.08s;
}

.mt-author-stream-head h2 {
  margin: 0 0 8px;
  font-size: clamp(1.55rem, 2.6vw, 2.1rem);
  color: var(--mt-ink);
  letter-spacing: -0.02em;
}

.mt-author-stream-head p {
  margin: 0;
  color: var(--mt-muted);
  max-width: 520px;
}

.mt-author-stories {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mt-story-meta a.mt-author-link,
.mt-story-meta .mt-author-link {
  color: inherit;
  transition: color 0.25s ease;
}

.mt-story-meta .mt-author-link:hover {
  color: var(--mt-accent);
}

@media (max-width: 991px) {
  .mt-author-dash {
    padding: 48px 0 72px;
  }

  .mt-author-dash-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .mt-author-panel {
    position: static;
  }

  .mt-author-stories {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575px) {
  .mt-author-panel-inner {
    padding: 26px 20px 22px;
  }

  .mt-author-metrics {
    gap: 8px;
  }
}
