/* =========================
   ROOT
========================= */
:root {
  --bg: #0b0b0b;
  --bg-soft: #101010;
  --card: rgba(20, 20, 20, 0.72);
  --card-solid: #141414;
  --card-border: rgba(255, 255, 255, 0.08);
  --primary: #ffcc00;
  --accent: #ff6b00;
  --text: #ffffff;
  --muted: #a7a7a7;
  --muted-2: #d2d2d2;
  --shadow-lg: 0 24px 80px rgba(0, 0, 0, 0.38);
  --shadow-md: 0 16px 40px rgba(0, 0, 0, 0.24);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --transition: 0.35s ease;
}

/* =========================
   LIGHT THEME
========================= */
html[data-theme="light"] {
  --bg: #f6f3eb;
  --bg-soft: #ffffff;
  --card: rgba(255, 255, 255, 0.86);
  --card-solid: #ffffff;
  --card-border: rgba(0, 0, 0, 0.08);
  --text: #101010;
  --muted: #5c5c5c;
  --muted-2: #3f3f3f;
  --shadow-lg: 0 24px 80px rgba(0, 0, 0, 0.12);
  --shadow-md: 0 16px 40px rgba(0, 0, 0, 0.1);
}

/* =========================
   RESET
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', sans-serif;
  background:
    radial-gradient(circle at top, rgba(255, 204, 0, 0.04), transparent 18%),
    linear-gradient(180deg, #0b0b0b 0%, #080808 100%);
  color: var(--text);
  transition: background 0.8s ease, color 0.6s ease;
  position: relative;
  line-height: 1.5;
}

html[data-theme="light"] body {
  background:
    radial-gradient(circle at top, rgba(255, 204, 0, 0.06), transparent 20%),
    linear-gradient(180deg, #faf7f0 0%, #f1ece3 100%);
}

/* subtle global atmosphere */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.22;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.05), transparent 18%),
    radial-gradient(circle at 82% 12%, rgba(255, 204, 0, 0.05), transparent 20%),
    radial-gradient(circle at 50% 100%, rgba(255, 107, 0, 0.035), transparent 22%);
}

html[data-theme="light"] body::after {
  opacity: 0.3;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.5), transparent 18%),
    radial-gradient(circle at 82% 12%, rgba(255, 204, 0, 0.08), transparent 20%),
    radial-gradient(circle at 50% 100%, rgba(255, 107, 0, 0.04), transparent 22%);
}

/* =========================
   TYPOGRAPHY
========================= */
h1, h2, h3, h4 {
  letter-spacing: -0.03em;
}

h1, h2, h3, h4, .logo a {
  font-family: 'Inter', sans-serif;
}

p {
  color: var(--muted);
}

/* =========================
   HEADER (GLASS PREMIUM)
========================= */
header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  padding: 18px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.14);
}

html[data-theme="light"] header {
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: white;
  font-weight: 800;
  letter-spacing: 0.04em;
  font-size: 1.08rem;
  transition: transform var(--transition), opacity var(--transition);
}

html[data-theme="light"] .logo a {
  color: var(--text);
}

.logo a:hover {
  transform: translateY(-1px);
  opacity: 0.96;
}

header nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

header a {
  color: white;
  text-decoration: none;
  margin-left: 20px;
  position: relative;
  font-weight: 500;
  transition: color var(--transition), opacity var(--transition);
}

html[data-theme="light"] header a {
  color: var(--text);
}

header nav a {
  padding: 6px 0;
}

header a:hover {
  color: var(--primary);
}

header a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width var(--transition);
}

header a:hover::after {
  width: 100%;
}

header nav a.active {
  color: var(--primary);
}

header nav a.active::after {
  width: 100%;
}

/* =========================
   HEADER EXTRAS
========================= */
.header-container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.social-icons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-left: 0;
  border-radius: 999px;
  color: white;
  text-decoration: none;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  opacity: 0.82;
  transition:
    transform var(--transition),
    opacity var(--transition),
    border-color var(--transition),
    background var(--transition),
    color var(--transition),
    box-shadow var(--transition);
}

html[data-theme="light"] .social-icons a {
  color: var(--text);
  background: rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.08);
}

