/* ============================================
   ISOLATED JOURNAL THEME
   (Current Issues of Economics, Finance and Innovative Development)
   ============================================ */

/* Dark Mode (Default) - Burgundy, Deep Navy & Champagne Gold */
:root {
  --color-bg-deep: #09101d;
  --color-bg-primary: #0e182a;
  --color-bg-secondary: #142239;
  --color-bg-card: #182a46;
  --color-bg-card-hover: #223758;
  
  --color-accent-primary: #871c2b; /* Luxury Burgundy Wine Red */
  --color-accent-secondary: #a32435; /* Vivid Crimson */
  --color-accent-gold: #d4af37; /* Champagne Gold */
  --color-accent-bronze: #dfb15b;
  
  --gradient-primary: linear-gradient(135deg, #871c2b 0%, #c99738 100%);
  --gradient-hero: linear-gradient(160deg, #09101d 0%, #142239 60%, #300c14 100%);
  --gradient-maroon: linear-gradient(135deg, #58111a 0%, #871c2b 100%);
}

[data-theme="light"] {
  --color-bg-deep: #faf7f2 !important;
  --color-bg-primary: #ffffff !important;
  --color-bg-secondary: #f4efe6 !important;
  --color-bg-card: #ffffff !important;
  --color-bg-card-hover: #fdfbf7 !important;
  --color-accent-primary: #6b1420 !important;
  --color-accent-gold: #b3832b !important;
  
  --color-text-primary: #1a0f12 !important;
  --color-text-secondary: #3d2c30 !important;
  --color-text-muted: #6e5c61 !important;
  --color-text-dim: #9c8a8f !important;
}

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

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

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

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

.btn--primary {
  background: var(--gradient-primary);
  color: #fff;
  border: none;
}
.btn--primary:hover {
  background: linear-gradient(135deg, #a32435 0%, #dfb15b 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 18px rgba(135, 28, 43, 0.45);
}

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

/* ============================================
   RADICAL THEME ADDITIONS (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(135, 28, 43, 0.06) 2px, transparent 2px);
  background-size: 60px 60px;
  z-index: 1;
  opacity: 0.5;
}

/* Glassmorphism for cards */
.journal-card, .issue-card, .article-card {
  background: rgba(20, 34, 57, 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(107, 20, 32, 0.12) !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 {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* ============================================
   HEADER & LIGHT MODE FIXES
   ============================================ */
.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-gold) !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-gold) !important;
}

.journal-hero__badge {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(135, 28, 43, 0.2);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: var(--color-accent-gold);
  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(107, 20, 32, 0.08);
  border: 1px solid rgba(107, 20, 32, 0.25);
  color: #6b1420;
}

.journal-cover-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 120%; height: 120%;
  background: radial-gradient(circle, rgba(135,28,43,0.35) 0%, rgba(212,175,55,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(107,20,32,0.15) 0%, rgba(179,131,43,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-gold) !important;
  color: var(--color-accent-gold) !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-gold) !important;
}

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

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

[data-theme="light"] .journal-header__title {
  color: #1a0f12 !important;
}
[data-theme="light"] .journal-header__title span {
  color: #6b1420 !important;
}

[data-theme="light"] .return-btn {
  color: #1a0f12 !important;
  border-color: #6b1420 !important;
}
[data-theme="light"] .return-btn:hover {
  background: #6b1420 !important;
  color: #ffffff !important;
}

/* Ensure action buttons in hero are visible */
[data-theme="light"] .btn--primary {
  background: linear-gradient(135deg, #6b1420 0%, #9e1f30 100%) !important;
  color: #ffffff !important;
}
[data-theme="light"] .btn--primary:hover {
  background: linear-gradient(135deg, #871c2b 0%, #b3832b 100%) !important;
}

[data-theme="light"] .btn--outline {
  background: transparent !important;
  color: #6b1420 !important;
  border-color: #6b1420 !important;
}
[data-theme="light"] .btn--outline:hover {
  background: #6b1420 !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, #182a46);
  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(107, 20, 32, 0.12);
  box-shadow: 0 8px 25px rgba(107, 20, 32, 0.06);
}

.issue-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-accent-gold, #d4af37);
  box-shadow: 0 16px 36px rgba(135, 28, 43, 0.3);
}

[data-theme="light"] .issue-card:hover {
  box-shadow: 0 16px 36px rgba(107, 20, 32, 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: #871c2b;
  color: #ffffff;
  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);
  border: 1px solid #d4af37;
}

.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: #6b1420;
}

.issue-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--color-text-muted, #9c8a8f);
  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: #6e5c61;
}

/* 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(135, 28, 43, 0.08) 0%, transparent 100%);
}

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

.issue-banner {
  background: linear-gradient(135deg, #300c14 0%, #58111a 50%, #182a46 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, #6b1420 0%, #871c2b 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: #6b1420;
}

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

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

.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-gold, #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: #1a0f12;
}

.issue-full-box {
  background: rgba(135, 28, 43, 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: #6b1420;
}

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

/* 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 #871c2b;
}

.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: #6b1420;
}

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

.issue-article-card {
  background: var(--color-bg-card, #182a46);
  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(107, 20, 32, 0.1);
  box-shadow: 0 4px 18px rgba(107, 20, 32, 0.05);
}

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

[data-theme="light"] .issue-article-card:hover {
  box-shadow: 0 8px 24px rgba(107, 20, 32, 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: #b3832b;
}

.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, #d9ccd0);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 6px;
}

[data-theme="light"] .issue-article-card__pages {
  background: #f4efe6;
  border-color: #e5decb;
  color: #5c4a4f;
}

.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: #6b1420;
}

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

.issue-article-card__doi {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(135, 28, 43, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: #dfb15b;
  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: #fbf5e8;
  border-color: #f0ddae;
  color: #996819;
}

.issue-article-card__doi:hover {
  background: rgba(135, 28, 43, 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;
}
