/* ITWS-4500 Custom Styles */

/* RPI Brand Colors */
:root {
  --rpi-red: #d6001c;
  --rpi-dark-red: #8b0000;
  --rpi-black: #1a1a1a;
  --rpi-gray: #666666;
  --rpi-light-gray: #f5f5f5;
}

/* Global Styles */
body {
  font-family: "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Headers */
h1, h2, h3, h4, h5, h6 {
  font-family: "Source Sans Pro", sans-serif;
  font-weight: 600;
}

h1 {
  color: var(--rpi-red);
  border-bottom: 3px solid var(--rpi-red);
  padding-bottom: 0.5rem;
}

h2 {
  color: var(--rpi-black);
}

/* Links */
a {
  color: var(--rpi-red);
}

a:hover {
  color: var(--rpi-dark-red);
}

/* Code blocks */
pre {
  background-color: var(--rpi-light-gray);
  border-left: 4px solid var(--rpi-red);
  border-radius: 0;
}

code {
  color: var(--rpi-dark-red);
}

pre code {
  color: inherit;
}

/* Tables */
table thead {
  background-color: var(--rpi-red);
  color: white;
}

table thead th {
  border-color: var(--rpi-dark-red);
}

/* Callouts */
.callout {
  border-left-width: 4px;
}

.callout-note {
  border-left-color: var(--rpi-red);
}

.callout-tip {
  border-left-color: #28a745;
}

.callout-important {
  border-left-color: #dc3545;
}

.callout-warning {
  border-left-color: #ffc107;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

.btn-primary {
  background-color: var(--rpi-red);
  color: white;
}

.btn-primary:hover {
  background-color: var(--rpi-dark-red);
  color: white;
}

.btn-secondary {
  background-color: var(--rpi-gray);
  color: white;
}

.btn-secondary:hover {
  background-color: var(--rpi-black);
  color: white;
}

.btn-success {
  background-color: #28a745;
  color: white;
}

.btn-success:hover {
  background-color: #218838;
  color: white;
}

/* Grid layout for cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.g-col-4 {
  background-color: var(--rpi-light-gray);
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid var(--rpi-red);
}

.g-col-4 h3 {
  margin-top: 0;
  color: var(--rpi-red);
}

/* Week cards */
.week-card {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: box-shadow 0.3s ease;
}

.week-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.week-card h3 {
  color: var(--rpi-red);
  margin-top: 0;
  margin-bottom: 0.5rem;
}

/* Columns */
.columns {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.column {
  flex: 1;
  min-width: 250px;
}

/* Footer */
.page-footer {
  background-color: var(--rpi-black);
  color: white;
  padding: 1rem;
  margin-top: 2rem;
}

.page-footer a {
  color: white;
}

/* Schedule table styles */
.schedule-table .lab-row {
  background-color: rgba(214, 0, 28, 0.05);
}

.schedule-table .quiz-row {
  background-color: rgba(255, 193, 7, 0.1);
}

.schedule-table .presentation-row {
  background-color: rgba(40, 167, 69, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .columns {
    flex-direction: column;
  }

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

/* Print styles */
@media print {
  .navbar, .page-footer, .sidebar {
    display: none;
  }

  a[href]:after {
    content: " (" attr(href) ")";
  }
}

/* Mermaid diagram adjustments */
.mermaid {
  background-color: white;
  padding: 1rem;
  border-radius: 4px;
}

/* TOC adjustments */
#TOC {
  border-left: 2px solid var(--rpi-red);
  padding-left: 1rem;
}

#TOC a {
  text-decoration: none;
}

#TOC a:hover {
  text-decoration: underline;
}
