/*
Theme Name: TurboQuiz
Version: 1.1
*/
/* =================================================================== */
/* === ZREFAKTORYZOWANE I UJEDNOLICONE STYLE SEKCJI I KART === */
/* =================================================================== */

/* Używamy zmiennej zdefiniowanej w :root dla spójności */
:root {
    --accent-color-card: #00AEEF; /* Ten odcień pasuje do Twoich zrzutów */
}

/* --- 1. OGÓLNE STYLE SEKCJI --- */
.section-block,
.new-models-section,
.poradniki-section,
.quiz-page {
    padding: 60px 0;
    background: transparent; /* Sekcje są przezroczyste, tło ma wrapper */
}

.section-wrapper,
.new-models-wrapper {
    max-width: 1240px;
    margin: 0 auto;
    padding: 3rem 2.5rem;
    background-color: var(--bg-light);
    border-radius: var(--radius);
    box-shadow: var(--shadow-light);
    transition: background-color 0.3s ease;
}

body.dark-mode .section-wrapper,
body.dark-mode .new-models-wrapper {
    background-color: var(--bg-dark);
}

.section-label {
    color: var(--accent-color-card);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 8px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    text-align: center;
    margin-bottom: 48px;
    color: var(--text-light);
    transition: color 0.3s ease;
}

body.dark-mode .section-title {
    color: var(--text-dark);
}

.section-grid {
    display: grid;
    /* Automatycznie dopasowuje liczbę kolumn do ekranu */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

/* --- 2. UJEDNOLICONY, GŁÓWNY STYL KARTY --- */
.card,
.new-model-card {
    background-color: var(--bg-light);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

body.dark-mode .card,
body.dark-mode .new-model-card {
    background-color: #1A1D24; /* Ciemniejszy od tła głównego */
    border: 1px solid #333740;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.card a,
.new-model-card a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%; /* Link wypełnia całą kartę */
}

/* EFEKTY HOVER DLA KARTY */
.card:hover,
.new-model-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-color-card);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

body.dark-mode .card:hover,
body.dark-mode .new-model-card:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

/* --- 3. ELEMENTY WEWNĄTRZ KARTY --- */

/* Obrazek */
.card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background-color: #eee;
}

body.dark-mode .card-image {
    background-color: #333;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.card:hover .card-image img,
.new-model-card:hover .card-image img {
    transform: scale(1.05);
}

/* Etykieta kategorii na obrazku */
.card-cat {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: var(--accent-color-card);
    color: #FFFFFF;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 2;
    line-height: 1.2;
}

/* Kontener na tekst */
.card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Kluczowe, aby meta-dane były zawsze na dole */
}

/* Tytuł */
.card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-light);
    line-height: 1.4;
    margin: 0;
    flex-grow: 1; /* Wypycha elementy poniżej na dół */
    transition: color 0.3s ease;
}

body.dark-mode .card-title {
    color: var(--text-dark);
}

.card:hover .card-title,
.new-model-card:hover .card-title {
    color: var(--accent-color-card);
}

/* Meta-dane (autor, data) */
.card-meta {
    font-size: 0.8rem;
    color: #777;
    margin-top: 16px;
    transition: color 0.3s ease;
}

body.dark-mode .card-meta {
    color: #8A91A0;
}

