/* Project Card Design - Dark Theme */

.projects-list-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  padding: 0;
}

/* Project Card - Dark Theme Design */
.project-card-new {
  background: #03112E;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2), 0 2px 4px rgba(0, 0, 0, 0.1);
  border: 1px solid #1a2a4a;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  cursor: pointer;
}

.project-card-new:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3), 0 4px 8px rgba(0, 0, 0, 0.15);
  transform: translateY(-4px);
}

.project-card-header {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.project-card-bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.project-card-bg-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(2px);
  transform: scale(1.06);
  animation: projectImageDrift 12s ease-in-out infinite;
  transition: transform 0.4s ease;
}

.project-card-new:hover .project-card-bg-image img {
  animation-play-state: paused;
  transform: scale(1.14);
}

@keyframes projectImageDrift {
  0% {
    transform: scale(1.04) translateY(0);
  }
  50% {
    transform: scale(1.09) translateY(-4px);
  }
  100% {
    transform: scale(1.04) translateY(0);
  }
}

.project-card-header-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(3, 17, 46, 0.4), rgba(3, 17, 46, 0.7));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  z-index: 1;
}

.project-card-logo {
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

@media (max-width: 640px) {
  .project-card-logo {
    display: none;
  }
}

.project-card-logo-icon {
  width: 32px;
  height: 32px;
  color: #ffffff;
}

.project-card-title {
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  line-height: 1.3;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-card-provider {
  color: #d4a574;
  font-size: 1rem;
  font-weight: 500;
  margin: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.project-card-details {
  background: #03112E;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.project-card-detail-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #ffffff;
  font-size: 0.9375rem;
}

.project-card-detail-item a {
  word-break: break-all;
  overflow-wrap: break-word;
  max-width: 100%;
}

@media (max-width: 768px) {
  .project-card-detail-item {
    flex-wrap: wrap;
  }
  .project-card-detail-item a {
    word-break: break-all;
    overflow-wrap: break-word;
    max-width: 100%;
    display: block;
    width: 100%;
  }
}

.project-card-detail-item svg {
  color: #94a3b8;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

.project-card-actions {
  padding: 0 1.5rem 1.5rem 1.5rem;
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.project-card-view-btn {
  flex: 1;
  padding: 0.625rem 1rem;
  background: #d4a574;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.project-card-view-btn:hover {
  background: #c8955f;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212, 165, 116, 0.4);
}

.project-card-view-btn svg {
  transition: transform 0.3s ease;
}

.project-card-view-btn:hover svg {
  transform: translateX(4px);
}

.project-card-purchase-btn {
  flex: 1;
  padding: 0.625rem 1rem;
  background: #10b981;
  color: #ffffff;
  border: 2px solid #10b981;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.project-card-purchase-btn:hover:not(:disabled) {
  background: #059669;
  border-color: #059669;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.project-card-purchase-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.project-card-purchase-btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.project-card-purchase-btn:hover:not(:disabled) svg {
  transform: scale(1.1);
}

.project-card-cart-btn {
  flex: 1;
  padding: 0.625rem 1rem;
  background: #17a2b8;
  color: #ffffff;
  border: 2px solid #17a2b8;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.project-card-cart-btn:hover {
  background: #1491a4;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(23, 162, 184, 0.4);
}

.project-card-cart-btn .cart-btn-label {
  display: inline;
}

.no-projects {
  text-align: center;
  padding: 3rem;
  color: #6b7280;
}

@media (max-width: 858px) {
  .project-card-actions {
    gap: 0.5rem;
  }
  .project-card-cart-btn {
    gap: 0;
    padding: 0.75rem;
  }
  .project-card-cart-btn .cart-btn-label {
    display: none;
  }
}

@media (max-width: 768px) {
  .projects-list-container {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
  }
  .project-card-header {
    height: 180px;
  }
  .project-card-title {
    font-size: 1.25rem;
  }
  .view-details-text {
    display: none !important;
  }
  .details-text {
    display: inline !important;
  }
}

@media (max-width: 480px) {
  .projects-list-container {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .project-card-header {
    height: 160px;
  }
  .project-card-title {
    font-size: 1.125rem;
  }
}