.social-icons a::after {
  display: none;
}

.social-icons a:hover {
  opacity: 1;
  color: var(--primary);
  background: rgba(255,204,0,0.08);
  border-color: rgba(255,204,0,0.26);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.16);
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.lang-btn,
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  color: white;
  opacity: 0.82;
  transition:
    transform var(--transition),
    opacity var(--transition),
    border-color var(--transition),
    background var(--transition),
    box-shadow var(--transition),
    color var(--transition);
}

html[data-theme="light"] .lang-btn,
html[data-theme="light"] .theme-toggle {
  color: var(--text);
  background: rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.08);
}

.lang-btn:hover,
.theme-toggle:hover {
  opacity: 1;
  transform: translateY(-2px);
  background: rgba(255,204,0,0.08);
  border-color: rgba(255,204,0,0.26);
  box-shadow: 0 10px 24px rgba(0,0,0,0.16);
}

html[lang="en"] .lang-btn[data-lang="en"],
html[lang="el"] .lang-btn[data-lang="el"] {
  opacity: 1;
  background: rgba(255,204,0,0.12);
  border-color: rgba(255,204,0,0.34);
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
}

/* =========================
   HERO (CINEMATIC)
========================= */
.hero {
  height: 100vh;
  width: 100vw;
  left: 50%;
  margin-left: -50vw;
  background: url("/assets/images/hero.jpg") center/cover no-repeat fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  from { transform: scale(1); }
  to { transform: scale(1.05); }
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.86)),
    radial-gradient(circle at center, rgba(255, 204, 0, 0.05), transparent 45%);
}

.hero .overlay {
  position: relative;
  z-index: 1;
  max-width: 860px;
  padding: 0 20px;
  animation: heroContentFade 1.2s ease both;
}

@keyframes heroContentFade {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h1 {
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  line-height: 1.04;
  background: linear-gradient(45deg, #ffffff, #ffcc00 65%, #ffd76a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 30px rgba(255, 204, 0, 0.08);
}

.hero p {
  margin-top: 14px;
  color: #d0d0d0;
  font-size: 1.05rem;
}

html[data-theme="light"] .hero p {
  color: #ececec;
}

/* =========================
   BUTTON
========================= */
.btn {
  display: inline-block;
  margin-top: 26px;
  padding: 13px 30px;
  background: linear-gradient(45deg, #ffcc00, #ff6b00);
  color: black;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 30px rgba(255, 204, 0, 0.16);
  transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
}

.btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 16px 38px rgba(255, 204, 0, 0.24);
  filter: saturate(1.05);
}

/* =========================
   SECTIONS
========================= */
.container {
  max-width: 1200px;
  margin: auto;
  padding: 96px 20px;
  position: relative;
  z-index: 1;
}

/* =========================
   SEARCH BAR
========================= */
.search-wrap {
  display: flex;
  justify-content: center;
  margin: 12px auto 24px;
}

.search-input {
  width: 100%;
  max-width: 360px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  outline: none;
  font-size: 0.95rem;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

.search-input::placeholder {
  color: var(--muted);
}

.search-input:focus {
  border-color: rgba(255,204,0,0.3);
  background: rgba(255,255,255,0.06);
  box-shadow: 0 0 0 4px rgba(255,204,0,0.08);
}

html[data-theme="light"] .search-input {
  background: rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.1);
}

/* =========================
   CARDS
========================= */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 26px;
}

.card {
  background: linear-gradient(180deg, rgba(24, 24, 24, 0.86), rgba(13, 13, 13, 0.94));
  border: 1px solid var(--card-border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(10px);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

html[data-theme="light"] .card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(247, 243, 236, 0.98));
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255, 204, 0, 0.18);
}

.card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.5s ease;
}

.card:hover img {
  transform: scale(1.05);
  filter: brightness(1.03);
}

.card h3 {
  padding: 15px 15px 18px;
}

/* =========================
   BLOG PAGE PREMIUM
========================= */
.blog-page {
  min-height: 100vh;
}

.blog-hero {
  padding: 122px 20px 24px;
}