/* Przyciski w kartach */
.card-button,
.quiz-button {
    display: inline-block;
    width: 100%; /* Rozciągnięcie na całą szerokość dla spójności */
    background-color: var(--accent-color-card);
    color: #FFFFFF;
    padding: 12px 20px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    text-decoration: none;
    margin-top: 20px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.card-button:hover,
.quiz-button:hover {
    background-color: #008fbf; /* Ciemniejszy odcień */
    transform: scale(1.02);
}

/* --- 4. DROBNE POPRAWKI DLA RÓŻNYCH TYPÓW KART --- */

/* Dla kart bez przycisku, np. Poradniki */
.poradniki-section .card-title {
    margin-bottom: 0; /* Tytuł nie potrzebuje marginesu, bo meta jest pod nim */
}

/* Dla kart z przyciskiem, np. Nowości, Quizy */
.new-model-card .card-content,
.quiz-page .card-content {
    justify-content: space-between;
}

.new-model-card .card-title,
.quiz-page .card-title {
    flex-grow: 0; /* Tytuł nie musi się rozciągać, bo jest przycisk i meta */
    margin-bottom: 12px;
}
/* === ROOT === */
:root {
  --bg-light: #ffffff;
  --bg-dark: #0f1117;
  --text-light: #111;
  --text-dark: #f1f1f1;
  --text-blue: #00b4ff;
  --accent: #0077ff;
  --radius: 16px;
  --shadow-light: 0 8px 30px rgba(0, 0, 0, 0.1);
  --shadow-dark: 0 6px 20px rgba(0, 0, 0, 0.6);
  --blur-light: rgba(255, 255, 255, 0.9);
  --blur-dark: rgba(15, 17, 23, 0.8);
}

/* === BASE === */
body {
  margin: 0;
  padding-top: 120px;
  font-family: 'Poppins', sans-serif;
  background: url('https://turboquiz.pl/wp-content/uploads/2025/04/3.jpg') no-repeat center center fixed;
  background-size: cover;
  color: var(--text-light);
  transition: background 0.3s ease, color 0.3s ease;
}

body.dark-mode {
  --bg-light: var(--bg-dark);
  --text-light: var(--text-dark);
  --shadow-light: var(--shadow-dark);
  --blur-light: var(--blur-dark);
}

/* === HEADER === */
.site-header {
  position: fixed;
  top: 20px;
  left: 0;
  right: 0;
  margin: 0 auto;
  max-width: 1240px;
  width: 90%;
  background: var(--blur-light);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: var(--radius);
  box-shadow: var(--shadow-light);
  z-index: 999;
  transition: all 0.4s ease;
}


.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.social-icons {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.social-icons li {
  display: flex;
}

.social-icons li a,
.social-icons li button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  transition: all 0.3s ease;
  color: #111;
  border: none;
  cursor: pointer;
}

body.dark-mode .social-icons li a,
body.dark-mode .social-icons li button {
  background: rgba(255, 255, 255, 0.05);
  color: #f1f1f1;
}

.social-icons li a:hover,
.social-icons li button:hover {
  background: var(--accent);
  color: #fff;
  transform: scale(1.15) rotate(6deg);
}

#toggle-mode svg {
  width: 20px;
  height: 20px;
  pointer-events: none;
}

.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

/* === LOGO === */
.logo {
  max-width: 240px;
  flex-shrink: 0;
}

.logo img {
  height: auto;
  max-height: 100px;
  width: auto;
  display: block;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.15));
}

.logo:hover img {
  transform: scale(1.08);
}

/* Dynamic logo switching */
body:not(.dark-mode) .logo img.dark-logo {
  display: none;
}
body.dark-mode .logo img.light-logo {
  display: none;
}
body.dark-mode .logo img.dark-logo {
  display: block;
}

/* === MENU === */
.main-nav .menu {
  list-style: none;
  display: flex;
  gap: 2.5rem;
  margin: 0;
  padding: 0;
  align-items: center;
  position: relative;
}

.main-nav .menu li {
  position: relative;
  padding: 0 0.5rem;
}

.main-nav .menu li:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -1.2rem;
  top: 50%;
  transform: translateY(-50%);
  height: 18px;
  width: 1px;
  background: rgba(0, 0, 0, 0.1);
}

.main-nav .menu li a {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-light);
  text-decoration: none;
  position: relative;
  transition: all 0.3s ease;
  padding: 0.25rem 0.3rem;
}

.main-nav .menu li a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -6px;
  left: 0;
  background: var(--accent);
  transition: width 0.3s ease;
}

.main-nav .menu li a:hover {
  color: var(--accent);
  letter-spacing: 0.3px;
}

.main-nav .menu li a:hover::after {
  width: 100%;
}

