/* ===========================
   /* ===========================
   SPOTEYO - MAIN STYLES
   =========================== */

/* Self-hosted Plus Jakarta Sans – variable font (GDPR-compliant, no Google Fonts CDN)
   Files identical to Google Fonts CDN (SHA256 verified) */
/* latin-ext — 400 */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/plus-jakarta-sans/plus-jakarta-sans-v12-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin — 400 */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/plus-jakarta-sans/plus-jakarta-sans-v12-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext — 500 */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/plus-jakarta-sans/plus-jakarta-sans-v12-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin — 500 */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/plus-jakarta-sans/plus-jakarta-sans-v12-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext — 600 */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/plus-jakarta-sans/plus-jakarta-sans-v12-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin — 600 */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/plus-jakarta-sans/plus-jakarta-sans-v12-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext — 700 */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/plus-jakarta-sans/plus-jakarta-sans-v12-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin — 700 */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/plus-jakarta-sans/plus-jakarta-sans-v12-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --sp-navy: #012583;
    --sp-blue: #0138C8;
    --sp-lime: #ABFF00;
    --sp-bg: #F6F7F9;
    --sp-white: #ffffff;
    --sp-text: #1A1F36;
    --sp-text-secondary: #5A6278;
    --sp-border: rgba(1, 56, 200, 0.08);
    --bs-body-font-family: 'Plus Jakarta Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html, body {
    font-family: 'Plus Jakarta Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: var(--sp-white);
}

.page {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.navbar-brand {
  font-weight: 600;
  font-size: 1.5rem;
}

.navbar-brand i {
    margin-right: 0.5rem;
}

.main-content {
  flex: 1;
  padding-top: 1rem;
}

.nav-link {
  transition: all 0.2s ease-in-out;
}

.nav-link:hover {
    transform: translateY(-1px);
  }

.nav-link.active {
    font-weight: 600;
}

/* Card Styles */
.card {
  border: none;
  border-radius: 18px;
  background: white;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  transition: all 0.2s ease;
}

  .card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(0,0,0,0.10);
  }

/* Highlight Pulse Animation for Cards */
@keyframes card-highlight-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(171, 255, 0, 0.7), 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border-color: rgba(171, 255, 0, 0.4);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(171, 255, 0, 0), 0 0.8rem 1.5rem rgba(171, 255, 0, 0.25);
    border-color: rgba(171, 255, 0, 0.8);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(171, 255, 0, 0), 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border-color: rgba(171, 255, 0, 0.4);
  }
}

.card.highlight-pulse {
  animation: card-highlight-pulse 1.5s ease-out;
  border-color: rgba(171, 255, 0, 0.6);
}

/* Button Styles */
.btn {
  border-radius: 999px;
  font-weight: 500;
  transition: all 0.2s ease-in-out;
}

.btn:hover {
    transform: translateY(-1px);
  }

.btn:focus {
    color: var(--bs-btn-hover-color);
    background-color: var(--bs-btn-hover-bg);
    border-color: var(--bs-btn-hover-border-color);
    outline: 0;
    box-shadow: var(--bs-btn-focus-box-shadow);
  }

.btn i {
    margin-right: 0.5rem;
  }

/* Error Boundary Styles */
.error-boundary {
  background-color: #fff5f5;
  min-height: 50vh;
  display: flex;
  align-items: center;
}

/* Not Found Styles */
.not-found {
  background-color: #fffbf0;
  min-height: 50vh;
  display: flex;
  align-items: center;
}

/* Toast Overrides */
.success-toast-override {
  background-color: var(--spoteyo-success) !important;
}