.featured-post {
  position: relative;
  display: block;
  max-width: 1200px;
  margin: 0 auto;
  border-radius: 28px;
  overflow: hidden;
  text-decoration: none;
  color: white;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.08);
  isolation: isolate;
}

.featured-post img {
  width: 100%;
  height: 540px;
  object-fit: cover;
  display: block;
  transition: transform 0.7s ease, filter 0.7s ease;
}

.featured-post:hover img {
  transform: scale(1.04);
  filter: brightness(1.02);
}

.featured-post::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to top,
      rgba(0, 0, 0, 0.88) 0%,
      rgba(0, 0, 0, 0.42) 44%,
      rgba(0, 0, 0, 0.08) 100%
    ),
    radial-gradient(circle at top right, rgba(255, 204, 0, 0.08), transparent 24%);
}

.featured-overlay {
  position: absolute;
  left: 30px;
  right: 30px;
  bottom: 30px;
  z-index: 2;
}

.featured-label {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: white;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.featured-overlay h1 {
  font-size: clamp(2.1rem, 4vw, 3.35rem);
  margin-bottom: 12px;
  line-height: 1.08;
}

.featured-overlay p {
  max-width: 720px;
  color: #dddddd;
  line-height: 1.7;
  font-size: 1rem;
}

.blog-intro {
  padding-top: 34px;
  padding-bottom: 22px;
  text-align: center;
}

.blog-intro h2 {
  margin-bottom: 12px;
  font-size: clamp(1.8rem, 3vw, 2.35rem);
}

.blog-intro p {
  max-width: 760px;
  margin: 0 auto;
  color: var(--muted);
  line-height: 1.8;
}

.blog-filters {
  margin-top: 12px;
  margin-bottom: 12px;
}

.blog-grid {
  margin-top: 24px;
  align-items: stretch;
}

.blog-post-card {
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.blog-post-link {
  display: block;
  color: inherit;
  text-decoration: none;
  height: 100%;
}

.blog-post-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.blog-card-content {
  padding: 18px 18px 22px;
}

.blog-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.blog-tag {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 204, 0, 0.1);
  border: 1px solid rgba(255, 204, 0, 0.2);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.blog-date {
  color: var(--muted);
  font-size: 12px;
}

.blog-post-card h3 {
  padding: 0;
  margin-bottom: 10px;
  line-height: 1.28;
  font-size: 1.25rem;
}

.blog-post-card p {
  color: var(--muted);
  line-height: 1.7;
}

/* =========================
   ABOUT PAGE
========================= */
.about-page {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #09090d 0%, #000000 100%);
}

html[data-theme="light"] .about-page {
  background: linear-gradient(180deg, #f6f0e4 0%, #efe8dc 100%);
}

/* richer stars */
.about-page::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.46;
  background:
    radial-gradient(circle at 10% 18%, rgba(255,255,255,0.96) 0.8px, transparent 1.6px),
    radial-gradient(circle at 22% 72%, rgba(255,255,255,0.76) 0.9px, transparent 1.7px),
    radial-gradient(circle at 34% 28%, rgba(255,255,255,0.88) 1px, transparent 1.7px),
    radial-gradient(circle at 48% 14%, rgba(255,255,255,0.78) 0.8px, transparent 1.6px),
    radial-gradient(circle at 58% 64%, rgba(255,255,255,0.92) 0.9px, transparent 1.6px),
    radial-gradient(circle at 69% 24%, rgba(255,255,255,0.72) 1px, transparent 1.7px),
    radial-gradient(circle at 78% 76%, rgba(255,255,255,0.88) 1px, transparent 1.7px),
    radial-gradient(circle at 88% 32%, rgba(255,255,255,0.76) 0.8px, transparent 1.6px),
    radial-gradient(circle at 92% 62%, rgba(255,255,255,0.72) 1px, transparent 1.7px),
    radial-gradient(circle at 15% 40%, rgba(255,255,255,0.66) 0.8px, transparent 1.5px),
    radial-gradient(circle at 30% 60%, rgba(255,255,255,0.64) 0.8px, transparent 1.5px),
    radial-gradient(circle at 42% 82%, rgba(255,255,255,0.62) 0.8px, transparent 1.5px),
    radial-gradient(circle at 63% 52%, rgba(255,255,255,0.64) 0.8px, transparent 1.5px),
    radial-gradient(circle at 70% 50%, rgba(255,255,255,0.66) 0.8px, transparent 1.5px),
    radial-gradient(circle at 85% 70%, rgba(255,255,255,0.64) 0.8px, transparent 1.5px),
    radial-gradient(circle at 76% 14%, rgba(255,255,255,0.60) 0.8px, transparent 1.5px),
    radial-gradient(circle at 8% 84%, rgba(255,255,255,0.58) 0.8px, transparent 1.5px),
    radial-gradient(circle at 18% 10%, rgba(255,255,255,0.52) 0.8px, transparent 1.4px),
    radial-gradient(circle at 52% 34%, rgba(255,255,255,0.50) 0.8px, transparent 1.4px),
    radial-gradient(circle at 74% 88%, rgba(255,255,255,0.48) 0.8px, transparent 1.4px);
  animation: starsTwinkle 7s ease-in-out infinite alternate;
}

.about-page::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.07), transparent 20%),
    radial-gradient(circle at 80% 30%, rgba(255, 204, 0, 0.09), transparent 24%),
    linear-gradient(180deg, rgba(255,255,255,0.02), transparent 35%);
  opacity: 0.85;
}

