/* HackAid Custom Theme for MkDocs Material
   Matches main site styling with Technical theme as default */

/* ============================================
   CSS Variables - HackAid Brand Colors
   ============================================ */
:root {
  --hackaid-primary: #f59e0b;
  --hackaid-primary-hover: #d97706;
  --hackaid-text: #1f2937;
  --hackaid-text-light: #6b7280;
  --hackaid-bg-light: #fffbeb;
  --hackaid-border: #e5e7eb;
  --hackaid-header-gradient: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  --hackaid-footer-bg: #1f2937;

  /* Technical theme fonts */
  --font-heading: 'Courier New', 'Consolas', 'Monaco', monospace;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Override Material theme primary colors */
[data-md-color-scheme="slate"] {
  --md-primary-fg-color: #f59e0b;
  --md-primary-fg-color--light: #fbbf24;
  --md-primary-fg-color--dark: #d97706;
  --md-accent-fg-color: #f59e0b;
}

[data-md-color-scheme="default"] {
  --md-primary-fg-color: #f59e0b;
  --md-primary-fg-color--light: #fbbf24;
  --md-primary-fg-color--dark: #d97706;
  --md-accent-fg-color: #f59e0b;
}

/* ============================================
   Header Styling
   ============================================ */
.md-header {
  background: var(--hackaid-header-gradient) !important;
}

/* Logo styling - HA with gradient (matching main site) */
.md-header__button.md-logo {
  padding: 0;
  margin-right: 0.5rem;
}

.md-header__button.md-logo img,
.md-header__button.md-logo svg {
  display: none;
}

.md-header__button.md-logo::before {
  content: "HA";
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  font-weight: 900;
  font-size: 1.4rem;
  letter-spacing: -0.05em;
  background: linear-gradient(135deg, #dc2626 0%, #9333ea 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Site title styling */
.md-header__title {
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--hackaid-text);
}

.md-header__topic {
  color: var(--hackaid-text);
}

/* Header text colors */
.md-header__button,
.md-header__title,
.md-header__option {
  color: var(--hackaid-text) !important;
}

.md-search__input::placeholder {
  color: rgba(31, 41, 55, 0.7);
}

/* ============================================
   Technical Theme Typography
   ============================================ */
.md-typeset h1,
.md-typeset h2,
.md-typeset h3,
.md-typeset h4,
.md-typeset h5,
.md-typeset h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--hackaid-text);
}

.md-typeset {
  font-family: var(--font-body);
}

/* ============================================
   Content Styling
   ============================================ */
.md-typeset a {
  color: var(--hackaid-primary);
}

.md-typeset a:hover {
  color: var(--hackaid-primary-hover);
}

/* Admonitions */
.md-typeset .admonition,
.md-typeset details {
  border-left-color: var(--hackaid-primary);
}

.md-typeset .admonition-title,
.md-typeset summary {
  background-color: rgba(245, 158, 11, 0.1);
}

/* Code blocks */
.md-typeset code {
  background-color: var(--hackaid-bg-light);
  color: var(--hackaid-text);
}

/* Tables */
.md-typeset table:not([class]) th {
  background-color: var(--hackaid-primary);
  color: white;
}

/* ============================================
   Navigation Styling
   ============================================ */
.md-nav__link--active,
.md-nav__link:hover {
  color: var(--hackaid-primary) !important;
}

.md-nav__item--active > .md-nav__link {
  color: var(--hackaid-primary);
  font-weight: 600;
}

/* ============================================
   Footer Styling - Match HackAid Main Site
   ============================================ */
.md-footer {
  background: var(--hackaid-footer-bg) !important;
}

.md-footer-meta {
  background: var(--hackaid-footer-bg) !important;
}

/* Custom footer content */
.md-footer-meta__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1rem;
}

.md-footer-copyright {
  color: white;
  opacity: 0.9;
}

.md-footer-copyright__highlight {
  color: white;
}

/* Footer links */
.md-footer-nav__link {
  color: white !important;
}

.md-footer-nav__link:hover {
  opacity: 0.8;
}

/* Social links in footer */
.md-social__link {
  color: white !important;
}

/* ============================================
   Sidebar Styling
   ============================================ */
.md-sidebar--primary .md-sidebar__scrollwrap {
  border-right: 1px solid var(--hackaid-border);
}

/* ============================================
   Search Styling
   ============================================ */
.md-search__form {
  background-color: rgba(255, 255, 255, 0.8);
}

.md-search__input {
  color: var(--hackaid-text);
}

/* ============================================
   Buttons
   ============================================ */
.md-typeset .md-button {
  background-color: var(--hackaid-primary);
  border-color: var(--hackaid-primary);
  color: white;
}

.md-typeset .md-button:hover {
  background-color: var(--hackaid-primary-hover);
  border-color: var(--hackaid-primary-hover);
}

/* ============================================
   Custom HackAid Footer
   ============================================ */
.hackaid-footer {
  width: 100%;
  text-align: center;
  padding: 1.5rem 0;
}

.hackaid-footer__copyright {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.hackaid-footer__links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.hackaid-footer__links a {
  color: white !important;
  text-decoration: none;
  font-size: 0.9rem;
}

.hackaid-footer__links a:hover {
  text-decoration: underline;
}

.hackaid-footer__links span {
  color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   Mobile Responsive
   ============================================ */
@media screen and (max-width: 76.1875em) {
  .md-nav--primary .md-nav__title {
    background: var(--hackaid-header-gradient);
    color: var(--hackaid-text);
  }
}
