@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,600;0,700;1,600&display=swap');

/* Custom premium scrollbar styling */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-sm);
  border: 2px solid var(--bg-primary);
  transition: var(--transition-smooth);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-color);
}


:root {
  /* Dark Mode Palette (Default) */
  --bg-primary: #0b0f19;
  --bg-secondary: #131a2b;
  --bg-card: rgba(20, 27, 45, 0.7);
  --bg-glass: rgba(15, 23, 42, 0.55);
  --border-color: rgba(255, 255, 255, 0.08);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent-color: #06b6d4;
  --accent-secondary: #10b981;
  --accent-gradient: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
  --glow-shadow: rgba(6, 182, 212, 0.15);
  
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  
  --transition-smooth: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --border-radius-lg: 16px;
  --border-radius-md: 12px;
  --border-radius-sm: 8px;
}

@media (prefers-color-scheme: light) {
  :root {
    /* Light Mode Palette Override */
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-card: rgba(241, 245, 249, 0.75);
    --bg-glass: rgba(255, 255, 255, 0.75);
    --border-color: rgba(148, 163, 184, 0.15);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --accent-color: #0891b2;
    --accent-secondary: #059669;
    --accent-gradient: linear-gradient(135deg, #0891b2 0%, #2563eb 100%);
    --glow-shadow: rgba(8, 145, 178, 0.1);
  }
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Background Gradients decoration */
body::before, body::after {
  content: '';
  position: absolute;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  filter: blur(150px);
  z-index: -1;
  opacity: 0.14;
  pointer-events: none;
  animation: bgDrift 20s ease-in-out infinite alternate;
}

body::before {
  top: 5%;
  left: 5%;
  background: var(--accent-color);
}

body::after {
  bottom: 10%;
  right: 5%;
  background: #3b82f6;
  animation-delay: -10s;
}

@keyframes bgDrift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(60px, 40px) scale(1.2); }
}

/* Top bar (Optional small accent strip) */
.accent-bar {
  height: 4px;
  background: var(--accent-gradient);
  width: 100%;
}

/* Layout wrap */
#wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 2.5rem;
  align-items: start;
}

/* Header & Sidebar Container */
#header {
  position: sticky;
  top: 2rem;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.2);
}

/* Avatar styling */
#header-links {
  margin-bottom: 1.5rem;
  position: relative;
}

#header-links img {
  border-radius: 35%;
  width: 140px;
  height: 140px;
  object-fit: cover;
  border: 3.5px solid transparent;
  background-image: var(--accent-gradient);
  background-clip: padding-box, border-box;
  background-origin: border-box;
  padding: 3px;
  box-shadow: 0 8px 24px var(--glow-shadow);
  transition: var(--transition-smooth);
  animation: breathingGlow 6s ease-in-out infinite;
}

#header-links img:hover {
  transform: rotate(3deg) scale(1.05);
  border-radius: 30%;
  box-shadow: 0 12px 30px var(--glow-shadow), 0 0 20px rgba(6, 182, 212, 0.4);
}

@keyframes breathingGlow {
  0%, 100% { filter: drop-shadow(0 0 4px rgba(6, 182, 212, 0.15)); }
  50% { filter: drop-shadow(0 0 12px rgba(6, 182, 212, 0.45)); }
}

/* Logo & Title */
#logo-text {
  font-family: var(--font-sans);
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 0.5rem;
}

#logo-text a {
  text-decoration: none;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Introduction block */
.intro-bio {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.intro-bio a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition-smooth);
}

.intro-bio a:hover {
  text-decoration: underline;
}

/* Socials & Badges */
.badge-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  width: 100%;
}

.badge {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  font-size: 0.75rem;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 500;
}

/* Quick Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  width: 100%;
}

.stat-item {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  padding: 0.75rem;
  border-radius: var(--border-radius-md);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.stat-item:hover {
  border-color: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.stat-item.active {
  border-color: var(--accent-color) !important;
  background: rgba(6, 182, 212, 0.04);
  box-shadow: 0 0 15px var(--glow-shadow) !important;
}

.stat-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: var(--transition-smooth);
}

.stat-item.active::after {
  width: 50%;
}

.stat-val {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent-color);
  display: block;
}

.stat-lbl {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Main Content Area */
#content-wrap {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Control Panel: Filters & Search */
.controls-card {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  box-shadow: 0 10px 25px -10px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.search-container {
  display: flex;
  align-items: center;
  position: relative;
}

.search-input {
  width: 100%;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.85rem 1.2rem 0.85rem 2.5rem;
  border-radius: var(--border-radius-md);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-smooth);
}

