/* Markii Tilt Portfolio — style siatki kafelków (component 5) */

.tilt-cards-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 20px 0;
  box-sizing: border-box;
}

.unlumen-tilt-card {
  position: relative;
  display: block;
  flex: 0 1 calc(25% - 15px);
  height: 380px;
  border-radius: 12px;
  background-color: #121318;
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  transform-style: preserve-3d;
  will-change: transform;
  text-decoration: none !important;
  color: inherit;
  transition: transform 0.15s ease-out, border-color 0.3s ease, box-shadow 0.3s ease;
}

.unlumen-tilt-card:hover {
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.tilt-bg-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s ease;
}

.unlumen-tilt-card:hover .tilt-bg-image {
  transform: scale(1.05);
}

.tilt-shine {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(
    500px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(255, 255, 255, 0.18),
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 3;
}

.unlumen-tilt-card:hover .tilt-shine {
  opacity: 1;
}

.tilt-card-content {
  position: relative;
  height: 100%;
  padding: 16px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 2;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.4) 100%);
  transform: translateZ(25px);
}

.tilt-badges {
  display: flex;
  gap: 6px;
}

.tilt-badge {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
}

.tilt-footer-info {
  margin-top: auto;
}

.tilt-title {
  color: #ffffff !important;
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0 0 4px 0;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tilt-subtitle {
  color: rgba(255, 255, 255, 0.75) !important;
  font-size: 0.8rem;
  margin: 0;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 1024px) {
  .unlumen-tilt-card {
    flex-basis: calc(50% - 10px);
  }
}

@media (max-width: 600px) {
  .unlumen-tilt-card {
    flex-basis: 100%;
    height: 320px;
  }
}

/* Nagłówki kategorii (grupowanie kafelków) */
.tilt-master-heading {
  max-width: 1300px;
  margin: 50px auto 6px auto;
  color: #f5f5f5 !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.tilt-master-heading:first-child {
  margin-top: 0;
}

.tilt-cat-heading {
  max-width: 1300px;
  margin: 0 auto 24px auto;
  color: rgba(255, 255, 255, 0.88) !important;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.9rem;
  font-weight: 400;
  line-height: 1.2;
}

.tilt-category-block {
  max-width: 1300px;
  margin: 0 auto 40px auto;
  padding: 0 0;
}

.tilt-category-block:last-child {
  margin-bottom: 0;
}

.tilt-category-block .tilt-cards-grid {
  margin: 0;
  padding: 0;
}

.tilt-category-heading {
  color: #ffffff !important;
  font-size: 1.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 20px 0;
  padding-bottom: 12px;
  border-bottom: 2px solid #00e6a8;
  display: inline-block;
}

@media (max-width: 600px) {
  .tilt-master-heading {
    font-size: 2.1rem;
    margin-top: 34px;
  }
  .tilt-cat-heading {
    font-size: 1.4rem;
  }
}