@keyframes starsTwinkle {
  0% {
    opacity: 0.30;
    transform: scale(1);
  }
  50% {
    opacity: 0.48;
    transform: scale(1.012);
  }
  100% {
    opacity: 0.38;
    transform: scale(1);
  }
}

.about-hero {
  padding-top: 126px;
  padding-bottom: 34px;
  position: relative;
  z-index: 1;
}

.about-hero-inner {
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-text {
  max-width: 880px;
  text-align: center;
}

.about-label {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  color: var(--primary);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 10px 24px rgba(0,0,0,0.16);
}

.about-text h1 {
  font-size: clamp(2.3rem, 4.5vw, 3.5rem);
  margin-bottom: 14px;
  line-height: 1.08;
}

.about-subtitle {
  font-size: 1.08rem;
  color: var(--primary);
  margin-bottom: 18px;
  letter-spacing: 0.01em;
}

.about-description {
  max-width: 760px;
  margin: 0 auto;
  color: #cccccc;
  line-height: 1.9;
}

html[data-theme="light"] .about-description {
  color: #494949;
}

.about-card {
  background: linear-gradient(180deg, rgba(18, 18, 18, 0.72), rgba(10, 10, 10, 0.84));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  padding: 34px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.24);
  backdrop-filter: blur(12px);
  position: relative;
  z-index: 2;
  overflow: hidden;
}

html[data-theme="light"] .about-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.8), rgba(248,244,237,0.92));
  border: 1px solid rgba(0,0,0,0.06);
}

.about-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(255, 204, 0, 0.08), transparent 22%),
    radial-gradient(circle at bottom left, rgba(255, 255, 255, 0.03), transparent 24%);
  pointer-events: none;
}

.about-card h2 {
  margin-bottom: 18px;
  font-size: 1.9rem;
  position: relative;
  z-index: 1;
}

.about-card p {
  color: #bebebe;
  line-height: 1.85;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

html[data-theme="light"] .about-card p {
  color: #5a5a5a;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 10px;
  position: relative;
  z-index: 3;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  text-decoration: none;
  color: white;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  position: relative;
  z-index: 5;
  pointer-events: auto;
  transition: transform var(--transition), background var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition);
}

html[data-theme="light"] .social-links a {
  color: var(--text);
  background: rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.08);
}

.social-links a:hover {
  background: rgba(255,204,0,0.14);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(255, 204, 0, 0.08);
}

.gear-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 12px;
  position: relative;
  z-index: 1;
}

.gear-item {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 18px;
  padding: 20px;
  transition: transform var(--transition), border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

html[data-theme="light"] .gear-item {
  background: rgba(0,0,0,0.02);
  border: 1px solid rgba(0,0,0,0.06);
}

.gear-item:hover {
  transform: translateY(-5px);
  border-color: rgba(255,204,0,0.22);
  background: rgba(255,255,255,0.05);
  box-shadow: 0 14px 30px rgba(0,0,0,0.16);
}

.gear-item h3 {
  margin-bottom: 10px;
  color: var(--text);
}

.gear-item p {
  margin: 0;
  color: var(--muted);
}

/* =========================
   GALLERY GRID
========================= */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 240px));
  justify-content: center;
  gap: 18px;
}