/* === SOCIAL === */
.social-icons {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.social-icons li {
  opacity: 0;
  animation: fadeInUp 0.6s ease-in-out forwards;
  animation-delay: 0.3s;
}

.social-icons li a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  transition: all 0.3s ease;
  color: var(--text-light);
}

.social-icons li a:hover {
  background: var(--accent);
  color: #fff;
  transform: scale(1.15) rotate(6deg);
}

.social-icons svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* === DARK MODE TOGGLE === */
#toggle-mode {
  background: none;
  border: none;
  cursor: pointer;
  margin-left: 1rem;
  color: var(--text-light);
  transition: transform 0.3s ease;
}

#toggle-mode:hover {
  transform: scale(1.15) rotate(6deg);
}

/* === ANIMACJA === */
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}


/* === SEKCJA HOME HERO === */
.home-hero-section {
  margin: 2rem auto;
  padding: 0 1rem;
  max-width: 1240px;
}

/* === WRAPPER CAŁEGO BLOKU === */
.home-hero-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

/* === BLOK LEWY – SLIDER POLECANY === */
.featured-slider {
  flex: 2;
  min-height: 420px;
  position: relative;
  background: var(--bg-light);
  box-shadow: var(--shadow-light);
  border-radius: var(--radius);
  overflow: hidden;
}

/* Każdy slajd */
.slider-item {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
  border-radius: var(--radius);
  overflow: hidden;
}

.slider-item.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}

/* Obrazek */
.slider-image img {
  width: 100%;
  height: auto; /* 👈 zamieniamy na auto, by nie rozciągało pionowo */
  object-fit: cover;
  display: block;
  border-radius: var(--radius);
}


/* Tekst nakładany na slider */
.slider-text {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1rem;
  background: linear-gradient(transparent 50%, rgba(0, 0, 0, 0.85));
  color: #fff;
  border-radius: 0 0 var(--radius) var(--radius);
}

.slider-cat {
  display: inline-block;
  background: #0077ff;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
body.dark-mode .slider-cat {
  background: #00b4ff;
  color: #000;
}


.slider-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0.4rem 0;
    margin-right: 14px;
}

.slider-meta {
  font-size: 0.8rem;
  opacity: 0.75;
}

/* === BLOK PRAWY – NAJNOWSZE WPISY === */
.latest-posts-box {
  flex: 1;
  background: var(--bg-light);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-light);
  min-width: 300px;
  max-width: 420px;
}

.latest-posts-box h3 {
  color: var(--text-light);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.latest-posts {
  list-style: none;
  margin: 0;
  padding: 0;
}

.latest-posts li {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  padding-bottom: 0.8rem;
  transition: background 0.3s ease;
}

.latest-posts li:hover {
  background: rgba(0,0,0,0.03);
  border-radius: 8px;
}

body.dark-mode .latest-posts li {
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.latest-thumb img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 6px;
}

.latest-info {
  color: var(--text-light);
  font-size: 0.85rem;
  line-height: 1.3;
}

.latest-info .latest-date {
  font-size: 0.7rem;
  display: block;
  opacity: 0.6;
  margin-bottom: 4px;
}

/* === RESPONSYWNOŚĆ === */
@media (max-width: 768px) {
  .home-hero-wrapper {
    flex-direction: column;
  }

  .featured-slider {
    min-height: 300px;
  }

  .slider-title {
    font-size: 1.2rem;
  }

  .latest-posts-box {
    max-width: 100%;
  }
}

.home-hero-section {
  margin: 1.5rem auto; /* odstęp góra-dół */
  padding: 0 1rem;
  max-width: 1240px;
}

/* Dodany odstęp od headera */
body.logged-in .home-hero-section,
.home-hero-section {
  margin-top: 120px; /* 👈 główny odstęp od nagłówka */
}

.post-card {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  border-radius: 12px;
  background: var(--bg-light);
  box-shadow: var(--shadow);
  transition: background 0.3s, transform 0.3s;
  text-decoration: none;
  color: inherit;
}

.post-card:hover {
  transform: translateY(-2px);
}

.post-thumb {
  width: 90px;
  height: 90px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
}

.post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.post-category {
  font-size: 0.75rem;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 0.3rem;
  letter-spacing: 0.5px;
}

.post-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 0.3rem;
}

