/* Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Jersey+15&display=swap");

html,
html[class~="dark"],
.dark {
  color-scheme: dark !important;
}

/* Global Outline */
*:focus {
  outline: 1px solid #ff9696 !important;
  outline-offset: 1px !important;
  box-shadow: none !important;
}

*:focus:not(:focus-visible) {
  outline: none !important;
  box-shadow: none !important;
}

*:focus-visible {
  outline: 1px solid #ff9696 !important;
  outline-offset: 1px !important;
  box-shadow: none !important;
}

/* Remove default focus styles */
* {
  -webkit-tap-highlight-color: transparent !important;
}

/* Hide Theme Toggle */
button[aria-label="Toggle Dark Mode"],
button[aria-label="Toggle Light Mode"],
button[aria-label="Change theme"],
.nextra-nav-container button[aria-label="Change theme"],
.nextra-nav-container button[aria-label="Toggle Dark Mode"],
.nextra-nav-container button[aria-label="Toggle Light Mode"],
button[id^="headlessui-listbox-button-"],
[role="listbox"],
[role="option"] {
  display: none !important;
}

/* Hide Theme Menu */
.nextra-nav-container [role="menu"],
.nextra-nav-container [role="menuitem"],
.nextra-nav-container [role="listbox"],
.nextra-nav-container [role="option"] {
  display: none !important;
}

/* Header Title */
:root {
  --header-font: "Jersey 15", sans-serif;
  --murphy-ease: ease;
}

/* Overrides */
.nx-text-primary-600 {
  color: #ff9696 !important;
}

input:focus-visible {
  /* border-color: #ff9696 !important; */
  box-shadow: 0 0 0 2px #ff9696 !important;
}

:is(html[class~="dark"] .dark\:nx-bg-primary-400\/10),
:is(html[class~="dark"] .dark\:nx-bg-primary-300\/10) {
  background-color: #ffffff17 !important;
}

:is(html[class~="dark"] .dark\:nx-text-primary-600),
.nextra-content,
:is(html[class~="dark"] .dark\:nx-text-slate-100),
.nx-text-slate-900 {
  color: #ffffff !important;
}

