/* ============================================================
   socialbattery.my — global stylesheet
   Dark slate theme with battery-level accent colours
   ============================================================ */

/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:      #0f172a;
  --surface: #1e293b;
  --surface2:#334155;
  --border:  #334155;
  --text:    #f1f5f9;
  --muted:   #94a3b8;
  --subtle:  #475569;

  /* battery accent colours */
  --green:  #22c55e;
  --lime:   #84cc16;
  --yellow: #eab308;
  --orange: #f97316;
  --red:    #ef4444;

  --radius:  12px;
  --radius-lg: 20px;
  --shadow:  0 4px 24px rgba(0,0,0,.45);
  --transition: .15s ease;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font-family: "Cascadia Code", "Fira Code", "Consolas", monospace;
       font-size: .875em; color: var(--muted); }


/* ── Layout ── */
.main { flex: 1; }
.footer {
  text-align: center;
  padding: 1.25rem;
  color: var(--subtle);
  font-size: .8rem;
  border-top: 1px solid var(--border);
}


/* ── Navigation ── */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .9rem 2rem;
  border-bottom: 1px solid var(--border);
  background: rgba(15,23,42,.85);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-brand {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: .4rem;
}
.brand-icon { font-size: 1.4rem; }
.nav-links { display: flex; align-items: center; gap: .75rem; }
.nav-links a { color: var(--muted); font-size: .9rem; }
.nav-links a:hover { color: var(--text); text-decoration: none; }


/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .55rem 1.2rem;
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: opacity var(--transition), transform var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { opacity: .85; transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--green); color: #0f172a; }
.btn-ghost   { background: var(--surface2); color: var(--text); }
.btn-sm      { padding: .35rem .75rem; font-size: .8rem; }
.btn-lg      { padding: .75rem 1.75rem; font-size: 1rem; }
.btn-full    { width: 100%; }


/* ── Flash messages ── */
.flash-container {
  max-width: 560px;
  margin: 1.5rem auto 0;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.flash {
  padding: .75rem 1rem;
  border-radius: var(--radius);
  font-size: .9rem;
}
.flash-success { background: rgba(34,197,94,.15); color: var(--green); border: 1px solid rgba(34,197,94,.3); }
.flash-error   { background: rgba(239,68,68,.15);  color: var(--red);   border: 1px solid rgba(239,68,68,.3); }
.flash-info    { background: rgba(148,163,184,.12); color: var(--muted); border: 1px solid var(--border); }


/* ── Battery accent colours ── */
.battery-green  { color: var(--green);  }
.battery-lime   { color: var(--lime);   }
.battery-yellow { color: var(--yellow); }
.battery-orange { color: var(--orange); }
.battery-red    { color: var(--red);    }

.battery-accent-green  { background: var(--green);  }
.battery-accent-lime   { background: var(--lime);   }
.battery-accent-yellow { background: var(--yellow); }
.battery-accent-orange { background: var(--orange); }
.battery-accent-red    { background: var(--red);    }

/* Battery pills */
.battery-pill {
  font-size: .75rem;
  font-weight: 700;
  padding: .2rem .6rem;
  border-radius: 99px;
  background: var(--surface2);
}
.battery-pill.battery-green  { color: var(--green);  background: rgba(34,197,94,.15); }
.battery-pill.battery-lime   { color: var(--lime);   background: rgba(132,204,22,.15); }
.battery-pill.battery-yellow { color: var(--yellow); background: rgba(234,179,8,.15); }
.battery-pill.battery-orange { color: var(--orange); background: rgba(249,115,22,.15); }
.battery-pill.battery-red    { color: var(--red);    background: rgba(239,68,68,.15); }
.battery-pill-lg { font-size: 1rem; padding: .3rem .9rem; }

/* Battery bar */
.battery-bar-wrap {
  background: var(--surface2);
  border-radius: 99px;
  height: 10px;
  overflow: hidden;
}
.battery-bar {
  height: 100%;
  border-radius: 99px;
  transition: width .6s cubic-bezier(.34,1.56,.64,1);
}
.battery-bar.battery-bar-green  { background: var(--green); }
.battery-bar.battery-bar-lime   { background: var(--lime); }
.battery-bar.battery-bar-yellow { background: var(--yellow); }
.battery-bar.battery-bar-orange { background: var(--orange); }
.battery-bar.battery-bar-red    { background: var(--red); }

.battery-bar.animated {
  animation: battery-fill .9s cubic-bezier(.34,1.56,.64,1) both;
}
@keyframes battery-fill {
  from { width: 0 !important; }
}


/* ── Status card (shared component) ── */
.status-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-username { font-weight: 700; font-size: 1rem; }
.card-meta {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
}
.mood-badge {
  font-size: .85rem;
  color: var(--muted);
}
.updated-at {
  font-size: .75rem;
  color: var(--subtle);
  margin-left: auto;
}
.card-message {
  font-size: .9rem;
  color: var(--muted);
  font-style: italic;
}


/* ── Hero ── */
.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 6rem 1.5rem 4rem;
}
.hero-inner { max-width: 680px; }
.hero-badge {
  display: inline-block;
  background: rgba(34,197,94,.12);
  color: var(--green);
  border: 1px solid rgba(34,197,94,.3);
  padding: .3rem .9rem;
  border-radius: 99px;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -.02em;
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto 2rem;
}
.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.hero-url-hint {
  color: var(--subtle);
  font-size: .9rem;
}
.hero-url-hint strong { color: var(--green); }


