* {
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  background-color: #f9f9f9;
  color: #333;

  /* Sticky footer correct */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ============================= */
/* HEADER */
/* ============================= */

.main-header {
  position: relative;
  background: url("../logos/background-promptdesigners.jpg") center center / cover no-repeat;
  padding: 10px 20px;
  color: white;
  text-align: center;
}
.main-header h1,
.main-header p,
.main-header .header-description {
  color: #ffffff;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* Overlay voor leesbaarheid */
.main-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1;
}

.header-inner {
  position: relative;
  z-index: 2;
}

.main-header h1 {
  margin: 0;
  font-size: 2.5em;
}

.main-header p {
  margin-top: 15px;
  font-size: 1.1em;
}

/* Categorie knoppen */

.category-buttons {
  margin-top: 25px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.category-buttons button {
  padding: 10px 18px;
  border: none;
  border-radius: 5px;
  background-color: white;
  color: #4f46e5;
  cursor: pointer;
  font-size: 0.95em;
  transition: all 0.2s ease;
}

.category-buttons button:hover {
  background-color: #e0e7ff;
}

.category-buttons button.active {
  background-color: #e0e7ff;
  font-weight: bold;
}

/* ============================= */
/* MAIN CONTENT */
/* ============================= */

main {
  flex: 1;  /* BELANGRIJK voor sticky footer */
  padding: 40px 20px;
  display: flex;
  justify-content: center;
}

/* Centrale breedte */

.page-container {
  max-width: 1200px;
  width: 100%;
}

/* Categorie tekst */

.category-description {
  text-align: center;
  margin-bottom: 30px;
}

.category-description p {
  max-width: 1000px;
  margin: 0 auto;
  line-height: 1.7;
  font-size: 16px;
  color: #fff;
}

/* Tools grid */

.tools-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

/* Cards */

.card {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0,0,0,0.15);
}

.card img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin-bottom: 12px;
}

.card h3 {
  margin: 5px 0;
  font-size: 1.1em;
  color: #4f46e5;
}

.card p {
  font-size: 0.95em;
  color: #555;
}

/* ============================= */
/* FOOTER */
/* ============================= */

.main-footer {
  background: #f4f4f4;
  color: #666;
  border-top: 1px solid #ddd;
  padding: 20px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  font-size: 14px;
}

/* ============================= */
/* RESPONSIVE */
/* ============================= */

@media (max-width: 768px) {
  .main-header h1 {
    font-size: 2em;
  }

  .category-buttons button {
    font-size: 0.9em;
    padding: 8px 15px;
  }
}

@media (max-width: 480px) {
  .tools-container {
    grid-template-columns: 1fr;
  }
}
