/*
Theme Name: League Of Legend
Version: 1.0.0
Author: lol
Description: League Of Legend
*/

/* Beaufort for LoL - Regular */
@font-face {
  font-family: "Beaufort for LoL";
  src: url("../lol/assets/fonts/BeaufortForLoL-OTF/BeaufortforLOL-Regular.otf")
    format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Beaufort for LoL - Medium */
@font-face {
  font-family: "Beaufort for LoL";
  src: url("../lol/assets/fonts/BeaufortForLoL-OTF/BeaufortforLOL-Medium.otf")
    format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* Beaufort for LoL - Light */
@font-face {
  font-family: "Beaufort for LoL";
  src: url("../lol/assets/fonts/BeaufortForLoL-OTF/BeaufortforLOL-Light.otf")
    format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

/* Beaufort for LoL - Bold */
@font-face {
  font-family: "Beaufort for LoL";
  src: url("../lol/assets/fonts/BeaufortForLoL-OTF/BeaufortforLOL-Bold.otf")
    format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Beaufort for LoL - Heavy */
@font-face {
  font-family: "Beaufort for LoL";
  src: url("../lol/assets/fonts/BeaufortForLoL-OTF/BeaufortforLOL-Heavy.otf")
    format("opentype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* Beaufort Italic */
@font-face {
  font-family: "Beaufort for LoL";
  src: url("../lol/assets/fonts/BeaufortForLoL-OTF/BeaufortforLOL-Italic.otf")
    format("opentype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* Medium Italic */
@font-face {
  font-family: "Beaufort for LoL";
  src: url("../lol/assets/fonts/BeaufortForLoL-OTF/BeaufortforLOL-MediumItalic.otf")
    format("opentype");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

/* Light Italic */
@font-face {
  font-family: "Beaufort for LoL";
  src: url("../lol/assets/fonts/BeaufortForLoL-OTF/BeaufortforLOL-LightItalic.otf")
    format("opentype");
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

/* Bold Italic */
@font-face {
  font-family: "Beaufort for LoL";
  src: url("../lol/assets/fonts/BeaufortForLoL-OTF/BeaufortforLOL-BoldItalic.otf")
    format("opentype");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

/* Heavy Italic */
@font-face {
  font-family: "Beaufort for LoL";
  src: url("../lol/assets/fonts/BeaufortForLoL-OTF/BeaufortforLOL-HeavyItalic.otf")
    format("opentype");
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}

body {
  font-family: "Beaufort for LoL", system-ui, sans-serif;
}

/* Link top menu kiểu Riot */
.lol-nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding-bottom: 4px; /* khoảng cách text - vệt sáng */

  font-family: "Beaufort for LoL", serif;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 15px;
  font-weight: 700;

  color: #c8bb8e;
  text-decoration: none;
}

/* vệt sáng bên dưới */
.lol-nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0%;
  height: 2px;

  background: radial-gradient(
    ellipse,
    rgba(255, 232, 150, 0.9) 0%,
    rgba(255, 232, 150, 0.25) 60%,
    rgba(255, 232, 150, 0) 100%
  );

  transform: translateX(-50%);
  opacity: 0;
  transition: width 0.3s ease, opacity 0.3s ease;
}

/* Hover: đổi màu + hiện vệt sáng */
.lol-nav-link:hover {
  color: #f0e5d2;
}

.lol-nav-link:hover::after {
  width: 120%;
  opacity: 1;
}

#mobile-search,
#header-search {
  box-shadow: none;
}

/* =============================
   RELATED POST CARD – LOL STYLE
   ============================= */
.related-post-card {
  position: relative;
  border: 1px solid #8d7738; /* viền vàng ánh nâu trong LoL */
  overflow: hidden;
  transition: border-color 0.25s ease;
  cursor: pointer;
}

.related-post-card a {
  display: block;
  color: inherit;
  text-decoration: none;
}

/* Thumbnail */
.related-post-card .rp-thumb img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

/* Content */
.related-post-card .rp-content {
  padding: 12px 14px;
}

.related-post-card .rp-title {
  font-size: 20px;
  font-weight: bold;
  color: #e9e2c5;
  font-family: "BeaufortforLOL-Regular", serif;
}

.related-post-card .rp-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #cab88f;
  font-size: 15px;
}

.related-post-card .rp-meta img.rp-icon {
  width: 20px;
  height: 20px;
}

/* =============================
   BORDER HOVER GLOW EFFECT
   ============================= */

/* Viền sáng khi hover */
.related-post-card:hover {
  border-color: #e7d9a3;
}

/* Hiệu ứng ánh sáng chạy ngang */
.related-post-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 120%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 240, 180, 0.35) 50%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.25s ease;
}

.related-post-card:hover::after {
  animation: lol-glow-sweep 0.9s ease-out forwards;
  opacity: 1;
}

@keyframes lol-glow-sweep {
  0% {
    left: -120%;
    opacity: 0;
  }
  40% {
    opacity: 0.8;
  }
  100% {
    left: 120%;
    opacity: 0;
  }
}

#comments .children {
  margin-left: 2rem;
}

#reply-title {
  color: #c8bb8e;
}

#comments h3 {
  color: #c8bb8e;
}

#comments #submit {
  border-color: #775a27;
}

article.content figure {
  position: relative;
  margin: 2rem auto;
  text-align: center;
  max-width: 100%;
}

article.content figure img {
  display: block;
  width: 100%;
  height: auto;

  /* Hiệu ứng glow lấp lánh */
  box-shadow: 0 0 12px rgba(255, 220, 120, 0.25),
    0 0 24px rgba(255, 200, 90, 0.2), inset 0 0 20px rgba(255, 220, 120, 0.08);

  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

article.content figure img:hover {
  box-shadow: 0 0 18px rgba(255, 230, 150, 0.35),
    0 0 32px rgba(255, 220, 120, 0.28), inset 0 0 25px rgba(255, 230, 150, 0.12);
  transform: scale(1.01);
}

article.content figure figcaption {
  margin-top: 0.75rem;
  font-style: italic;
  font-size: 0.95rem;
  text-align: center;
  color: #c8bb8e; /* vàng nhạt Riot */
  opacity: 0.9;
}

@media (min-width: 1024px) {
  article.content figure {
    max-width: 85%;
  }
}

footer {
  position: relative;
  z-index: 1;
  background: #0b0c0f;
}

footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("./assets/imgs/footer-bg.webp");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.3;
  z-index: -1;
}

.lol-glow-border {
  position: relative;
  overflow: hidden;
}

.lol-glow-border::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;

  /* Hiệu ứng ánh sáng vàng kim */
  background: linear-gradient(
    120deg,
    rgba(255, 215, 128, 0) 0%,
    rgba(255, 215, 128, 0.5) 20%,
    rgba(255, 230, 150, 1) 50%,
    rgba(255, 215, 128, 0.5) 80%,
    rgba(255, 215, 128, 0) 100%
  );
  background-size: 300% 300%;
  animation: gold-shimmer 3s ease-in-out infinite;

  /* QUAN TRỌNG – để không block click */
  pointer-events: none;
  z-index: 0;

  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

/* Nội dung nằm trên */
.lol-glow-border > * {
  position: relative;
  z-index: 1;
}

@keyframes gold-shimmer {
  0% {
    background-position: 200% 0%;
  }
  50% {
    background-position: 0% 200%;
  }
  100% {
    background-position: 200% 0%;
  }
}

li.widget {
  list-style: none;
}

/* Khung chung */
.lol-text-widget {
  border: 1px solid #3d4142;
  background-color: #020617; /* gần bg-zinc-950 */
  /* padding: 1.25rem 1.5rem; */
  margin-bottom: 1.5rem;
  border-radius: 0; /* hoặc .5rem nếu thích bo góc */
}

/* Tiêu đề widget */
.lol-text-widget__title {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #facc6b; /* vàng kiểu lol-gold */
}

/* Nội dung bên trong */
.lol-text-widget .textwidget {
  font-size: 0.9rem;
  line-height: 1.7;
  color: #e5e7eb;
}

/* Đoạn văn */
.lol-text-widget .textwidget p {
  margin: 0 0 0.5rem;
}

/* Danh sách */
.lol-text-widget .textwidget ul,
.lol-text-widget .textwidget ol {
  margin: 0.25rem 0 0.75rem;
  padding-left: 1.25rem;
}

.lol-text-widget .textwidget li {
  margin-bottom: 0.25rem;
}

/* Heading bên trong nội dung */
.lol-text-widget .textwidget h3 {
  margin: 0.75rem 0 0.35rem;
  font-size: 1rem;
  font-weight: 600;
}

/* Bỏ margin cuối cùng cho gọn */
.lol-text-widget .textwidget > *:last-child {
  margin-bottom: 0;
}
