/* Unified Portfolio Styles */

/* CSS Variables for consistent theming */
:root {
  --color-primary: #1173d4;
  --color-background-light: #f6f7f8;
  --color-background-dark: #101922;
  --font-display: 'Inter', sans-serif;
}

/* Base styles */
html {
  font-family: var(--font-display);
}

/* Unified hover effects for project cards */
.project-card {
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: scale(1.05);
}

/* Unified backdrop blur for headers */
.header-blur {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Common figure spacing for details page */
.content-figure {
  margin: 2rem 0;
}

.content-figure img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 0.5rem;
}

.content-figure figcaption {
  text-align: center;
  font-size: 0.875rem;
  margin-top: 1rem;
}

/* Unified footer styles */
.footer-text {
  font-size: 0.875rem;
  color: rgb(107 114 128);
}

.dark .footer-text {
  color: rgb(156 163 175);
}

/* Consistent text colors */
.text-unified-primary {
  color: rgb(15 23 42);
}

.dark .text-unified-primary {
  color: rgb(248 250 252);
}

.text-unified-secondary {
  color: rgb(71 85 105);
}

.dark .text-unified-secondary {
  color: rgb(148 163 184);
}

.text-unified-muted {
  color: rgb(100 116 139);
}

.dark .text-unified-muted {
  color: rgb(148 163 184);
}

/* Unified border colors */
.border-unified {
  border-color: rgb(226 232 240);
}

.dark .border-unified {
  border-color: rgb(30 41 59);
}

/* Animation utilities */
.transition-all-smooth {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Loading states */
.loading-skeleton {
  background: linear-gradient(90deg, 
    rgb(241 245 249) 25%, 
    rgb(248 250 252) 50%, 
    rgb(241 245 249) 75%);
  background-size: 200% 100%;
  animation: loading 2s infinite;
}

.dark .loading-skeleton {
  background: linear-gradient(90deg, 
    rgb(30 41 59) 25%, 
    rgb(51 65 85) 50%, 
    rgb(30 41 59) 75%);
  background-size: 200% 100%;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Focus states for accessibility */
.focus-ring:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .header-blur {
    backdrop-filter: none;
    background: white !important;
  }
  
  .project-card {
    break-inside: avoid;
  }
}
