/* Base styles for Tech Projects 8 Website */
:root {
  /* Color palette */
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary: #64748b;
  --accent: #8b5cf6;
  --background: #f8fafc;
  --text: #1e293b;
  --text-light: #64748b;
  --border: #e2e8f0;
  --callout-bg: #f1f5f9;
}

/* Base elements */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  margin: 0;
  padding: 1rem 2rem;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 2rem 0 1rem;
  line-height: 1.2;
  color: var(--primary-dark);
}

h1 {
  font-size: 2.5rem;
  border-bottom: 3px solid var(--primary);
  padding-bottom: 0.5rem;
}

h2 {
  font-size: 2rem;
  position: relative;
  padding-bottom: 0.5rem;
}

h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 66%;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1.5rem;
}

/* Links */
a {
  color: var(--primary);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

a:hover {
  border-bottom-color: var(--primary);
}

/* Navigation */
.site-header {
  background: white;
  padding: 1rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.site-header {
  position: relative;
  background: linear-gradient(
    135deg,
    rgba(37, 99, 235, 0.1) 0%,
    rgba(139, 92, 246, 0.05) 100%
  );
  padding: 1rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Optional: Add subtle animation to gradient */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.site-header {
  background-size: 200% 200%;
  animation: gradientShift 15s ease infinite;
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-dark);
  margin: 0;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-weight: 500;
  padding: 0.5rem;
  border-bottom: 2px solid transparent;
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  border-bottom-color: var(--primary);
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

/* Content Container */
.content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s ease;
}

.content:hover {
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
}

/* Welcome section */
.welcome-section {
  background: linear-gradient(to right, rgba(37, 99, 235, 0.05), transparent);
  border-radius: 8px;
  padding: 2rem;
  margin: 2rem 0;
  position: relative;
  overflow: hidden;
}

.welcome-section::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 150px;
  height: 150px;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 50H90M50 10V90M10 10L90 90M90 10L10 90' stroke='%232563eb' stroke-width='1' stroke-opacity='0.1'/%3E%3C/svg%3E");
  background-repeat: repeat;
  opacity: 0.15;
  z-index: 0;
}

.welcome-section h2 {
  color: var(--primary);
  margin-top: 0;
  font-size: 1.75rem;
}

.welcome-section p {
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--text);
  margin-bottom: 0;
}

/* Course highlights section */
.course-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 2rem 0;
}

@media (max-width: 768px) {
  .course-highlights {
    grid-template-columns: 1fr;
  }
}

/* Callouts */
.callout {
  background: var(--callout-bg);
  border-left: 4px solid var(--accent);
  padding: 1.5rem;
  margin: 1.5rem 0 1rem;
  border-radius: 0 4px 4px 0;
  /* border-radius: 8px; */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.callout:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.callout-title {
  font-weight: bold;
  color: var(--accent);
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 1.5rem;
}

.callout-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 1v14M1 8h14' stroke='%238b5cf6' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
}

.callout p {
  margin-bottom: 0;
}

/* Lists */
ul,
ol {
  margin: 1rem 0;
  padding-left: 2rem;
}

li {
  margin-bottom: 0.5rem;
}

/* List item hover effects */

.exploration-list {
  list-style: none;
  padding-left: 0;
}

.exploration-list li {
  position: relative;
  padding-left: 1.5rem;
  transition: transform 0.2s ease;
}

.exploration-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary);
  opacity: 0.7;
}

.exploration-list li:hover {
  transform: translateX(5px);
}

/* Two-column lists for wider screens */
.two-column-list {
  columns: 2;
  column-gap: 2rem;
}

@media (max-width: 768px) {
  .two-column-list {
    columns: 1;
  }
}

/* Tables */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  margin: 1.5rem 0;
}

th,
td {
  padding: 0.75rem;
  border: 1px solid var(--border);
}

