﻿/* Ads */
.ad-card {
  grid-template-columns: 1fr;
  padding: 20px;
}

.ad-card__art .image-shell,
.ad-card__art img {
  max-height: 140px;
}

/* Brand header tweaks */
.brand-badge {
  width: 40px;
  height: 40px;
  border-radius: 14px;
}

.brand-title {
  font-size: 0.95rem;
}

.brand-tagline {
  font-size: 0.7rem;
}

/* public/mobile.css */
/* Mobile-only tweaks. Desktop stays unchanged. */

/* Base readability & tap targets */
html,
body {
  font-size: 16px;
}

* {
  -webkit-text-size-adjust: 100%;
}

.container {
  padding: 12px;
}

/* Layout */
.grid {
  grid-template-columns: 1fr;
  gap: 14px;
}

.split {
  flex-direction: column;
  gap: 12px;
}

.sidebar {
  width: 100%;
  max-width: 100%;
}

.row {
  flex-wrap: wrap;
}

/* allow wrapping where needed */

/* Inputs & buttons (global mobile defaults) */
input,
textarea,
select,
.btn {
  font-size: 16px;
  min-height: 44px;
  padding: 12px 14px;
  width: 100%;
}

/* =========================
   HEADER: compact controls
   ========================= */

/* 1) Keep nav inline with modern icon pills */
header nav.row {
  width: 100%;
  gap: 10px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 2px 0 6px;
  margin: 0 -4px;
  scrollbar-width: none;
}

header nav.row::-webkit-scrollbar {
  display: none;
}

header nav.row .btn {
  width: auto !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  font-size: 14px !important;
  font-weight: 600;
  padding: 8px 16px !important;
  min-height: 40px !important;
  border-radius: 999px !important;
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

header nav.row .btn:not(.primary):hover {
  transform: translateY(-1px);
}

header nav.row .btn:active {
  transform: translateY(1px);
}

header nav.row .btn.primary {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  box-shadow: 0 18px 36px rgba(37, 99, 235, 0.32);
}

header nav.row .btn .nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  color: inherit;
  flex: 0 0 auto;
}

header nav.row .btn.primary .nav-icon {
  background: rgba(255, 255, 255, 0.25);
}

header nav.row .btn .nav-icon-svg {
  width: 16px;
  height: 16px;
}

header nav.row .btn .nav-label {
  font-size: 14px;
  line-height: 1.2;
  white-space: nowrap;
}

header nav.row .btn .nav-unread-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  box-shadow: 0 0 0 2px #ffffff;
}

header nav.row .btn.primary .nav-unread-dot {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.7);
}

/* Bottom dashboard replaces header navigation on phones */
header nav.row {
  display: none !important;
}

/* 2) Auth area buttons (right side, includes Log out) - lighter pills */
header .container>.row:last-child .btn {
  width: auto !important;
  display: inline-flex;
  font-size: 13px !important;
  padding: 8px 12px !important;
  min-height: 34px !important;
  border-radius: 999px !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

/* 3) Make Log out the SMALLEST (last button in that group) */
header .container>.row:last-child .btn:last-child {
  font-size: 12px !important;
  padding: 6px 12px !important;
  min-height: 32px !important;
  border-radius: 999px !important;
  opacity: .95;
}

/* Cards */
.card {
  border-radius: 20px;
}

.aspect {
  padding-top: 62%;
}

.card .row {
  gap: 8px;
}

.message {
  font-size: 15px;
  max-width: 92%;
}

/* Search & selects */
header input {
  min-width: 140px;
}

select {
  width: auto;
}

/* Lightbox (keep centered/contained on phones) */
.modal-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 95vw;
  max-height: 95vh;
  background: #000;
  border-radius: 16px;
  overflow: hidden;
}