.post-meta {
  font-size: 0.75rem;
  color: #777;
  opacity: 0.8;
}

/* === DOPASOWANIE DO DARK MODE === */
body.dark-mode .post-card {
  background: var(--bg-dark);
}

body.dark-mode .post-title {
  color: var(--text-dark);
}

body.dark-mode .post-meta {
  color: #aaa;
}

.badge {
  display: inline-block;
  background: #0077ff;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.latest-title {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-light);
  margin: 4px 0;
}

.latest-date {
  font-size: 0.75rem;
  opacity: 0.6;
}
.latest-posts-box {
  background: var(--bg-light);
  color: var(--text-light);
  padding: 1.5rem;
  border-radius: 16px;
  box-shadow: var(--shadow);
  transition: background 0.3s, color 0.3s;
}

.latest-posts-box h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.latest-posts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.latest-post-link {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
}

.latest-thumb img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
}

.latest-info {
  flex: 1;
}

.latest-cat {
  display: inline-block;
  background: #0077ff;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
  margin-bottom: 6px;
}

.latest-title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 4px 0;
}

.latest-time {
  font-size: 0.75rem;
  color: #888;
}

/* === DARK MODE === */
body.dark-mode .latest-posts-box {
  background: var(--bg-dark);
  color: var(--text-dark);
}

body.dark-mode .latest-cat {
  background: #00b4ff;
  color: #000;
}


/* === SEKCJA NOWOŚCI === */
.new-models-section {
  padding: 3rem 1rem;
  display: flex;
  justify-content: center;
  background: transparent;
}

.new-models-wrapper {
  background: var(--bg-light);
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 1240px;
  width: 100%;
  transition: background 0.3s ease;
}

body.dark-mode .new-models-wrapper {
  background: var(--bg-dark);
}

.section-label {
  text-transform: uppercase;
  color: var(--accent); /* zamiast #00ff88 */
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  text-align: center; /* dodane wyśrodkowanie */
  font-weight: 600;    /* opcjonalnie: pogrubienie */
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 2rem;
  transition: color 0.3s ease;
}

body.dark-mode .section-title {
  color: var(--text-dark);
}

.new-models-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.new-model-card {
  background: var(--bg-light);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  flex: 1 1 calc(25% - 1.5rem);
  min-width: 260px;
  max-width: 300px;
  transition: transform 0.3s ease, background 0.3s ease;
}

body.dark-mode .new-model-card {
  background: var(--bg-dark);
}

.new-model-card:hover {
  transform: translateY(-4px);
}

.card-image img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.card-content {
  padding: 1rem;
  color: var(--text-light);
  transition: color 0.3s ease;
}

body.dark-mode .card-content {
  color: var(--text-dark);
}

.card-cat {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  background: var(--accent);
  color: #fff;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.card-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  color: var(--text-light);
  transition: color 0.3s ease;
}

.card-meta {
  font-size: 0.75rem;
  opacity: 0.6;
  color: var(--text-light);
  transition: color 0.3s ease;
}

body.dark-mode .card-title,
body.dark-mode .card-meta {
  color: var(--text-dark);
}

/* === RESPONSYWNOŚĆ === */
@media (max-width: 1024px) {
  .new-model-card {
    flex: 1 1 calc(50% - 1.5rem);
  }
}
@media (max-width: 640px) {
  .new-model-card {
    flex: 1 1 100%;
  }
}


/* === Stopka === */

.footer-logo.dark-logo {
  display: none;
}

/* Gdy włączony dark mode – pokaż ciemne logo, ukryj jasne */
body.dark-mode .footer-logo.light-logo {
  display: none;
}

body.dark-mode .footer-logo.dark-logo {
  display: inline;
}