/* Ensure Blazored Toast appears below the sticky header */
.blazored-toast-container {
    top: 72px !important;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .main-content {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .navbar-brand {
    font-size: 1.25rem;
  }

  .card {
    margin-bottom: 1rem;
  }
}

/* Loading Spinner */
.spinner-border-sm {
  width: 1rem;
  height: 1rem;
}

/* Form Styles */
.form-control {
  border-radius: 0.375rem;
  border: 1px solid #dee2e6;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    border-color: var(--sp-blue);
    box-shadow: 0 0 0 0.2rem rgba(1, 56, 200, 0.15);
}

/* Breadcrumb */
.breadcrumb {
  background-color: transparent;
  padding: 0;
  margin-bottom: 1rem;
}

/* Badge Styles */
.badge {
  font-size: 0.75rem;
  padding: 0.375rem 0.75rem;
}

/* Utilities */
.text-primary {
  color: var(--sp-blue) !important;
}

/* Custom spacing */
.mt-6 {
  margin-top: 4rem !important;
}

.mb-6 {
  margin-bottom: 4rem !important;
}

/* User location marker styling */
.user-location-marker {
    background: #007bff;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.user-location-marker i {
    font-size: 12px;
}

/* Loading spinner animation */
.spin {
    animation: spin 1s linear infinite;
}

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

/* Custom styling for user location accuracy circle */
.leaflet-interactive[stroke="#007bff"] {
    stroke-dasharray: 5, 5;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 0.1; }
    50% { opacity: 0.3; }
    100% { opacity: 0.1; }
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#app {
    min-height: 100vh;
}

/* === Loading screen (shown until Blazor WASM boots) === */
.loading-screen {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    /* White background matching the rest of the app, with a subtle radial brand tint */
    background:
        radial-gradient(circle at 50% 25%, rgba(1, 37, 131, 0.05) 0%, transparent 55%),
        #ffffff;
    color: #1A1F36;
    z-index: 9999;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    overflow-y: auto;
}

/* === Minimal loading screen for returning visitors (WASM already cached) === */
.loading-screen--minimal .loading-progress-bar,
.loading-screen--minimal .loading-title,
.loading-screen--minimal .loading-subtitle,
.loading-screen--minimal .loading-features,
.loading-screen--minimal .loading-cta,
.loading-screen--minimal .loading-tip,
.loading-screen--minimal .loading-long,
.loading-screen--minimal .loading-status {
    display: none !important;
}

.loading-screen--minimal .loading-hero {
    gap: 0.75rem;
}

.loading-screen--minimal .loading-logo {
    width: 160px;
    height: 160px;
    animation: logoFadeInBounce 1.2s ease-in-out infinite;
}


/* Real download progress bar driven by Blazor's --blazor-load-percentage */
.loading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(1, 37, 131, 0.08);
    z-index: 10000;
}

.loading-progress-bar-fill {
    height: 100%;
    width: var(--blazor-load-percentage, 0%);
    background: linear-gradient(90deg, #012583, #ABFF00);
    box-shadow: 0 0 8px rgba(1, 37, 131, 0.35);
    transition: width 0.2s ease-out;
}

.loading-hero {
    max-width: 520px;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.loading-logo {
    width: 200px;
    height: 200px;
    animation: logoFadeInBounce 1.8s ease-in-out infinite;
    filter: drop-shadow(0 6px 18px rgba(1, 37, 131, 0.18));
}

@keyframes logoFadeInBounce {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%      { transform: scale(1.08); opacity: 0.85; }
}

.loading-title {
    font-size: clamp(1.4rem, 4vw, 1.85rem);
    font-weight: 700;
    line-height: 1.25;
    margin: 0.25rem 0 0;
    letter-spacing: -0.01em;
    color: #012583;
}

.loading-subtitle {
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
    color: #4A5072;
}

.loading-features {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.loading-feature {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(1, 37, 131, 0.05);
    border: 1px solid rgba(1, 37, 131, 0.12);
    color: #1A1F36;
    border-radius: 999px;
    padding: 0.4rem 0.85rem;
    font-size: 0.82rem;
    font-weight: 500;
}

.loading-feature-icon {
    font-size: 0.95rem;
}

.loading-cta {
    margin-top: 0.5rem;
    background: #012583;
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 0.7rem 1.6rem;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(1, 37, 131, 0.25);
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.2s ease, background 0.15s ease;
}

.loading-cta:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(1, 37, 131, 0.35);
    background: #021c66;
}

.loading-cta:disabled,
.loading-cta--pending {
    opacity: 0.7;
    cursor: progress;
}

.loading-tip {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: #4A5072;
    min-height: 1.2em;
    transition: opacity 0.25s ease;
    max-width: 100%;
}

.loading-status {
    margin-top: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.8rem;
    color: #6B7280;
}

.loading-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(1, 37, 131, 0.15);
    border-top-color: #012583;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loading-long {
    margin-top: 0.75rem;
    font-size: 0.78rem;
    color: #4A5072;
    background: rgba(1, 37, 131, 0.04);
    border: 1px solid rgba(1, 37, 131, 0.1);
    border-radius: 8px;
    padding: 0.5rem 0.8rem;
    line-height: 1.4;
}

@media (prefers-reduced-motion: reduce) {
    .loading-logo,
    .loading-spinner { animation: none; }
}

/* Loading spinner styles - backup */
.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

.loading-progress circle {
    fill: none;
    stroke: #e0e0e0;
    stroke-width: 0.6rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}

.loading-progress circle:last-child {
    stroke: #1b6ec2;
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.05s ease-in-out;
}

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

.loading-progress-text:after {
    content: var(--blazor-load-percentage-text, "Loading");
}

/* Focus improvements */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #005fcc;
    outline-offset: 2px;
}

