/* =================================
   MODERN TECH NEWS THEME
================================= */

:root{
  --radius:12px;
  --radius-lg:16px;

  --text:#212529;
  --muted:#6c757d;

  --tech-bg:#080b14;
  --tech-bg-soft:#0d1220;
  --tech-text:#f4f7ff;
  --tech-text-muted:#9aa6bd;

  --tech-blue:#3b82f6;
  --tech-cyan:#22d3ee;
  --tech-purple:#8b5cf6;

  --tech-border:rgba(255,255,255,.08);

  --tech-gradient:linear-gradient(
    135deg,
    #22d3ee 0%,
    #3b82f6 45%,
    #8b5cf6 100%
  );
}

/* =================================
   GLOBAL TYPOGRAPHY
================================= */

body{
  font-family:'Inter',system-ui,-apple-system,sans-serif;
  color:var(--text);
  font-size:16px;
  line-height:1.65;
  background:#f8f9fa;
}

h1,h2,h3,h4,h5,h6{
  font-family:'Poppins',sans-serif;
  font-weight:600;
  letter-spacing:-0.01em;
}

h1{font-size:2.2rem}
h2{font-size:1.6rem}
h3{font-size:1.3rem}

p{
  margin-bottom:1rem;
}

/* poprawiona szerokość strony */

.container{
  max-width:1100px;
}

.article-layout .lead{
  font-size:1.45rem;
  line-height:1.65;
  color:#555 !important;
  margin-bottom:1.5rem;
}

/* =================================
   TECH NEWS NAVBAR
================================= */

.tech-header{
  position:sticky;
  top:0;
  z-index:1030;
}

.tech-navbar{
  position:relative;
  min-height:82px;

  background:
    radial-gradient(
      circle at 12% -20%,
      rgba(34,211,238,.15),
      transparent 34%
    ),
    radial-gradient(
      circle at 88% -20%,
      rgba(139,92,246,.13),
      transparent 34%
    ),
    rgba(8,11,20,.95);

  border-bottom:1px solid var(--tech-border);

  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);

  box-shadow:
    0 12px 35px rgba(0,0,0,.18);
}

.tech-navbar::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:-1px;
  height:1px;

  background:linear-gradient(
    90deg,
    transparent,
    rgba(34,211,238,.40),
    rgba(59,130,246,.45),
    rgba(139,92,246,.40),
    transparent
  );

  pointer-events:none;
}

.tech-navbar-container{
  position:relative;
}

/* logo */

.tech-brand{
  display:flex;
  align-items:center;
  gap:11px;

  padding:7px 0;
  margin-right:30px;

  text-decoration:none;
}

.tech-logo{
  display:block;
  height:54px;
  width:auto;
  max-width:240px;
  object-fit:contain;

  transition:
    transform .25s ease,
    filter .25s ease;
}

.tech-brand:hover .tech-logo{
  transform:translateY(-1px);
  filter:drop-shadow(0 0 12px rgba(34,211,238,.22));
}

.tech-brand-mark{
  display:inline-flex;
  align-items:center;
  justify-content:center;

  width:40px;
  height:40px;

  border-radius:12px;

  color:#fff;

  font-family:'Poppins',sans-serif;
  font-size:20px;
  font-weight:700;

  background:var(--tech-gradient);

  box-shadow:
    0 0 25px rgba(59,130,246,.25),
    inset 0 1px 0 rgba(255,255,255,.28);
}

.tech-brand-name{
  color:var(--tech-text);

  font-family:'Poppins',sans-serif;
  font-size:22px;
  font-weight:700;
  letter-spacing:-.04em;

  transition:color .2s ease;
}

.tech-brand:hover .tech-brand-name{
  color:#fff;
}

/* menu */

.tech-nav{
  gap:3px;
}

.tech-nav .nav-item{
  display:flex;
  align-items:center;
}

.tech-nav-link{
  position:relative;

  display:flex;
  align-items:center;
  gap:8px;

  padding:11px 14px !important;

  border-radius:10px;

  color:var(--tech-text-muted) !important;

  font-family:'Inter',sans-serif;
  font-size:14px;
  font-weight:600;
  letter-spacing:-.01em;

  transition:
    color .2s ease,
    background .2s ease,
    transform .2s ease;
}

.tech-nav-link:hover,
.tech-nav-link:focus{
  color:#fff !important;
  background:rgba(255,255,255,.055);
  transform:translateY(-1px);
}

.tech-nav-link::after{
  content:"";

  position:absolute;

  left:14px;
  right:14px;
  bottom:5px;

  height:2px;

  border-radius:999px;

  background:var(--tech-gradient);

  transform:scaleX(0);
  transform-origin:center;

  transition:transform .25s ease;
}

