/* css/portfolio.css
   Style tylko dla strony portfolio.php
   (globalne rzeczy typu header/footer są w css/styles.css)
*/

/* główna sekcja na stronie portfolio */
.portfolio-page {
  padding: 56px 0;
  background: #ffffff;
}

/* kontener treści */
.portfolio-container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

/* nagłówek sekcji */
.portfolio-container h1 {
  margin: 0 0 8px;
  font-size: 2rem;
  font-weight: 700;
  color: #0b1220;
}
.portfolio-container > p {
  margin: 0 0 20px;
  color: #667085;
  font-size: 0.98rem;
}

/* grid kart projektów */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  align-items: start;
}

/* karta projektu */
.project-card {
  display: block;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(13,18,23,0.04);
  box-shadow: 0 10px 30px rgba(14,18,24,0.06);
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.project-card:hover,
.project-card:focus {
  transform: translateY(-8px);
  box-shadow: 0 26px 60px rgba(9,12,18,0.12);
}

/* miniaturka w karcie */
.project-card .thumb {
  display: block;
  width: 100%;
  height: 350px;
  object-fit: cover;
  background: linear-gradient(180deg, #f6f7f9, #ededf0); /* gdy brak obrazka */
}

/* część tekstowa karty */
.project-card .meta {
  padding: 14px 16px 18px 16px;
  background: #ffffff;
}
.project-card .meta h3 {
  margin: 0 0 6px;
  font-size: 1.02rem;
  font-weight: 700;
  color: #0b1220;
}
.project-card .meta p {
  margin: 0;
  font-size: 0.92rem;
  color: #6b7280;
}

/* stan gdy nie ma projektów */
.no-projects {
  padding: 20px;
  border-radius: 10px;
  background: transparent;
  color: #6b7280;
  text-align: center;
}

/* responsywność */
@media (max-width: 900px) {
  .project-card .thumb { height: 160px; }
}
@media (max-width: 520px) {
  .project-card .thumb { height: 140px; }
  .portfolio-container { padding: 0 12px; }
}

/* focus dla dostępności */
.project-card:focus {
  outline: 3px solid rgba(59,130,246,0.18);
  outline-offset: 4px;
}