/* ── Features ── */
.features {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.feature-icon { font-size: 1.8rem; margin-bottom: .75rem; }
.feature-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: .4rem; }
.feature-card p  { font-size: .875rem; color: var(--muted); }


/* ── Demo cards ── */
.demo-cards {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem 5rem;
}
.section-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}
.demo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}


/* ── Auth pages ── */
.auth-wrap {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 3rem 1rem;
}
.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow);
  text-align: center;
}
.auth-icon  { font-size: 2.5rem; margin-bottom: .75rem; }
.auth-title { font-size: 1.5rem; font-weight: 800; margin-bottom: .35rem; }
.auth-sub   { color: var(--muted); font-size: .9rem; margin-bottom: 1.75rem; }
.auth-form  { text-align: left; display: flex; flex-direction: column; gap: 1rem; }
.auth-footer{ margin-top: 1.25rem; font-size: .875rem; color: var(--muted); }

.field-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: .85rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: .35rem;
}
.field-hint { font-weight: 400; font-size: .8rem; color: var(--subtle); }
.field-input {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  padding: .65rem .9rem;
  font-size: .95rem;
  transition: border-color var(--transition);
}
.field-input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(34,197,94,.15);
}
.field-textarea { resize: vertical; min-height: 80px; font-family: inherit; }
.field-row { display: flex; align-items: center; }
.checkbox-label { display: flex; align-items: center; gap: .5rem;
                  font-size: .875rem; color: var(--muted); cursor: pointer; }


/* ── Dashboard ── */
.dashboard-wrap {
  max-width: 660px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
.dash-header h1  { font-size: 1.75rem; font-weight: 800; }
.dash-header .accent { color: var(--green); }
.dash-sub        { color: var(--muted); margin-top: .3rem; }

.dash-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.dash-section { display: flex; flex-direction: column; gap: .75rem; }
.section-label {
  font-size: .85rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

/* Slider */
.slider-display {
  display: flex;
  justify-content: center;
}
.slider-value {
  font-size: 3rem;
  font-weight: 800;
  color: var(--green);
  line-height: 1;
}
.battery-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 99px;
  background: var(--surface2);
  outline: none;
  cursor: pointer;
}
.battery-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--green);
  cursor: pointer;
  box-shadow: 0 0 0 3px rgba(34,197,94,.25);
}
.battery-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--green);
  cursor: pointer;
  border: none;
}
.slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: .75rem;
  color: var(--subtle);
}

