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

/* Body */
body {
  font-family: 'Inter', Arial, sans-serif;
  background: #f4f4f7;
  color: #333;
  padding-top: 100px; /* dla sticky navbar */
}

/* Nagłówki */
h1 {
  text-align: center;
  color: #cc0033;
  font-size: 2em;
  font-weight: 700;
  margin-bottom: 5px;
}

p.subtitle {
  text-align: center;
  color: #666;
  font-size: 1em;
  margin-bottom: 20px;
}

/* Search */
#search {
  display: block;
  margin: 0 auto 20px auto;
  padding: 12px 15px;
  width: 60%;
  max-width: 400px;
  border-radius: 12px;
  border: 1px solid #ddd;
  font-size: 1em;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Tabs */
.tabs {
  text-align: center;
  margin-bottom: 20px;
}
.tab {
  display: inline-block;
  padding: 8px 18px;
  margin: 0 5px 10px 5px;
  cursor: pointer;
  border-radius: 12px;
  background: #eee;
  transition: background 0.3s, color 0.3s;
  font-size: 0.9em;
  font-weight: 500;
}
.tab.active {
  background: #cc0033;
  color: white;
  font-weight: 600;
}

/* Grid – kafelki 3x3 */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  justify-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

/* Kafelki */
.card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 15px rgba(0,0,0,0.08);
  width: 380px;
  height: 380px;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s, box-shadow 0.25s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.12);
}

.card img {
  width: 100%;
  height: 50%;
  object-fit: cover;
  border-bottom: 1px solid #eee;
}

.card h2 {
  margin: 8px 10px 4px 10px;
  font-size: 1.3em;
  color: #cc0033;
}

.card p {
  margin: 0 10px 6px 10px;
  font-size: 0.95em;
  color: #555;
  flex-grow: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card .tags {
  margin: 0 10px 6px 10px;
}
.card .tag {
  display: inline-block;
  background: #cc0033;
  color: white;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.7em;
  margin-right: 4px;
  margin-bottom: 4px;
}
.card a {
  text-decoration: none;
  background: #cc0033;
  color: white;
  padding: 6px;
  text-align: center;
  margin: 6px 10px;
  border-radius: 8px;
  font-size: 0.75em;
  font-weight: 500;
  transition: background 0.3s, transform 0.2s;
}
.card a:hover {
  background: #990026;
  transform: translateY(-2px);
}

/* Pagination */
.pagination {
  text-align: center;
  margin-top: 20px;
  width: 100%;
  display: flex;
  justify-content: center;
}
.page-btn {
  display: inline-block;
  padding: 6px 12px;
  margin: 0 3px;
  border-radius: 8px;
  background: #cc0033;
  color: white;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.3s;
}
.page-btn.active {
  background: #990026;
}
.page-btn:hover:not(.active) {
  background: #dd0033;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #fff;
  height: 70px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 1000;
}

.navbar .nav-container {
  width: 100%;
  max-width: 1200px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.navbar .logo a {
  display: flex;
  align-items: center;
  gap: 1px;
  text-decoration: none;
}

.navbar .logo img {
  height: 70px;
  width: auto;
  display: block;
}

.navbar .logo span {
  font-weight: 700;
  font-size: 1.4em;
  color: #cc0033;
  letter-spacing: 1px;
}

.navbar .nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
  margin: 0;
  padding: 0;
}

.navbar .nav-links li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  transition: background 0.3s, color 0.3s;
}

.navbar .nav-links li a:hover {
  background: #cc0033;
  color: #fff;
}

/* Footer */
footer {
  width: 100%;
  background: linear-gradient(135deg, #1a1a1a, #111);
  color: #fff;
  margin-top: 40px;
  padding: 50px 0 20px 0;
}

.footer-main {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-section {
  flex: 1;
  min-width: 200px;
}

.footer-section h3 {
  margin-bottom: 15px;
  font-size: 1.2em;
  color: #ff3366;
  font-weight: 600;
}

.footer-section p {
  line-height: 1.6;
  color: #ccc;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 8px;
}

.footer-section ul li a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-section ul li a:hover {
  color: #ff3366;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid #333;
  margin: 0;
  padding: 12px 0;
  color: #888;
  font-size: 0.8em;
  width: 100%;
}

@media screen and (max-width: 1200px) {
  .card { width: 280px; height: 280px; }
}

@media screen and (max-width: 1000px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .card { width: 40vw; height: 40vw; }
}

@media screen and (max-width: 800px) {
  .footer-main { flex-direction: column; text-align: center; }
  .grid { grid-template-columns: 1fr; }
  .card { width: 70%; height: auto; min-height: 180px; margin: 0 auto; }
}

@media screen and (max-width: 600px) {
  .grid { grid-template-columns: 1fr; }
  .card { width: 85%; height: auto; min-height: 200px; margin: 0 auto; }
}


.form-container {
  background: #e0e0e0;
  padding: 25px;
  border-radius: 16px;
  margin-top: 20px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
  text-align: center;
}

.form-input, #track-btn-form {
  display: block;
  width: 80%;
  max-width: 300px;
  margin: 15px auto;
  font-size: 1em;
}

.form-input {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

#track-btn-form {
  background: #cc0033;
  color: white;
  padding: 14px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.3s, transform 0.15s;
  box-shadow: 0 6px 12px rgba(0,0,0,0.08);
}

#track-btn-form:hover {
  background: #990026;
  transform: translateY(-2px);
}

.error {
  color: red;
  margin-top: 10px;
  font-size: 0.95em;
  min-height: 20px;
}

