:root {
  --background: oklch(0.98 0 0);
  --foreground: oklch(0.15 0 0);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.15 0 0);
  --primary: oklch(0.2 0 0);
  --primary-foreground: oklch(0.98 0 0);
  --secondary: oklch(0.35 0 0);
  --secondary-foreground: oklch(0.98 0 0);
  --muted: oklch(0.92 0 0);
  --muted-foreground: oklch(0.5 0 0);
  --border: oklch(0.85 0 0);
}

.dark {
  --background: oklch(0.12 0 0);
  --foreground: oklch(0.95 0 0);
  --card: oklch(0.15 0 0);
  --card-foreground: oklch(0.95 0 0);
  --primary: oklch(0.95 0 0);
  --primary-foreground: oklch(0.15 0 0);
  --secondary: oklch(0.25 0 0);
  --secondary-foreground: oklch(0.95 0 0);
  --muted: oklch(0.2 0 0);
  --muted-foreground: oklch(0.9 0 0);
  --border: oklch(0.25 0 0);
}

body {
  background-color: var(--background);
  color: var(--foreground);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.glass-effect {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

:root:not(.dark) .glass-effect {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.gradient-text {
  background: linear-gradient(
    135deg,
    oklch(0.75 0.15 280),
    oklch(0.65 0.18 320)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-gradient-primary {
  background: linear-gradient(
    135deg,
    oklch(0.75 0.15 280),
    oklch(0.65 0.18 320)
  );
}

:root:not(.dark) .bg-gradient-primary {
  background: linear-gradient(
    135deg,
    oklch(0.45 0.2 270),
    oklch(0.35 0.22 310)
  );
}

:root:not(.dark) .bg-gradient-primary:hover {
  background: linear-gradient(135deg, oklch(0.4 0.22 270), oklch(0.3 0.24 310));
}

.glow-effect {
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.3), 0 0 40px rgba(139, 92, 246, 0.1);
}

.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.wallpaper-card {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid var(--muted);
}

.wallpaper-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.9) 0%,
    rgba(0, 0, 0, 0.4) 50%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.wallpaper-card:hover .wallpaper-overlay {
  opacity: 0.8;
}

.wallpaper-card img {
  transition: transform 0.5s ease, filter 0.5s ease;
}

.wallpaper-card:hover img {
  transform: scale(1.1);
  filter: brightness(1.1);
}

.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  transform: scale(1.1);
}

:root:not(.dark) .theme-toggle svg {
  color: oklch(0.35 0.22 310);
}

main {
  position: relative;
  min-height: 100vh;
  padding: 14px;
}

.content-detail {
  gap: 1.2rem;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  display: grid;
}

.content-detail h1,
.content-detail h2,
.content-detail h3,
.content-detail h4,
.content-detail h5,
.content-detail h6 {
  font-weight: 700;
}

.content-detail h1 {
  font-size: 2rem;
}

.content-detail h2 {
  font-size: 1.5rem;
  line-height: 2rem;
}

.content-detail h3 {
  font-size: 1.25rem;
  line-height: 1.75rem;
}

.content-detail h4 {
  font-size: 1.1rem;
  line-height: 1.7rem;
}

.content-detail h5 {
  font-size: 1rem;
  line-height: 1.6rem;
}

.content-detail h6 {
  margin-bottom: 0.05rem;
  font-size: 0.9rem;
  line-height: 1.5rem;
}

.content-detail a,
.toc a:hover {
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.content-detail a code {
  margin: auto 0;
  border-radius: 0;
  box-shadow: 0 -1px 0 var(--primary) inset;
}

.content-detail del {
  text-decoration: none;
  background: linear-gradient(to right, var(--primary) 100%, transparent 0) 0
    50%/1px 1px repeat-x;
}

.content-detail ol,
.content-detail ul {
  list-style-type: disc;
  list-style: none;
  margin: 0;
  padding: 0;
  display: block;
  list-style-type: disc;
  margin-inline-start: 0px;
  margin-inline-end: 0px;
  padding-inline-start: 20px;
  unicode-bidi: isolate;
  box-sizing: border-box;
  border-width: 0;
  border-style: solid;
  border-color: #e5e7eb;
}

.content-detail li {
  display: list-item;
  text-align: -webkit-match-parent;
  unicode-bidi: isolate;
}

.content-detail li p {
  margin-bottom: 0;
}

.content-detail dl {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
}

.content-detail dt {
  width: 25%;
  font-weight: 700;
}

.content-detail dd {
  width: 75%;
  margin-inline-start: 0;
  padding-inline-start: 10px;
}

.content-detail dd ~ dd,
.content-detail dt ~ dt {
  margin-top: 10px;
}

.content-detail table {
  margin-bottom: 32px;
}

.content-detail table th {
  min-width: 80px;
  padding: 12px 8px;
  line-height: 1.5;
  border: 1px solid 240 5.9% 90%;
  background-color: var(--color-table-title);
}

.content-detail
  table:not(.highlighttable, .highlight table, .gist .highlight)
  td {
  min-width: 80px;
  padding: 12px 8px;
  line-height: 1.5;
  border: 1px solid 240 5.9% 90%;
  border-bottom: 1px solid 240 5.9% 90%;
}

.content-detail table th {
  font-size: 14px;
  text-align: start;
}

.content-detail table:not(.highlighttable) td code:only-child {
  margin: auto 0;
}

.content-detail .highlight table {
  border-radius: var(--radius);
}

.content-detail .highlight:not(table) {
  margin: 10px auto;
  background: var(--hljs-bg) !important;
  border-radius: var(--radius);
  direction: ltr;
}

.content-detail .highlight:not(table) pre {
  border-radius: var(--radius);
}

.content-detail li > .highlight {
  margin-inline-end: 0;
}

.content-detail ul pre {
  margin-inline-start: calc(-14 * -2);
}

.content-detail .highlight pre {
  margin: 0;
}

.content-detail .highlighttable {
  table-layout: fixed;
}

.content-detail .highlighttable td:first-child {
  width: 40px;
}

.content-detail .highlighttable td .linenodiv {
  padding-inline-end: 0 !important;
}

.content-detail .highlighttable td .highlight,
.content-detail .highlighttable td .linenodiv pre {
  margin-bottom: 0;
}

.content-detail code {
  margin: auto 4px;
  font-size: 0.78em;
  line-height: 1.5;
  background: var(--code-bg);
  color: var(--code-color);
  border-radius: 4px;
  padding: 0.1em 0.4em;
  font-family: "Ricty Diminished", "Ricty", "Myrica M", "Migu 1M",
    "Source Han Code JP", "SFMono-Regular", "Consolas", "Liberation Mono",
    "Menlo", "Courier", monospace;
}

.content-detail pre code {
  display: block;
  margin: auto 0;
  padding: 10px;
  color: rgb(213, 213, 214);
  background: var(--hljs-bg) !important;
  border-radius: var(--radius);
  overflow-x: auto;
  word-break: break-all;
}

.content-detail blockquote {
  margin: 20px 0;
  padding: 0 14px;
  border-inline-start: 3px solid var(--code-bg);
}

.content-detail hr {
  margin: 30px 0;
  height: 2px;
  background: var(--tertiary);
  border: 0;
}

.content-detail iframe {
  max-width: 100%;
}

.content-detail figure.align-center {
  text-align: center;
}

.content-detail figure > figcaption {
  color: 240 5.9% 10%;
  font-size: 16px;
  font-weight: bold;
  margin: 8px 0 16px;
}
.disabled\:cursor-not-allowed:disabled {
  cursor: not-allowed;
}
.disabled\:opacity-50:disabled {
  opacity: 0.5;
}
.content-detail figure > figcaption > p {
  color: 240 4.8% 95.9%;
  font-size: 14px;
  font-weight: normal;
}
h1 > a > svg {
  display: inline;
}
img.in-text {
  display: inline;
  margin: auto;
}

.tag-container {
  padding: 3rem;
}

.tag {
  background-color: #ededed;
  border-radius: 0.3rem;
  padding: 0.1rem 0.2rem;
  color: #000;
}

.tag:hover {
  background-color: #c0c0c0;
}
.tag-font {
  font-size: 0.7rem;
}

.padding {
  padding: 0.5rem;
}
.share-area {
  position: relative;
  margin: auto;
  text-align: center;
  position: relative;
  margin-top: 20px;
  margin-bottom: 20px;
  border-radius: 10em;
}

.facebook {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  bottom: 14rem;
  right: 2rem;
  z-index: 99;
  background-color: #365899;
  color: #e5e5e5;
  width: 42px;
  height: 42px;
  border-radius: 50%;
}

.twitter {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #000;
  color: #e5e5e5;
  position: fixed;
  bottom: 10rem;
  right: 2rem;
  z-index: 99;
  width: 42px;
  height: 42px;
  border-radius: 50%;
}

.top-link {
  visibility: hidden;
  position: fixed;
  bottom: 6rem;
  right: 2rem;
  z-index: 99;
  background-color: #000;
  width: 42px;
  height: 42px;
  padding: 12px;
  border-radius: 50%;
  font-size: 15px;
  color: #fff;
  transition: visibility 0.5s, opacity 0.8s linear;
}
.top-link,
.top-link svg {
  filter: drop-shadow(0px 0px 0px var(--tw-bg-opacity));
  display: flex;
}
.footer a:hover,
.top-link:hover {
  color: #e5e5e5;
}
.top-link:focus,
#theme-toggle:focus {
  outline: 0;
}
.pagination {
  display: flex;
}
.pagination a {
  color: #e5e5e5;
  font-size: 13px;
  line-height: 26px;
  border-radius: 30px;
  padding: 7px 10px;
  min-width: 6rem;
  background-color: rgb(147 51 234);
}
.page-number {
  margin: auto;
}
.active {
  border-bottom: 2px solid;
}

.page-link {
  color: hsl(222.2 84% 4.9%);
  font-size: 13px;
  line-height: 30px;
  border-radius: 30px;
  padding: 5px 8px;
  min-width: 5rem;
  background-color: rgb(147 51 234);
}

.visibility-hidden {
  visibility: hidden;
}

.img-hover {
  background: rgba(31, 41, 55, 0.95);
  border: 1px solid rgba(147, 51, 234, 0.3);
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  border-radius: 10px;
  transition: transform 0.5s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 28px;
  color: white;
  cursor: pointer;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.overlay img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease;
}

input[type="checkbox"] {
  display: none;
}

input[type="checkbox"]:checked + .overlay {
  display: flex;
}

.video-card {
  width: 100%;
  max-width: 800px;
  overflow: hidden;
  background: #000;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.loader {
  border-top-color: #9333ea;
  animation: spin 1s linear infinite;
}
/* =========================================================== */
@media (min-width: 640px) {
  .container {
    max-width: 640px;
  }
  .video-height {
    height: auto;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 768px;
  }
  .video-height {
    height: auto;
  }
}
@media (min-width: 1024px) {
  .container {
    max-width: 1024px;
  }
  .video-height {
    height: auto;
  }
}

@media (min-width: 1280px) {
  .container {
    max-width: 1280px;
  }
  .video-height {
    height: 30rem;
  }
}
@media (min-width: 1536px) {
  .container {
    max-width: 1536px;
  }
  .video-height {
    height: 30rem;
  }
}

@media screen and (max-width: 768px) {
  .content-detail h1 {
    font-size: 28px;
  }

  .content-detail h2 {
    font-size: 25px;
  }

  .content-detail h3 {
    font-size: 24px;
  }

  .content-detail h4 {
    font-size: 16px;
  }

  .content-detail h5 {
    font-size: 14px;
  }

  .content-detail h6 {
    font-size: 12px;
  }
}
