/* Custom CSS for Cybersecurity Homelab Documentation */

/* ===== OVERRIDE MATERIAL PRIMARY COLOR ===== */
:root {
  --md-primary-fg-color: #0c2a32;
  --md-primary-fg-color--light: #2d87a0; /* ← CHANGED: This is now your HOVER color */
  --md-primary-fg-color--dark: #081a1f;
  --md-primary-bg-color: #ffffff;
}

/* For dark mode (slate) */
[data-md-color-scheme="slate"] {
  --md-primary-fg-color: #0c2a32;
  --md-primary-fg-color--light: #2d87a0; /* ← CHANGED */
  --md-primary-fg-color--dark: #081a1f;
  --md-primary-bg-color: #121212;
}

/* ===== OVERRIDE ACCENT COLOR ===== */
:root {
  --md-accent-fg-color: #0c2a32;
  --md-accent-fg-color--transparent: rgba(12, 42, 50, 0.1);
}

[data-md-color-scheme="slate"] {
  --md-accent-fg-color: #0c2a32;
  --md-accent-fg-color--transparent: rgba(12, 42, 50, 0.2);
}

/* ===== HERO SECTION ===== */
.hero-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 4rem 2rem;
  text-align: center;
  margin: -1.6rem -1.6rem 2rem -1.6rem;
  border-radius: 0 0 1rem 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

