/* ===================================
   Craig Millard Brand Styles
   =================================== */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800&family=Open+Sans:wght@400;500;600&display=swap');

/* Color Variables */
:root {
  --band-accent: #c9b8ff;
  --band-purple: #7649e1;
  --band-gray: #545552;
  --band-dark: #141414;
  --band-light: #f5f5f5;
  --band-blue: #5fb4f7;
}

/* Disable blinking cursor on non-input elements */
*:not(input):not(textarea):not([contenteditable="true"]) {
  caret-color: transparent;
}

/* Prevent text selection cursor on general content */
body {
  cursor: default;
  font-family: 'Open Sans', sans-serif;
}

/* Keep proper cursor for interactive elements */
a, button, input, textarea, select, [role="button"] {
  cursor: pointer;
}

input[type="text"], input[type="email"], input[type="search"], textarea {
  cursor: text;
  caret-color: auto;
}

/* ===================================
   Typography
   =================================== */

h1, h2, h3, h4, h5, h6,
.navbar-brand,
.nav-link {
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 700;
}

p, li, td, th {
  font-family: 'Open Sans', sans-serif;
  line-height: 1.6;
}

/* ===================================
   Navbar Styling
   =================================== */

.navbar {
  background: linear-gradient(135deg, var(--band-purple) 0%, var(--band-dark) 100%) !important;
  border-bottom: 2px solid var(--band-accent);
}

.navbar-brand {
  color: white !important;
  font-weight: 800 !important;
}

.nav-link {
  color: var(--band-light) !important;
  font-weight: 600 !important;
  font-size: 1.25rem !important;
  transition: color 0.2s ease;
}

.navbar-brand {
  font-size: 1.6rem !important;
}

.nav-link:hover,
.nav-link.active {
  color: var(--band-accent) !important;
}

/* ===================================
   Page Footer
   =================================== */

.nav-footer {
  background: var(--band-dark) !important;
  border-top: 2px solid var(--band-purple);
  color: var(--band-light);
}

.nav-footer a {
  color: var(--band-accent) !important;
}

.nav-footer a:hover {
  color: var(--band-blue) !important;
}

/* ===================================
   Main Content
   =================================== */

#quarto-content {
  background: linear-gradient(135deg, white 0%, #e0e0e0 100%);
}

#quarto-content main {
  background: white;
  padding: 2rem 3rem;
  margin: 1rem;
  border-radius: 0.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.content h1 {
  color: var(--band-purple);
}

.content h2, .content h3 {
  color: var(--band-purple);
  border-bottom: 2px solid var(--band-accent);
  padding-bottom: 0.5rem;
}

a {
  color: var(--band-purple);
  transition: color 0.2s ease;
}

a:hover {
  color: var(--band-blue);
}

/* ===================================
   Hero Section (for pages that use it)
   =================================== */

.band-hero {
  background: linear-gradient(135deg, var(--band-purple) 0%, var(--band-dark) 100%);
  color: white;
  padding: 4rem 2rem;
  text-align: center;
  margin: -1rem -1rem 2rem -1rem;
  border-radius: 0 0 1rem 1rem;
}

.band-hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  color: white;
}

.band-hero h2 {
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--band-accent);
  margin-top: 0;
}

/* ===================================
   Content Sections
   =================================== */

