/* ===========================================================
   RESET
   =========================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background: #fafafa;
  color: #111827;
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

/* ===========================================================
   LAYOUT
   =========================================================== */

main.layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 16px 50px;
}

/* ===========================================================
   TOPBAR
   =========================================================== */

.topbar {
  width: 100%;
  background: #ffffff;
  border-bottom: 2px solid #fde68a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  position: sticky;
  top: 0;
  z-index: 30;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.topbar .logo {
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #111827;
}

.topbar .logo span:first-child {
  font-size: 1.7rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.main-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: #374151;
  padding: 6px 8px;
  border-radius: 6px;
  transition: background .25s, color .15s;
}

.main-nav a:hover {
  background: #fef3c7;
  color: #111827;
}

.main-nav a.active {
  background: #fdba74;
  color: #111827;
  font-weight: 600;
}

/* ===========================================================
   HOMEPAGE – GRID OF CARDS
   =========================================================== */

.home-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.home-card {
  background: #ffffff;
  border-radius: 18px;
  border: 2px solid #fde68a;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
  padding: 14px 16px 18px;
  display: block;
  transition: transform .15s, box-shadow .15s, background .15s;
  position: relative;
  overflow: hidden;
}

.home-card:hover {
  transform: translateY(-2px);
  background: #fffbeb;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
}

.home-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #111827;
}

.home-card-title span.icon {
  font-size: 1.4rem;
}

.home-card-desc {
  font-size: 0.9rem;
  color: #4b5563;
  margin-bottom: 8px;
}

.home-card-meta {
  font-size: 0.8rem;
  color: #6b7280;
}

.home-card-arrow {
  position: absolute;
  right: 14px;
  bottom: 12px;
  font-size: 1rem;
  color: #f59e0b;
}

/* ===========================================================
   SUBPAGE TITLES & TEXT
   =========================================================== */

.page-header h1 {
  font-size: 2.0rem;
  margin-bottom: 6px;
}

.page-header p {
  font-size: 1rem;
  color: #4b5563;
}

/* ===========================================================
   BUTTONS
   =========================================================== */

.btn {
  padding: 12px 14px;
  font-size: 0.95rem;
  border: 0;
  background: #fde047; /* yellow-300 */
  color: #3f3f46;
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
  margin-bottom: 10px;
  width: 100%;
  transition: background .15s, transform .1s;
}

.btn:hover {
  background: #facc15; /* yellow-400 */
  transform: translateY(-2px);
}



/* ===========================================================
   STATS BOX
   =========================================================== */

.stats-box {
  margin-top: 20px;
  background: #ffffff;
  border: 2px solid #fde68a;
  border-radius: 14px;
  padding: 12px;
  font-size: 18px;
  color: #333;
}

.stats-box strong {
  font-size: 1.15rem;
}

/* ===========================================================
   FOOTER
   =========================================================== */

#stopka {
  text-align: center;
  margin-top: 30px;
  padding: 25px 0;
  font-size: 0.9rem;
  color: #6b7280;
}

/* ===========================================================
   UTILITIES
   =========================================================== */

.text-green {
  color: #16a34a;
}

.text-red {
  color: #dc2626;
}

.flex {
  display: flex;
  gap: 28px;
}

.board-wrap {
  flex: 1;
}

/* ===========================================================
   RESPONSYWNOŚĆ
   =========================================================== */

@media(max-width: 880px){
  .flex {
    flex-direction: column;
  }

  .main-nav {
    flex-wrap: wrap;
    gap: 14px;
    font-size: 0.9rem;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

#board {
  width: 520px;      /* tylko szerokość! */
  max-width: 100%;   /* jeśli chcesz responsywność */
}

#kolumna3 {
  width: 400px;
  flex-shrink: 0;
}
