/* Studio Dashboard Styles */

:root {
  --card-bg: #ffffff;
  --card-shadow: rgba(0, 0, 0, 0.1);
  --card-shadow-hover: rgba(0, 0, 0, 0.2);
  --text-primary: #2c3e50;
  --text-secondary: #7f8c8d;
  --background: #f8f9fa;
  --transition-speed: 0.6s;
}

body {
  background-color: var(--background);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.studio-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.studio-header {
  text-align: center;
  margin-bottom: 3rem;
}

.studio-header h1 {
  font-size: 3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.studio-header p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  font-weight: 300;
}

/* Project Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

/* Card Container - handles 3D perspective */
.project-card-container {
  perspective: 1000px;
  height: 220px;
}

/* Card Wrapper - flips on hover */
.project-card {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform var(--transition-speed);
  transform-style: preserve-3d;
  cursor: pointer;
}

.project-card-container:hover .project-card,
.project-card.flipped {
  transform: rotateY(180deg);
}

/* Card Faces */
.card-face {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 12px var(--card-shadow);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  background: var(--card-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.project-card-container:hover .card-face {
  box-shadow: 0 8px 24px var(--card-shadow-hover);
}

.project-card-container:hover .card-front {
  transform: scale(1.03) translateZ(0);
}

/* Front Face */
.card-front {
  z-index: 2;
}

.card-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
  margin: 0;
  line-height: 1.3;
}

/* Back Face */
.card-back {
  transform: rotateY(180deg);
  padding: 2rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card-description {
  font-size: 0.95rem;
  color: var(--text-primary);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.card-status {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  font-weight: 600;
  margin-top: auto;
}

/* Category Colors */
.card-front.category-mapping {
  border-top: 4px solid #8ab4f8;
}

.card-front.category-games {
  border-top: 4px solid #fdd663;
}

.card-front.category-ai-tools {
  border-top: 4px solid #81c995;
}

.card-front.category-writing {
  border-top: 4px solid #c9b396;
}

.card-front.category-utilities {
  border-top: 4px solid #f28b82;
}

/* Status Badges */
.status-active {
  color: #81c995;
}

.status-planning {
  color: #8ab4f8;
}

.status-on-hold {
  color: #fdd663;
}

.status-completed {
  color: #c9b396;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }

  .studio-header h1 {
    font-size: 2.5rem;
  }

  .project-card-container {
    height: 200px;
  }
}

@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .studio-container {
    padding: 1.5rem;
  }

  .studio-header h1 {
    font-size: 2rem;
  }

  .studio-header p {
    font-size: 1rem;
  }

  .project-card-container {
    height: 180px;
  }

  .card-icon {
    width: 48px;
    height: 48px;
  }

  .card-title {
    font-size: 1rem;
  }

  .card-description {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .project-card-container {
    height: 160px;
  }

  .studio-header {
    margin-bottom: 2rem;
  }
}

/* Footer */
.studio-footer {
  text-align: center;
  padding: 2rem 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.studio-footer a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
}

.studio-footer a:hover {
  text-decoration: underline;
}

/* Loading State */
.projects-grid.loading {
  opacity: 0.5;
}

/* Accessibility */
.project-card-container:focus-within .project-card {
  transform: rotateY(180deg);
}

.card-face:focus {
  outline: 2px solid #3498db;
  outline-offset: 4px;
}