.gallery-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 300px;
  padding: 12px;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  background: rgba(255,255,255,0.03);
  box-shadow: 0 14px 28px rgba(0,0,0,0.16);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

html[data-theme="light"] .gallery-link {
  background: rgba(0,0,0,0.02);
}

.gallery-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px rgba(0,0,0,0.24);
  background: rgba(255,255,255,0.045);
}

.gallery-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.16), transparent 45%);
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}

.gallery-link:hover::after {
  opacity: 1;
}

.grid img {
  width: 100%;
  max-width: 100%;
  max-height: 340px;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 14px;
  filter: brightness(0.96);
  transition: transform 0.38s ease, filter 0.38s ease;
  cursor: pointer;
  background: rgba(255,255,255,0.02);
}

.grid img:hover {
  transform: scale(1.02);
  filter: brightness(1.04);
}

/* gallery hover titles */
.gallery-item {
  position: relative;
}

.gallery-caption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,0.54);
  color: white;
  font-size: 12px;
  text-align: center;
  letter-spacing: 0.02em;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--transition), transform var(--transition);
  pointer-events: none;
}

.gallery-item:hover .gallery-caption {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   GALLERY LIGHTBOX
========================= */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.32s ease, visibility 0.32s ease;
}

.lightbox.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lightbox-content-wrap {
  position: relative;
  width: min(1200px, 100%);
  max-height: 90vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  justify-items: center;
}

.lightbox img {
  width: auto;
  max-width: 92vw;
  max-height: 72vh;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 24px 70px rgba(0,0,0,0.45);
  transform: scale(0.96);
  transition: transform 0.32s ease;
  background: rgba(255,255,255,0.02);
}

.lightbox.show img {
  transform: scale(1);
}

.lightbox-info {
  width: min(900px, 100%);
  padding: 1rem 1.15rem;
  border-radius: 18px;
  background: rgba(18,18,18,0.72);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.22);
  color: #fff;
}

html[data-theme="light"] .lightbox-info {
  background: rgba(255,255,255,0.84);
  border: 1px solid rgba(0,0,0,0.08);
  color: #111;
}

.lightbox-title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.45rem;
}

.lightbox-description {
  font-size: 0.96rem;
  line-height: 1.65;
  color: var(--muted-2);
  margin-bottom: 0.75rem;
}

.lightbox-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.lightbox-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
  line-height: 1;
  color: white;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition:
    background var(--transition),
    transform var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
  z-index: 10020;
}

.lightbox-close:hover {
  background: rgba(255,204,0,0.12);
  border-color: rgba(255,204,0,0.24);
  transform: rotate(90deg) scale(1.05);
  box-shadow: 0 10px 24px rgba(0,0,0,0.18);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
  line-height: 1;
  color: white;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
  transition:
    background var(--transition),
    transform var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
  z-index: 10020;
}

.lightbox-nav:hover {
  transform: translateY(-50%) scale(1.08);
  background: rgba(255,204,0,0.14);
  border-color: rgba(255,204,0,0.28);
  box-shadow: 0 14px 34px rgba(0,0,0,0.24);
}

.lightbox-nav:active {
  transform: translateY(-50%) scale(0.96);
}

.lightbox-prev {
  left: 24px;
}

.lightbox-next {
  right: 24px;
}

.lightbox-nav:focus-visible,
.lightbox-close:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

html[data-theme="light"] .lightbox-close,
html[data-theme="light"] .lightbox-nav {
  color: #111;
  background: rgba(255,255,255,0.76);
  border: 1px solid rgba(0,0,0,0.08);
}

html[data-theme="light"] .lightbox-close:hover,
html[data-theme="light"] .lightbox-nav:hover {
  background: rgba(255,204,0,0.2);
  border-color: rgba(255,204,0,0.24);
}

/* =========================
   FILTER BUTTONS
========================= */
.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 22px;
}

