/* ============================================================
   CSS Custom Properties
   ============================================================ */
:root {
  --navigation-button-border-hover: #000000;
  --navigation-button-background-hover: #000000;
  --navigation-text-hover: #f0f0f0;
  --orange: #FF5F0B;
  --blue: #35a4d8;
  --pill-shadow:
    0 1px 0 #ccc, 0 2px 0 #c9c9c9, 0 3px 0 #bbb,
    0 4px 0 #b9b9b9, 0 5px 0 #aaa, 0 6px 1px rgba(0,0,0,.1),
    0 0 5px rgba(0,0,0,.1), 0 1px 3px rgba(0,0,0,.3),
    0 3px 5px rgba(0,0,0,.2), 0 5px 10px rgba(0,0,0,.25),
    0 10px 10px rgba(0,0,0,.2), 0 20px 20px rgba(0,0,0,.15);
  --font-pixel: "Silkscreen", sans-serif;
  --font-body: "Pixelify Sans", sans-serif;
  --card-bg: rgba(255, 255, 255, 0.45);
  --card-shadow: 0 2px 12px rgba(0,0,0,0.1), 0 1px 4px rgba(0,0,0,0.06);
  --card-radius: 8px;
}

/* ============================================================
   Base
   ============================================================ */
body {
  background-color: #e8e0d8;
  background-image: radial-gradient(circle, #b8a898 1px, transparent 1px);
  background-size: 24px 24px;
  color: #383838;
  font-family: var(--font-body);
}
a { color: var(--orange); font-weight: bold; }
a:hover { color: var(--blue); }
h1 { font-family: var(--font-pixel); font-weight: 400; color: var(--orange); font-size: 1.5em !important; }
.attribution { display: none; }

/* ============================================================
   Cards
   ============================================================ */
.page {
  padding: 2em 5em 5em;
  background-color: var(--card-bg);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  font-size: 18px;
}
.post-preview, .post {
  background-color: var(--card-bg);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  padding: 2em 5em 5em;
  margin-bottom: 2em;
  font-size: 18px;
}
.post-preview img {
  max-height: 400px;
  width: auto;
  max-width: 100%;
  display: block;
  border-radius: 4px;
}

/* ============================================================
   Post typography
   ============================================================ */
.post-date-wrapper { color: #555; font-size: 0.85em; font-weight: normal; margin-bottom: 0.25em; }
.dt-published { font-family: var(--font-pixel); font-weight: 400; font-size: 0.85em; color: #555; }
.post-title {
  font-family: var(--font-pixel);
  font-weight: 500;
  color: var(--blue) !important;
  font-size: 2em !important;
  margin-top: 0.1em !important;
  margin-bottom: 0.2em !important;
  line-height: 1.2;
}
.post-title a { color: var(--blue) !important; font-size: 1em; }
.post-title:hover, .post-title:active { text-shadow: var(--pill-shadow); }

/* ============================================================
   Article break divider
   ============================================================ */
.article-break {
  padding: 1em 0;
  width: 2.5em !important;
  height: 0.5em !important;
  background: var(--orange) !important;
  border: 1px black solid !important;
  border-radius: 50%;
  margin: auto;
  display: inline-block;
  box-shadow: var(--pill-shadow);
  animation: pulse-glow 2s ease-in-out infinite;
}
.article-break:hover, .article-break:active { background: var(--blue) !important; }

@keyframes pulse-glow {
  0%, 100% { box-shadow: var(--pill-shadow), 0 0 8px 2px rgba(255, 95, 11, 0.4); }
  50% { box-shadow: var(--pill-shadow), 0 0 20px 8px rgba(255, 95, 11, 0.75), 0 0 40px 12px rgba(255, 95, 11, 0.35); }
}

/* ============================================================
   Site title
   ============================================================ */
.site-title {
  font-family: var(--font-pixel);
  font-weight: 500;
  color: var(--orange);
  font-size: 2.5em;
  text-shadow: var(--pill-shadow);
  animation: text-pulse-glow 2s ease-in-out infinite;
}
@keyframes text-pulse-glow {
  0%, 100% { text-shadow: var(--pill-shadow), 0 0 8px 2px rgba(255, 95, 11, 0.4); }
  50% { text-shadow: var(--pill-shadow), 0 0 20px rgba(255, 95, 11, 0.75), 0 0 40px rgba(255, 95, 11, 0.35); }
}
.site-title a:hover, .site-title:hover {
  animation: none;
  text-shadow: var(--pill-shadow), 0 0 20px rgba(53, 164, 216, 0.75), 0 0 40px rgba(53, 164, 216, 0.35);
  transition: text-shadow 0.3s ease;
}

/* ============================================================
   Desktop nav pills
   ============================================================ */
.site-header nav a {
  border: 1px solid var(--navigation-button-border);
  font-family: var(--font-pixel);
  font-weight: 500;
  color: var(--navigation-text);
  border-radius: 20px;
  padding: 0.5em 1em;
  font-size: 0.9em;
  background-color: white;
  transition: background-color 0.4s ease-in;
  box-shadow: var(--pill-shadow);
}
.site-header nav a:hover, .site-header nav a:active {
  border-color: var(--navigation-button-border-hover);
  background-color: var(--orange);
  color: var(--navigation-text-hover);
  box-shadow: var(--pill-shadow);
}

/* ============================================================
   Desktop dropdown nav
   ============================================================ */
.nav-dropdown { position: relative; display: inline !important; }
.nav-dropdown > a { cursor: pointer; }
.page-link.Travel { min-width: 90px; text-align: center; box-sizing: border-box; }

.dropdown-chevron {
  display: inline-block;
  transition: transform 0.2s ease;
  font-size: 0.8em;
  color: var(--orange);
}
.nav-dropdown:hover .dropdown-chevron,
.nav-dropdown.open .dropdown-chevron { transform: rotate(180deg); color: #f0f0f0; }

.nav-dropdown:hover > a,
.nav-dropdown.open > a {
  border-top: 1px solid #000 !important;
  border-left: 1px solid #000 !important;
  border-right: 1px solid #000 !important;
  border-bottom: none !important;
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  background-color: var(--orange) !important;
  color: #fff !important;
  position: relative;
  z-index: 101;
  box-shadow: none !important;
  padding-bottom: 14px !important;
  margin-bottom: -6px !important;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 100;
  list-style: none;
  margin: 0;
}
@media (min-width: 769px) { .nav-dropdown:hover .dropdown-menu { display: block; } }
.nav-dropdown.open .dropdown-menu { display: block; }

.nav-dropdown .dropdown-menu-inner {
  background: white;
  border-radius: 0 0 20px 20px;
  padding: 0;
  border: 1px solid #000 !important;
  border-top: none !important;
  box-shadow:
    0 4px 0 #b9b9b9, 0 5px 0 #aaa, 0 6px 1px rgba(0,0,0,.1),
    0 0 5px rgba(0,0,0,.1), 0 3px 5px rgba(0,0,0,.2),
    0 5px 10px rgba(0,0,0,.25), 0 10px 10px rgba(0,0,0,.2),
    0 20px 20px rgba(0,0,0,.15) !important;
}
.dropdown-menu li {
  display: block !important;
  border: none !important;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
.dropdown-menu li:last-child a { border-bottom-left-radius: 20px !important; border-bottom-right-radius: 20px !important; }
.dropdown-menu li + li { border-top: 1px solid rgba(255,255,255,0.1) !important; }
.dropdown-menu li a {
  display: block !important;
  padding: 0.5em 1em !important;
  text-align: center !important;
  font-family: var(--font-pixel) !important;
  font-size: 14px !important;
  color: #8c8c8c !important;
  text-decoration: none !important;
  border: none !important;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
  white-space: nowrap !important;
  transition: color 0.15s, background 0.15s;
}
.dropdown-menu li a:hover { color: var(--orange) !important; background: rgba(255, 95, 11, 0.08) !important; }

/* ============================================================
   Footer
   ============================================================ */
.footer-box {
  background-color: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: var(--card-radius);
  padding: 1.5em 2em;
  margin: 2em 0 1em;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.footer-links { display: flex; justify-content: center; gap: 2em; margin-bottom: 1em; flex-wrap: wrap; }
.footer-link {
  font-family: var(--font-pixel);
  font-size: 0.85em;
  font-weight: 500;
  color: var(--orange) !important;
  text-decoration: none;
  padding: 0.5em 1em;
  border: 1px solid rgba(255, 95, 11, 0.3);
  border-radius: 20px;
  background: white;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.footer-link:hover { background: var(--orange) !important; color: white !important; box-shadow: 0 4px 8px rgba(255, 95, 11, 0.3); }
.custom_footer { font-size: 1em; color: #888; margin: 0; }
.footer-section-title { font-family: var(--font-pixel); font-size: 0.75em; color: #888; text-transform: uppercase; letter-spacing: 0.05em; margin: 0 0 0.75em; }
.footer-social { display: flex; flex-wrap: wrap; gap: 0.75em; justify-content: center; margin-bottom: 1.25em; }
.footer-social-link { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; color: #888; transition: color 0.15s; }
.footer-social-link:hover { color: var(--orange); }
.footer-social-link svg { width: 20px; height: 20px; }

/* ============================================================
   Mobile - responsive visibility
   ============================================================ */
@media (max-width: 768px) {
  .page, .post, .post-preview { padding: 1.5em !important; }
  .site-title { font-size: 1.7em; }
  .post-preview img { max-height: 300px; }
  .desktop-nav { display: none !important; }
  .mobile-nav { display: block !important; }
}
@media (hover: none) {
  .desktop-nav { display: none !important; }
  .mobile-nav { display: block !important; }
}
@media (min-width: 769px) and (hover: hover) {
  .mobile-nav { display: none !important; }
  .desktop-nav { display: block; }
}

/* ============================================================
   Mobile - hamburger
   ============================================================ */
.mobile-nav { position: relative; text-align: center; padding: 0.5em 0; }
.hamburger {
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--orange);
  border-radius: 2px;
  transition: all 0.2s ease;
  transform-origin: center;
}
.hamburger.active span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

/* ============================================================
   Mobile - menu panel & pills
   ============================================================ */
.mobile-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: white;
  border: 1px solid rgb(228,228,228);
  border-radius: 20px;
  padding: 10px;
  min-width: 180px;
  z-index: 200;
  box-shadow: var(--pill-shadow);
}
.mobile-menu.open { display: block; }

.mobile-nav-link,
.mobile-accordion-trigger {
  display: block;
  width: 100%;
  padding: 9px 16px;
  margin: 4px 0;
  font-family: var(--font-pixel);
  font-size: 14px;
  line-height: 1;
  color: #8c8c8c;
  text-decoration: none;
  background: white;
  border: 1px solid rgb(228,228,228);
  border-radius: 20px;
  box-sizing: border-box;
  cursor: pointer;
  text-align: center;
  box-shadow: 0 1px 0 #ccc, 0 2px 0 #c9c9c9, 0 3px 0 #bbb, 0 4px 0 #b9b9b9, 0 5px 0 #aaa;
  transition: background-color 0.2s, color 0.2s;
}
.mobile-nav-link:hover,
.mobile-accordion-trigger:hover,
.mobile-accordion.open .mobile-accordion-trigger {
  background: var(--orange);
  color: white;
  border-color: #000;
  box-shadow: none;
  outline: none;
}
.mobile-chevron { display: inline-block; font-size: 0.8em; transition: transform 0.2s; }
.mobile-accordion.open .mobile-chevron { transform: rotate(180deg); }
.mobile-accordion-items { display: none; padding: 4px 0 0; }
.mobile-accordion.open .mobile-accordion-items { display: block; }
.mobile-accordion-items a {
  display: block;
  padding: 9px 16px;
  margin: 4px 0;
  font-family: var(--font-pixel);
  font-size: 14px;
  line-height: 1;
  color: #8c8c8c;
  text-decoration: none;
  background: white;
  border: 1px solid rgb(228,228,228);
  border-radius: 20px;
  text-align: center;
  box-sizing: border-box;
  box-shadow: 0 1px 0 #ccc, 0 2px 0 #c9c9c9, 0 3px 0 #bbb, 0 4px 0 #b9b9b9, 0 5px 0 #aaa;
  transition: background-color 0.2s, color 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.mobile-accordion-items a:hover { background: var(--orange); color: white; border-color: #000; box-shadow: none; }

@media (min-width: 769px) { .nav-dropdown:hover .dropdown-menu { display: block; } }
/* ============================================================
   Blogroll page
   ============================================================ */
.blogroll-intro {
  color: #555;
  font-size: 0.9em;
  margin-bottom: 2em;
}
.blogroll-category {
  margin-bottom: 2.5em;
}
.blogroll-category h2 {
  font-family: var(--font-pixel);
  font-size: 1em !important;
  color: var(--orange);
  margin-bottom: 0.75em;
  padding-bottom: 0.4em;
  border-bottom: 2px solid var(--orange);
}
.blogroll-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
}
.blogroll-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: white;
  border: 1px solid rgb(228,228,228);
  border-radius: 20px;
  padding: 5px 12px;
  box-shadow: 0 1px 0 #ccc, 0 2px 0 #c9c9c9, 0 3px 0 #bbb;
  transition: all 0.2s;
}
.blogroll-item:hover {
  border-color: #000;
  background: var(--orange);
}
.blogroll-item a {
  font-family: var(--font-pixel);
  font-size: 0.75em;
  color: #8c8c8c;
  text-decoration: none;
  font-weight: 500;
}
.blogroll-item:hover a {
  color: white;
}
.blogroll-rss {
  color: var(--orange);
  display: flex;
  align-items: center;
  opacity: 0.7;
}
.blogroll-item:hover .blogroll-rss {
  color: white;
  opacity: 0.9;
}
