/* ------------------------------------------------------
   Heroes' Retreat – Custom Styles
   (This file supplements Tailwind CDN utilities)
---------------------------------------------------------*/

/* --------- FONT IMPORTS --------- */
@import url("https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Inter:wght@300;400;500;600&display=swap");

/* --------- GLOBAL TYPOGRAPHY --------- */

body {
  font-family: "Inter", sans-serif;
}

h1, h2, h3, h4 {
  font-family: "Cinzel", serif;
  letter-spacing: 0.5px;
}

/* --------- SMOOTH SCROLL --------- */
html {
  scroll-behavior: smooth;
}

/* --------- SCROLLBAR STYLE --------- */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #050506;
}
::-webkit-scrollbar-thumb {
  background: #333338;
  border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
  background: #4b4b52;
}

/* --------- LINK ENHANCEMENTS --------- */
a {
  transition: color 0.25s ease, opacity 0.25s ease;
}
a:hover {
  opacity: 0.85;
}

/* --------- IMAGE POLISH --------- */
img {
  display: block;
  max-width: 100%;
}

/* --------- SECTION SPACING HELPERS --------- */
.section-pad {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

/* --------- CARD EFFECTS --------- */
.card {
  background: rgba(24, 24, 27, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 1rem;
  padding: 1.25rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.2);
}

/* --------- FANTASY GLOW EFFECTS --------- */

.glow-emerald {
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.4),
              0 0 20px rgba(16, 185, 129, 0.25);
}

.glow-amber {
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.4),
              0 0 20px rgba(245, 158, 11, 0.25);
}

/* --------- BUTTON POLISH --------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  border-radius: 9999px;
  padding: 0.6rem 1.4rem;
  transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: #10b981;
  color: #000;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}
.btn-primary:hover {
  background: #34d399;
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.5);
}

.btn-secondary {
  border: 1px solid rgba(245, 158, 11, 0.7);
  color: #fcd34d;
}
.btn-secondary:hover {
  background: rgba(245, 158, 11, 0.1);
}

/* ------------------------------------------------------
   DUNGEON BACKGROUNDS
---------------------------------------------------------*/

/* Subtle, non-blurry stone background */
.deep-stone-bg {

  background-color: #050506;

  /* dark overlay + texture in one */
  background-image:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.599),
      rgba(0, 0, 0, 0.718)
    ),
    url("/assets/img/dungeon-texture.jpg"); /* use your new softer texture name */

  /* tile instead of stretch */
  background-repeat: repeat;
  background-size: cover; /* adjust to taste, but no stretching */
  background-position: center;
}



/* Subtle internal stone texture layer (for cards/sections) */
.bg-dungeon {
  background-image: url("/assets/img/dungeon-texture.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.2;
  pointer-events: none;
}

/* Dark gradient overlay for hero images */
.overlay-dark {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.111),
    rgba(0, 0, 0, 0.159),
    rgba(9, 9, 11, 0.092)
  );
}

/* ------------------------------------------------------
   HEADER / NAV BAR ENHANCEMENTS
---------------------------------------------------------*/

/* Give the top header a slight rune-like glow and stone border */
.site-header {
  backdrop-filter: blur(10px);
  background: linear-gradient(
    to bottom,
    rgba(9, 9, 11, 0.96),
    rgba(9, 9, 11, 0.88)
  );
  border-bottom: 1px solid rgba(245, 158, 11, 0.45);
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 0.8),
    0 6px 20px rgba(15, 23, 42, 0.9);
}

/* Tiny rune-style markers under active nav links (use with .nav-link-active) */
.nav-link {
  position: relative;
}

.nav-link-active {
  color: #a3e635; /* lime-400-ish */
}

.nav-link-active::after {
  content: "ᚨ";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -0.55rem;
  font-size: 0.55rem;
  color: #fbbf24; /* amber-300 */
  text-shadow: 0 0 6px rgba(251, 191, 36, 0.9);
}

/* ------------------------------------------------------
   RUNE / BORDERED SECTION HEADERS
---------------------------------------------------------*/

/* Wrap heading blocks in .section-header for rune borders */
.section-header {
  position: relative;
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
}

.section-header::before,
.section-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 9999px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(52, 211, 153, 0.85),
    rgba(251, 191, 36, 0.85),
    transparent
  );
  opacity: 0.5;
}

.section-header::before {
  bottom: 0;
}

.section-header::after {
  bottom: -6px;
  filter: blur(3px);
  opacity: 0.35;
}

/* Subtle vertical runes on the sides for hero or major sections */
.rune-frame {
  position: relative;
}

.rune-frame::before,
.rune-frame::after {
  content: "";
  position: absolute;
  top: 10%;
  bottom: 10%;
  width: 2px;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(52, 211, 153, 0.0) 0,
      rgba(52, 211, 153, 0.4) 6px,
      rgba(52, 211, 153, 0.0) 12px
    );
  opacity: 0.4;
}

.rune-frame::before {
  left: -8px;
}
.rune-frame::after {
  right: -8px;
}

/* Stronger glow for primary hero headings */
.hero-title-glow {
  text-shadow:
    0 0 12px rgba(52, 211, 153, 0.65),
    0 0 30px rgba(163, 230, 53, 0.7);
}

/* Optional subtitle styling under main hero headings */
.hero-subtitle {
  font-size: 0.9rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(251, 191, 36, 0.8);
}

/* ------------------------------------------------------
   NEWS POST PROSE
---------------------------------------------------------*/

.prose-invert a {
  color: #34d399 !important;
  text-decoration: underline;
}
.prose-invert a:hover {
  color: #6ee7b7 !important;
}

/* ------------------------------------------------------
   FORMS
---------------------------------------------------------*/

input, textarea, select {
  outline: none !important;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(16, 185, 129, 0.7) !important;
  box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.4) !important;
}

/* ------------------------------------------------------
   ADMIN PANEL LIST ROWS
---------------------------------------------------------*/

.admin-list-row {
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 0.75rem 1rem;
  border-radius: 0.6rem;
  transition: background 0.2s ease;
}

.admin-list-row:hover {
  background: rgba(255, 255, 255, 0.03);
}

/* ------------------------------------------------------
   RESPONSIVE HELPERS
---------------------------------------------------------*/

@media (max-width: 640px) {
  .section-pad {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .rune-frame::before,
  .rune-frame::after {
    display: none; /* avoid weird overflow on small screens */
  }
}
