@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* --- CUSTOM PROPERTIES & THEME TOKENS --- */
:root {
  /* Fonts */
  --font-heading: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* HSL Palette - Light Mode (Minimalist Slate & Indigo) */
  --bg-primary: hsl(210, 40%, 98%);     
  --bg-secondary: hsl(0, 0%, 100%);  
  --bg-glass: rgba(255, 255, 255, 0.85);
  --border-glass: rgba(226, 232, 240, 0.8);
  --border-subtle: hsl(214, 32%, 91%);
  --text-primary: hsl(215, 25%, 15%);    
  --text-secondary: hsl(215, 16%, 37%);  
  --text-muted: hsl(215, 16%, 57%);
  
  --primary: hsl(220, 80%, 45%);     
  --primary-light: hsl(220, 85%, 55%);
  --primary-gradient: linear-gradient(135deg, hsl(220, 80%, 45%), hsl(220, 50%, 20%)); 
  
  --accent: hsl(220, 80%, 45%);
  --accent-light: hsl(220, 85%, 97%);
  --accent-text: hsl(220, 75%, 35%);
  
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
  --glass-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.03);
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] {
  /* HSL Palette - Dark Mode (Minimalist Slate & Indigo) */
  --bg-primary: hsl(222, 47%, 4%);       
  --bg-secondary: hsl(222, 47%, 7%);     
  --bg-glass: rgba(10, 15, 30, 0.8);
  --border-glass: rgba(255, 255, 255, 0.04);
  --border-subtle: hsl(222, 30%, 15%);
  --text-primary: hsl(210, 40%, 98%);    
  --text-secondary: hsl(215, 20%, 75%);  
  --text-muted: hsl(215, 16%, 50%);
  
  --primary: hsl(217, 91%, 60%);     
  --primary-light: hsl(217, 91%, 70%);
  --primary-gradient: linear-gradient(135deg, hsl(217, 91%, 60%), hsl(222, 47%, 15%)); 
  
  --accent: hsl(217, 91%, 60%);
  --accent-light: rgba(59, 130, 246, 0.1);
  --accent-text: hsl(217, 91%, 75%);
  
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
  --glass-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.2);
}

/* --- RESET & BASIC SETUP --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color var(--transition-normal), color var(--transition-normal);
  padding-bottom: 80px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--border-subtle);
  border-radius: var(--radius-sm);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* --- BACKGROUND GRAPHICS --- */
.bg-blobs {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.12;
  mix-blend-mode: multiply;
  animation: float-blob 20s infinite alternate ease-in-out;
}

[data-theme="dark"] .blob {
  opacity: 0.08;
}

.blob-1 {
  top: -10%;
  right: 10%;
  width: 450px;
  height: 450px;
  background-color: hsl(354, 76%, 45%); /* Merah Tridatu */
  animation-duration: 25s;
}

.blob-2 {
  bottom: 10%;
  left: -5%;
  width: 500px;
  height: 500px;
  background-color: hsl(0, 0%, 30%); /* Hitam/Putih Tridatu Blend */
  animation-delay: -5s;
  animation-duration: 28s;
}

@keyframes float-blob {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -60px) scale(1.1); }
  100% { transform: translate(-20px, 20px) scale(0.9); }
}

/* --- CONTAINER & GRID LAYOUT --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* --- NAVBAR STYLES --- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: none;
  transition: all var(--transition-normal);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  width: 100%;
}

/* Logo Brand Styling */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  transition: transform var(--transition-fast);
}

.nav-logo:hover {
  transform: scale(1.02);
}

.logo-icon-img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  transition: filter var(--transition-normal), transform var(--transition-fast);
}

[data-theme="dark"] .logo-icon-img {
  filter: invert(1) hue-rotate(180deg) brightness(1.2);
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: #fff;
  transition: color var(--transition-normal);
}

/* Middle Navigation Menu */
.nav-menu {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-link {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: color var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: #fff;
}

.nav-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

/* Theme Switcher Button */
.theme-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-sm);
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  color: #fff;
  transition: all var(--transition-fast);
}

.theme-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.theme-btn svg {
  width: 20px;
  height: 20px;
}

.sun-icon { display: block; }
.moon-icon { display: none; }

