/* Google Font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body */
body {
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  color: #0f172a;
  background:
    radial-gradient(circle at top right, rgba(59,130,246,0.08), transparent 35%),
    radial-gradient(circle at bottom left, rgba(139,92,246,0.08), transparent 35%),
    #f8fafc;
}

/* Top Bar */
.top-bar {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 18px 28px;
  backdrop-filter: blur(14px);
  background: rgba(255,255,255,0.88);
  border-bottom: 1px solid rgba(226,232,240,0.9);
  box-shadow: 0 8px 30px rgba(15,23,42,0.05);
  display: flex;
  align-items: center;
}

/* Back Button */
.back-btn {
  text-decoration: none;
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  color: white;
  padding: 11px 18px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  box-shadow: 0 10px 22px rgba(37,99,235,0.22);
  white-space: nowrap;
}

.back-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(37,99,235,0.30);
}

/* Boards Container */
#boards {
  max-width: 1400px;
  margin: 40px auto;
  padding: 0 24px 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

/* Card */
.card {
  background: rgba(255,255,255,0.96);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(226,232,240,0.9);
  box-shadow:
    0 10px 30px rgba(15,23,42,0.06),
    0 1px 2px rgba(15,23,42,0.04);
  transition: all 0.35s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 5px;
  width: 100%;
  background: linear-gradient(90deg, #2563eb, #7c3aed);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow:
    0 22px 50px rgba(15,23,42,0.12),
    0 4px 12px rgba(15,23,42,0.05);
}

/* Image */
.card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  background: #e2e8f0;
}

/* Board Name */
.card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #0f172a;
  padding: 22px 20px 14px;
  line-height: 1.4;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Button */
.view-btn {
  margin: 0 20px 22px;
  text-decoration: none;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: white;
  padding: 14px 18px;
  border-radius: 16px;
  font-weight: 700;
  font-size: 0.96rem;
  transition: all 0.3s ease;
  box-shadow: 0 12px 25px rgba(79,70,229,0.22);
}

.view-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(79,70,229,0.30);
}

/* Tablet */
@media (max-width: 992px) {
  .top-bar {
    padding: 16px 20px;
  }

  #boards {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
    padding: 0 18px 30px;
  }

  .card img {
    height: 200px;
  }

  .card h3 {
    font-size: 1.15rem;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .top-bar {
    padding: 16px;
    justify-content: flex-start;
  }

  .back-btn {
    padding: 10px 16px;
    font-size: 0.9rem;
  }

  #boards {
    grid-template-columns: 1fr;
    margin: 24px auto;
    padding: 0 14px 24px;
    gap: 18px;
  }

  .card {
    border-radius: 20px;
  }

  .card img {
    height: 190px;
  }

  .card h3 {
    font-size: 1.05rem;
    min-height: auto;
    padding: 18px 16px 12px;
  }

  .view-btn {
    margin: 0 16px 18px;
    padding: 13px;
    font-size: 0.92rem;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .top-bar {
    padding: 14px;
  }

  .back-btn {
    font-size: 0.85rem;
    padding: 9px 14px;
    border-radius: 12px;
  }

  .card img {
    height: 170px;
  }

  .card h3 {
    font-size: 1rem;
    padding: 16px 14px 10px;
  }

  .view-btn {
    font-size: 0.88rem;
    padding: 12px;
    border-radius: 14px;
  }
}