/* Style Overhaul for ASINM Digital Magazine */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,900;1,400;1,700&display=swap');

:root {
  --navy-deep: #020813;
  --navy-900: #04122B;
  --navy-800: #071a3d;
  --navy-700: #0c2454;
  --gold: #d6b370;
  --gold-soft: #e8d4a3;
  --gold-glow: rgba(214, 179, 112, 0.3);
  --cream-bg: #ffffff;
  --cream-card: #ffffff;
  --ink: #04122B;
  --text-muted: #64748b;
  --transition-premium: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base resets & typography */
body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: #ffffff;
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.font-serif-editorial {
  font-family: 'Playfair Display', serif;
}

/* Glassmorphism */
.glass-header {
  background: rgba(4, 18, 43, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(214, 179, 112, 0.15);
  transition: all 0.3s ease;
}

.glass-card-dark {
  background: rgba(7, 26, 61, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(214, 179, 112, 0.12);
  box-shadow: 0 8px 32px 0 rgba(2, 8, 19, 0.2);
}

.glass-card-light {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(4, 18, 43, 0.05);
  box-shadow: 0 8px 32px 0 rgba(4, 18, 43, 0.04);
}

/* Bento Card Style */
.bento-card {
  background: white;
  border: 1px solid rgba(4, 18, 43, 0.06);
  transition: var(--transition-premium);
  position: relative;
  overflow: hidden;
}

.bento-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -15px rgba(4, 18, 43, 0.08), 
              0 0 0 1px var(--gold);
}

/* Primary Featured Widescreen Bento Card */
.bento-hero-overlay {
  background: linear-gradient(to top, rgba(2, 8, 19, 0.95) 0%, rgba(2, 8, 19, 0.4) 60%, transparent 100%);
}

/* Custom Reading Progress Bar */
.reading-progress-container {
  position: fixed;
  top: 80px;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(214, 179, 112, 0.08);
  z-index: 1000;
}

.reading-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-soft) 100%);
  box-shadow: 0 0 8px var(--gold-glow);
  transition: width 0.1s ease;
}

/* Interactive 3D Book Cover Widget */
.book-container {
  perspective: 1200px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 0;
}

.book {
  width: 180px;
  height: 250px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.2, 0.9, 0.3, 1);
  cursor: pointer;
}

.book-container:hover .book {
  transform: rotateY(-28deg) rotateX(8deg) translateZ(10px);
}

/* Book pages stack representation */
.book::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 10px;
  width: 172px;
  height: 246px;
  background: #f1ede4;
  border-radius: 0 3px 3px 0;
  box-shadow: 3px 3px 12px rgba(0,0,0,0.15);
  transform: translateZ(-2px);
  z-index: 1;
}

.book-cover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  transform-origin: left;
  background: var(--navy-900);
  border-radius: 2px 4px 4px 2px;
  box-shadow: inset 3px 0 10px rgba(0,0,0,0.5), 
              5px 5px 20px rgba(2,8,19,0.3);
  transform-style: preserve-3d;
}

/* Spine edge shadow */
.book-spine-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 14px;
  height: 100%;
  background: linear-gradient(90deg, rgba(0,0,0,0.4) 0%, rgba(255,255,255,0.06) 40%, rgba(0,0,0,0.2) 100%);
  z-index: 10;
  border-radius: 2px 0 0 2px;
}

/* Outlined Trending Numbers */
.trending-number-premium {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--gold);
  opacity: 0.65;
  transition: var(--transition-premium);
}

.group:hover .trending-number-premium {
  opacity: 1;
  color: var(--gold);
  transform: scale(1.05);
}

/* Custom premium buttons */
.btn-gold-premium {
  background: linear-gradient(135deg, var(--gold) 0%, #c09d57 100%);
  color: var(--navy-deep) !important;
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: var(--transition-premium);
  box-shadow: 0 4px 15px rgba(214, 179, 112, 0.25);
}

.btn-gold-premium:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(214, 179, 112, 0.4);
  background: linear-gradient(135deg, var(--gold-soft) 0%, var(--gold) 100%);
}

/* Article Page Layout adjustments */
.article-container-premium {
  background: white;
  border: 1px solid rgba(4, 18, 43, 0.05);
  box-shadow: 0 10px 40px rgba(4, 18, 43, 0.02);
}

.article-rich-text p {
  font-size: 1.15rem;
  line-height: 1.8;
  color: #1e293b;
  margin-bottom: 2rem;
  text-align: justify;
}

.article-rich-text h2, .article-rich-text h3 {
  font-family: 'Playfair Display', serif;
  color: var(--navy-900);
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
  font-weight: 700;
}

.article-rich-text h2 {
  font-size: 1.8rem;
}

.article-rich-text blockquote {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  line-height: 1.6;
  font-style: italic;
  color: var(--navy-700);
  border-left: 4px solid var(--gold);
  padding: 1.5rem 2rem;
  margin: 2.5rem 0;
  background: #faf8f5;
  border-radius: 0 8px 8px 0;
}

/* Glass Card for Forms */
.glass-form-card {
  background: rgba(7, 26, 61, 0.65);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(214, 179, 112, 0.2);
  box-shadow: 0 25px 50px -12px rgba(2, 8, 19, 0.5);
  border-radius: 24px;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--cream-bg);
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}