.filters button {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  padding: 9px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

html[data-theme="light"] .filters button {
  color: var(--text);
  background: rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.08);
}

.filters button:hover {
  background: rgba(255, 204, 0, 0.14);
  border-color: rgba(255, 204, 0, 0.34);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(255, 204, 0, 0.08);
}

.filters button.active {
  background: var(--primary);
  color: black;
  border-color: var(--primary);
  box-shadow: 0 12px 28px rgba(255, 204, 0, 0.18);
}

/* =========================
   FADE IN
========================= */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s ease, transform 0.75s ease;
  will-change: opacity, transform;
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   SINGLE POST PAGE
========================= */
.post-page {
  min-height: 100vh;
  padding-top: 120px;
  padding-bottom: 60px;
  position: relative;
  background:
    radial-gradient(circle at top center, rgba(255, 204, 0, 0.08), transparent 22%),
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.04), transparent 18%),
    linear-gradient(180deg, #090909 0%, #050505 100%);
}

html[data-theme="light"] .post-page {
  background:
    radial-gradient(circle at top center, rgba(255, 204, 0, 0.08), transparent 22%),
    radial-gradient(circle at 20% 30%, rgba(0, 0, 0, 0.03), transparent 18%),
    linear-gradient(180deg, #faf7f0 0%, #f1ece3 100%);
}

.post-page::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 204, 0, 0.05), transparent 20%),
    radial-gradient(circle at 10% 80%, rgba(255, 255, 255, 0.025), transparent 18%);
  opacity: 0.9;
}

.post-article {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.post-hero {
  border-radius: 28px;
  overflow: hidden;
  margin-bottom: 26px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  border: 1px solid rgba(255,255,255,0.08);
}

.post-hero img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  display: block;
}

.post-container {
  max-width: 820px;
  margin: 0 auto;
  background: linear-gradient(180deg, rgba(18,18,18,0.82), rgba(10,10,10,0.92));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 28px;
  padding: 42px 34px;
  box-shadow: 0 24px 70px rgba(0,0,0,0.30);
  backdrop-filter: blur(14px);
}

html[data-theme="light"] .post-container {
  background: linear-gradient(180deg, rgba(255,255,255,0.86), rgba(248,244,237,0.95));
  border: 1px solid rgba(0,0,0,0.06);
}

.post-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.post-meta-left,
.post-meta-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.post-category {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255,204,0,0.12);
  border: 1px solid rgba(255,204,0,0.25);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.post-date,
.post-reading-time {
  font-size: 12px;
  color: var(--muted);
}

.copy-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.04);
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
  transition: transform var(--transition), border-color var(--transition), background var(--transition), color var(--transition);
}

html[data-theme="light"] .copy-link-btn {
  background: rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.08);
}

.copy-link-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255,204,0,0.26);
  background: rgba(255,204,0,0.08);
  color: var(--primary);
}

.post-title {
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1.1;
  margin-bottom: 14px;
}

.post-subtitle {
  color: var(--primary);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 22px;
}

.post-content {
  color: #d8d8d8;
  line-height: 1.9;
  font-size: 1.05rem;
}

html[data-theme="light"] .post-content {
  color: #3f3f3f;
}

.post-content p {
  color: #d0d0d0;
  margin-bottom: 16px;
}

html[data-theme="light"] .post-content p {
  color: #4d4d4d;
}

.post-content strong {
  color: white;
}

html[data-theme="light"] .post-content strong {
  color: #111111;
}

.post-content h2 {
  margin-top: 28px;
  margin-bottom: 10px;
  color: white;
}

.post-content h3 {
  margin-top: 22px;
  margin-bottom: 8px;
  color: white;
}

html[data-theme="light"] .post-content h2,
html[data-theme="light"] .post-content h3 {
  color: #111111;
}

.post-content img {
  width: 100%;
  border-radius: 18px;
  margin: 24px 0;
}

.post-content ul,
.post-content ol {
  margin: 0 0 22px 22px;
  color: #d0d0d0;
  line-height: 1.9;
}

html[data-theme="light"] .post-content ul,
html[data-theme="light"] .post-content ol {
  color: #4d4d4d;
}