/* Responsive improvements */
@media (max-width: 767.98px) {
    .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Footer Styles */
.site-footer {
    background: #343a40;
    color: #adb5bd;
    padding: 2rem 0 1rem;
    margin-top: 3rem;
}

.footer-content {
    text-align: center;
}

.footer-links {
    margin-bottom: 1rem;
}

.footer-links a {
    color: #adb5bd;
    text-decoration: none;
    margin: 0 1rem;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: #fff;
}

.footer-info {
    border-top: 1px solid #495057;
    padding-top: 1rem;
}

/* Error Display Styling */
.alert-danger {
    border-left: 4px solid #dc3545;
}

.alert-danger .bi-exclamation-triangle-fill {
    color: #dc3545;
}

.alert-danger .alert-heading {
    color: #721c24;
    font-weight: 600;
}

.alert-danger ul {
    padding-left: 1.5rem;
    margin-bottom: 0;
}

.alert-danger ul li {
    margin-bottom: 0.25rem;
}

.alert-danger .text-muted {
    color: #856404 !important;
}


/* Pulsacja dla pojedynczych markerów - ZWIĘKSZONA */
@keyframes marker-pulse-glow {
  0%, 100% {
    filter: drop-shadow(0 0 18px rgba(255, 193, 7, 1)) drop-shadow(0 0 10px rgba(255, 193, 7, 0.8)) brightness(1.5) saturate(1.5);
  }

  50% {
    filter: drop-shadow(0 0 28px rgba(255, 193, 7, 1)) drop-shadow(0 0 16px rgba(255, 193, 7, 1)) brightness(1.7) saturate(1.7);
  }
}

.marker-hovered-pulse {
  animation: marker-pulse-glow 1s ease-in-out infinite !important;
}

/* NOWA: Stonowana pulsacja dla klastrów */
@keyframes cluster-pulse-glow {
  0%, 100% {
    filter: drop-shadow(0 0 8px rgba(255, 193, 7, 0.5)) drop-shadow(0 0 4px rgba(255, 193, 7, 0.3)) brightness(1.15) saturate(1.1);
  }

  50% {
    filter: drop-shadow(0 0 12px rgba(255, 193, 7, 0.7)) drop-shadow(0 0 6px rgba(255, 193, 7, 0.5)) brightness(1.2) saturate(1.15);
  }
}

.cluster-hovered-pulse {
  animation: cluster-pulse-glow 1s ease-in-out infinite !important;
}

.virtual-location-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #28a745;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
  z-index: 1000;
}

.place-emoji-marker.virtual-location {
  position: relative;
}

/* Virtual place map marker styling */
.custom-place-marker.virtual-location {
  filter: drop-shadow(0 0 8px rgba(40, 167, 69, 0.6));
}

