/* ============================================
   tilling.io — home.css
   ============================================ */

/* Currently status dot */
.currently-dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #94a3b8;
  margin-right: 4px;
  vertical-align: middle;
  position: relative;
  top: -1px;
  transition: background 0.4s ease;
  box-shadow: 0 0 5px currentColor;
}


.hero {
  position: relative;
  padding: 80px 0 96px;
  overflow: hidden;
}

/* Decorative background */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  opacity: 0.18;
}
.hero-blob--1 {
  width: 480px; height: 480px;
  top: -120px; right: -80px;
  background: radial-gradient(circle, var(--sky-mid), var(--sky));
}
.hero-blob--2 {
  width: 360px; height: 360px;
  bottom: -60px; left: -60px;
  background: radial-gradient(circle, var(--luna-light), var(--luna));
  opacity: 0.12;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--warm-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--warm-border) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.4;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 0%, black 40%, transparent 100%);
}

/* Hero layout */
.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 64px;
}

.hero-text { flex: 1; }

.hero-greeting {
  font-size: 1rem;
  font-weight: 700;
  color: var(--sky);
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.hero-name {
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* XP widget */
.hero-widget {
  flex-shrink: 0;
  width: 320px;
}

.widget-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.widget-line {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.widget-key {
  font-weight: 700;
  color: var(--sky-dark);
  min-width: 80px;
}

.widget-sep {
  color: var(--sky-light);
  font-weight: 400;
}

.widget-line--muted { opacity: 0.5; }
.widget-line--muted em { font-style: italic; }

/* === SECTIONS GRID === */
.sections-grid {
  padding: 80px 0 64px;
}

.grid-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-xl);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid var(--warm-border);
  box-shadow: var(--shadow-md);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-img-wrap {
  height: 220px;
  position: relative;
  overflow: hidden;
}

.card--photo .card-img-wrap {
  background: linear-gradient(135deg, #1a5276 0%, #5dade2 60%, #aed6f1 100%);
}
.card--lab .card-img-wrap {
  background: linear-gradient(135deg, #1a3a1a 0%, #27ae60 60%, #a9dfbf 100%);
}

.card-img-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.6;
}

/* Subtle animated shimmer on card hover */
.card-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.12) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}
.card:hover .card-img-wrap::after {
  transform: translateX(100%);
}

.card-body {
  padding: 28px 28px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 6px;
}
.card--lab .card-label { color: var(--luna); }

.card-title {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--ink);
  margin-bottom: 10px;
}

.card-desc {
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.6;
  flex: 1;
}

.card-cta {
  display: inline-block;
  margin-top: 20px;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--sky);
  letter-spacing: 0.01em;
}
.card--lab .card-cta { color: var(--luna); }

/* === INTERESTS === */
.interests {
  padding: 64px 0 96px;
}

.interests-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.interest-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 99px;
  background: #fff;
  border: 1.5px solid var(--warm-border);
  box-shadow: var(--shadow-sm);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
  cursor: default;
}

.interest-pill:hover {
  border-color: var(--sky-light);
  box-shadow: 0 4px 12px rgba(46,134,193,0.12);
  transform: translateY(-2px);
}

.interest-icon { font-size: 1.15rem; line-height: 1; }

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .hero-widget { display: none; }
  .hero-inner { justify-content: center; text-align: center; }
  .hero-sub { margin: 0 auto 36px; }
  .hero-actions { justify-content: center; }
}

@media (max-width: 640px) {
  .hero { padding: 56px 0 72px; }
  .grid-cards { grid-template-columns: 1fr; }
  .card-img-wrap { height: 180px; }
}

/* === TRAVEL SECTION === */
.travel-section { padding: 0 0 96px; }

.travel-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
  margin-top: 32px;
  align-items: start;
}

/* Map */
.travel-map-wrap { overflow: hidden; }

#travel-map {
  height: 420px;
  width: 100%;
  background: var(--sky-pale);
}

/* Override leaflet default blue focus ring */
.leaflet-container { font-family: var(--font-ui); outline: none; }
.leaflet-control-zoom a {
  font-family: var(--font-ui) !important;
  color: var(--ink) !important;
  border-color: var(--warm-border) !important;
}

.map-tooltip {
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 4px 10px;
  box-shadow: var(--shadow-md);
}
.map-tooltip::before { display: none; }

/* Country list */
.travel-countries {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.country-count {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sky);
  padding: 0 0 12px;
  border-bottom: 2px solid var(--warm-border);
  margin-bottom: 4px;
}

#country-num {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: -0.03em;
  vertical-align: middle;
  margin-right: 4px;
}

.country-list {
  list-style: none;
  max-height: 380px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--warm-border) transparent;
}

.country-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background 0.15s;
  border-left: 3px solid transparent;
}

.country-item:hover {
  background: var(--sky-pale);
}

.country-item.active {
  background: var(--sky-pale);
  border-left-color: var(--sky);
}

.country-name {
  font-weight: 800;
  font-size: 0.88rem;
  color: var(--ink);
}

.country-note {
  font-size: 0.8rem;
  color: var(--ink-soft);
  line-height: 1.45;
}

/* Responsive */
@media (max-width: 900px) {
  .travel-layout {
    grid-template-columns: 1fr;
  }
  .country-list { max-height: 260px; }
  #travel-map { height: 300px; }
}