.footer-logo {
  max-height: 70px; /* lub więcej np. 80px */
  height: auto;
  width: auto;
  display: inline-block;
}


.site-footer {
  background: var(--bg-light);
  padding: 3rem 1rem 2rem;
  margin-top: 4rem;
  border-radius: var(--radius);
  color: var(--text-light);
  box-shadow: var(--shadow);
  transition: background 0.3s ease, color 0.3s ease;
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}

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

.footer-col h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

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

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

.footer-col a:hover {
  color: var(--accent);
}

/* Logo */
.footer-col img {
  max-height: 100px;
  margin-bottom: 1rem;
  display: inline;
}

.footer-social {
  display: flex;
  gap: 0.8rem;
  margin-top: 0.5rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  transition: background 0.3s, transform 0.3s;
  color: var(--text-light);
}

.footer-social a:hover {
  background: var(--accent);
  color: #fff;
  transform: scale(1.1);
}

.footer-bottom {
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.6;
  margin-top: 2rem;
}

/* === DARK MODE === */
body.dark-mode .site-footer {
  background: var(--bg-dark);
  color: var(--text-dark);
}

body.dark-mode .footer-col a:hover {
  color: var(--accent);
}

body.dark-mode .footer-social a {
  background: rgba(255,255,255,0.05);
  color: var(--text-dark);
}

body.dark-mode .footer-social a:hover {
  background: var(--accent);
  color: #fff;
}

.light-logo {
  display: inline;
}
.dark-logo {
  display: none;
}
body.dark-mode .light-logo {
  display: none;
}
body.dark-mode .dark-logo {
  display: inline;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  .footer-col {
    flex: 1 1 100%;
  }
}


.section-block {
  padding: 4rem 1rem;
  display: flex;
  justify-content: center;
  background: transparent;
}