.tech-nav-link:hover::after,
.tech-nav-link:focus::after{
  transform:scaleX(1);
}

.tech-nav-dot{
  display:block;

  width:6px;
  height:6px;

  border-radius:50%;

  background:var(--tech-cyan);

  box-shadow:
    0 0 8px rgba(34,211,238,.9),
    0 0 16px rgba(34,211,238,.35);
}

/* kontakt jako CTA */

.tech-contact-link{
  display:flex !important;
  align-items:center;
  gap:8px;

  padding:10px 17px !important;

  border:1px solid rgba(59,130,246,.42);
  border-radius:11px;

  color:#fff !important;

  font-family:'Inter',sans-serif;
  font-size:14px;
  font-weight:600;

  text-decoration:none;

  background:
    linear-gradient(
      135deg,
      rgba(34,211,238,.13),
      rgba(59,130,246,.15),
      rgba(139,92,246,.13)
    );

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.07),
    0 6px 18px rgba(0,0,0,.15);

  transition:
    transform .2s ease,
    border-color .2s ease,
    box-shadow .2s ease,
    background .2s ease;
}

.tech-contact-link:hover,
.tech-contact-link:focus{
  color:#fff !important;

  transform:translateY(-2px);

  border-color:rgba(34,211,238,.68);

  background:
    linear-gradient(
      135deg,
      rgba(34,211,238,.21),
      rgba(59,130,246,.23),
      rgba(139,92,246,.20)
    );

  box-shadow:
    0 9px 26px rgba(59,130,246,.17),
    inset 0 1px 0 rgba(255,255,255,.08);
}

.tech-contact-arrow{
  font-size:16px;
  line-height:1;

  transition:transform .2s ease;
}

.tech-contact-link:hover .tech-contact-arrow,
.tech-contact-link:focus .tech-contact-arrow{
  transform:translateX(3px);
}

/* przycisk mobilny */

.tech-toggler{
  width:44px;
  height:42px;

  padding:0;

  border:1px solid rgba(255,255,255,.10) !important;
  border-radius:11px;

  background:rgba(255,255,255,.045);

  box-shadow:none !important;
}

.tech-toggler:hover{
  background:rgba(255,255,255,.07);
}

.tech-toggler:focus{
  border-color:rgba(34,211,238,.48) !important;

  box-shadow:
    0 0 0 3px rgba(34,211,238,.08) !important;
}

.tech-toggler-lines{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:5px;

  width:100%;
  height:100%;
}

.tech-toggler-lines span{
  display:block;

  width:20px;
  height:2px;

  border-radius:999px;

  background:#fff;
}

/* =================================
   CAROUSEL
================================= */

.carousel img{
  height:420px;
  object-fit:cover;
}

.carousel-caption{
  backdrop-filter:blur(6px);
}

/* =================================
   POST CARDS
================================= */

.card{
  border-radius:var(--radius-lg);
  border:none;
  overflow:hidden;
  transition:transform .25s ease,box-shadow .25s ease;
}

.card:hover{
  transform:translateY(-6px);
  box-shadow:0 15px 35px rgba(0,0,0,0.08);
}

.card-img-top{
  height:220px;
  object-fit:cover;
}

.card-title{
  font-size:1.1rem;
}

.card-title a{
  color:#111;
  text-decoration:none;
}

.card-title a:hover{
  color:#0d6efd;
}

.card-text{
  font-size:.95rem;
  color:var(--muted);
}

/* =================================
   ARTICLE LAYOUT
================================= */

.article-layout{
  max-width:820px;
  margin-left:auto;
  margin-right:auto;
}

/* tytuł artykułu */

.article-layout h1{
  font-size:2.6rem;
  line-height:1.15;
  letter-spacing:-0.02em;
  margin-bottom:.6rem;
}

/* lead */

.article-layout .lead{
  font-size:1.25rem;
  color:var(--muted);
}

/* =================================
   ARTICLE CONTENT
================================= */

/* nagłówki */

.article-content h2{
  font-size:1.75rem;
  margin-top:2.6rem;
  margin-bottom:.8rem;
}

.article-content h3{
  font-size:1.4rem;
  margin-top:2rem;
  margin-bottom:.5rem;
}

/* paragrafy */

.article-content p{
  margin-bottom:1.35rem;
}

/* listy */

.article-content ul,
.article-content ol{
  padding-left:1.5rem;
  margin-bottom:1.4rem;
}

.article-content li{
  margin-bottom:.45rem;
}

ul li::marker{
  color:#0d6efd;
}

ol li::marker{
  font-weight:600;
}

/* cytaty */