.post-content blockquote {
  margin: 24px 0;
  padding: 18px 20px;
  border-left: 3px solid var(--primary);
  background: rgba(255,255,255,0.04);
  border-radius: 12px;
  color: #e2e2e2;
}

html[data-theme="light"] .post-content blockquote {
  background: rgba(0,0,0,0.03);
  color: #444;
}

.post-bottom-link {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.post-bottom-link a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.post-bottom-link a:hover {
  text-decoration: underline;
}

/* =========================
   FOOTER
========================= */
footer {
  text-align: center;
  padding: 42px 20px;
  background: rgba(0, 0, 0, 0.84);
  color: var(--muted);
  border-top: 1px solid rgba(255,255,255,0.06);
  position: relative;
  z-index: 2;
}

html[data-theme="light"] footer {
  background: rgba(255, 255, 255, 0.72);
  border-top: 1px solid rgba(0,0,0,0.06);
}

.footer-container {
  max-width: 1200px;
  margin: auto;
  position: relative;
  z-index: 3;
}

.footer-logo {
  margin-bottom: 10px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--text);
}

.footer-desc {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
  margin-bottom: 14px;
  position: relative;
  z-index: 4;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  text-decoration: none;
  color: white;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  position: relative;
  z-index: 5;
  pointer-events: auto;
  transition: transform var(--transition), background var(--transition), border-color var(--transition), color var(--transition);
}

html[data-theme="light"] .footer-social a {
  color: var(--text);
  background: rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.08);
}

.footer-social a:hover {
  transform: translateY(-2px);
  color: var(--primary);
  background: rgba(255,204,0,0.08);
  border-color: rgba(255,204,0,0.26);
}

.footer-copy {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* =========================
   BACK TO TOP
========================= */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(45deg, #ffcc00, #ff6b00);
  color: black;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(0,0,0,0.24);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition);
  z-index: 1200;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-2px);
}