.section-wrapper {
  width: 100%;
  max-width: 1240px;
  background: var(--bg-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.5rem;
  transition: background 0.3s ease;
}

body.dark-mode .section-wrapper {
  background: var(--bg-dark);
}

.section-label {
  font-size: 0.9rem;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 2rem;
}

.section-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.card {
  background: var(--bg-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  flex: 1 1 calc(25% - 1.5rem);
  min-width: 260px;
  max-width: 300px;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}

body.dark-mode .card {
  background: var(--bg-dark);
}

.card-image img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.card-content {
  padding: 1rem;
  color: var(--text-light);
}

.card-cat {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: bold;
  background: var(--accent);
  color: white;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.card-title {
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: var(--text-light);
}

.card-meta {
  font-size: 0.75rem;
  opacity: 0.6;
  color: var(--text-light);
}

@media (max-width: 1024px) {
  .card {
    flex: 1 1 calc(50% - 1.5rem);
  }
}

@media (max-width: 640px) {
  .card {
    flex: 1 1 100%;
  }
}



//Blog
.card a,
.card-title {
  text-decoration: none !important;
}

.card a:hover,
.card-title:hover {
  text-decoration: none !important;
}

.card {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-grid {
  opacity: 1;
  transition: opacity 0.4s ease;
}

.section-grid.fade-out {
  opacity: 0;
}

.section-grid.fade-in {
  opacity: 1;
}

/* ===== BLOG – Siatka i style kart ===== */


.blog-page .section-wrapper {
  margin-top: 100px;
}


.blog-page .section-wrapper {
  width: 100%;
  max-width: 1240px;
  background: var(--bg-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 3rem 2rem;
  transition: background 0.3s ease;
}

body.dark-mode .blog-page .section-wrapper {
  background: var(--bg-dark);
}

.section-wrapper {
  max-width: 1240px;
  margin: 0 auto;
  padding: 3rem 1rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 2rem;
  text-align: center;
}

body.dark-mode .section-title {
  color: var(--text-dark);
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  justify-content: center;
}

.cat-tab {
  padding: 0.5rem 1.2rem;
  background: var(--bg-light);
  color: var(--text-light);
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-light);
}

.cat-tab:hover,
.cat-tab.active {
  background: var(--accent);
  color: white;
}

body.dark-mode .cat-tab {
  background: var(--bg-dark);
  color: var(--text-dark);
  box-shadow: var(--shadow-dark);
}
body.dark-mode .cat-tab:hover {
  background: var(--accent);
  color: #fff;
}

.section-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  align-items: stretch;
}

.card {
  background: var(--bg-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  flex: 1 1 calc(33.333% - 1rem);
  min-width: 280px;
  max-width: 340px;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px);
}

body.dark-mode .card {
  background: var(--bg-dark);
}

.card-image {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
}

.card-image .card-cat {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

body.dark-mode .card-image .card-cat {
  background: #00b4ff;
  color: #000;
}
.card-content {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-cat {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: bold;
  background: var(--accent);
  color: white;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.card-title {
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: var(--text-light);
}

.card-meta {
  font-size: 0.75rem;
  opacity: 0.6;
  color: var(--text-light);
}

body.dark-mode .card-title,
body.dark-mode .card-meta {
  color: var(--text-dark);
}

/* RESPONSYWNOŚĆ */
@media (max-width: 1024px) {
  .card {
    flex: 1 1 calc(50% - 1rem);
  }
}
@media (max-width: 640px) {
  .card {
    flex: 1 1 100%;
  }
}

//phone
/* ===== PODSTAWOWY LAYOUT ===== */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  position: relative;
  background: var(--header-bg, #fff);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex: 1;
}

.logo img {
  height: 40px;
  transition: opacity 0.3s;
}

.main-nav ul.menu {
  display: flex;
  gap: 2rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.header-right {
  display: flex;
  align-items: center;
}

.social-icons {
  display: flex;
  list-style: none;
  gap: 1rem;
  padding: 0;
  margin: 0;
}

/* ===== HAMBURGER BUTTON ===== */
@media (max-width: 768px) {
  .main-nav {
    display: none;
    position: absolute;
    top: calc(100% + 12px); /* lekki odstęp od headera */
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 90%;
    background: var(--blur-light);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: var(--radius);
    box-shadow: var(--shadow-light);
    padding: 1.5rem 2rem;
    z-index: 1000;
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
  }

@media (max-width: 768px) {
  .main-nav.mobile-visible {
    display: flex;
    flex-direction: column;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    padding: 1rem; /* ← dodaj */
    border-radius: var(--radius);
    background: var(--blur-light);
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow-light);
  }
}


  .main-nav .menu {
    flex-direction: column;
    gap: 1.2rem;
    list-style: none;
    padding: 0;
    margin: 0;
    align-items: center;
  }

  .main-nav .menu li a {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
  }

  .main-nav .menu li a:hover {
    color: var(--accent);
  }

  body.dark-mode .main-nav {
    background: var(--blur-dark);
    box-shadow: var(--shadow-dark);
  }

  .hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001; /* nad menu */
  }

  .hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: currentColor;
    transition: all 0.3s ease;
  }

  .header-right {
    display: none;
  }
}

.header-buttons {
  display: flex;
  align-items: center;
  gap: 1rem;
}

#toggle-mode {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-light);
  padding: 0.5rem;
}

body.dark-mode #toggle-mode {
  color: var(--text-dark);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Pokaż tylko na mobile */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .main-nav {
    display: none;
    flex-direction: column;
    background: var(--blur-light);
    backdrop-filter: blur(14px);
    border-radius: var(--radius);
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 1rem 2rem;
    z-index: 999;
  }

  .main-nav.mobile-visible {
    display: flex;
  }

  .main-nav .menu {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  body.dark-mode .main-nav {
    background: var(--blur-dark);
  }
}
.hamburger {
  display: none;
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
}



.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1240px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  gap: 1rem;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

#toggle-mode {
  margin-left: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
}

.social-icons {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* hamburger tylko na telefonie */
.hamburger {
  display: none;
}
@media (max-width: 768px) {
  .hamburger {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
  }

  .main-nav {
    display: none;
    flex-direction: column;
    background: var(--blur-light);
    border-radius: var(--radius);
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 1rem 2rem;
    z-index: 999;
  }

  .main-nav.mobile-visible {
    display: flex;
  }

  .main-nav .menu {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
}
@media (max-width: 400px) {
  .social-icons li:last-child {
    display: none; /* Ukrywa ikonę YouTube */
  }

  #toggle-mode {
    margin-left: 0;
  }

  .header-right {
    gap: 0.4rem;
  }

  .social-icons li a {
    width: 36px;
    height: 36px;
  }

  .social-icons svg {
    width: 18px;
    height: 18px;
  }
}
.quiz-result {
  background: var(--bg-dark);
  color: var(--text-dark);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  transition: background 0.4s, color 0.4s;
}

body:not(.dark-mode) .quiz-result {
  background: var(--bg-light);
  color: var(--text-light);
}
@media screen and (min-width: 768px) {
  .hamburger {
    display: none;
  }
}
.card-image {
  position: relative;
}

.card-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
}

/* Etykieta NOWOŚCI */
.card-cat {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: #0066ff;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  z-index: 2;
}

/* Tytuł bez podkreślenia */
.card-title {
  font-size: 18px;
  font-weight: 700;
  margin: 10px 0;
  color: #fff;
  line-height: 1.4;
  text-decoration: none;
}

/* Przycisk "Sprawdź" */
.card-button {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 16px;
  background-color: #0066ff;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.card-button:hover {
  background-color: #004fcc;
}

/* Meta info */
.card-meta {
  font-size: 13px;
  color: #aaa;
  margin-top: 10px;
}
.new-model-card a {
  text-decoration: none;
  color: inherit;
}
.post-cat {
  display: inline-block;
  background-color: #0066ff;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 8px;
  text-decoration: none;
  margin-right: 10px;
}

.post-cat:hover {
  background-color: #004ecc;
  color: #fff;
  text-decoration: none;
}

/* === QUIZ GRID === */
.section-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

/* === KARTA QUIZU === */
.card {
  flex: 1 1 calc(50% - 2rem);
  max-width: 400px;
  padding: 1rem;
  border-radius: var(--radius, 12px);
  background: var(--bg-light, #f9f9f9);
  box-shadow: var(--shadow, 0 4px 12px rgba(0, 0, 0, 0.08));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease;
}

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

@media (max-width: 768px) {
  .card {
    flex: 1 1 100%;
  }
}

/* === OBRAZEK W KARCI === */
.card-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius, 12px);
  object-fit: cover;
  margin-bottom: 0.8rem;
}

.card-cat {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--accent, #007bff);
  color: #fff;
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
  border-radius: 4px;
  text-transform: uppercase;
}

/* === TREŚĆ KARTY === */
.card-content {
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--text-light, #333);
  text-decoration: none;
}

.card-title:hover {
  color: var(--accent, #007bff);
}

.card-meta {
  font-size: 0.85rem;
  color: #777;
  margin-bottom: 1rem;
}

/* === PRZYCISK QUIZU === */
.quiz-button {
  display: inline-block;
  margin-top: auto;
  padding: 0.6rem 1.2rem;
  background: var(--accent, #007bff);
  color: #fff;
  font-weight: 600;
  border-radius: 8px;
  text-align: center;
  text-decoration: none;
  transition: background 0.3s ease;
}

.quiz-button:hover {
  background: #005fcc;
}

/* === DARK MODE === */
body.dark-mode .card {
  background: #1e1e1e;
  color: #ddd;
}

body.dark-mode .card-title {
  color: #fff;
}

body.dark-mode .card-meta {
  color: #aaa;
}

body.dark-mode .quiz-button {
  background: #00b4ff;
  color: #000;
}

body.dark-mode .quiz-button:hover {
  background: #008ac7;
}
.poradniki-section .card-cat {
  background: var(--accent, #007bff);
}

body.dark-mode .poradniki-section .card {
  background: #1e1e1e;
  color: #ddd;
}
.poradniki-section a {
  text-decoration: none;
}

.card-title {
  text-decoration: none;
}

/* ===== KONTAKT – Siatka i style kart ===== */


.contact-page .section-wrapper {
  margin-top: 100px;
}


.contact-page .section-wrapper {
  width: 100%;
  max-width: 1240px;
  background: var(--bg-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 3rem 2rem;
  transition: background 0.3s ease;
  font-family: 'Poppins', sans-serif;
}

body.dark-mode .contact-page .section-wrapper {
  background: var(--bg-dark);
}

.section-wrapper {
  max-width: 1240px;
  margin: 0 auto;
  padding: 3rem 1rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 2rem;
  text-align: center;
}

body.dark-mode .section-title {
  color: var(--text-dark);
}

.contact-card-title{
  font-weight: 700;
  text-align:center;
  color: var(--text-blue);
}

.row{
	width:100%;
    margin-top:10px !important;
    margin-bottom:10px;
}

.row>*{
	width:100% !important;
}

.btn-primary{
	color:var(--text-dark);
    background-color:var(--text-blue);
    width:100%;
    padding:2%;
    font-weight:700;
    border-radius:var(--radius);
}

.form-control{
	border-radius:var(--radius);
}

.company-info-row{
	width:100%;
	display:flex;
    flex-direction:column;
    align-items:flex-start;
    justify-content:flex-start;
    border-bottom:1px solid var(--text-blue);
}

.company-info-row-title{
	font-weight:700;
}

:root {
  --bg-light: #ffffff;
  --bg-dark: #0f1117;
  --text-light: #111;
  --text-dark: #f1f1f1;
  --text-blue: #00b4ff;
  --accent: #0077ff;
  --radius: 16px;
  --shadow-light: 0 8px 30px rgba(0, 0, 0, 0.1);
  --shadow-dark: 0 6px 20px rgba(0, 0, 0, 0.6);
  --blur-light: rgba(255, 255, 255, 0.9);
  --blur-dark: rgba(15, 17, 23, 0.8);
}

/* === PRELOADER NOWY === */
#preloader-overlay {
  position: fixed;
  inset: 0;
  background-color: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

body.dark-mode #preloader-overlay {
  background-color: var(--bg-dark);
}

.preloader-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preloader-logo {
  width: 240px;
  max-width: 80vw;
  opacity: 0;
  transform: scale(0.85);
  filter: blur(4px);
  animation: preloaderPulse 1.8s ease-in-out forwards;
  animation-delay: 0.4s;
  display: none;
}

body.dark-mode .preloader-dark {
  display: block;
}

body:not(.dark-mode) .preloader-light {
  display: block;
}

@keyframes preloaderPulse {
  0% {
    opacity: 0;
    transform: scale(0.85);
    filter: blur(6px);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
}

/* Ukrywanie preloadera po załadowaniu */
body.preloader-hidden #preloader-overlay {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* === FADE-IN SEKCJI === */
.fade-in-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  will-change: opacity, transform;
}

body.preloader-hidden .fade-in-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === HEADER, FOOTER, LOGO – animacja po loaderze === */
.site-header,
.site-footer,
.logo img {
  opacity: 0;
  transform: translateY(20px);
  animation-fill-mode: forwards;
}

/* Animacje po zniknięciu preloadera */
body.preloader-hidden .site-header {
  animation: slideDownFade 1s ease-out 0.4s forwards;
}

body.preloader-hidden .logo img {
  animation: logoBounce 1.2s ease-out 0.7s forwards;
}

body.preloader-hidden .site-footer {
  animation: fadeInUp 1.2s ease-out 1s forwards;
}

/* === DEFINICJE ANIMACJI === */
@keyframes slideDownFade {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes logoBounce {
  0% {
    opacity: 0;
    transform: scale(0.9) translateY(-10px);
  }
  50% {
    opacity: 1;
    transform: scale(1.05) translateY(4px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}