.band-section {
  padding: 2rem;
  margin: 1.5rem 0;
  background: white;
  border-radius: 0.5rem;
  border-left: 4px solid var(--band-purple);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.band-section h2 {
  color: var(--band-purple);
  margin-top: 0;
  border: none;
}

.band-section p,
.band-section li {
  color: var(--band-gray);
}

/* Alternate Section (Dark) */
.band-section-alt {
  padding: 2rem;
  margin: 1.5rem 0;
  background: var(--band-dark);
  border-radius: 0.5rem;
  border-left: 4px solid var(--band-accent);
}

.band-section-alt h2 {
  color: var(--band-accent);
  margin-top: 0;
  border: none;
}

.band-section-alt p,
.band-section-alt li,
.band-section-alt td,
.band-section-alt th {
  color: var(--band-light);
}

.band-section-alt a {
  color: var(--band-accent);
}

.band-section-alt a:hover {
  color: var(--band-blue);
}

/* ===================================
   Color Swatches for Reference
   =================================== */

.color-swatches {
  padding: 2rem;
  margin: 2rem 0;
}

.color-swatches h2 {
  font-family: 'Montserrat', sans-serif;
  color: var(--band-gray);
  margin-bottom: 1.5rem;
}

.swatch {
  padding: 1.5rem 2rem;
  margin: 0.5rem 0;
  border-radius: 0.5rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
}

.swatch-accent {
  background: var(--band-accent);
  color: var(--band-dark);
}

.swatch-purple {
  background: var(--band-purple);
  color: white;
}

.swatch-gray {
  background: var(--band-gray);
  color: white;
}

.swatch-dark {
  background: var(--band-dark);
  color: var(--band-light);
}

.swatch-blue {
  background: var(--band-blue);
  color: var(--band-dark);
}

/* ===================================
   List Styling for Band Sections
   =================================== */

.band-section ul,
.band-section-alt ul {
  list-style: none;
  padding-left: 0;
}

.band-section li,
.band-section-alt li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.band-section li::before {
  content: "♪";
  position: absolute;
  left: 0;
  color: var(--band-purple);
}

.band-section-alt li::before {
  content: "♪";
  position: absolute;
  left: 0;
  color: var(--band-accent);
}

/* ===================================
   Cards & Listings
   =================================== */

.quarto-listing-default .listing-item {
  border-left: 4px solid var(--band-purple);
  transition: border-color 0.2s ease;
}

.quarto-listing-default .listing-item:hover {
  border-left-color: var(--band-accent);
}

/* Reduce date column width */
.quarto-listing-default .metadata {
  flex: 0 0 100px;
  max-width: 100px;
}

.listing-title {
  font-weight: 700 !important;
  font-family: 'Montserrat', sans-serif !important;
}

/* Reduce listing thumbnail size */
.quarto-listing-default .thumbnail {
  max-width: 320px !important;
  flex-shrink: 0;
}

.quarto-listing-default .thumbnail-image {
  max-width: 320px !important;
  width: 320px !important;
  height: auto;
}

.card {
  border: none;
  border-left: 4px solid var(--band-purple);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.card:hover {
  border-left-color: var(--band-accent);
}

/* ===================================
   Buttons
   =================================== */

.btn-primary {
  background: var(--band-purple) !important;
  border-color: var(--band-purple) !important;
}

.btn-primary:hover {
  background: var(--band-dark) !important;
  border-color: var(--band-accent) !important;
}

/* ===================================
   TOC Sidebar
   =================================== */

#TOC a,
.sidebar nav[role="doc-toc"] a,
.sidebar nav[role="doc-toc"] ul li a,
nav.toc-active a,
#quarto-sidebar a {
  color: var(--band-blue) !important;
  font-size: 0.9rem !important;
}

#TOC a:hover,
#TOC a.active,
.sidebar nav[role="doc-toc"] a:hover,
.sidebar nav[role="doc-toc"] a.active,
nav.toc-active a:hover,
nav.toc-active a.active,
#quarto-sidebar a:hover,
#quarto-sidebar a.active {
  color: var(--band-purple) !important;
  border-left-color: var(--band-purple);
}

/* ===================================
   Code Blocks
   =================================== */

pre {
  background: var(--band-dark) !important;
  border-left: 4px solid var(--band-purple);
}

/* ===================================
   Embedded Videos (YouTube, etc.)
   =================================== */

iframe[src*="youtube"],
iframe[src*="vimeo"],
.quarto-video {
  max-width: 1040px;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* ===================================
   Tables - prevent overflow
   =================================== */

table:not(.quarto-listing-table) {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  display: block;
}

.table-responsive,
div:has(> table:not(.quarto-listing-table)) {
  overflow-x: auto;
  max-width: 100%;
}

/* Quarto listing tables - keep normal layout */
.quarto-listing-table {
  display: table;
  width: 100%;
}

/* ===================================
   Mobile Styles
   =================================== */

@media (max-width: 768px) {
  #quarto-content {
    background: white;
  }
  
  #quarto-content main {
    margin: 0;
    padding: 1rem;
    border-radius: 0;
    box-shadow: none;
  }
  
  table {
    font-size: 0.85rem;
  }
  
  table th,
  table td {
    padding: 0.5rem;
  }
}