.sun-icon path, .moon-icon path {
  stroke-width: 2.2px;
}

.sun-icon, .moon-icon {
  color: #fff;
  transition: color var(--transition-normal);
}

[data-theme="dark"] .sun-icon { display: none; }
[data-theme="dark"] .moon-icon { display: block; }

/* Language Selector */
.lang-selector {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  color: #fff;
  font-family: var(--font-body);
  font-weight: 600;
  cursor: pointer;
  outline: none;
  font-size: 13px;
  transition: all var(--transition-fast);
}

.lang-selector option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.lang-selector:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Buying Button equivalent in Navbar */
.btn-buy {
  background-color: hsl(75, 95%, 58%);
  color: hsl(222, 47%, 4%);
  border: none;
  border-radius: 50px;
  padding: 10px 22px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.btn-buy:hover {
  background-color: hsl(75, 100%, 50%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(197, 248, 42, 0.4);
}

/* Sticky Scrolled Navbar State */
.navbar.scrolled {
  background-color: var(--bg-glass);
  border-bottom: 1px solid var(--border-glass);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  height: 70px;
}

.navbar.scrolled .nav-container {
  height: 70px;
}

.navbar.scrolled .nav-link {
  color: var(--text-secondary);
}

.navbar.scrolled .nav-link:hover, .navbar.scrolled .nav-link.active {
  color: var(--primary);
}

.navbar.scrolled .logo-text {
  color: var(--text-primary);
}

.navbar.scrolled .logo-icon {
  color: var(--primary);
}

.navbar.scrolled .theme-btn {
  color: var(--text-primary);
  border-color: var(--border-subtle);
}

.navbar.scrolled .theme-btn:hover {
  background: var(--bg-secondary);
  border-color: var(--text-muted);
}

.navbar.scrolled .sun-icon, .navbar.scrolled .moon-icon {
  color: var(--text-primary);
}

.navbar.scrolled .lang-selector {
  background: var(--bg-secondary);
  border-color: var(--border-subtle);
  color: var(--text-primary);
}

.navbar.scrolled .lang-selector:hover {
  border-color: var(--text-muted);
}

/* --- HERO SECTION --- */
.hero-bg-section {
  background-image: linear-gradient(to bottom, rgba(29, 140, 248, 0.4), rgba(255, 255, 255, 0) 160px), url('hero_sky_bg.png');
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: cover;
  color: #fff;
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .hero-bg-section {
  background-image: linear-gradient(to bottom, rgba(10, 15, 30, 0.85), rgba(10, 15, 30, 0.75)), url('hero_sky_bg.png');
}

.hero {
  padding: 80px 0 60px 0;
  text-align: center;
}

.hero-tag {
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: 0.08em;
}

.hero-title {
  font-size: 3.25rem;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 20px;
  font-weight: 800;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.hero-slogan {
  font-size: 1.35rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 800px;
  margin: 0 auto 36px auto;
  font-weight: 500;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
  line-height: 1.6;
}

.hero-ctas {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.hero-btn-demo {
  background-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  border-radius: 50px;
  padding: 14px 32px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.hero-btn-demo:hover {
  background-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.hero-btn-start {
  background-color: hsl(75, 95%, 58%);
  color: hsl(222, 47%, 4%);
  border: none;
  border-radius: 50px;
  padding: 14px 32px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  gap: 10px;
}

.hero-btn-start:hover {
  background-color: hsl(75, 100%, 50%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(197, 248, 42, 0.4);
}

.hero-btn-start .arrow-icon {
  background: hsl(222, 47%, 4%);
  color: hsl(75, 95%, 58%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero-btn-start .arrow-icon svg {
  width: 14px;
  height: 14px;
}

@media (max-width: 992px) {
  .nav-menu {
    display: none;
  }
}

@media (max-width: 768px) {
  .hero-title { font-size: 2.5rem; }
  .hero-slogan { font-size: 1.15rem; }
  .nav-container { padding: 0 16px; }
  .btn-buy { display: none; }
}

/* --- HERO JOURNAL SLIDER (3D Curved Arc Coverflow) --- */
.hero-slider-wrapper {
  position: relative;
  max-width: 1200px;
  margin: 48px auto 0 auto;
  padding: 0 60px;
  width: 100%;
}

.hero-slider-viewport {
  overflow: visible; /* Crucial for 3D perspective depth */
  width: 100%;
  perspective: 1200px;
  padding: 30px 0;
}

.hero-slider-track {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 420px; /* Accommodate curved cards height & translations */
  width: 100%;
  transform-style: preserve-3d;
}

.slider-placeholder-loader {
  width: 100%;
  padding: 80px 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
  font-weight: 500;
  text-align: center;
}

.slider-item {
  position: absolute;
  left: 50%;
  margin-left: -130px; /* Center card horizontally (260px / 2) */
  width: 260px;
  height: 370px;
  box-sizing: border-box;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), z-index 0.6s;
}

.slider-item-inner {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all var(--transition-normal);
  height: 100%;
  width: 100%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Light Mode Overrides for Slider Card Shadows on White Background */
[data-theme="light"] .slider-item-inner {
  box-shadow: 0 10px 30px rgba(13, 110, 253, 0.06);
}

.slider-item-inner:hover {
  transform: translateY(-6px);
  border-color: var(--primary-light);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.16);
}

[data-theme="light"] .slider-item-inner:hover {
  box-shadow: 0 20px 40px rgba(13, 110, 253, 0.12);
}

.slider-cover-wrapper {
  width: 100%;
  max-width: 180px;
  aspect-ratio: 3 / 4;
  margin-bottom: 20px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  position: relative;
}

.slider-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.slider-item-inner:hover .slider-cover-img {
  transform: scale(1.04);
}

.slider-cover-fallback {
  width: 100%;
  height: 100%;
  background: var(--primary-gradient);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 700;
  font-size: 32px;
  font-family: var(--font-heading);
  transition: transform var(--transition-normal);
}

.slider-item-inner:hover .slider-cover-fallback {
  transform: scale(1.04);
}

.slider-item-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 45px;
  margin-top: 8px;
}

/* Navigation Buttons */
.slider-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 101; /* Layer above rotated cards */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all var(--transition-fast);
  outline: none;
}

.slider-nav-btn:hover {
  background-color: rgba(255, 255, 255, 0.35);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-50%) scale(1.1);
  color: #fff;
}

.prev-btn {
  left: 20px;
}

.next-btn {
  right: 20px;
}

/* Dots indicator */
.slider-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 32px;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background-color: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all var(--transition-fast);
  padding: 0;
  outline: none;
}

.slider-dot:hover {
  background-color: rgba(255, 255, 255, 0.6);
}

.slider-dot.active {
  background-color: #fff;
  transform: scale(1.25);
  width: 24px;
  border-radius: 5px;
}

/* Social Proof Text Below Slider */
.slider-social-proof {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-top: 32px;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}


/* --- SEARCH & FILTERS SECTION --- */
.search-filter-box {
  background-color: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--glass-shadow), var(--shadow-md);
  margin-bottom: 48px;
  transition: all var(--transition-normal);
}

.search-wrapper {
  position: relative;
  width: 100%;
  margin-bottom: 20px;
}

.search-input {
  width: 100%;
  padding: 16px 20px 16px 52px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  outline: none;
  transition: all var(--transition-fast);
}

.search-input:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

.search-icon-svg {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  pointer-events: none;
}

.filter-tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.filter-label {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-secondary);
  margin-right: 8px;
}

.tag-btn {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 50px;
  padding: 6px 16px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.tag-btn:hover {
  background-color: var(--bg-primary);
  border-color: var(--text-muted);
}

.tag-btn.active {
  background: var(--primary-gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.results-meta {
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-muted);
  text-align: left;
}

/* --- JOURNALS GRID --- */
.journals-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 992px) {
  .journals-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
}

.journal-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: row; /* Split horizontal layout for minimalist academic design */
  gap: 24px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  position: relative;
  align-items: stretch;
}

.journal-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

/* Card Cover Thumbnail Area */
.journal-card-cover-area {
  flex-shrink: 0;
  width: 100%;
  max-width: 120px;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  position: relative;
}

.journal-logo-fallback {
  width: 100%;
  height: 100%;
  background: var(--primary-gradient);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 700;
  font-size: 24px;
  font-family: var(--font-heading);
  transition: transform var(--transition-normal);
}

.journal-card:hover .journal-logo-fallback {
  transform: scale(1.02);
}

.journal-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.journal-card:hover .journal-logo-img {
  transform: scale(1.02);
}

/* Card Content Area */
.journal-card-content-area {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.journal-card-header {
  margin-bottom: 12px;
}

.journal-badge-container {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 6px;
}

.journal-abbrev {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 0.05em;
  background-color: var(--accent-light);
  padding: 2px 8px;
  border-radius: 4px;
}

.journal-issn {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

.journal-title {
  font-size: 1.25rem;
  line-height: 1.35;
  color: var(--text-primary);
  font-weight: 600;
}

.journal-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

/* Card Footer Action Buttons */
.card-footer {
  display: flex;
  gap: 12px;
  margin-top: auto;
}

.btn {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  justify-content: center;
  align-items: center;
  outline: none;
}

.btn-secondary {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  flex: 1;
}

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

.btn-primary {
  background: var(--primary);
  border: none;
  color: white;
  flex: 1.2;
}

.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
}

/* --- NATIVE SCROLL ANIMATIONS (WITH PROGRESSIVE ENHANCEMENT) --- */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes fade-slide-in {
      from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
      }
      to {
        opacity: 1;
        transform: translateY(0) scale(1);
      }
    }

    .journal-card {
      animation: fade-slide-in auto linear backwards;
      animation-timeline: view();
      animation-range: entry 5% entry 30%;
    }
  }
}

/* --- STATE INDICATORS --- */
.state-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 0;
  text-align: center;
  grid-column: 1 / -1;
  background-color: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.state-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.state-desc {
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 400px;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--border-subtle);
  border-left-color: var(--primary-light);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

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

/* --- DIALOG MODAL STYLES --- */
.dialog-modal {
  border: none;
  background: transparent;
  padding: 0;
  margin: auto;
  outline: none;
  max-width: 600px;
  width: calc(100% - 32px);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
}

.dialog-modal::backdrop {
  background-color: rgba(10, 15, 30, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: backdrop-fade-in 0.3s forwards;
}

@keyframes backdrop-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.dialog-content {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 40px;
  position: relative;
  overflow-y: auto;
  max-height: 85vh;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
}

.dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  gap: 16px;
}

.dialog-title {
  font-size: 1.75rem;
  line-height: 1.25;
}

.close-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  transition: color var(--transition-fast);
  padding: 4px;
  border-radius: 50%;
}