.footer {
  max-width: 90rem;
  margin: 0 auto;
  padding: 0 max(env(safe-area-inset-right), 1.5rem) 40px;
  font-family: var(--header-font) !important;
  font-size: 2rem !important;
  letter-spacing: 1px;
  background: linear-gradient(45deg, #f97b7b, #ffbbbb);
  text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Code Blocks and Syntax Highlighting */
.nx-bg-neutral-100 {
  background-color: #2d1f1f !important;
}

.dark .nx-bg-neutral-800 {
  background-color: #2d1f1f !important;
}

/* Bash/Shell specific colors */
.language-bash .nx-text-primary-600,
.language-shell .nx-text-primary-600 {
  color: #ff9696 !important;
}

.language-bash .nx-text-yellow-600,
.language-shell .nx-text-yellow-600 {
  color: #ff6b6b !important;
}

.language-bash .nx-text-green-600,
.language-shell .nx-text-green-600 {
  color: #f97b7b !important;
}

.language-bash .nx-text-blue-600,
.language-shell .nx-text-blue-600 {
  color: #ffbbbb !important;
}

/* Code block border and shadow */
.nx-border-neutral-200 {
  border-color: #3d2f2f !important;
}

.dark .nx-border-neutral-800 {
  border-color: #3d2f2f !important;
}

.nx-shadow-sm {
  box-shadow: 0 2px 4px rgba(255, 150, 150, 0.1) !important;
}

/* Force dark background */
body {
  background-color: #111 !important;
  color: #fff !important;
}

/* Demo container dark mode */
.demo-container {
  margin: 2rem 0;
  padding: 2rem;
  border: 1px solid #ffffff17 !important;
  border-radius: 12px;
  background: #ffffff17 !important;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.demo-container:hover {
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

/* Initial state for demo elements */
/* [data-murphy]:not(.murphy-animated) {
  opacity: 0;
} */

/* Demo box styles */
.demo-box {
  padding: 1.5rem;
  margin: 1rem 0;
  background: #1a1a1a !important;
  color: #fff !important;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.demo-box strong {
  color: #ff9696;
  font-weight: 600;
}

.demo-box:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

/* Animation direction indicators */
.demo-box[data-murphy="bottom-to-top"]::after {
  content: "👆";
  font-size: 1.2rem;
  opacity: 0.7;
}

.demo-box[data-murphy="top-to-bottom"]::after {
  content: "👇";
  font-size: 1.2rem;
  opacity: 0.7;
}

.demo-box[data-murphy="left-to-right"]::after {
  content: "👉";
  font-size: 1.2rem;
  opacity: 0.7;
}

.demo-box[data-murphy="right-to-left"]::after {
  content: "👈";
  font-size: 1.2rem;
  opacity: 0.7;
}

.logo-demo {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  /* font-size: 5rem; */
  font-weight: bold;
  color: #ff9696;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.demo-letter {
  opacity: 0;
  transition: all 0.3s ease;
  font-family: var(--header-font);
  font-size: 5rem;
  letter-spacing: 1px;
  background: linear-gradient(45deg, #f97b7b, #ffbbbb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.1);

  @media (max-width: 768px) {
    font-size: 2rem;
  }
}

.demo-controls {
  display: flex;
  justify-content: end;
  gap: 1rem;
  margin-top: 1.5rem;
}

.demo-controls-fixed {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  background: rgba(26, 26, 26, 0.9);
  padding: 1rem 1rem;
  border-radius: 14px;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  gap: 1rem;
  justify-content: center;
  min-width: 200px;
}

.demo-button {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.demo-button {
  background: linear-gradient(45deg, #ff6d6d, #ff9595);
  font-family: var(--header-font);
  font-size: 1.4rem;
  letter-spacing: 1px;
}

.demo-button.reset-button {
  background: #1a1a1a;
  border: 1px solid #414141;
}

.demo-button.reset-button:hover {
  background: #2a2a2a;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.demo-button.reset-button:active {
  background: #000;
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.demo-button:not(.reset-button):hover {
  background: linear-gradient(45deg, #ff5757, #ff8383);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.demo-button:not(.reset-button):active {
  background: linear-gradient(45deg, #ff5757, #ff8383);
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Sobrescrever o estilo do título no header do Nextra */
.nextra-nav-container .nextra-nav-container-blur {
  background: rgba(255, 255, 255, 0.8) !important;
  backdrop-filter: blur(8px);
}

.nextra-nav-container
  .nextra-nav-container-blur
  .dark\:nextra-nav-container-blur {
  background: rgba(17, 17, 17, 0.8) !important;
}

.nextra-nav-container a[href="/"],
.nextra-footer a[href="/"] {
  font-family: var(--header-font) !important;
  font-size: 2rem !important;
  letter-spacing: 1px;
  background: linear-gradient(45deg, #f97b7b, #ffbbbb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  text-transform: lowercase;
}

.nextra-nav-container a[href="/"]:hover,
.nextra-footer a[href="/"]:hover {
  transform: translateY(-2px);
  text-shadow: 4px 4px 0px rgba(0, 0, 0, 0.15);
}

.note {
  background: rgba(255, 150, 150, 0.1);
  border-left: 4px solid #ff9696;
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 0 8px 8px 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #fff;
}

.note strong {
  color: #ff9696;
  font-weight: 600;
}

/* Custom text selection */
::selection {
  background: #ff9696;
  color: #111111;
  text-shadow: none;
}

/* Add hover effects */
a:hover {
  color: #ff9696;
}

.pink {
  font-family: var(--header-font) !important;
  font-size: 4.5rem !important;
  letter-spacing: 1px;
  background: linear-gradient(45deg, #f97b7b, #ffbbbb);
  text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Add focus styles */
input:focus {
  outline: 2px solid #ff9696;
  outline-offset: 2px;
}
