/* Base styles */
:root {
  --primary: #4b84c7;
  --primary-dark: #3b6ba0;
  --secondary: #f8e858;
  --secondary-dark: #f0df40;
  --content: #848484;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --black: #000000;
  --award: #f8e858;
  --uci-blue: #0064A4;
  --uci-yellow: #FFD200;
  --uci-yellow-dark: #FFDA33;
  --red-500: #ef4444;
}

* {
  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.5;
  color: var(--gray-900);
}

/* Layout */
.min-h-screen {
  min-height: 100vh;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

.items-center {
  align-items: center;
}

.items-start {
  align-items: flex-start;
}

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

.justify-between {
  justify-content: space-between;
}

.justify-end {
  justify-content: flex-end;
}

.gap-1 {
  gap: 0.25rem;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-3 {
  gap: 0.75rem;
}

.gap-4 {
  gap: 1rem;
}

.gap-8 {
  gap: 2rem;
}

.w-full {
  width: 100%;
}

.w-12 {
  width: 3rem;
}

.w-4 {
  width: 1rem;
}

.w-5 {
  width: 1.25rem;
}

.h-4 {
  height: 1rem;
}

.h-5 {
  height: 1.25rem;
}

.h-12 {
  height: 3rem;
}

.max-w-full {
  max-width: 100%;
}

.max-w-6xl {
  max-width: 72rem;
}

.max-w-5xl {
  max-width: 64rem;
}

.max-w-2xl {
  max-width: 42rem;
}

.max-w-md {
  max-width: 28rem;
}

.max-w-none {
  max-width: none;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.mt-1 {
  margin-top: 0.25rem;
}

.mt-2 {
  margin-top: 0.5rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mt-6 {
  margin-top: 1.5rem;
}

.mt-8 {
  margin-top: 2rem;
}

.mt-auto {
  margin-top: auto;
}

.mb-1 {
  margin-bottom: 0.25rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-3 {
  margin-bottom: 0.75rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.ml-1 {
  margin-left: 0.25rem;
}

.ml-2 {
  margin-left: 0.5rem;
}

.ml-4 {
  margin-left: 1rem;
}

.mr-1 {
  margin-right: 0.25rem;
}

.mr-2 {
  margin-right: 0.5rem;
}

.p-1 {
  padding: 0.25rem;
}

.p-2 {
  padding: 0.5rem;
}

.p-3 {
  padding: 0.75rem;
}

.p-4 {
  padding: 1rem;
}

.p-6 {
  padding: 1.5rem;
}

.p-8 {
  padding: 2rem;
}

.p-12 {
  padding: 3rem;
}

.px-2 {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.px-3 {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.py-1 {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.py-6 {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.py-8 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.py-20 {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.pt-16 {
  padding-top: 4rem;
}

.pb-8 {
  padding-bottom: 2rem;
}

/* Typography */
.text-xs {
  font-size: 0.75rem;
}

.text-sm {
  font-size: 0.875rem;
}

.text-lg {
  font-size: 1.125rem;
}

.text-2xl {
  font-size: 1.5rem;
}

.text-3xl {
  font-size: 1.875rem;
}

.text-6xl {
  font-size: 3.75rem;
}

.font-medium {
  font-weight: 500;
}

.font-semibold {
  font-weight: 600;
}

.font-bold {
  font-weight: 700;
}

.text-left {
  text-align: left;
}

.text-center {
  text-align: center;
}

.leading-relaxed {
  line-height: 1.625;
}

.text-white {
  color: var(--white);
}

.text-black {
  color: var(--black);
}

.text-gray-400 {
  color: var(--gray-400);
}

.text-gray-500 {
  color: var(--gray-500);
}

.text-gray-700 {
  color: var(--gray-700);
}

.text-gray-800 {
  color: var(--gray-800);
}

.text-primary {
  color: var(--primary);
}

.text-uci-blue {
  color: var(--uci-blue);
}

.text-red-500 {
  color: var(--red-500);
}

.opacity-90 {
  opacity: 0.9;
}

/* Backgrounds */
.bg-white {
  background-color: var(--white);
}

.bg-primary {
  background-color: var(--primary);
}

.bg-secondary {
  background-color: var(--secondary);
}

.bg-content {
  background-color: var(--content);
}

.bg-gray-50 {
  background-color: var(--gray-50);
}

.bg-gray-100 {
  background-color: var(--gray-100);
}

.bg-gray-300 {
  background-color: var(--gray-300);
}

.bg-award {
  background-color: var(--award);
}

.bg-uci-yellow {
  background-color: var(--uci-yellow);
}

/* Borders */
.border {
  border-width: 1px;
  border-style: solid;
}

.border-2 {
  border-width: 2px;
  border-style: solid;
}

.border-t {
  border-top-width: 1px;
  border-top-style: solid;
}

.border-b {
  border-bottom-width: 1px;
  border-bottom-style: solid;
}

.border-dashed {
  border-style: dashed;
}

.border-gray-100 {
  border-color: var(--gray-100);
}

.border-gray-300 {
  border-color: var(--gray-300);
}

.rounded {
  border-radius: 0.25rem;
}

.rounded-md {
  border-radius: 0.375rem;
}

.rounded-lg {
  border-radius: 0.5rem;
}

.rounded-full {
  border-radius: 9999px;
}

/* Shadows */
.shadow-md {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.shadow-lg {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.shadow-sm {
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

/* Grid */
.grid {
  display: grid;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.col-span-full {
  grid-column: 1 / -1;
}

.gap-6 {
  gap: 1.5rem;
}

.gap-8 {
  gap: 2rem;
}

/* Positioning */
.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.top-full {
  top: 100%;
}

.top-4 {
  top: 1rem;
}

.left-0 {
  left: 0;
}

.left-4 {
  left: 1rem;
}

.right-0 {
  right: 0;
}

.right-2 {
  right: 0.5rem;
}

.right-3 {
  right: 0.75rem;
}

.bottom-2 {
  bottom: 0.5rem;
}

.top-1\/2 {
  top: 50%;
}

.transform {
  transform: translateY(-50%);
}

.z-10 {
  z-index: 10;
}

.z-50 {
  z-index: 50;
}

/* Display */
.hidden {
  display: none;
}

.block {
  display: block;
}

.inline-block {
  display: inline-block;
}

.inline-flex {
  display: inline-flex;
}

/* Aspect ratio */
.aspect-square {
  aspect-ratio: 1 / 1;
}

.aspect-video {
  aspect-ratio: 16 / 9;
}

/* Overflow */
.overflow-auto {
  overflow: auto;
}

.overflow-hidden {
  overflow: hidden;
}

/* Cursor */
.cursor-pointer {
  cursor: pointer;
}

/* Hover effects */
.hover-underline:hover {
  text-decoration: underline;
}

.hover-bg-gray-50:hover {
  background-color: var(--gray-50);
}

.hover-bg-gray-100:hover {
  background-color: var(--gray-100);
}

.hover-bg-secondary-dark:hover {
  background-color: var(--secondary-dark);
}

.hover-bg-primary-dark:hover {
  background-color: var(--primary-dark);
}

.hover-bg-uci-yellow-dark:hover {
  background-color: var(--uci-yellow-dark);
}

.hover-shadow-md:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Focus */
.focus-outline-none:focus {
  outline: none;
}

.focus-ring-2:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--primary);
}

/* Transitions */
.transition-shadow {
  transition: box-shadow 0.3s ease;
}

.transition-colors {
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Custom components */
.role-selector {
  position: relative;
  display: inline-block;
}

.view-selector {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: white;
  font-size: 0.875rem;
  font-weight: 500;
  background: none;
  border: none;
  cursor: pointer;
}

.role-dropdown {
  position: absolute;
  right: 0;
  z-index: 10;
  margin-top: 0.5rem;
  width: 10rem;
  origin: top right;
  background-color: white;
  border-radius: 0.375rem;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05), 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.role-option {
  display: block;
  width: 100%;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
}

.role-option.active {
  background-color: var(--gray-100);
  color: var(--gray-900);
}

.role-option:not(.active):not(.disabled) {
  color: var(--gray-700);
}

.role-option.disabled {
  color: var(--gray-400);
  cursor: not-allowed;
}

.role-option:not(.disabled):hover {
  background-color: var(--gray-50);
}

.filter-button {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  border: 1px solid var(--gray-300);
  background-color: white;
  cursor: pointer;
}

.filter-button.active {
  background-color: var(--primary);
  color: white;
  border-color: var(--primary);
}

.dropdown-menu {
  position: absolute;
  left: 0;
  z-index: 10;
  margin-top: 0.25rem;
  min-width: 10rem;
  background-color: white;
  border-radius: 0.375rem;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05), 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.dropdown-item {
  display: block;
  width: 100%;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  text-align: left;
  color: var(--gray-700);
  background: none;
  border: none;
  cursor: pointer;
}

.dropdown-item.active {
  background-color: var(--gray-100);
  color: var(--gray-900);
}

.dropdown-item:hover {
  background-color: var(--gray-50);
}

.filter-tag {
  display: inline-flex;
  align-items: center;
  background-color: var(--gray-100);
  border-radius: 9999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
}

.filter-tag button {
  background: none;
  border: none;
  cursor: pointer;
  margin-left: 0.25rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  border-radius: 0.375rem;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.project-card:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.project-image {
  background-color: var(--gray-300);
  aspect-ratio: 1 / 1;
}

.project-image.award-winner {
  border: 2px solid var(--award);
}

.award-badge {
  background-color: var(--award);
  color: black;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.project-tag {
  display: inline-block;
  background-color: var(--gray-100);
  border-radius: 9999px;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-700);
}

.prose p {
  margin-bottom: 1rem;
}

.max-h-60 {
  max-height: 15rem;
}

.min-h-\[400px\] {
  min-height: 400px;
}

/* Media queries */
@media (min-width: 640px) {
  .sm-w-400 {
    width: 400px;
  }
  
  .sm-mt-0 {
    margin-top: 0;
  }
}

@media (min-width: 768px) {
  .md-hidden {
    display: none;
  }
  
  .md-flex {
    display: flex;
  }
  
  .md-grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  
  .md-col-span-2 {
    grid-column: span 2 / span 2;
  }
  
  .md-w-auto {
    width: auto;
  }
}

@media (min-width: 1024px) {
  .lg-grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}