/* Alert styling for virtual location info */
.alert-info {
  background-color: #e7f3ff;
  border-color: #b3d7ff;
  color: #004085;
}

  .alert-info .alert-heading {
    color: #004085;
    margin-bottom: 0.5rem;
  }

  .alert-info i.bi-truck {
    color: #28a745;
  }

/* Wskaźnik wygasającej publikacji */
.expiring-soon-badge {
  animation: pulse-warning 2s infinite;
}

@keyframes pulse-warning {
  0%, 100% {
    opacity: 1;
  }

  50% {
    opacity: 0.6;
  }
}

.dropdown-item-text.text-warning {
  font-weight: 600;
}

.dropdown-item.text-warning:hover {
  background-color: #fff3cd;
}

.dropdown-item.text-primary:hover {
  background-color: #e7f1ff;
}

/* Market Region & Language Switcher Styles */
.market-region-language-switcher {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.market-region-language-switcher .btn-group {
  position: relative;
}

.market-region-language-switcher .dropdown-menu {
  min-width: 250px;
  max-height: 400px;
  overflow-y: auto;
}

.market-region-language-switcher .dropdown-header {
  font-weight: bold;
  padding: 0.5rem 1rem;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
}

.market-region-language-switcher .dropdown-item.active {
  background-color: var(--bs-primary);
  color: white;
}

.market-region-language-switcher .dropdown-item.active:hover {
  background-color: var(--bs-primary);
  opacity: 0.9;
}

/* Responsiveness for mobile */
@media (max-width: 768px) {
  .market-region-language-switcher {
    flex-direction: column;
    gap: 0.25rem;
  }
  
  .market-region-language-switcher .btn-group {
    width: 100%;
  }
  
  .market-region-language-switcher .btn {
    width: 100%;
    justify-content: space-between;
  }
}

/* ===========================
   ANCHOR NAVIGATION
   =========================== */
.quick-nav-section {
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.nav-anchor-link {
  color: #6c757d;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  transition: all 0.2s ease-in-out;
  font-size: 0.9rem;
  font-weight: 500;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-anchor-link:hover {
  color: var(--bs-primary);
  background-color: #f8f9fa;
  transform: translateY(-1px);
}

.nav-anchor-link i {
  font-size: 1rem;
}

/* ===========================
   TAG & CITY PAGES
   =========================== */
.tag-page .tag-icon-large,
.city-page .city-icon-large,
.tags-page .tags-icon-large,
.cities-page .cities-icon-large {
  display: inline-block;
  width: 80px;
  height: 80px;
  line-height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bs-primary) 0%, var(--bs-info) 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(var(--bs-primary-rgb), 0.3);
}

.tag-page .tag-stats .badge,
.city-page .city-stats .badge {
  font-size: 1rem;
  padding: 0.5rem 1rem;
}

.quick-tag-btn {
  transition: all 0.2s ease-in-out;
}

.quick-tag-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.discovery-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* Tags Cloud */
.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  padding: 2rem 0;
}

.tag-cloud-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  background: white;
  border: 2px solid var(--bs-primary);
  color: var(--bs-primary);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.tag-cloud-item:hover {
  background: var(--bs-primary);
  color: white;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(var(--bs-primary-rgb), 0.3);
}

@media (max-width: 768px) {
  .discovery-cards-grid {
    grid-template-columns: 1fr;
  }
  
  .nav-anchor-link {
    font-size: 0.8rem;
    padding: 0.375rem 0.75rem;
  }
  
  .tags-cloud {
    gap: 0.5rem;
  }
  
  .tag-cloud-item {
    font-size: 0.85rem !important;
    padding: 0.375rem 0.75rem;
  }
}




/* ===========================
   AUTO-LOAD INDICATOR
   =========================== */
.auto-load-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  background-color: #f8f9fa;
  border-radius: 0.375rem;
  animation: subtle-pulse 2s ease-in-out infinite;
}

@keyframes subtle-pulse {
  0%, 100% {
    opacity: 0.8;
  }
  50% {
    opacity: 1;
  }
}

.auto-load-indicator .spinner-border-sm {
  width: 1rem;
  height: 1rem;
}

.auto-load-indicator small {
  font-size: 0.875rem;
  color: #6c757d;
}