.modal-inner .image-shell {
  max-width: 95vw;
  max-height: 95vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-inner img {
  max-width: 95vw;
  max-height: 95vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

.thumbs {
  -webkit-overflow-scrolling: touch;
}

.arrow {
  padding: 8px 12px;
}

/* Forms */
textarea {
  min-height: 100px;
}

/* Creation shortcuts */
.mobile-create-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 22px 44px rgba(15, 23, 42, 0.14);
  border: 1px solid rgba(148, 163, 184, 0.18);
  margin-bottom: 18px;
}

.mobile-create-toggle {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  background: #e2e8f0;
  border-radius: 999px;
  padding: 4px;
  overflow: hidden;
}

.mobile-create-toggle-track {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.mobile-create-toggle-thumb {
  position: absolute;
  top: 4px;
  left: 4px;
  width: calc(50% - 4px);
  height: calc(100% - 8px);
  border-radius: 999px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  transition: transform 180ms ease;
}

.mobile-create-toggle-btn {
  position: relative;
  z-index: 1;
  border: none;
  background: transparent;
  color: #1f2937;
  font-weight: 700;
  font-size: 15px;
  padding: 10px 0;
}

.mobile-create-toggle-btn.is-active {
  color: #ffffff;
}

.mobile-create-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.mobile-create-icon {
  flex: 1;
  border: none;
  background: #f1f5f9;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 18px;
  color: #1d4ed8;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.12);
  transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.mobile-create-icon:hover {
  background: rgba(37, 99, 235, 0.12);
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.24);
}

.mobile-create-icon:active {
  transform: translateY(1px);
}

.mobile-create-icon-shell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mobile-create-icon-shell svg {
  width: 28px;
  height: 28px;
}

/* Bottom navigation */
.mobile-dashboard {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-around;
  gap: 8px;
  padding: 8px 12px calc(6px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 -10px 30px rgba(15, 23, 42, 0.18);
  z-index: 1200;
}

.mobile-dashboard__button {
  flex: 1;
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  position: relative;
}

.mobile-dashboard__button.is-active {
  color: #1d4ed8;
}

.mobile-dashboard__icon {
  width: 30px;
  height: 30px;
  border-radius: 16px;
  background: rgba(37, 99, 235, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-dashboard__button.is-active .mobile-dashboard__icon {
  background: rgba(37, 99, 235, 0.22);
}

.mobile-dashboard__icon svg {
  width: 18px;
  height: 18px;
}


.mobile-dashboard__badge {
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(16px);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 0 2px #ffffff;
}

.mobile-dashboard__button.is-active .mobile-dashboard__badge {
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.mobile-dashboard__label {
  line-height: 1.1;
}

main.container {
  padding-bottom: calc(130px + env(safe-area-inset-bottom, 0px));
}

label {
  font-weight: 600;
}

/* Keep content visible above mobile keyboards */
main {
  padding-bottom: 16px;
}

/* Nearby filter area tighter on mobile */
.nearby-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
}

.nearby-filter label {
  font-size: 14px;
  font-weight: 600;
}

.nearby-filter select {
  font-size: 14px;
  padding: 6px 8px;
  min-height: 32px;
  border-radius: 12px;
  width: auto;
}

/* ============================================================
   NEARBY (MOBILE): masonry style display of just images
   ============================================================ */
#tab-nearby .masonry,
[data-tab="nearby"] .masonry {
  column-count: 3;
  column-gap: 8px;
}

#tab-nearby .masonry-item,
[data-tab="nearby"] .masonry-item {
  break-inside: avoid;
  margin-bottom: 8px;
}

#tab-nearby .masonry .image-shell,
[data-tab="nearby"] .masonry .image-shell,
#tab-nearby .masonry img,
[data-tab="nearby"] .masonry img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  cursor: pointer;
}

#tab-nearby .masonry .image-shell,
[data-tab="nearby"] .masonry .image-shell {
  overflow: hidden;
}

/* Modal for full listing */
.modal-inner.listing-modal {
  width: 90vw;
  max-width: 360px;
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  position: relative;
}

.modal-inner.listing-modal .card {
  width: 100%;
  overflow: hidden;
}

.modal-inner.listing-modal .aspect {
  position: relative;
  padding-top: 56%;
  margin-bottom: 12px;
}

.modal-inner.listing-modal .aspect .image-shell {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  overflow: hidden;
}

.modal-inner.listing-modal .aspect img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.modal-inner.listing-modal .card>div:last-child {
  position: relative;
  z-index: 10;
  padding: 12px;
}

/* Hide extra details ONLY in the image grid, not in the modal */
#tab-nearby .masonry .title,
#tab-nearby .masonry .description,
#tab-nearby .masonry .price,
#tab-nearby .masonry .distance,
[data-tab="nearby"] .masonry .title,
[data-tab="nearby"] .masonry .description,
[data-tab="nearby"] .masonry .price,
[data-tab="nearby"] .masonry .distance {
  display: none !important;
}

/* Tighten any Nearby filter/header spacing on mobile */
#tab-nearby .nearby-filter,
[data-tab="nearby"] .nearby-filter {
  gap: 6px;
  margin: 6px 0;
}

/* Make Lightbox sit above other modals (Nearby sheet, etc.) */
.modal.lightbox {
  z-index: 1000;
}

/* Global loading overlay (mobile also sees it) */
.global-loader {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, .6);
  backdrop-filter: blur(2px);
  display: grid;
  place-items: center;
  z-index: 2000;
  pointer-events: none;
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid #e5e7eb;
  border-top-color: #111;
  border-radius: 50%;
  animation: spin .9s linear infinite;
  margin: 8px auto;
}

.loader-text {
  font-weight: 700;
  color: #111;
}

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

/* Make clickable areas comfy but compact */
#tab-nearby a,
[data-tab="nearby"] a {
  -webkit-tap-highlight-color: rgba(0, 0, 0, .05);
}

/* ---------- Reusable Masonry (Nearby + Listings) ---------- */
.masonry {
  column-count: 3;
  /* match Nearby */
  column-gap: 8px;
  /* match Nearby */
}

@media (min-width: 768px) {
  .masonry {
    column-count: 3;
  }
}

@media (min-width: 1024px) {
  .masonry {
    column-count: 4;
  }
}

.masonry-item {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  margin-bottom: 8px;
  display: block;
}

.masonry-item .card {
  width: 100%;
  display: inline-block;
  /* prevents spanning columns */
}

.masonry-item .image-shell,
.masonry-item img {
  width: 100%;
  height: auto;
  display: block;
}

[data-tab="nearby"] .masonry {
  column-count: 3;
  column-gap: 8px;
}

#tab-nearby .masonry-item,
[data-tab="nearby"] .masonry-item {
  break-inside: avoid;
  margin-bottom: 8px;
}

#tab-nearby .masonry .image-shell,
[data-tab="nearby"] .masonry .image-shell,
#tab-nearby .masonry img,
[data-tab="nearby"] .masonry img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  cursor: pointer;
}

#tab-nearby .masonry .image-shell,
[data-tab="nearby"] .masonry .image-shell {
  overflow: hidden;
}

/* Modal for full listing */
.modal-inner.listing-modal {
  width: 90vw;
  max-width: 360px;
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  position: relative;
}

.modal-inner.listing-modal .card {
  width: 100%;
  overflow: hidden;
}

.modal-inner.listing-modal .aspect {
  position: relative;
  padding-top: 56%;
  margin-bottom: 12px;
}

.modal-inner.listing-modal .aspect .image-shell {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  overflow: hidden;
}

.modal-inner.listing-modal .aspect img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.modal-inner.listing-modal .card>div:last-child {
  position: relative;
  z-index: 10;
  padding: 12px;
}

/* Hide extra details ONLY in the image grid, not in the modal */
#tab-nearby .masonry .title,
#tab-nearby .masonry .description,
#tab-nearby .masonry .price,
#tab-nearby .masonry .distance,
[data-tab="nearby"] .masonry .title,
[data-tab="nearby"] .masonry .description,
[data-tab="nearby"] .masonry .price,
[data-tab="nearby"] .masonry .distance {
  display: none !important;
}

/* Tighten any Nearby filter/header spacing on mobile */
#tab-nearby .nearby-filter,
[data-tab="nearby"] .nearby-filter {
  gap: 6px;
  margin: 6px 0;
}

/* Make Lightbox sit above other modals (Nearby sheet, etc.) */
.modal.lightbox {
  z-index: 1000;
}

/* Global loading overlay (mobile also sees it) */
.global-loader {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, .6);
  backdrop-filter: blur(2px);
  display: grid;
  place-items: center;
  z-index: 2000;
  pointer-events: none;
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid #e5e7eb;
  border-top-color: #111;
  border-radius: 50%;
  animation: spin .9s linear infinite;
  margin: 8px auto;
}

.loader-text {
  font-weight: 700;
  color: #111;
}

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

/* Make clickable areas comfy but compact */
#tab-nearby a,
[data-tab="nearby"] a {
  -webkit-tap-highlight-color: rgba(0, 0, 0, .05);
}

/* ---------- Reusable Masonry (Nearby + Listings) ---------- */
.masonry {
  column-count: 3;
  /* match Nearby */
  column-gap: 8px;
  /* match Nearby */
}

@media (min-width: 768px) {
  .masonry {
    column-count: 3;
  }
}

@media (min-width: 1024px) {
  .masonry {
    column-count: 4;
  }
}

.masonry-item {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  margin-bottom: 8px;
  display: block;
}

.masonry-item .card {
  width: 100%;
  display: inline-block;
  /* prevents spanning columns */
}

.masonry-item .image-shell,
.masonry-item img {
  width: 100%;
  height: auto;
  display: block;
}

.masonry-item .image-shell {
  overflow: hidden;
}

/* Protruding Plus Button */
.mobile-dashboard__plus-container {
  position: relative;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;

  /* ============================================================
   NEARBY (MOBILE): masonry style display of just images
   ============================================================ */
  #tab-nearby .masonry,
  [data-tab="nearby"] .masonry {
    column-count: 3;
    column-gap: 8px;
  }

  #tab-nearby .masonry-item,
  [data-tab="nearby"] .masonry-item {
    break-inside: avoid;
    margin-bottom: 8px;
  }

  #tab-nearby .masonry .image-shell,
  [data-tab="nearby"] .masonry .image-shell,
  #tab-nearby .masonry img,
  [data-tab="nearby"] .masonry img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    cursor: pointer;
  }

  #tab-nearby .masonry .image-shell,
  [data-tab="nearby"] .masonry .image-shell {
    overflow: hidden;
  }

  /* Modal for full listing */
  .modal-inner.listing-modal {
    width: 90vw;
    max-width: 360px;
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    position: relative;
  }

  .modal-inner.listing-modal .card {
    width: 100%;
    overflow: hidden;
  }

  .modal-inner.listing-modal .aspect {
    position: relative;
    padding-top: 56%;
    margin-bottom: 12px;
  }

  .modal-inner.listing-modal .aspect .image-shell {
    position: absolute;
    inset: 0;
    border-radius: 12px;
    overflow: hidden;
  }

  .modal-inner.listing-modal .aspect img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
  }

  .modal-inner.listing-modal .card>div:last-child {
    position: relative;
    z-index: 10;
    padding: 12px;
  }

  /* Hide extra details ONLY in the image grid, not in the modal */
  #tab-nearby .masonry .title,
  #tab-nearby .masonry .description,
  #tab-nearby .masonry .price,
  #tab-nearby .masonry .distance,
  [data-tab="nearby"] .masonry .title,
  [data-tab="nearby"] .masonry .description,
  [data-tab="nearby"] .masonry .price,
  [data-tab="nearby"] .masonry .distance {
    display: none !important;
  }

  /* Tighten any Nearby filter/header spacing on mobile */
  #tab-nearby .nearby-filter,
  [data-tab="nearby"] .nearby-filter {
    gap: 6px;
    margin: 6px 0;
  }

  /* Make Lightbox sit above other modals (Nearby sheet, etc.) */
  .modal.lightbox {
    z-index: 1000;
  }

  /* Global loading overlay (mobile also sees it) */
  .global-loader {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, .6);
    backdrop-filter: blur(2px);
    display: grid;
    place-items: center;
    z-index: 2000;
    pointer-events: none;
  }

  .spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #e5e7eb;
    border-top-color: #111;
    border-radius: 50%;
    animation: spin .9s linear infinite;
    margin: 8px auto;
  }

  .loader-text {
    font-weight: 700;
    color: #111;
  }

  @keyframes spin {
    ```css transform: rotate(360deg);
  }
}

/* Make clickable areas comfy but compact */
#tab-nearby a,
[data-tab="nearby"] a {
  -webkit-tap-highlight-color: rgba(0, 0, 0, .05);
}

/* ---------- Reusable Masonry (Nearby + Listings) ---------- */
.masonry {
  column-count: 3;
  /* match Nearby */
  column-gap: 8px;
  /* match Nearby */
}

@media (min-width: 768px) {
  .masonry {
    column-count: 3;
  }
}

@media (min-width: 1024px) {
  .masonry {
    column-count: 4;
  }
}

.masonry-item {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  margin-bottom: 8px;
  display: block;
}

.masonry-item .card {
  width: 100%;
  display: inline-block;
  /* prevents spanning columns */
}

.masonry-item .image-shell,
.masonry-item img {
  width: 100%;
  height: auto;
  display: block;
}

.masonry-item .image-shell {
  overflow: hidden;
}


/* Fixed Mobile Dashboard */
.mobile-dashboard {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 8px 12px;
  padding-bottom: calc(6px + env(safe-area-inset-bottom));
  z-index: 1000;
  height: 52px;
}

/* Add padding to body so content isn't hidden behind nav */
body {
  padding-bottom: 100px !important;
}

/* Protruding Plus Button */
.mobile-dashboard__plus-container {
  position: relative;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -32px;
  /* Protrude upwards (approx top quarter) */
  z-index: 10;
  flex-shrink: 0;
  /* Prevent squishing */
}

.mobile-dashboard__plus-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: #2563eb;
  border: 6px solid #fff;
  /* Thicker white border for cutout effect */
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 -6px 12px rgba(0, 0, 0, 0.12);
  /* Enhanced shadow */
  cursor: pointer;
  padding: 0;
  transition: transform 0.1s ease;
  flex-shrink: 0;
  /* Prevent squishing */
}

.mobile-dashboard__plus-btn:active {
  transform: scale(0.95);
}

.mobile-dashboard__plus-btn svg {
  width: 32px;
  height: 32px;
  stroke-width: 2.5;
  /* Slightly bolder icon */
}

/* ============================================================
   RESUME OVERLAY - Cute wake-up screen after background sleep
   ============================================================ */
.resume-overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  pointer-events: all;
  opacity: 1;
  transition: opacity 0.35s ease-out;
}

.resume-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
}

/* Calming blue border fade effect */
.resume-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow:
    inset 0 0 120px 60px rgba(96, 165, 250, 0.2),
    inset 0 0 200px 100px rgba(147, 197, 253, 0.12),
    inset 0 0 300px 150px rgba(191, 219, 254, 0.08);
  z-index: -1;
}

.resume-overlay__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 32px;
  text-align: center;
}

.resume-overlay__icon {
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.resume-overlay__geometric {
  position: relative;
  width: 80px;
  height: 80px;
}

.resume-overlay__hexagon {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 2.5px solid;
  border-radius: 4px;
}

.resume-overlay__hexagon--outer {
  width: 70px;
  height: 70px;
  margin-left: -35px;
  margin-top: -35px;
  border-color: #2563eb;
  animation: hex-rotate 3s linear infinite, hex-pulse 1.5s ease-in-out infinite;
}

.resume-overlay__hexagon--middle {
  width: 50px;
  height: 50px;
  margin-left: -25px;
  margin-top: -25px;
  border-color: #3b82f6;
  animation: hex-rotate-reverse 2.5s linear infinite, hex-pulse 1.5s ease-in-out infinite 0.2s;
}

.resume-overlay__hexagon--inner {
  width: 30px;
  height: 30px;
  margin-left: -15px;
  margin-top: -15px;
  border-color: #60a5fa;
  animation: hex-rotate 2s linear infinite, hex-pulse 1.5s ease-in-out infinite 0.4s;
}

@keyframes hex-rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes hex-rotate-reverse {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(-360deg);
  }
}

@keyframes hex-pulse {
  0%, 100% {
    opacity: 0.6;
    border-radius: 4px;
  }
  50% {
    opacity: 1;
    border-radius: 50%;
  }
}

.resume-overlay__text {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.resume-overlay__quote {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 1.1rem;
  font-style: italic;
  color: #475569;
  max-width: 280px;
  line-height: 1.5;
  text-align: center;
  opacity: 0;
  animation: quote-fade-in 0.8s ease-out 0.6s forwards;
}

@keyframes quote-fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}