/* Mood picker */
.mood-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .6rem;
}
.mood-btn {
  background: var(--surface2);
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  padding: .65rem .4rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
  transition: border-color var(--transition), background var(--transition);
}
.mood-btn:hover { border-color: var(--green); }
.mood-btn-active {
  border-color: var(--green) !important;
  background: rgba(34,197,94,.1);
}
.mood-emoji { font-size: 1.4rem; }
.mood-label { font-size: .7rem; color: var(--muted); font-weight: 600; }

/* Share section */
.share-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.share-title { font-size: 1.1rem; font-weight: 700; }
.share-links { display: flex; flex-direction: column; gap: 1rem; }
.share-item  { display: flex; flex-direction: column; gap: .4rem; }
.share-label { font-size: .8rem; color: var(--muted); font-weight: 600;
               text-transform: uppercase; letter-spacing: .05em; }
.copy-row {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
}
.copy-url {
  flex: 1;
  min-width: 0;
  font-size: .8rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: var(--surface2);
  padding: .4rem .7rem;
  border-radius: 8px;
  display: block;
}
.current-status-preview { margin-top: .5rem; }


/* ── Profile page ── */
.profile-wrap {
  max-width: 520px;
  margin: 3rem auto;
  padding: 0 1rem 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
.profile-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.profile-accent {
  height: 8px;
  width: 100%;
}
.profile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1.75rem .5rem;
}
.profile-username { font-size: 1.5rem; font-weight: 800; }
.profile-bar      { margin: .5rem 1.75rem 1.25rem; }

.profile-mood {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: 0 1.75rem 1.25rem;
}
.mood-emoji-lg { font-size: 2rem; }
.mood-label-lg { font-size: 1.1rem; font-weight: 600; color: var(--muted); }

.profile-message {
  margin: 0 1.75rem 1rem;
  color: var(--muted);
  font-style: italic;
  font-size: .95rem;
  border-left: 3px solid var(--border);
  padding-left: .75rem;
}
.profile-updated {
  padding: 0 1.75rem .75rem;
  font-size: .78rem;
  color: var(--subtle);
}
.profile-actions {
  border-top: 1px solid var(--border);
  padding: 1rem 1.75rem;
  background: var(--bg);
}

.profile-cta {
  text-align: center;
  color: var(--muted);
  font-size: .9rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
}


/* ── 30-day trend chart ── */
.chart-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}
.chart-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: .5rem;
}
.chart-meta {
  font-size: .8rem;
  color: var(--subtle);
}
.chart-wrap {
  position: relative;
  width: 100%;
  height: 220px;
}
.chart-wrap canvas {
  width: 100% !important;
  height: 220px !important;
}
.chart-empty {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--subtle);
  font-size: .9rem;
  font-style: italic;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}


/* ── Avatar (dashboard upload) ── */
.avatar-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.avatar-wrap {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}
.avatar-preview {
  flex-shrink: 0;
}
.avatar-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 2px solid var(--border);
  display: block;
}
.avatar-placeholder {
  width: 80px;
  height: 80px;
  border-radius: var(--radius);
  background: var(--surface2);
  border: 2px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  color: var(--muted);
}
.avatar-controls {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  flex: 1;
}
.avatar-upload-form {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
}
.avatar-file-label {
  cursor: pointer;
  position: relative;
}
.avatar-file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
}
.avatar-hint {
  font-size: .75rem;
  color: var(--subtle);
}

