/* Namefi Astra Design System for Listmonk Public Pages */
:root {
  /* Color System */
  --background: oklch(0.145 0 0);
  --foreground: oklch(0.985 0 0);
  --card: oklch(0.205 0 0);
  --card-foreground: oklch(0.985 0 0);
  --primary: oklch(0.922 0 0);
  --primary-foreground: oklch(0.205 0 0);
  --secondary: oklch(0.269 0 0);
  --secondary-foreground: oklch(0.985 0 0);
  --muted: oklch(0.269 0 0);
  --muted-foreground: oklch(0.708 0 0);
  --accent: oklch(0.269 0 0);
  --accent-foreground: oklch(0.985 0 0);
  --destructive: oklch(0.704 0.191 22.216);
  --border: oklch(1 0 0 / 10%);
  --input: oklch(1 0 0 / 15%);
  --ring: oklch(0.556 0 0);
  --brand-primary: oklch(75.85% 0.1804 155.5);
  --brand-secondary: oklch(75.85% 0.1804 155.5);
  --brand-tertiary: oklch(75.85% 0.1804 155.5);
  --radius: 0.65rem;
  
  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Monaco, Consolas, monospace;
}

footer {
  display: none;
}

#capture_chrome {
  display: none;
}

/* Base Styles */
* {
  box-sizing: border-box;
  box-shadow: none !important;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html, body {
  padding: 0;
  margin: 0;
  min-width: 320px;
}

body {
  background: var(--background);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--foreground);
}

a {
  color: var(--brand-primary);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.8;
  color: var(--brand-primary);
  text-decoration: underline;
}

label {
  cursor: pointer;
  color: var(--foreground);
  font-weight: 500;
}

h1,
h2,
h3,
h4 {
  font-weight: 600;
  color: var(--foreground);
  line-height: 1.2;
}

.section {
  margin-bottom: 45px;
}

input[type="text"], 
input[type="email"], 
input[type="password"], 
select {
  padding: 0.75rem 1rem;
  border: 1px solid var(--input);
  border-radius: calc(var(--radius) - 2px);
  width: 100%;
  background-color: var(--background);
  color: var(--foreground);
  font-size: 1rem;
  font-family: var(--font-sans);
  transition: all 0.2s ease;
  outline: none;
}

input:focus,
select:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px oklch(75.85% 0.1804 155.5 / 0.1);
}

input:focus::placeholder {
  color: transparent;
}

input::placeholder {
  color: var(--muted-foreground);
  opacity: 0.6;
}

input[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Fix autofill styles - prevent bright background */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus,
select:-webkit-autofill:active {
  -webkit-background-clip: text;
  -webkit-text-fill-color: var(--foreground);
  transition: background-color 5000s ease-in-out 0s;
  box-shadow: inset 0 0 20px 20px var(--background);
  border: 1px solid var(--input);
}

.center {
  text-align: center;
}

.right {
  text-align: right;
}

.error {
  color: var(--destructive);
  background-color: oklch(0.704 0.191 22.216 / 0.1);
  padding: 1rem;
  border-radius: calc(var(--radius) - 2px);
  border-left: 4px solid var(--destructive);
  margin-bottom: 1rem;
}

.button {
  background: var(--brand-primary);
  padding: 0.75rem 1.5rem;
  border-radius: calc(var(--radius) - 2px);
  border: 0;
  cursor: pointer;
  text-decoration: none;
  color: var(--background);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  transition: all 0.2s ease;
  outline: none;
}

.button:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.5), 0 2px 4px -1px rgba(0, 0, 0, 0.4);
  text-decoration: none;
}

.button.button-outline {
  background: transparent;
  border: 1px solid var(--brand-primary);
  color: var(--brand-primary);
}

.button.button-outline:hover {
  background-color: oklch(75.85% 0.1804 155.5 / 0.1);
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  transform: translateY(-1px);
}

.container {
  margin: 60px auto 15px auto;
  max-width: 550px;
}

.wrap {
  background: var(--card);
  padding: 2rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.5), 0 1px 2px -1px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
  margin-bottom: 2rem;
}

.header .logo img {
  width: auto;
  max-width: 150px;
}

.unsub-all {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.row {
  margin-bottom: 1.5rem;
}

.lists {
  list-style-type: none;
  padding: 0;
}

.lists li {
  margin: 0 0 0.75rem 0;
  padding: 0.75rem;
  background-color: var(--accent);
  border-radius: calc(var(--radius) - 4px);
  transition: background-color 0.2s ease;
}

.lists li:hover {
  background-color: var(--muted);
}

.lists .description {
  margin: 0.5rem 0 0 0;
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--muted-foreground);
  margin-left: 2rem;
}

.lists input[type="checkbox"],
.lists input[type="radio"] {
  width: 1.25rem;
  height: 1.25rem;
  margin-right: 0.75rem;
  accent-color: var(--brand-primary);
  cursor: pointer;
}

.lists label {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}

.form .nonce {
  display: none;
}

.form .captcha {
  margin-top: 2rem;
}

.archive {
  list-style-type: none;
  margin: 1.5rem 0 0 0;
  padding: 0;
}

.archive .date {
  display: block;
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.archive li {
  margin-bottom: 1rem;
  padding: 0.75rem;
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 4px);
  transition: background-color 0.2s ease;
}

.archive li:hover {
  background-color: var(--accent);
}

.archive a {
  color: var(--foreground);
  font-weight: 500;
}

.feed {
  margin-right: 1rem;
  color: var(--brand-primary);
}

.home-options {
  margin-top: 2rem;
  text-align: center;
}

.home-options a {
  margin: 0 0.5rem;
  color: var(--brand-primary);
}

.pagination {
  margin-top: 2rem;
  text-align: center;
}

.pg-page {
  display: inline-block;
  padding: 0.5rem 1rem;
  text-decoration: none;
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 4px);
  margin: 0 0.25rem;
  transition: all 0.2s ease;
  color: var(--foreground);
}

.pg-page:hover {
  background-color: var(--accent);
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

.pg-page.pg-selected {
  background-color: var(--brand-primary);
  border-color: var(--brand-primary);
  color: var(--background);
  font-weight: 600;
}

.login .submit {
  margin-top: 1.5rem;
}

.login button {
  width: 100%;
  vertical-align: middle;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login button img {
  max-width: 24px;
  margin-right: 0.75rem;
}

#btn-back {
  display: none;
}

footer.container {
  margin-top: 3rem;
  margin-bottom: 2rem;
  text-align: center;
  color: var(--muted-foreground);
  font-size: 0.875rem;
  border-top: 1px solid var(--border);
  padding-top: 2rem;
}

footer a {
  color: var(--brand-primary);
  text-decoration: none;
  margin: 0 0.5rem;
}

footer a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* Responsive Design */
@media screen and (max-width: 650px) {
  .wrap {
    margin: 0;
    padding: 1.5rem;
    max-width: none;
  }

  .container {
    padding: 0 1rem;
  }

  .button {
    width: 100%;
  }
}

/* Selection */
::selection {
  background-color: var(--brand-primary);
  color: var(--background);
}

::-moz-selection {
  background-color: var(--brand-primary);
  color: var(--background);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: var(--background);
}

::-webkit-scrollbar-thumb {
  background: var(--muted);
  border-radius: 6px;
  border: 2px solid var(--background);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--brand-primary);
}

