/* ============================================================
   location-style.css — HealthCalcsHub Design System
   Remapped from warm-amber to cyan/navy palette
   ============================================================ */

/* ── WRAPPER ────────────────────────────────────────────────── */
.loc-wrap {
  padding: 28px 0 36px;
  position: relative;
}

.loc-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── META ROW ───────────────────────────────────────────────── */
.loc-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 10px;
  flex-wrap: wrap;
}

.loc-meta-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.loc-meta-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.loc-cat-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--accent, #6aff2e);
  color: #050f07;
  padding: 3px 10px;
  border-radius: 4px;
  line-height: 1.8;
}

html.light .loc-cat-badge { color: #fff; }

.loc-city-pill {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--accent, #6aff2e);
  text-transform: uppercase;
  opacity: 0.85;
}

.loc-day-counter {
  font-size: 10px;
  color: var(--text-dim, #4a5578);
  letter-spacing: 0.06em;
  font-weight: 600;
}

.loc-shuffle-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: 1px solid rgba(106, 255, 46, 0.25);
  color: var(--accent, #6aff2e);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  letter-spacing: 0.04em;
  font-family: inherit;
}
.loc-shuffle-btn:hover {
  background: rgba(106, 255, 46, 0.1);
  border-color: var(--accent, #6aff2e);
  transform: scale(1.03);
}
.loc-shuffle-btn svg {
  flex-shrink: 0;
  transition: transform 0.4s;
}
.loc-shuffle-btn:active svg {
  transform: rotate(180deg);
}

html.light .loc-shuffle-btn {
  border-color: rgba(46, 125, 50, 0.3);
  color: var(--accent, #2e7d32);
}
html.light .loc-shuffle-btn:hover {
  background: rgba(46, 125, 50, 0.1);
  border-color: var(--accent, #2e7d32);
}

/* ── MAIN CARD ──────────────────────────────────────────────── */
.loc-card {
  background: rgba(12, 15, 30, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(106, 255, 46, 0.15);
  border-radius: 20px;
  padding: 36px;
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 36px;
  align-items: center;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.loc-card:hover {
  border-color: rgba(106, 255, 46, 0.3);
  box-shadow: 0 12px 48px rgba(106, 255, 46, 0.08);
}

html.light .loc-card {
  background: rgba(240, 248, 255, 0.7);
  border-color: rgba(46, 125, 50, 0.2);
}
html.light .loc-card:hover {
  border-color: rgba(46, 125, 50, 0.4);
  box-shadow: 0 12px 48px rgba(46, 125, 50, 0.1);
}

.loc-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 0%, rgba(106, 255, 46, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

/* Card entrance */
@keyframes locCardIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes locFadeSlide {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.loc-card.animating {
  animation: locFadeSlide 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* ── TEXT COLUMN ────────────────────────────────────────────── */
.loc-text-col { min-width: 0; }

.loc-type-tag {
  display: inline-block;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim, #4a5578);
  border: 1px solid rgba(106, 255, 46, 0.18);
  border-radius: 3px;
  padding: 2px 8px;
  margin-bottom: 10px;
}

.loc-topic {
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  font-weight: 800;
  color: var(--text-main, #e8ecf5);
  margin: 0 0 12px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  font-family: 'Sora', sans-serif;
}

.loc-body {
  font-size: 0.875rem;
  line-height: 1.75;
  color: var(--text-sub, #8892b0);
  max-width: 640px;
}
.loc-body .hl {
  color: var(--accent, #6aff2e);
  font-weight: 700;
  border-bottom: 1px dashed rgba(106, 255, 46, 0.4);
}
.loc-body b { color: var(--text-main, #e8ecf5); font-weight: 700; }
.loc-body em { font-style: italic; color: var(--text-main, #e8ecf5); }

/* ── STATS PILLS ────────────────────────────────────────────── */
.loc-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.loc-stat-pill {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent, #6aff2e);
  background: rgba(106, 255, 46, 0.07);
  border: 1px solid rgba(106, 255, 46, 0.2);
  border-radius: 6px;
  padding: 6px 12px;
  white-space: nowrap;
  transition: background 0.2s, transform 0.2s;
  cursor: default;
}
.loc-stat-pill:hover {
  background: rgba(106, 255, 46, 0.14);
  transform: translateY(-2px);
}

html.light .loc-stat-pill {
  color: var(--accent, #2e7d32);
  background: rgba(46, 125, 50, 0.07);
  border-color: rgba(46, 125, 50, 0.22);
}
html.light .loc-stat-pill:hover {
  background: rgba(46, 125, 50, 0.14);
}

/* ── ACTIONS ────────────────────────────────────────────────── */
.loc-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.loc-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid rgba(106, 255, 46, 0.3);
  color: var(--accent, #6aff2e);
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all 0.2s;
  font-family: inherit;
}
.loc-share-btn:hover {
  background: var(--accent, #6aff2e);
  color: #050f07;
  box-shadow: 0 0 20px rgba(106, 255, 46, 0.3);
}

html.light .loc-share-btn {
  border-color: rgba(46, 125, 50, 0.35);
  color: var(--accent, #2e7d32);
}
html.light .loc-share-btn:hover {
  background: var(--accent, #2e7d32);
  color: #fff;
  box-shadow: 0 0 16px rgba(46, 125, 50, 0.25);
}

/* ── ICON COLUMN ────────────────────────────────────────────── */
.loc-icon-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

/* ── ORB ────────────────────────────────────────────────────── */
.loc-orb-wrap {
  position: relative;
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loc-orb-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--accent, #6aff2e);
  opacity: 0;
  animation: orbRipple 4s infinite cubic-bezier(0.2, 0.5, 0.2, 1);
}
.loc-orb-ring-1 { animation-delay: 0s; }
.loc-orb-ring-2 { animation-delay: 1.2s; }
.loc-orb-ring-3 { animation-delay: 2.4s; }

@keyframes orbRipple {
  0%   { transform: scale(0.5); opacity: 0; }
  30%  { opacity: 0.35; }
  100% { transform: scale(1.8); opacity: 0; }
}

.loc-icon-frame {
  font-size: 64px;
  z-index: 2;
  filter: drop-shadow(0 0 18px rgba(106, 255, 46, 0.35));
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.3s;
  animation: locFloat 5s ease-in-out infinite;
  position: relative;
  user-select: none;
  cursor: default;
}
.loc-card:hover .loc-icon-frame {
  transform: scale(1.15) rotate(5deg);
  filter: drop-shadow(0 0 28px rgba(106, 255, 46, 0.55));
}

@keyframes locFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-8px) scale(1.04); }
}

.loc-currency-badge {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-dim, #4a5578);
  letter-spacing: 0.08em;
  text-align: center;
}

/* ── BOTTOM NAV ─────────────────────────────────────────────── */
.loc-nav-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 14px;
}
.loc-nav-arr {
  background: transparent;
  border: 1px solid rgba(106, 255, 46, 0.18);
  color: var(--text-dim, #4a5578);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  flex-shrink: 0;
}
.loc-nav-arr:hover {
  border-color: var(--accent, #6aff2e);
  color: var(--accent, #6aff2e);
  background: rgba(106, 255, 46, 0.08);
}

html.light .loc-nav-arr {
  border-color: rgba(46, 125, 50, 0.2);
}
html.light .loc-nav-arr:hover {
  border-color: var(--accent, #2e7d32);
  color: var(--accent, #2e7d32);
  background: rgba(46, 125, 50, 0.08);
}

.loc-dot-row {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 280px;
}
.loc-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(106, 255, 46, 0.18);
  cursor: pointer;
  transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
  flex-shrink: 0;
}
.loc-dot.active {
  background: var(--accent, #6aff2e);
  transform: scale(1.4);
  box-shadow: 0 0 10px var(--accent, #6aff2e);
}
.loc-dot:hover:not(.active) {
  background: rgba(106, 255, 46, 0.45);
}

html.light .loc-dot { background: rgba(46, 125, 50, 0.2); }
html.light .loc-dot.active {
  background: var(--accent, #2e7d32);
  box-shadow: 0 0 10px var(--accent, #2e7d32);
}
html.light .loc-dot:hover:not(.active) { background: rgba(46, 125, 50, 0.45); }

/* ── SHUFFLE ANIMATIONS ─────────────────────────────────────── */
.loc-shuffling .loc-icon-frame {
  animation: insIconPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.loc-shuffling .loc-orb-ring {
  animation: insRingFlash 0.5s ease-out forwards;
  border-color: rgba(106, 255, 46, 0.9);
}

@keyframes insIconPop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.4) rotate(15deg); filter: brightness(1.5); }
  100% { transform: scale(1) rotate(0); }
}
@keyframes insRingFlash {
  0%   { transform: scale(1); opacity: 1; border-width: 4px; }
  100% { transform: scale(2); opacity: 0; border-width: 1px; }
}

/* ── CATEGORY COLOUR ACCENTS ────────────────────────────────── */
.loc-wrap[data-cat="islamic"]   { --cat-accent: #6aff2e; }
.loc-wrap[data-cat="finance"]   { --cat-accent: #b2ff59; }
.loc-wrap[data-cat="car"]       { --cat-accent: #00c853; }
.loc-wrap[data-cat="lifestyle"] { --cat-accent: #f97316; }

/* ── RTL ────────────────────────────────────────────────────── */
[dir="rtl"] .loc-card { grid-template-columns: 200px 1fr; }
[dir="rtl"] .loc-text-col { order: 2; }
[dir="rtl"] .loc-icon-col { order: 1; }

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 680px) {
  .loc-card {
    grid-template-columns: 1fr;
    padding: 22px 18px 20px;
    text-align: center;
  }
  .loc-icon-col { order: -1; }
  .loc-orb-wrap { width: 100px; height: 100px; margin: 0 auto; }
  .loc-icon-frame { font-size: 44px; }
  .loc-stats { justify-content: center; }
  .loc-actions { justify-content: center; }
  .loc-body { font-size: 0.83rem; }
  [dir="rtl"] .loc-text-col { order: 2; }
  [dir="rtl"] .loc-icon-col { order: -1; }
}

@media (max-width: 400px) {
  .loc-stat-pill { font-size: 10px; padding: 5px 9px; }
}
