/* =========================
   RESET
========================= */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background: #111;
    color: #eaeaea;
    line-height: 1.7;
    font-family: 'Fira Code', monospace;
}

a {
    color: inherit;
    text-decoration: none;
}

/* =========================
   LAYOUT
========================= */

.container {
    max-width: 1100px;
    margin: auto;
    padding: 40px 20px;
}

header {
    text-align: center;
    padding: 60px 20px;
    background: #181818;
}

section {
    margin-bottom: 50px;
}

/* =========================
   TYPOGRAPHY
========================= */

h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

h2 {
    margin-top: 50px;
    color: #00ffcc;
}

h3 {
    margin-top: 25px;
}

ul {
    padding-left: 20px;
}

/* =========================
   CTA
========================= */

.cta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 30px;
}

.cta a {
    display: inline-block;
    padding: 15px 25px;
    background: #00ffcc;
    color: #000;
    border-radius: 8px;
    font-weight: bold;
    text-align: center;
}

/* =========================
   BUTTONS
========================= */

.btn {
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
    display: inline-block;
}

.btn.primary {
    background: #00ffcc;
    color: #000;
    font-weight: bold;
}

.btn.secondary {
    background: #222;
    color: #fff;
    border: 1px solid #444;
}

.btn.ghost {
    color: #00aaff;
}

/* =========================
   GRID (screens)
========================= */

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.screenshots-grid figure {
    margin: 0;
    background: #181818;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #333;
}

.screenshots-grid img {
    width: 100%;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.screenshots-grid img:hover {
    transform: scale(1.03);
}

.screenshots-grid figcaption {
    margin-top: 8px;
    font-size: 0.85rem;
    color: #aaa;
}

/* =========================
   DOWNLOAD CARD (CLEAN FIXED)
========================= */

.component-download .pobierz-card {
    background: #222;
    padding: 20px 30px;
    border-radius: 12px;
    max-width: 800px;
    margin: 20px auto;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* HEADER */
.component-download .pobierz-card h2 {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    color: #00ffcc;
    text-align: center;
    gap: 10px;
}

/* BODY */
.component-download .pobierz-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
}

/* =========================
   BUTTON ROW (FIX)
========================= */

.component-download .pobierz-body .download-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

/* LINK BUTTONS */
.component-download .pobierz-body a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 10px 14px;
    border-radius: 6px;
    background: linear-gradient(90deg, #00ffcc, #00aaff, #7a00ff, #ff00aa);
    color: #fff;
    transition: 0.3s;
    white-space: nowrap;
}

.component-download .pobierz-body a:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 10px rgba(0,255,204,0.5);
}

/* BACK BUTTON SPECIAL */
.component-download .btn-primary {
    background: #222;
    border: 1px solid #444;
}

.component-download .btn-primary:hover {
    border-color: #00ffcc;
    color: #00ffcc;
}

/* =========================
   LINK BOX
========================= */

.link-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6px;
    border-radius: 6px;
    border: 1px solid #333;
    background: #111;
    overflow: hidden;
}

.marquee {
    width: 150%;
    white-space: nowrap;
    overflow: hidden;
    animation: scroll-left 10s linear infinite;
}

.marquee code {
    color: #00ffcc;
    font-size: 0.85rem;
}

@keyframes scroll-left {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* COPY BUTTON */
.copy-btn {
    padding: 6px 10px;
    border-radius: 6px;
    border: none;
    background: #333;
    color: #ccc;
    cursor: pointer;
    transition: 0.3s;
}

.copy-btn:hover {
    color: #00ffcc;
}

/* =========================
   MODAL (UNCHANGED - SAFE)
========================= */

.img-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(0,0,0,0.95);
    justify-content: center;
    align-items: center;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
}

.img-modal .close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 35px;
    color: white;
    cursor: pointer;
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 40px;
    color: white;
    cursor: pointer;
    user-select: none;
}

.prev { left: 20px; }
.next { right: 20px; }

.prev:hover, .next:hover {
    color: #00ffcc;
}

/* =========================
   FOOTER
========================= */

footer {
    text-align: center;
    padding: 30px;
    border-top: 1px solid #333;
    margin-top: 60px;
}

.component-download .pobierz-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* NOWA SEKCJA: 3 przyciski w jednej linii */
.component-download .pobierz-body .btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.component-download h2 {
    text-align: center;
    margin: 0 0 15px 0;
    color: #00ffcc;
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.pobierz-title {
    text-align: center;
    margin: 0 0 15px 0;
    color: #00ffcc;
}

.btn-row a {
    display: inline-block;
    padding: 10px 14px;
    border-radius: 6px;
    background: linear-gradient(90deg, #00ffcc, #00aaff, #7a00ff, #ff00aa);
    color: #fff;
    white-space: nowrap;
    transition: 0.3s;
}

.btn-row a:hover {
    transform: translateY(-2px);
}

.component-download .pobierz-body p {
    text-align: center;
}

a {
  color: #1a73e8;
  text-decoration: none;
  font-weight: 500;
}

a:hover {
  text-decoration: underline;
  color: #0b57d0;
}

/* linki w treści (najważniejsze SEO + UX) */
.container a {
  border-bottom: 1px solid rgba(26, 115, 232, 0.35);
  padding-bottom: 1px;
}

.container a:hover {
  border-bottom: 1px solid #0b57d0;
}


a:hover {
  text-decoration: underline;
}

.container a {
  color: #4ea1ff;
  text-decoration: none;
  border-bottom: 1px solid rgba(78,161,255,0.35);
}

.container a:hover {
  border-bottom: 1px solid #0b57d0;
  color: #0b57d0;
}

.hub-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start; /* KLUCZ: nie rozciąga */
}

/* link jak "chip", ale nadal tekstowy */
.hub-links a {
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  padding: 6px 0;
  border-bottom: 1px solid rgba(78, 161, 255, 0.35);
  color: #4ea1ff;
  transition: 0.2s ease;
}

/* hover bardziej czytelny */
.hub-links a:hover {
  border-bottom: 1px solid #4ea1ff;
  transform: translateX(4px);
}