/**
 * Main CSS File
 * Extracted from inline styles in referenzen.astro and blog.astro
 */

/* ===================================
   PROJECT CARDS (referenzen.astro)
   =================================== */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  margin: 3rem auto;
  max-width: 1400px;
  animation: fadeIn 0.5s ease-in;
}

.project-card {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12) !important;
  border-color: #337ab7 !important;
}

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

.project-card:hover h2 {
  color: #2868a0 !important;
}

.project-card a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.project-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #f5f5f5;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project-content {
  padding: 1.5rem;
}

.project-content h2 {
  font-size: 1.3rem;
  margin: 0 0 1rem 0;
  color: #337ab7;
  line-height: 1.4;
}

.project-content p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.project-content .technologies {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.project-content .technologies span {
  background: #f0f7ff;
  color: #337ab7;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 500;
}

.project-content .read-more {
  margin-top: 1.5rem;
  color: #337ab7;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ===================================
   BLOG CARDS (blog.astro)
   =================================== */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 3rem 0;
  animation: fadeIn 0.5s ease-in;
}

.blog-card {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12) !important;
  border-color: #337ab7 !important;
}

.blog-card:hover h2 {
  color: #2868a0 !important;
}

.blog-card:hover .read-more {
  transform: translateX(4px);
}

.blog-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: #888;
}

.blog-meta svg {
  flex-shrink: 0;
}

.blog-content h2 {
  font-size: 1.25rem;
  margin: 0 0 1rem 0;
  color: #337ab7;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.blog-content h2 a {
  text-decoration: none;
  color: inherit;
}

.blog-content p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  flex: 1;
}

.blog-content .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.blog-content .tags span {
  background: #f0f7ff;
  color: #337ab7;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
}

.blog-content .tags span:not([style*="background: #f0f7ff"]) {
  background: #f5f5f5;
  color: #888;
}

.blog-content .read-more {
  color: #337ab7;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  transition: transform 0.3s ease;
  margin-top: auto;
}

/* ===================================
   ANIMATIONS
   =================================== */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

/* Blog Grid - Large screens */
@media (max-width: 1200px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* Blog Grid - Mobile */
@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  .projects-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
}
