/* ============================================
   ISOLATED JOURNAL THEME
   (International Scientific Journal of Contemporary Pedagogical and Philological Research)
   ============================================ */

/* Dark Mode (Default) - Deep Emerald Forest, Jade Sage & Royal Golden Ochre */
:root {
  --color-bg-deep: #061d17;
  --color-bg-primary: #0c2b23;
  --color-bg-secondary: #133d32;
  --color-bg-card: #1a5043;
  --color-bg-card-hover: #226353;
  
  --color-accent-primary: #d4af37; /* Royal Golden Ochre */
  --color-accent-secondary: #c59b27; /* Warm Gold */
  --color-accent-gold: #f3d069; /* Luminous Gold */
  --color-accent-cyan: #34d399; /* Emerald Mint */
  
  --gradient-primary: linear-gradient(135deg, #d4af37 0%, #10b981 100%);
  --gradient-hero: linear-gradient(160deg, #061d17 0%, #133d32 60%, #1f1b0a 100%);
}

[data-theme="light"] {
  --color-bg-deep: #f7faf8 !important;
  --color-bg-primary: #ffffff !important;
  --color-bg-secondary: #edf5f0 !important;
  --color-bg-card: #ffffff !important;
  --color-bg-card-hover: #f4faf6 !important;
  --color-accent-primary: #047857 !important; /* Deep Forest Emerald */
  --color-accent-gold: #b45309 !important;
  
  --color-text-primary: #062b22 !important;
  --color-text-secondary: #1e3f36 !important;
  --color-text-muted: #52756b !important;
  --color-text-dim: #8ba69e !important;
}

[data-theme="light"] body {
  background-color: var(--color-bg-deep) !important;
  background: linear-gradient(135deg, #f7faf8 0%, #edf5f0 100%) !important;
  color: var(--color-text-secondary) !important;
}

[data-theme="light"] .bg-pattern {
  display: none !important;
}

.journal-header__title span {
  color: var(--color-accent-primary, #d4af37) !important;
}

.journal-nav__link.active {
  color: var(--color-accent-primary, #d4af37) !important;
  background: rgba(212, 175, 55, 0.12) !important;
}

.btn--primary {
  background: var(--gradient-primary);
  color: #061d17;
  font-weight: 700;
  border: none;
}
.btn--primary:hover {
  background: linear-gradient(135deg, #f3d069 0%, #d4af37 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 18px rgba(212, 175, 55, 0.45);
}

a {
  color: var(--color-accent-primary);
}
a:hover {
  color: var(--color-accent-gold);
}

/* ============================================
   FONTS & GLASS
   ============================================ */
h1, h2, h3, h4, .section__title {
  font-family: 'Playfair Display', serif !important;
}

.journal-hero-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: 
    linear-gradient(45deg, rgba(212, 175, 55, 0.05) 2px, transparent 2px),
    linear-gradient(-45deg, rgba(52, 211, 153, 0.05) 2px, transparent 2px);
  background-size: 60px 60px;
  z-index: 1;
  opacity: 0.5;
}

/* Glassmorphism for cards */
.journal-card, .issue-card, .article-card {
  background: rgba(19, 61, 50, 0.7) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(212, 175, 55, 0.22) !important;
}

[data-theme="light"] .journal-card, 
[data-theme="light"] .issue-card, 
[data-theme="light"] .article-card {
  background: rgba(255, 255, 255, 0.9) !important;
  border: 1px solid rgba(4, 120, 87, 0.15) !important;
}

.journal-cover-display img:hover {
  transform: translateY(-10px) !important;
  box-shadow: 0 40px 80px rgba(0,0,0,0.8) !important;
}

.journal-hero h1, .journal-hero h2, .journal-hero h3, .journal-hero span {
  font-family: 'Playfair Display', serif !important;
}

/* Force navbar visibility */
.journal-header {
  position: sticky !important;
  top: 35px !important;
  z-index: 9999 !important;
  background: var(--color-bg-primary) !important;
  border-bottom: 2px solid var(--color-accent-primary) !important;
  padding: 15px 0 !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

[data-theme="light"] .journal-header {
  background: rgba(255, 255, 255, 0.98) !important;
  border-bottom: 2px solid var(--color-accent-primary) !important;
}

.journal-hero__badge {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: var(--color-accent-primary);
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 1px;
  backdrop-filter: blur(5px);
}

[data-theme="light"] .journal-hero__badge {
  background: rgba(4, 120, 87, 0.08);
  border: 1px solid rgba(4, 120, 87, 0.25);
  color: #047857;
}

.journal-cover-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 120%; height: 120%;
  background: radial-gradient(circle, rgba(212,175,55,0.3) 0%, rgba(52,211,153,0.15) 45%, rgba(0,0,0,0) 70%);
  filter: blur(40px);
  z-index: -1;
}

[data-theme="light"] .journal-cover-glow {
  background: radial-gradient(circle, rgba(4,120,87,0.15) 0%, rgba(212,175,55,0.1) 45%, rgba(255,255,255,0) 70%);
}

/* Theme Toggle Button */
.theme-toggle {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--color-accent-primary) !important;
  color: var(--color-accent-primary) !important;
  background: rgba(212, 175, 55, 0.1) !important;
  cursor: pointer;
  transition: all 0.3s ease;
}
.theme-toggle i {
  font-size: 1.2rem;
  color: var(--color-accent-primary) !important;
}

[data-theme="light"] .theme-toggle {
  border: 1px solid #047857 !important;
  background: #f7faf8 !important;
  color: #047857 !important;
}
[data-theme="light"] .theme-toggle i {
  color: #047857 !important;
}

/* Navbar in light mode */
[data-theme="light"] .journal-nav__link {
  color: #062b22 !important;
  font-weight: 500;
}
[data-theme="light"] .journal-nav__link:hover {
  color: #047857 !important;
}

[data-theme="light"] .journal-header__title {
  color: #062b22 !important;
}
[data-theme="light"] .journal-header__title span {
  color: #047857 !important;
}

[data-theme="light"] .return-btn {
  color: #062b22 !important;
  border-color: #047857 !important;
}
[data-theme="light"] .return-btn:hover {
  background: #047857 !important;
  color: #ffffff !important;
}

/* Ensure action buttons in hero are visible */
[data-theme="light"] .btn--primary {
  background: linear-gradient(135deg, #047857 0%, #065f46 100%) !important;
  color: #ffffff !important;
}
[data-theme="light"] .btn--primary:hover {
  background: linear-gradient(135deg, #065f46 0%, #022c22 100%) !important;
  color: #ffffff !important;
}

[data-theme="light"] .btn--outline {
  background: transparent !important;
  color: #047857 !important;
  border-color: #047857 !important;
}
[data-theme="light"] .btn--outline:hover {
  background: #047857 !important;
  color: #ffffff !important;
}

/* Fix Hero Elements Spacing */
.journal-hero {
  padding: 60px 0 40px !important;
  min-height: auto !important;
}

/* ============================================
   ARCHIVE & ISSUE VIEW STYLES
   ============================================ */
.archive-page .page-hero {
  padding: 35px 0 15px !important;
}

.archive-page .archive-controls {
  margin-bottom: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.issues-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 28px;
  margin-top: 25px;
}

.issue-card {
  background: var(--color-bg-card, #1a5043);
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  position: relative;
}

[data-theme="light"] .issue-card {
  background: #ffffff;
  border: 1px solid rgba(4, 120, 87, 0.15);
  box-shadow: 0 8px 25px rgba(4, 120, 87, 0.06);
}

.issue-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-accent-primary, #d4af37);
  box-shadow: 0 16px 36px rgba(212, 175, 55, 0.3);
}

[data-theme="light"] .issue-card:hover {
  box-shadow: 0 16px 36px rgba(4, 120, 87, 0.15);
}

.issue-card__cover-wrap {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.issue-card__cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.issue-card:hover .issue-card__cover {
  transform: scale(1.04);
}

.issue-card__badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #d4af37;
  color: #061d17;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.issue-card__body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.issue-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  font-family: var(--font-heading);
  margin-bottom: 8px;
  color: var(--color-text-primary, #ffffff);
  line-height: 1.35;
}

[data-theme="light"] .issue-card__title {
  color: #047857;
}

.issue-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--color-text-muted, #8ba69e);
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .issue-card__meta {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  color: #52756b;
}

/* Issue View Page Styles */
.issue-hero {
  padding: 35px 0 25px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  margin-bottom: 35px;
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.08) 0%, transparent 100%);
}

[data-theme="light"] .issue-hero {
  border-bottom: 1px solid rgba(4, 120, 87, 0.1);
  background: linear-gradient(180deg, rgba(4, 120, 87, 0.03) 0%, transparent 100%);
}

.issue-banner {
  background: linear-gradient(135deg, #0c2b23 0%, #1a5043 50%, #1f1b0a 100%);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 16px;
  padding: 32px 36px;
  color: #ffffff;
  margin-bottom: 35px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .issue-banner {
  background: linear-gradient(135deg, #047857 0%, #065f46 100%);
  border: 1px solid rgba(212, 175, 55, 0.4);
}

.issue-banner__title {
  font-size: 2.2rem;
  font-weight: 800;
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  color: #ffffff;
}

.issue-banner__sub {
  font-size: 1rem;
  opacity: 0.9;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.issue-overview {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 40px;
  margin-bottom: 45px;
  align-items: start;
}

@media (max-width: 860px) {
  .issue-overview {
    grid-template-columns: 1fr;
  }
  .issue-overview__cover {
    order: -1;
    max-width: 260px;
    margin: 0 auto;
  }
}

.issue-overview__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text-primary, #ffffff);
  margin-bottom: 14px;
}

[data-theme="light"] .issue-overview__title {
  color: #047857;
}

.issue-overview__desc {
  font-size: 0.96rem;
  line-height: 1.7;
  color: var(--color-text-secondary, #cbd5e1);
  margin-bottom: 24px;
}

[data-theme="light"] .issue-overview__desc {
  color: #1e3f36;
}

.issue-meta-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin-bottom: 24px;
}

.issue-meta-table td {
  padding: 8px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

[data-theme="light"] .issue-meta-table td {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.issue-meta-table td:first-child {
  font-weight: 600;
  color: var(--color-accent-primary, #d4af37);
  width: 180px;
}

.issue-meta-table td:last-child {
  color: var(--color-text-primary, #ffffff);
}

[data-theme="light"] .issue-meta-table td:last-child {
  color: #062b22;
}

.issue-full-box {
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 12px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 45px;
}

.issue-full-box__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text-primary, #ffffff);
  margin-bottom: 4px;
}

[data-theme="light"] .issue-full-box__title {
  color: #047857;
}

.issue-full-box__desc {
  font-size: 0.88rem;
  color: var(--color-text-muted, #8ba69e);
}

/* Article Cards in Issue View */
.issue-articles-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 25px;
  padding-bottom: 12px;
  border-bottom: 2px solid #d4af37;
}

.issue-articles-header h2 {
  font-size: 1.45rem;
  font-weight: 700;
  font-family: var(--font-heading);
  color: var(--color-text-primary, #ffffff);
  margin: 0;
}

[data-theme="light"] .issue-articles-header h2 {
  color: #047857;
}

.articles-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.issue-article-card {
  background: var(--color-bg-card, #1a5043);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 24px 28px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  position: relative;
}

[data-theme="light"] .issue-article-card {
  background: #ffffff;
  border: 1px solid rgba(4, 120, 87, 0.12);
  box-shadow: 0 4px 18px rgba(4, 120, 87, 0.05);
}

.issue-article-card:hover {
  border-color: #d4af37;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.25);
}

[data-theme="light"] .issue-article-card:hover {
  box-shadow: 0 8px 24px rgba(4, 120, 87, 0.12);
}

.issue-article-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 10px;
}

.issue-article-card__authors {
  font-size: 0.95rem;
  font-weight: 600;
  color: #d4af37;
}

[data-theme="light"] .issue-article-card__authors {
  color: #047857;
}

.issue-article-card__pages {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--color-text-secondary, #cbd5e1);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 6px;
}

[data-theme="light"] .issue-article-card__pages {
  background: #edf5f0;
  border-color: #d9ebd0;
  color: #2b574a;
}

.issue-article-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 12px;
}

.issue-article-card__title a {
  color: var(--color-text-primary, #ffffff);
  text-decoration: none;
  transition: color 0.2s ease;
}

[data-theme="light"] .issue-article-card__title a {
  color: #062b22;
}

.issue-article-card__title a:hover {
  color: #d4af37;
}

.issue-article-card__doi {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: #d4af37;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 6px;
  text-decoration: none;
  margin-bottom: 16px;
  transition: all 0.2s ease;
}

[data-theme="light"] .issue-article-card__doi {
  background: #fefce8;
  border-color: #fef08a;
  color: #854d0e;
}

.issue-article-card__doi:hover {
  background: rgba(212, 175, 55, 0.25);
}

.issue-article-card__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

[data-theme="light"] .issue-article-card__bottom {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.issue-article-card__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