.search-input:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.15);
}

.search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  font-size: 1rem;
}

/* Year Filter Tags/Capsules */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  margin-top: 1rem;
}

.filter-tabs::-webkit-scrollbar {
  height: 4px;
}

.filter-tabs::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 2px;
}

.tab-btn {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.45rem 0.95rem;
  border-radius: 20px;
  cursor: pointer;
  transition: var(--transition-smooth);
  white-space: nowrap;
}

.tab-btn:hover {
  border-color: var(--text-secondary);
  color: var(--text-primary);
}

.tab-btn.active {
  background: var(--accent-gradient);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 4px 12px var(--glow-shadow);
}

/* Travel Grid */
.travels-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.year-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: opacity 0.3s ease;
}

.year-title {
  font-family: var(--font-sans);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
  position: relative;
}

.year-title::after {
  content: '';
  flex-grow: 1;
  height: 1px;
  background: var(--border-color);
}

/* Travel Grid Cards list */
.travel-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.25rem;
}

.travel-card-item {
  background: var(--bg-glass);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 1.25rem;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 140px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px -3px rgba(0, 0, 0, 0.05);
}

.travel-card-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: var(--transition-smooth);
}

.travel-card-item:hover {
  transform: translateY(-5px);
  border-color: rgba(6, 182, 212, 0.3);
  box-shadow: 0 12px 25px -5px rgba(0, 0, 0, 0.15), 0 0 15px var(--glow-shadow);
}

.travel-card-item:hover::before {
  opacity: 1;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.card-date {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-color);
  text-transform: uppercase;
  background: rgba(6, 182, 212, 0.1);
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
}

.card-icon {
  color: var(--text-muted);
  font-size: 1rem;
}

.card-body {
  margin-bottom: 1.25rem;
}

.card-description {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

.location-link {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition-smooth);
  display: block;
  line-height: 1.4;
}

.location-link:hover {
  color: var(--accent-color);
}

.card-footer {
  display: flex;
  justify-content: flex-end;
}

.gallery-btn {
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: var(--transition-smooth);
  border-bottom: 1px dashed var(--text-muted);
  padding-bottom: 2px;
}

.travel-card-item:hover .gallery-btn {
  color: var(--accent-color);
  border-bottom-color: var(--accent-color);
}

/* Empty search state */
.no-results {
  text-align: center;
  padding: 3rem;
  color: var(--text-secondary);
  font-size: 1.1rem;
  background: var(--bg-glass);
  border: 1px dashed var(--border-color);
  border-radius: var(--border-radius-lg);
  display: none;
}

/* Footer info */
.footer-note {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

/* Animations helper */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.4s ease forwards;
}

/* Responsive Overrides */
@media (max-width: 1024px) {
  #wrap {
    grid-template-columns: 280px 1fr;
    gap: 1.5rem;
    padding: 1.5rem 1rem;
  }
  #header {
    top: 1rem;
  }
}

@media (max-width: 768px) {
  #wrap {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1rem;
  }
  
  #header {
    position: relative;
    top: 0;
    padding: 1.5rem;
  }
  
  .badge-list {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
  }
  
  .stats {
    max-width: 400px;
  }
  
  .travel-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
}

/* Search keyboard shortcut layout styling */

.search-shortcut-hint {
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  padding: 0.15rem 0.45rem;
  border-radius: 5px;
  font-size: 0.72rem;
  color: var(--text-muted);
  pointer-events: none;
  font-weight: 700;
  transition: var(--transition-smooth);
}

.search-input:focus ~ .search-shortcut-hint {
  opacity: 0;
  transform: translateY(-50%) scale(0.85);
}

/* Stagger entrance animations */
@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.travel-card-item {
  animation: slideUpFade 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(var(--card-index, 0) * 22ms);
}

