@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@700&family=UnifrakturCook:wght@700&family=Playfair+Display:wght@700&display=swap');

.dragon-font { 
  font-family: 'Cinzel', serif; 
}
.glow { 
  text-shadow: 0 0 60px rgb(185 28 28); 
}

body {
  background-image: url('scales-bg.png');
  background-repeat: repeat;
  background-size: 380px;
  background-attachment: fixed;
  background-color: #0a0a0a;
}

/* Hover animations */
nav a {
  transition: all 0.3s ease;
}
nav a:hover {
  color: #ef4444;
  transform: scale(1.08);
  text-shadow: 0 0 20px rgb(185 28 28);
}

.dragon-logo {
  transition: all 0.4s ease;
}
.dragon-logo:hover {
  transform: scale(1.12) rotate(2deg);
  filter: brightness(1.3) drop-shadow(0 0 30px rgb(185 28 28));
}

/* === DRAGON ROAR CLICK EFFECT === */
#hero-logo {
  cursor: pointer;
}

#hero-logo.roaring {
  animation: roarShake 0.8s cubic-bezier(0.36,0,0.66,-0.56) both;
}

@keyframes roarShake {
  10%, 90% { transform: translate3d(-2px, 0, 0) scale(1.15); }
  20%, 80% { transform: translate3d(3px, 0, 0) scale(1.22); }
  30%, 50%, 70% { transform: translate3d(-5px, 0, 0) scale(1.28); }
  40%, 60% { transform: translate3d(5px, 0, 0) scale(1.32); }
}

#roar-text {
  opacity: 0;
  transform: scale(0.6) translateY(20px);
  transition: all 0.6s ease;
  pointer-events: none;
  text-shadow: 0 0 80px rgb(185 28 28);
}

#roar-text.show {
  opacity: 1;
  transform: scale(1) translateY(0);
}

body.roar-flash {
  animation: screenFlash 0.5s ease forwards;
}

@keyframes screenFlash {
  0% { background-color: #7f1d1d; }
  100% { background-color: transparent; }
}

.burn-text {
  position: relative;
  display: inline-block;
}
.burn-text::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent, #f59e0b, #ef4444, transparent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: burn 3s infinite alternate;
  opacity: 0.6;
}
@keyframes burn {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-3px) scale(1.03); }
}

/* === BLOOD MIST SCROLL REVEAL === */
.mist-section {
  position: relative;
  opacity: 0;
  transform: translateY(50px);
  transition: all 1.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.mist-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.mist-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(185, 28, 28, 0.18) 0%, transparent 65%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.8s ease;
  z-index: -1;
}

.mist-section.visible::before {
  opacity: 1;
}

/* === BURNING TEXT EFFECT - READABLE VERSION === */
.burn-text {
  color: #fcd34d;
  text-shadow: 
    -1px -1px 0 #000,
     1px -1px 0 #000,
    -1px  1px 0 #000,
     1px  1px 0 #000,   /* black outline for crispness */
    0 0 8px #fefce8,
    0 0 18px #f59e0b,
    0 0 30px #ef4444;
  animation: flame-flicker 2.8s infinite alternate ease-in-out;
}

@keyframes flame-flicker {
  0%   { text-shadow: 
          -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000,
          0 0 6px #fefce8, 0 0 14px #f59e0b, 0 0 24px #ef4444; }
  100% { text-shadow: 
          -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000,
          0 0 10px #fefce8, 0 0 22px #f59e0b, 0 0 38px #ef4444; }
}

/* === LIGHTBOX MODAL - FIXED (no cropping, no text bleed) === */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.98);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  padding: 30px;
  overflow: hidden;
}

#lightbox img {
  max-width: 92vw;
  max-height: 92vh;
  object-fit: contain;
  border: 6px solid #450a0a;
  box-shadow: 0 0 100px rgba(185, 28, 28, 0.7);
  border-radius: 12px;
}

#lightbox .close {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 52px;
  color: #ef4444;
  cursor: pointer;
  z-index: 100000;
  text-shadow: 0 0 30px #000;
  transition: transform 0.2s;
}

#lightbox .close:hover {
  transform: scale(1.2);
}

/* === BLOG IMAGE THUMBNAILS === */
.prose img {
  max-width: 512px;
  max-height: 512px;
  object-fit: contain;
  cursor: pointer;
  border: 2px solid #450a0a;
  border-radius: 8px;
  transition: transform 0.2s;
}

.prose img:hover {
  transform: scale(1.02);
}

/* Konami Transition Effect */
.epic-shake {
  animation: epic-shake 1.4s cubic-bezier(0.36,0,0.66,-0.56) both;
  will-change: transform;
}

@keyframes epic-shake {
  10%, 90% { transform: translate3d(-8px, 4px, 0) rotate(-1deg); }
  20%, 80% { transform: translate3d(8px, -4px, 0) rotate(1deg); }
  30%, 50%, 70% { transform: translate3d(-12px, 6px, 0) rotate(-2deg); }
  40%, 60% { transform: translate3d(12px, -6px, 0) rotate(2deg); }
}
}