/* ==============================
   ZMIENNE GLOBALNE
============================== */
:root {
  --bg: #f3f6fb;
  --card: #ffffff;
  --muted: #6b7280;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(2,6,23,0.15);
}

/* ==============================
   BODY
============================== */
body {
  background: var(--bg);
  color: #0b1220;
  font-family: 'Inter', system-ui, sans-serif;
  margin: 0;
  transition: all 0.25s ease;
}

/* ==============================
   KONTAINER APLIKACJI
============================== */
.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ==============================
   TOPBAR / GÓRNA BELKA
============================== */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  backdrop-filter: blur(6px);
  background: rgba(255,255,255,0.7);
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 18px;
}

/* LOGO */
.brand-logo-link {
  display: flex;
  align-items: center;
}

.brand-logo {
  height: 60px;
  width: auto;
  object-fit: contain;
  display: block;
}

@media (max-width:600px) {
  .brand-logo {
    height: 48px;
  }
}

/* ==============================
   LAYOUT KONTAINERÓW
============================== */
.container.single-column {
  padding: 28px;
  max-width: 1100px;
  margin: 0 auto;
  width: calc(100% - 48px);
}

/* ==============================
   WYSZUKIWARKA I PRZYCISKI
============================== */
.search-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 16px;
  gap: 10px;
}

.search-wrap input {
  flex: 1;
  max-width: 520px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(11,18,32,0.06);
  background: var(--card);
  color: inherit;
  box-shadow: var(--shadow);
}

#favorites-btn,
#popular-btn {
  padding: 10px 14px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  background: var(--card);
  box-shadow: var(--shadow);
  transition: all 0.25s ease;
}

#favorites-btn:hover,
#popular-btn:hover {
  transform: translateY(-2px);
  background: #e9eef8;
}

/* ==============================
   SIATKA STACJI
============================== */
.station-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width:900px) {
  .station-list {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width:600px) {
  .station-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* KARTA STACJI */
.station {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  border-radius: 12px;
  background: var(--card);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform .18s ease;
  position: relative;
  text-align: center;
}

.station:hover {
  transform: translateY(-6px);
}

.station-link {
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.station-link:hover {
  text-decoration: none;
  color: inherit;
}

.logo-img img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  border-radius: 10px;
}

.station .meta .name {
  font-weight: 600;
  font-size: 15px;
  margin-top: 6px;
  color: inherit;
}

/* ==============================
   ULUBIONE
============================== */
.favorite {
  position: absolute;
  right: 10px;
  top: 10px;
  font-size: 28px;
  color: rgba(255,255,255,0.7);
  transition: transform .12s, color .12s;
  user-select: none;
  text-shadow: 0 0 6px rgba(0,0,0,0.4);
}

.favorite:hover::after {
  opacity: 1;
}

.favorite::after {
  content: "Dodaj do ulubionych";
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0,0,0,0.75);
  color: #fff;
  padding: 5px 8px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity .2s ease;
}

.favorite.favorited {
  color: #ff7b7b;
}

.favorite.favorited::after {
  content: "Usuń z ulubionych";
}

/* ==============================
   MOTYW / DARK MODE
============================== */
#theme-btn {
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 22px;
  cursor: pointer;
  color: #333;
  transition: background 0.3s, transform 0.2s, color 0.3s;
  background: var(--card);
  box-shadow: var(--shadow);
}

#theme-btn:hover {
  transform: scale(1.1);
}

/* DARK MODE */
body[data-theme="dark"] {
  background-color: #121212;
  color: #f5f5f5;
}

body[data-theme="dark"] .topbar {
  background-color: #1e1e1e;
  border-bottom: 1px solid #333;
}

body[data-theme="dark"] .container {
  background-color: #181818;
}

body[data-theme="dark"] .station,
body[data-theme="dark"] .top5-list .station {
  background-color: #222;
  border: 1px solid #333;
}

body[data-theme="dark"] a {
  color: #66b3ff;
}

body[data-theme="dark"] .footer {
  background-color: #1a1a1a;
  color: #ccc;
}

body[data-theme="dark"] .footer a {
  color: #66b3ff;
}

body[data-theme="dark"] #theme-btn,
body[data-theme="dark"] #favorites-btn,
body[data-theme="dark"] #popular-btn,
body[data-theme="dark"] .btn-show-more,
body[data-theme="dark"] .btn-back-home {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: none;
}

/* ==============================
   STOPKA
============================== */
.footer {
  background: var(--bg);
  color: inherit;
  padding: 40px 20px 20px;
  font-size: 14px;
  margin-top: 20px;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
}

.footer-col {
  flex: 1 1 200px;
}

.footer-col h4 {
  font-size: 16px;
  margin-bottom: 12px;
  font-weight: 600;
}

.footer-col ol,
.footer-col ul {
  padding-left: 20px;
  margin: 0;
}

.footer-col ul li,
.footer-col ol li {
  margin-bottom: 6px;
}

.footer-col a {
  color: inherit;
  text-decoration: none;
}

.footer-note {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  margin-top: 25px;
  margin-bottom: 10px;
}

/* ==============================
   PRZYCISKI I SHOW MORE
============================== */
.show-more-container {
  text-align: center;
  margin-top: 28px;
}

.btn-show-more {
  background: var(--card);
  border: 1px solid rgba(0,0,0,0.1);
  padding: 10px 18px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  box-shadow: var(--shadow);
  transition: all 0.25s ease;
}

.btn-show-more:hover {
  transform: translateY(-3px);
  background: #e9eef8;
}

/* ==============================
   STRONY BŁĘDÓW
============================== */
.error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  text-align: center;
  padding: 2rem;
  animation: fadeIn 0.5s ease;
}

.error-code {
  font-size: clamp(48px, 14vw, 96px);
  font-weight: 700;
  color: #e63946;
  margin: 0.2rem 0;
  text-shadow: 0 2px 10px rgba(0,0,0,0.12);
}

.error-title {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.error-text {
  font-size: 1rem;
  color: var(--muted);
  max-width: 720px;
  margin-bottom: 1.6rem;
  line-height: 1.6;
}

.btn-back-home {
  display: inline-block;
  padding: 0.8rem 1.4rem;
  background: var(--card);
  color: inherit;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform .2s ease, background .2s;
}

.btn-back-home:hover {
  transform: translateY(-4px);
}

/* ==============================
   ANIMACJE
============================== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==============================
   BANER
============================== */

.side-banner {
  position: fixed;
  top: 120px;
  width: 160px;
  z-index: 1000;
}

.side-banner img {
  width: 100%;
  height: auto;
}

.side-banner-left {
  left: 50px;
}

.side-banner-right {
  right: 50px;
}

/* Ukrycie na mobile */
@media (max-width: 1200px) {
  .side-banner {
    display: none;
  }
}