/* ── Chart legend ── */
.chart-legend {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-size: .78rem;
  color: var(--muted);
  margin-bottom: .75rem;
}
.legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── Timeline / public profile ── */
.timeline-page {
  max-width: 620px;
  margin: 0 auto;
  padding: 2rem 1rem 5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Header block */
.tl-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.tl-identity {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.tl-avatar {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 2px solid var(--border);
  flex-shrink: 0;
}
.tl-avatar-placeholder {
  width: 72px;
  height: 72px;
  border-radius: var(--radius);
  background: var(--surface2);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  color: var(--muted);
  flex-shrink: 0;
}
.tl-identity-info {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.tl-username {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
}

/* Current status card */
.tl-current-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.tl-card-accent {
  height: 6px;
  width: 100%;
}
.tl-card-body {
  padding: 1.25rem 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.tl-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .4rem;
}
.tl-now-badge {
  font-size: .78rem;
  font-weight: 700;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.tl-timestamp {
  font-size: .75rem;
  color: var(--subtle);
}
.tl-bar { margin: 0; }
.tl-mood-row {
  display: flex;
  align-items: center;
  gap: .6rem;
}
.tl-message {
  color: var(--muted);
  font-style: italic;
  font-size: .95rem;
  border-left: 3px solid var(--border);
  padding-left: .75rem;
  margin: 0;
}
.tl-share-row {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  padding-top: .75rem;
  margin-top: .25rem;
}

/* CTA */
.tl-cta {
  text-align: center;
  color: var(--muted);
  font-size: .9rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
}

/* Feed header */
.tl-feed-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  padding-bottom: .6rem;
}
.tl-feed-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}
.tl-feed-count {
  font-size: .78rem;
  color: var(--subtle);
}

/* Feed entries */
.tl-feed {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.tl-entry {
  display: flex;
  gap: .9rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}
.tl-entry:last-child { border-bottom: none; }

/* Entry avatar column */
.tl-entry-avatar { flex-shrink: 0; }
.tl-entry-avatar-img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.tl-entry-avatar-ph {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: var(--surface2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  color: var(--muted);
}

/* Entry content */
.tl-entry-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.tl-entry-header {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
}
.tl-entry-user {
  font-weight: 700;
  font-size: .9rem;
}
.tl-entry-time {
  font-size: .75rem;
  color: var(--subtle);
  margin-left: auto;
}
.tl-entry-bar-wrap {
  background: var(--surface2);
  border-radius: 99px;
  height: 6px;
  overflow: hidden;
}
.tl-entry-mood {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .88rem;
}
.tl-mood-label {
  color: var(--muted);
}
.tl-entry-message {
  font-size: .88rem;
  color: var(--muted);
  font-style: italic;
  border-left: 2px solid var(--border);
  padding-left: .6rem;
  margin: 0;
}

/* Reaction buttons */
.tl-reactions {
  display: flex;
  align-items: center;
  gap: .35rem;
  flex-wrap: wrap;
  margin-top: .25rem;
}
.react-btn {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  background: var(--surface2);
  border: 1.5px solid transparent;
  border-radius: 99px;
  padding: .25rem .6rem;
  cursor: pointer;
  font-size: .82rem;
  color: var(--muted);
  transition: border-color var(--transition), background var(--transition), color var(--transition);
  white-space: nowrap;
}
.react-btn:hover {
  border-color: var(--green);
  color: var(--text);
}
.react-btn.react-mine {
  border-color: var(--green);
  background: rgba(34,197,94,.12);
  color: var(--green);
}
.react-emoji { font-size: 1rem; }
.react-count {
  font-weight: 700;
  min-width: .8em;
  text-align: center;
}
.tl-react-hint {
  font-size: .75rem;
  color: var(--subtle);
  margin-left: .25rem;
}

/* Delete button (owner only, appears in entry header) */
.tl-delete-form { display: inline; margin-left: auto; }
.tl-delete-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: .9rem;
  opacity: 0;
  padding: .1rem .3rem;
  border-radius: 6px;
  transition: opacity var(--transition), background var(--transition);
  line-height: 1;
}
.tl-entry:hover .tl-delete-btn { opacity: .5; }
.tl-delete-btn:hover { opacity: 1 !important; background: rgba(239,68,68,.15); }


/* ── Responsive tweaks ── */
@media (max-width: 600px) {
  .nav { padding: .75rem 1rem; }
  .hero { padding: 4rem 1rem 3rem; }
  .mood-grid { grid-template-columns: repeat(4, 1fr); }
  .copy-row { flex-direction: column; align-items: flex-start; }
  .copy-url { width: 100%; }
  .avatar-wrap { flex-direction: column; }
  .tl-share-row { flex-direction: column; align-items: flex-start; }
  .tl-entry-time { margin-left: 0; width: 100%; }
}