th {
  background: linear-gradient(to right, var(--callout-bg), #f8fafc);
  border: none;
  font-weight: bold;
  position: relative;
}

.exploration-category:not(:last-child)::after {
  content: "";
  display: block;
  width: 100%;
  height: 20px;
  margin-top: 2rem;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='20' viewBox='0 0 60 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='10' cy='10' r='2' fill='%232563eb' fill-opacity='0.2'/%3E%3Ccircle cx='30' cy='10' r='2' fill='%232563eb' fill-opacity='0.2'/%3E%3Ccircle cx='50' cy='10' r='2' fill='%232563eb' fill-opacity='0.2'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  opacity: 0.5;
}

td {
  border: 1px solid var(--border);
  border-left: none;
  border-right: none;
}

tr:last-child td {
  border-bottom: none;
}

/* Code blocks */
pre,
code {
  background: var(--callout-bg);
  border-radius: 4px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

code {
  padding: 0.2rem 0.4rem;
}

pre {
  padding: 1rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

/* Gallery styles */
.gallery-intro {
  margin: 2rem 0;
  font-size: 1.1rem;
  line-height: 1.6;
}

.gallery-years {
  margin: 3rem 0;
}

.year-link {
  display: block;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary);
  padding: 1rem;
  margin: 1rem 0;
  border: 2px solid var(--primary);
  border-radius: 8px;
  transition: all 0.2s ease-in-out;
  position: relative;
  overflow: hidden;
}

.year-link:hover {
  background: var(--primary);
  color: white;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.year-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    transparent 0%,
    rgba(37, 99, 235, 0.1) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.year-link:hover::before {
  opacity: 1;
}

/* Grade category styling */
.grade-category {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  transition: transform 0.2s ease;
}

.grade-category:hover {
  transform: translateY(-2px);
}

.grade-weight {
  color: var(--text-light);
  font-style: italic;
  margin-bottom: 1rem;
}

/* Exploration category enhancements */
.exploration-category {
  margin: 2.5rem 0;
}

.exploration-category h2 {
  margin-bottom: 1.5rem;
}

.exploration-category:not(:last-child)::after {
  content: "";
  display: block;
  width: 100%;
  height: 20px;
  margin-top: 2rem;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='20' viewBox='0 0 60 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='10' cy='10' r='2' fill='%232563eb' fill-opacity='0.2'/%3E%3Ccircle cx='30' cy='10' r='2' fill='%232563eb' fill-opacity='0.2'/%3E%3Ccircle cx='50' cy='10' r='2' fill='%232563eb' fill-opacity='0.2'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  opacity: 0.5;
}

/* Link hover refinements */
.exploration-list a:hover {
  color: var(--primary-dark);
}

/* Footer (if you decide to add one) */
footer {
  margin-top: 4rem;
  padding: 2rem 0;
  text-align: center;
  color: var(--text-light);
  font-size: 0.875rem;
}

/* Responsive design */
@media (max-width: 768px) {
  body {
    padding: 0.5rem;
  }

  .content {
    padding: 1rem;
    position: relative;
  }

  .content::before {
    content: "";
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1h12M1 1v12' stroke='%232563eb' stroke-width='2' stroke-opacity='0.2'/%3E%3C/svg%3E");
    pointer-events: none;
  }

  .content::after {
    content: "";
    position: absolute;
    bottom: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M39 39H27M39 39V27' stroke='%232563eb' stroke-width='2' stroke-opacity='0.2'/%3E%3C/svg%3E");
    pointer-events: none;
  }

  .nav-container {
    flex-direction: column;
    gap: 1rem;
  }

  .nav-links {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  .grade-category {
    padding: 1rem;
  }

  .grade-category:hover {
    transform: none;
  }

  .exploration-category {
    margin: 2rem 0;
  }

  .welcome-section::before {
    width: 100px;
    height: 100px;
  }

  .content::before,
  .content::after {
    width: 30px;
    height: 30px;
  }
}

/* Focus activity pill badges */
.focus-pill {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 500;
  margin: 0.1rem;
  color: white;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}

.focus-introductions { background-color: #8b5cf6; }
.focus-development { background-color: #8b5cf6; }
.focus-consultations { background-color: #3b82f6; }
.focus-feedback { background-color: #10b981; }
.focus-exploration { background-color: #f59e0b; }
.focus-work-day { background-color: #6b7280; }
.focus-reflection { background-color: #10b981; }
.focus-wiggle-day { background-color: #ec4899; }
.focus-wrap-up { background-color: #ef4444; }
.focus-rehearsal { background-color: #ef4444; }
.focus-final-presentation { background-color: #dc2626; }

.schedule-table td {
  vertical-align: top;
  padding: 0.5rem;
}

.focus-activities {
  margin-bottom: 0.5rem;
}

.schedule-notes {
  font-style: italic;
  color: var(--text-light);
  font-size: 0.8rem;
  line-height: 1.3;
}

/* Mobile responsiveness for schedule table */
@media (max-width: 768px) {
  .schedule-table {
    font-size: 0.85rem;
  }
  
  .schedule-table td {
    padding: 0.4rem;
  }
  
  .focus-pill {
    font-size: 0.65rem;
    padding: 0.15rem 0.4rem;
    margin: 0.05rem;
  }
  
  .schedule-notes {
    font-size: 0.75rem;
  }
}