[data-md-color-scheme="slate"] .hero-section {
  background: linear-gradient(135deg, #1e3a8a 0%, #312e81 100%);
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-icon {
  display: inline-block;
  margin-right: 0.5rem;
  font-size: 3rem;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hero-badge {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 0.4rem 1rem;
  font-weight: 500;
  font-size: 0.9rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-badge.arch {
  background: rgba(23, 147, 209, 0.8);
}
.hero-badge.docker {
  background: rgba(13, 183, 237, 0.8);
}
.hero-badge.security {
  background: rgba(239, 68, 68, 0.8);
}
.hero-badge.networking {
  background: rgba(34, 197, 94, 0.8);
}

/* ===== PROJECT CARDS ===== */
.project-cards {
  display: grid;
  grid-template-columns: repeat(align-items, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.project-card {
  background: var(--md-default-bg-color);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: all 0.2s ease;
  border: 1px solid var(--md-default-fg-color--lightest);
}

[data-md-color-scheme="slate"] .project-card {
  background: #05323f;
  border-color: var(--md-default-fg-color--lightest);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15), 0 4px 10px rgba(0, 0, 0, 0.1);
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.project-header h3 {
  margin: 0;
  font-size: 1.3rem;
  color: var(--md-default-fg-color);
}

.project-status {
  padding: 0.3rem 0.8rem;
  border-radius: 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.project-status.completed {
  background: rgba(34, 197, 94, 0.2);
  color: #16a34a;
  border: 1px solid #16a34a;
}

.project-status.production {
  background: rgba(59, 130, 246, 0.2);
  color: #974455;
  border: 1px solid #974455;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.tech-tag {
  background: var(--md-accent-fg-color--transparent);
  color: var(--md-accent-fg-color);
  padding: 0.3rem 0.7rem;
  border-radius: 0.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid var(--md-accent-fg-color);
}

.project-link {
  display: inline-block;
  color: var(--md-primary-fg-color);
  text-decoration: none;
  font-weight: 600;
  margin-top: 1rem;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
}

.project-link:hover {
  color: var(--md-primary-fg-color--light);
  text-decoration: underline;
}

/* ===== CODE BLOCKS ENHANCEMENT ===== */
.highlight pre {
  border-radius: 0.5rem;
  border-left: 4px solid var(--md-primary-fg-color);
}

.highlight .filename {
  background: var(--md-primary-fg-color);
  color: white;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  margin: -1rem -1rem 1rem -1rem;
  border-radius: 0.5rem 0.5rem 0 0;
}

/* ===== ADMONITION STYLES ===== */
.admonition.question {
  border-left-color: #ff9800;
}

.admonition.question .admonition-title {
  background: rgba(255, 152, 0, 0.1);
}

/* ===== BADGES IN CONTENT ===== */
.md-content img[alt*="badge"] {
  display: inline-block;
  margin: 0 0.2rem;
  vertical-align: middle;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-badges {
    justify-content: center;
  }

  .project-cards {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .project-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

/* Custom */

.md-main {
  background: linear-gradient(180deg, #0c2a32 0%, #000000 100%);
  background-attachment: fixed; /* Keeps gradient fixed during scroll */
  background-size: cover;
  background-position: center;
  box-shadow: none !important;
  border-top: none !important;
  background-clip: padding-box;
}
[data-md-color-scheme="slate"] .md-main {
  background: linear-gradient(180deg, #0c2a32 0%, #000000 100%);
  background-attachment: fixed;
}
.md-header {
  background: linear-gradient(180deg, #0c2a32 0%, #0c2a32 100%) !important;
  box-shadow: none !important;
  border-bottom: none !important;
  border: none !important;
  color: white !important;
}

.md-tabs {
  background: linear-gradient(180deg, #0c2a32 0%, #0c2a32 100%) !important;
  box-shadow: none !important;
  border-bottom: none !important;
  border: none !important;
}

/* ===== DARK MODE SUPPORT ===== */
[data-md-color-scheme="slate"] .md-header {
  background: linear-gradient(180deg, #0c2a32 0%, #0c2a32 100%) !important;
}
[data-md-color-scheme="slate"] .md-tabs {
  background: linear-gradient(180deg, #0c2a32 0%, #0c2a32 100%) !important;
}
.md-tabs__link--active {
  box-shadow: none !important;
}

/*custom*/

.md-typeset table:not([class]) {
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.md-typeset table:not([class]) th {
  background: var(--md-primary-fg-color);
  color: white;
  font-weight: 600;
}

.md-typeset table:not([class]) tr:hover {
  background: var(--md-primary-fg-color--light);
}

/* ===== NAVIGATION ENHANCEMENTS ===== */
.md-nav__title {
  font-weight: 700;
}

.md-nav__item .md-nav__link--active {
  color: #2d87a0;
  font-weight: 600;
}

.md-nav__item a:hover {
  color: #2d87a0 !important;
}

/* ===== FOOTER CUSTOMIZATION ===== */
.md-footer {
  background: linear-gradient(135deg, #000000 0%, #000000 100%);
}

[data-md-color-scheme="slate"] .md-footer {
  background: linear-gradient(135deg, #000000 0%, #000000 100%);
}

.md-footer-meta {
  background: transparent;
}

.md-copyright__highlight {
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
}

.md-copyright__highlight a {
  color: white;
  text-decoration: none;
  font-weight: 600;
}

.md-copyright__highlight a:hover {
  text-decoration: underline;
}

/* ===== SCROLLBAR CUSTOMIZATION ===== */
::-webkit-scrollbar {
  width: 7px;
}

::-webkit-scrollbar-track {
  background: var(--md-default-bg-color);
}

::-webkit-scrollbar-thumb {
  background: var(--md-default-fg-color--lighter);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--md-default-fg-color--light);
}

/* ===== PRINT STYLES ===== */
@media print {
  .hero-section,
  .md-header,
  .md-sidebar,
  .md-footer {
    display: none !important;
    color: white !important;
  }

  .project-cards {
    grid-template-columns: 1fr;
  }

  .project-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ccc;
  }

  .highlight pre {
    border: 1px solid #ccc;
    page-break-inside: avoid;
  }
}

/* ===== GLOBAL TEXT COLOR ===== */
.md-typeset,
.md-typeset h1,
.md-typeset h2,
.md-typeset h3,
.md-typeset h4,
.md-typeset h5,
.md-typeset h6,
.md-typeset p,
.md-typeset li,
.md-typeset td,
.md-typeset th {
  color: white !important;
}

/* ===== LINKS: WHITE DEFAULT, LIGHTER TEAL ON HOVER ===== */
.md-typeset a {
  color: white !important;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.2s ease;
}
.md-typeset h1{
  font-weight: 500;
}

.md-typeset a:hover {
  color: #2d87a0 !important; /* Lighter shade of #0C2A32 */
  border-bottom-color: #1a4a55;
}

/* ===== PROJECT CARDS ===== */
.project-link {
  color: white !important;
}

.project-link:hover {
  color: #2d87a0 !important;
  text-decoration: underline;
}

/* ===== TIMELINE CONTENT ===== */
.timeline-content h4,
.timeline-content p {
  color: white !important;
}

/* ===== TECH TAGS ===== */
.tech-tag {
  color: white !important;
  border-color: rgba(255, 255, 255, 0.3);
}

.tech-tag:hover {
  color: #2d87a0 !important;
  border-color: #1a4a55;
}

/* ===== STATUS BADGES ===== */
.project-status,
.status-indicator {
  color: white !important;
}

/* ===== NAVBAR & TABS TEXT ===== */
.md-header__button,
.md-tabs__link {
  color: white !important;
}

.md-header__button:hover,
.md-tabs__link:hover {
  color: #2d87a0 !important;
}

/* ===== SEARCH INPUT BACKGROUND COLOR ===== */
.md-search__input {
  background-color: #25525f !important;
  color: white !important;
  border: none !important;
}


.md-nav__title,
.md-nav__link {
  color: white !important;
}
/* ===== FORCE ALL HEADER ICONS TO WHITE ===== */
.md-header__button,
.md-header__button .md-icon,
.md-header-nav__button,
.md-header-nav__button .md-icon,
.md-icon {
  color: white !important;
  fill: white !important;
}

.md-header__button:hover,
.md-header-nav__button:hover,
.md-icon:hover {
  color: #2d87a0 !important;
  fill: #2d87a0 !important;
}
/* Force GitHub repo text to white everywhere */
.md-source,
.md-source__repository,
.md-nav__link.md-source__repository {
  color: white !important;
}