.article-content blockquote{
  border-left:4px solid #0d6efd;
  padding-left:1.2rem;
  margin:2rem 0;
  font-style:italic;
  color:#555;
}

/* obrazy */

.article-content img{
  max-width:100%;
  height:auto;
  border-radius:12px;
  margin:2rem 0;
}

.article-content figure{
  margin:1.5rem 0;
}

/* =================================
   BUTTONS
================================= */

.btn{
  border-radius:999px;
}

.btn-outline-primary{
  padding:6px 14px;
}

/* =================================
   BADGES
================================= */

.badge{
  font-weight:500;
  border-radius:999px;
  padding:.45em .7em;
}

/* =================================
   FOOTER
================================= */

footer{
  font-size:.9rem;
}

/* =================================
   COOKIE BANNER
================================= */

#cookieBanner{
  position:fixed;
  bottom:20px;
  left:20px;
  right:20px;
  z-index:9999;
  display:flex;
  justify-content:center;
}

.cookie-box{
  background:white;
  border-radius:14px;
  box-shadow:0 10px 30px rgba(0,0,0,0.15);
  padding:16px 20px;
  max-width:520px;
  display:flex;
  flex-direction:column;
  gap:10px;
  font-size:14px;
}

.cookie-text a{
  color:#0d6efd;
  text-decoration:none;
}

.cookie-buttons{
  display:flex;
  gap:10px;
}

.cookie-buttons button{
  border:none;
  padding:6px 14px;
  border-radius:999px;
  cursor:pointer;
  font-weight:500;
}

#cookieAccept{
  background:#0d6efd;
  color:white;
}

#cookieSettings{
  background:#f1f3f5;
}

/* =================================
   ARTICLE HEADER
================================= */

.article-header{
  margin-bottom:2rem;
}

.article-header h1{
  font-size:2.6rem;
  line-height:1.15;
  letter-spacing:-0.02em;
  margin-bottom:.8rem;
}

.article-lead{
  font-size:1.35rem;
  line-height:1.65;
  color:#6c757d;
  max-width:720px;
}

/* =================================
   ARTICLE CONTENT - BASE
================================= */

.article-content{
  font-size:1.22rem;
  line-height:1.9;
  color:#2b2b2b;
}

.article-content p{
  margin-bottom:1.4rem;
}

.article-content h2{
  font-size:1.75rem;
  margin-top:2.5rem;
  margin-bottom:.8rem;
}

.article-content h3{
  font-size:1.4rem;
  margin-top:2rem;
  margin-bottom:.5rem;
}

/* =================================
   RESPONSIVE
================================= */

@media (max-width:991.98px){

  .tech-navbar{
    min-height:72px;
  }

  .tech-logo{
    height:48px;
  }

  .tech-brand{
    margin-right:15px;
  }

  .tech-navbar .navbar-collapse{
    margin-top:12px;
    margin-bottom:10px;
    padding:14px;

    border:1px solid rgba(255,255,255,.08);
    border-radius:16px;

    background:
      linear-gradient(
        180deg,
        rgba(15,21,38,.99),
        rgba(9,13,24,.99)
      );

    box-shadow:
      0 18px 45px rgba(0,0,0,.28);
  }

  .tech-nav{
    gap:5px;
  }

  .tech-nav .nav-item{
    display:block;
    width:100%;
  }

  .tech-nav-link{
    width:100%;
    padding:12px 13px !important;
  }

  .tech-nav-link::after{
    display:none;
  }

  .tech-nav-link:hover,
  .tech-nav-link:focus{
    transform:none;
  }

  .tech-contact-link{
    width:100%;
    justify-content:space-between;

    margin-top:6px;
    padding:12px 14px !important;
  }
}

@media (max-width:575.98px){

  .container{
    padding-left:16px;
    padding-right:16px;
  }

  .tech-navbar{
    min-height:68px;
  }

  .tech-logo{
    height:44px;
    max-width:190px;
  }

  .tech-brand-mark{
    width:38px;
    height:38px;
    border-radius:11px;
  }

  .tech-brand-name{
    font-size:19px;
  }

  .carousel img{
    height:300px;
  }

  .article-layout h1,
  .article-header h1{
    font-size:2rem;
  }

  .article-content{
    font-size:1.1rem;
    line-height:1.8;
  }

  #cookieBanner{
    bottom:12px;
    left:12px;
    right:12px;
  }
}

/* ograniczenie animacji dla użytkowników,
   którzy mają w systemie wyłączone animacje */

@media (prefers-reduced-motion:reduce){

  .tech-logo,
  .tech-nav-link,
  .tech-nav-link::after,
  .tech-contact-link,
  .tech-contact-arrow,
  .card{
    transition:none;
  }
}
