/*-- scss:defaults --*/

// UNC Chapel Hill brand colors (override clean theme defaults)
$jet: #13294B; // Navy blue instead of black for headers
$accent: #7BAFD4; // Carolina blue for links and accents
$accent2: #F29137; // UNC orange for secondary accents

// Additional UNC colors
$carolina-blue: #7BAFD4;
$navy-blue: #13294B;
$unc-white: #FFFFFF;
$teal: #6AC9D2;
$meadow-green: #C7DA7D;
$unc-yellow: #FDDD3F;
$unc-orange: #F29137;
$fuchsia: #D61B7A;
$light-gray: #E1E1E1;
$dark-gray: #767676;
$unc-black: #151515;
$neutral-bg: #EBEDF0;

// Override clean theme body background
$body-bg: $neutral-bg !default;

/*-- scss:rules --*/

// Clean theme is already loaded by the format, no need to import

// UNC-specific customizations

// Background customizations
html, body {
  background-color: $neutral-bg !important;
}

.reveal {
  background-color: $neutral-bg !important;
  
  .slides {
    background-color: $neutral-bg !important;
    
    section {
      background-color: $neutral-bg !important;
      padding: 40px 60px !important;
    }
  }
  
  .backgrounds .slide-background {
    background-color: $neutral-bg !important;
  }
}

// Title slide customizations for UNC branding
#title-slide {
  .title {
    color: $navy-blue !important;
    font-size: 1.6em;
  }
  
  .subtitle {
    color: $carolina-blue !important;
  }
  
  .author, .quarto-title-author-name {
    color: $navy-blue !important;
  }
}

// Heading style overrides
.reveal {
  h2 {
    color: $navy-blue !important;
    border-bottom: 3px solid $unc-orange;
    padding-bottom: 0.3em;
  }
  
  h3 {
    color: $unc-orange !important;
    border-bottom: 2px solid $unc-orange;
    padding-bottom: 0.2em;
    font-style: normal !important; // Override clean theme italic
  }
  
  h4 {
    color: $navy-blue !important;
  }
}

// Link colors
.reveal a {
  color: $carolina-blue !important;
  
  &:hover {
    color: $navy-blue !important;
    text-decoration: underline;
  }
}

// Lists - UNC colors
.reveal ul {
  li::marker {
    color: $carolina-blue !important;
  }
}

.reveal ul ul {
  li:before {
    color: $unc-orange !important;
  }
}

.reveal ol {
  li::marker {
    color: $carolina-blue !important;
  }
}

// Tables with UNC styling
.reveal table {
  th {
    background-color: $carolina-blue !important;
    color: white !important;
    font-weight: bold !important;
  }
  
  td {
    border-bottom: 1px solid $light-gray !important;
  }
  
  tr:nth-child(even) {
    background-color: rgba($unc-white, 0.7) !important;
  }
}

// Blockquotes
.reveal blockquote {
  border-left: 4px solid $unc-orange !important;
  background-color: rgba($unc-white, 0.8) !important;
  color: $dark-gray !important;
}

// Code styling
.reveal {
  pre code {
    background-color: $unc-white !important;
    border: 1px solid $light-gray !important;
  }
  
  code {
    color: $navy-blue !important;
    background-color: rgba($unc-white, 0.9) !important;
  }
}

// Button styling with UNC colors
.button {
  background-color: $carolina-blue !important;
  border-color: $carolina-blue !important;
  
  &:hover {
    background-color: $navy-blue !important;
    border-color: $navy-blue !important;
  }
}

// Progress bar and controls
.reveal .progress {
  color: $carolina-blue !important;
}

.reveal .controls {
  color: $carolina-blue !important;
}

// Slide numbers
.reveal .slide-number {
  color: $carolina-blue !important;
  background-color: rgba($unc-white, 0.9) !important;
  padding: 5px 10px !important;
  border-radius: 4px !important;
}

// Header styling for reveal-header extension
.reveal-header {
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.header-logo {
  width: 80px !important;
  height: auto !important;
  max-height: 50px !important;
  object-fit: contain !important;
}

// Hide header on title slide
#title-slide .reveal-header {
  display: none !important;
}

// Add DHEP logo to title slide with larger size at bottom center
#title-slide::after {
  content: '';
  background-image: url('images/dhep-logo-2.png');
  background-repeat: no-repeat;
  background-size: contain;
  width: 200px;
  height: 100px;
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

// Alert styling with UNC colors
.alert {
  color: $unc-orange !important;
}

// Emphasis with UNC colors
.reveal {
  strong, b {
    color: $carolina-blue !important;
  }
  
  em, i {
    color: $navy-blue !important;
  }
}