/* =========================
   BODY-BASED THEME BACKGROUNDS
========================= */
body.theme-nature {
  background: radial-gradient(circle at top, #0b3d2e, #05060a);
}

body.theme-city {
  background: radial-gradient(circle at top, #1a1a2e, #05060a);
}

body.theme-landscape {
  background: radial-gradient(circle at top, #2e3b4e, #05060a);
}

body.theme-portrait {
  background: radial-gradient(circle at top, #3b1b2b, #05060a);
}

body.theme-street {
  background: radial-gradient(circle at top, #2b2b2b, #05060a);
}

body.theme-food {
  background: radial-gradient(circle at top, #3a2a10, #05060a);
}

body.theme-architecture {
  background: radial-gradient(circle at top, #1f2937, #05060a);
}

body.theme-fashion {
  background: radial-gradient(circle at top, #2a0f2f, #05060a);
}

body.theme-macro {
  background: radial-gradient(circle at top, #143a3a, #05060a);
}

body.theme-pet {
  background: radial-gradient(circle at top, #2a2a1a, #05060a);
}

body.theme-realestate {
  background: radial-gradient(circle at top, #111827, #05060a);
}

body.theme-others {
  background: radial-gradient(circle at top, #2b1f1f, #05060a);
}

/* =========================
   BLOG BACKGROUND THEMES
========================= */
body.blog-theme-travel {
  background: radial-gradient(circle at top, #10263b, #05060a);
}

body.blog-theme-tips {
  background: radial-gradient(circle at top, #3a2a10, #05060a);
}

body.blog-theme-city {
  background: radial-gradient(circle at top, #1a1a2e, #05060a);
}

body.blog-theme-photography {
  background: radial-gradient(circle at top, #2a143a, #05060a);
}

body.blog-theme-photography-tips {
  background: radial-gradient(circle at top, #18324a, #05060a);
}

body.blog-theme-gear {
  background: radial-gradient(circle at top, #2f2f37, #05060a);
}

body.blog-theme-stories {
  background: radial-gradient(circle at top, #2b1f1f, #05060a);
}

body.blog-theme-other {
  background: radial-gradient(circle at top, #111827, #05060a);
}

/* optional glow overlay */
body.theme-nature::before,
body.theme-city::before,
body.theme-landscape::before,
body.theme-portrait::before,
body.theme-street::before,
body.theme-food::before,
body.theme-architecture::before,
body.theme-fashion::before,
body.theme-macro::before,
body.theme-pet::before,
body.theme-realestate::before,
body.theme-others::before,
body.blog-theme-travel::before,
body.blog-theme-tips::before,
body.blog-theme-city::before,
body.blog-theme-photography::before,
body.blog-theme-photography-tips::before,
body.blog-theme-gear::before,
body.blog-theme-stories::before,
body.blog-theme-other::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.34;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.08), transparent 30%),
    radial-gradient(circle at 80% 30%, rgba(255,204,0,0.06), transparent 30%),
    radial-gradient(circle at 50% 110%, rgba(255,107,0,0.04), transparent 26%);
}

/* =========================
   SOCIAL LINKS CLICK FIX
========================= */
.about-page::before,
.about-page::after,
.about-card::before,
.gallery-link::after,
body::after {
  pointer-events: none;
}

.social-links a,
.footer-social a {
  pointer-events: auto;
}

.footer-social a i,
.social-links a i {
  pointer-events: none;
}

/* =========================
   MOBILE
========================= */
@media (max-width: 768px) {
  header {
    padding: 16px 20px;
    gap: 14px;
  }

  .header-container {
    flex-wrap: wrap;
    justify-content: space-between;
    row-gap: 10px;
  }

  .header-left {
    gap: 8px;
  }

  .logo a {
    font-size: 1rem;
  }

  .social-icons a,
  .lang-btn,
  .theme-toggle {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  header nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    width: 100%;
    order: 3;
  }

  header a {
    margin-left: 14px;
    font-size: 0.95rem;
  }

  .hero {
    background-attachment: scroll;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .hero p {
    font-size: 0.98rem;
  }

  .filters {
    gap: 6px;
  }

  .filters button {
    padding: 8px 13px;
    font-size: 12px;
  }

  .search-input {
    max-width: 100%;
  }

  .featured-post img {
    height: 340px;
  }

  .featured-overlay {
    left: 18px;
    right: 18px;
    bottom: 18px;
  }

  .featured-overlay h1 {
    font-size: 2rem;
  }

  .blog-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .about-text h1 {
    font-size: 2.2rem;
  }

  .about-card {
    padding: 24px;
  }

  .grid {
    grid-template-columns: repeat(2, minmax(145px, 1fr));
    justify-content: center;
    gap: 10px;
  }

  .gallery-link {
    min-height: 220px;
    padding: 10px;
  }

  .grid img {
    max-height: 240px;
  }

  .gallery-caption {
    left: 10px;
    right: 10px;
    bottom: 10px;
    font-size: 11px;
    padding: 7px 10px;
  }

  .post-page {
    padding-top: 105px;
  }

  .post-article {
    padding: 0 16px;
  }

  .post-container {
    padding: 26px 22px;
    border-radius: 22px;
  }

  .post-hero {
    border-radius: 22px;
    margin-bottom: 18px;
  }

  .post-hero img {
    max-height: 320px;
  }

  .post-content {
    font-size: 1rem;
  }

  .post-content p {
    line-height: 1.85;
  }

  .copy-link-btn {
    padding: 7px 10px;
    font-size: 12px;
  }

  .lightbox {
    padding: 18px;
  }

  .lightbox-content-wrap {
    gap: 0.8rem;
  }

  .lightbox img {
    max-height: 62vh;
  }

  .lightbox-info {
    padding: 0.9rem 1rem;
    border-radius: 16px;
  }

  .lightbox-title {
    font-size: 1.02rem;
  }

  .lightbox-description {
    font-size: 0.92rem;
  }

  .lightbox-close {
    width: 44px;
    height: 44px;
    font-size: 1.7rem;
    top: 16px;
    right: 16px;
  }

  .lightbox-nav {
    width: 46px;
    height: 46px;
    font-size: 1.45rem;
  }

  .lightbox-prev {
    left: 12px;
  }

  .lightbox-next {
    right: 12px;
  }

  .container {
    padding: 84px 16px;
  }

  .back-to-top {
    right: 16px;
    bottom: 16px;
    width: 42px;
    height: 42px;
  }
}