.close-btn:hover {
  color: var(--text-primary);
  background-color: var(--bg-primary);
}

.close-btn svg {
  width: 24px;
  height: 24px;
}

.dialog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 14px;
}

.dialog-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
}

.dialog-meta-item strong {
  color: var(--text-primary);
  font-weight: 600;
}

.dialog-desc-body {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.dialog-desc-body h1, .dialog-desc-body h2, .dialog-desc-body h3 {
  color: var(--text-primary);
  margin: 20px 0 10px 0;
}

.dialog-desc-body p {
  margin-bottom: 12px;
}

.dialog-footer {
  display: flex;
  gap: 16px;
  margin-top: auto;
}

.dialog-footer .btn {
  padding: 12px 24px;
  font-size: 14px;
}

/* --- FOOTER AT BOTTOM --- */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 40px 0;
  margin-top: 80px;
  text-align: center;
  background-color: var(--bg-glass);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer-brand-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.footer-brand-container a:hover {
  opacity: 0.85;
}

.footer-logo-img {
  height: 64px;
  object-fit: contain;
  transition: filter var(--transition-normal);
}

[data-theme="dark"] .footer-logo-img {
  filter: invert(1) hue-rotate(180deg) brightness(1.2);
}

.footer-logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-info {
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.6;
}

.footer-copy {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
}

/* --- MOBILE RESPONSIVE ADAPTATIONS --- */
@media (max-width: 576px) {
  .journal-card {
    flex-direction: column !important;
    align-items: center;
    gap: 16px;
    text-align: center;
    padding: 20px;
  }
  
  .journal-card-cover-area {
    max-width: 100px;
  }
  
  .journal-badge-container {
    justify-content: center;
  }
  
  .card-footer {
    width: 100%;
  }
}
