/**
 * Solutions Grid - Çözümler Grid Sayfası
 */

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin: 60px 0 0 0;
}

.solution-grid-card {
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-width: 494px;
  max-height: 357px;
  transition: box-shadow 0.3s ease;
}

.solution-grid-card:hover {
  box-shadow: 0 8px 24px rgba(158, 145, 134, 0.2);
}

.solution-grid-card__image {
  width: 100%;
  height: 160px;
  overflow: hidden;
  background: #f5f5f5;
}

.solution-grid-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.solution-grid-card__content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  text-align: center;
}

.solution-grid-card__title {
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-gray-dark);
  margin: 0 0 12px 0;
  text-align: center;
}

.solution-grid-card__desc {
  font-weight: 300;
  color: var(--color-gray-dark);
  margin: 0 0 20px 0;
  flex-grow: 1;
  text-align: center;
}

.solution-grid-card__button {
  display: inline-block;
  padding: 10px 32px;
  background: #fff;
  color: var(--color-orange);
  text-decoration: none;
  border-radius: 24px;
  border: 1px solid var(--color-orange);
  font-family: "Barlow", sans-serif;
  font-weight: 700;
  font-size: 14px;
  text-align: center;
  align-self: center;
}

/* Loader - Grid'in DIŞINDA, bağımsız */
.solutions-grid-loader {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 0;
  margin: 0 0 40px 0;
  width: 100%;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* LOADER GİZLEME CLASS'I - EKLENDİ */
.solutions-grid-loader--hidden {
  opacity: 0;
  visibility: hidden;
  height: 0;
  padding: 0;
  margin: 0;
  overflow: hidden;
}

.solutions-grid-loader img {
  width: 48px;
  height: 48px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Error Message */
.solutions-error-message {
  text-align: center;
  padding: 20px;
  color: #d32f2f;
  font-size: 14px;
  margin: 20px 0;
}

/* Responsive */
@media (max-width: 1024px) {
  .solutions-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .solution-grid-card {
    max-width: none;
    max-height: none;
  }
}

@media (max-width: 768px) {
  .solutions-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 0;
  }

  .solution-grid-card {
    max-width: none;
    max-height: none;
  }

  .solution-grid-card__image {
    height: 200px;
  }

  .solution-grid-card__content {
    padding: 20px;
  }

  .solution-grid-card__title {
    font-size: 18px;
  }

  .solution-grid-card__desc {
    font-size: 13px;
  }

  .solutions-grid-loader {
    padding: 30px 0;
    margin: 0 0 30px 0;
  }
}
