/*
 * DM / Amira theme for Fider
 * Prepared for amira.fider.io — 18 November 2026
 * Paste this entire file into Advanced > Custom CSS, then Save.
 * To undo, remove this CSS and Save.
 */

/* Brand colours: these are the main values to change later. */
:root {
  --dm-navy: #052460;
  --dm-cyan: #00a7e2;
  --dm-radius: 16px;
}

/* Light theme. The darker blue for text links improves readability. */
html body[data-theme="light"] {
  --primary-color: var(--dm-navy);
  --primary-color-dark: #031a46;
  --primary-color-light: #dff3fb;
  --dm-surface: #ffffff;
  --dm-border: #d8e2ee;
  --dm-heading: var(--dm-navy);
  --dm-link: #0079a8;
  --dm-button-text: #ffffff;
  --dm-soft: #e7f5fb;
  --colors-white: #ffffff;
  --colors-black: #24364d;
  --colors-gray-50: #f8fafc;
  --colors-gray-100: #f4f7fb;
  --colors-gray-200: #e3eaf3;
  --colors-gray-300: #cbd7e6;
  --colors-gray-400: #91a1b7;
  --colors-gray-500: #64748b;
  --colors-gray-600: #52677d;
  --colors-gray-700: #415772;
  --colors-gray-800: #31435b;
  --colors-gray-900: var(--dm-navy);
}

/* Dark theme: follows Fider's existing theme switch automatically. */
html body[data-theme="dark"] {
  --primary-color: var(--dm-cyan);
  --primary-color-dark: #37c1ee;
  --primary-color-light: #163c5c;
  --dm-surface: #12223b;
  --dm-border: #2d4260;
  --dm-heading: #f4f8ff;
  --dm-link: #64d4ff;
  --dm-button-text: #052460;
  --dm-soft: #163c5c;
  --colors-white: #12223b;
  --colors-black: #eaf2ff;
  --colors-gray-50: #0a1426;
  --colors-gray-100: #0b1730;
  --colors-gray-200: #1b2d49;
  --colors-gray-300: #2d4260;
  --colors-gray-400: #405675;
  --colors-gray-500: #8196b3;
  --colors-gray-600: #91a4bf;
  --colors-gray-700: #b5c5db;
  --colors-gray-800: #d8e3f3;
  --colors-gray-900: #f4f8ff;
}

/* Header, existing DM logo and navigation. */
#root #c-header {
  background: var(--dm-navy);
  border-bottom: 3px solid var(--dm-cyan) !important;
}
#c-header .c-header__brand {
  height: auto;
  min-height: 48px;
  gap: 12px;
}
#c-header .c-header__brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
}
#c-header .c-header__brand h1 {
  max-width: 28rem;
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}
#root #c-header .c-header__nav-link,
#root #c-header .c-themeswitcher svg { color: #deebff; }
#root #c-header .c-header__nav-link:hover { color: #ffffff; }
#root #c-header .c-header__nav-link--active {
  color: #ffffff;
  box-shadow: 0 2px 0 var(--dm-cyan);
}
#root #c-header .c-button--primary {
  background: var(--dm-cyan);
  border-color: var(--dm-cyan);
}
#root #c-header .c-button--primary:not(.c-button--loading) {
  color: var(--dm-navy);
}
#root #c-header .c-button--primary:hover { background: #37c1ee; }

/* Welcome panel. Your existing title and description stay editable in Fider. */
body #p-home { padding-top: 36px; padding-bottom: 48px; }
#p-home .p-home__welcome-col > .flex {
  padding: 28px;
  background: var(--dm-navy);
  border-top: 4px solid var(--dm-cyan);
  border-radius: var(--dm-radius);
}
body #p-home .p-home__welcome-title {
  color: #ffffff;
  font-size: clamp(26px, 2.5vw, 34px);
  line-height: 1.2;
  letter-spacing: -0.6px;
}
body #p-home .p-home__welcome-body {
  color: #deebff;
  line-height: 1.7;
}
body #p-home .p-home__welcome-body a {
  color: #64d4ff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* The main "What DM really needs is..." button. */
#root #p-home .p-home__add-idea-btn {
  background: var(--dm-cyan);
  color: var(--dm-navy);
  border: 1px solid var(--dm-cyan);
  border-radius: var(--dm-radius);
  font-weight: 700;
  box-shadow: 0 4px 14px rgb(5 36 96 / 10%);
}
#root #p-home .p-home__add-idea-btn:hover { background: #37c1ee; }
#root #p-home .p-home__add-idea-icon { color: var(--dm-navy); }

/* Requests, discussion cards and voting panel. */
#root .c-posts-container__post,
#root .p-show-post__post-card,
#root .c-comment__card,
#root .c-votes-panel {
  background: var(--dm-surface);
  border: 1px solid var(--dm-border);
  border-radius: var(--dm-radius);
  box-shadow: 0 3px 12px rgb(5 36 96 / 5%);
}
#root .c-posts-container__post-link:hover .c-posts-container__post {
  border-color: var(--dm-cyan);
  box-shadow: 0 6px 20px rgb(5 36 96 / 10%);
}
#root .c-posts-container__post-title,
#root .p-show-post__title,
#root .c-posts-container__post-votes { color: var(--dm-heading); }
#root .c-posts-container__post-link:hover .c-posts-container__post-title {
  color: var(--dm-link);
}
#root .c-votes-panel__count-badge {
  background: var(--dm-soft);
  color: var(--dm-heading);
}
#root .c-button--primary:not(.c-button--loading) {
  color: var(--dm-button-text);
}
#root .c-markdown a,
#root .text-link { color: var(--dm-link); }
#root .c-markdown a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
/* Keep links inside the navy welcome panel bright in either theme. */
#root #p-home .p-home__welcome-body a { color: #64d4ff; }

/* Visible keyboard focus; preserve Fider's disabled and loading states. */
#root :is(a, button, input, textarea, select, [tabindex]):focus-visible {
  outline: 2px solid var(--dm-link);
  outline-offset: 3px;
}
#root #c-header :is(a, button):focus-visible {
  outline-color: #ffffff;
}

/* Small screens: keep the title, navigation and sign-in button available. */
@media (max-width: 767px) {
  #c-header .c-header__row { row-gap: 16px; }
  #c-header .c-header__brand { flex-basis: 100%; }
  #c-header .c-header__brand h1 { font-size: 18px; }
  #c-header .c-header__brand img { width: 44px; height: 44px; }
  body #p-home { padding-top: 24px; row-gap: 24px; }
  #p-home .p-home__welcome-col > .flex { padding: 24px; }
  #root .c-posts-container__post,
  #root .p-show-post__post-card,
  #root .c-comment__card { padding: 20px; }
}
@media (max-width: 380px) {
  #c-header .c-header__actions { gap: 4px; }
  #c-header .c-header__nav { gap: 12px; }
  #c-header .c-button { padding-inline: 10px; }
}