:root {
    --bg-color: #030712;
    --text-color: #f3f4f6;
    --primary: #3b82f6;
    --primary-dark: #030710;
    --gray-800: #1f2937;
    --gray-900: #000000;
}

/* --- NOWE STYLE: JASNY MOTYW --- */
body.light-theme {
    --bg-color: #f9fafb;
    --text-color: #1f2937;
    --primary: #2563eb;
    --primary-dark: #f0f0f0;
    --gray-800: #ffffff;
    --gray-900: #f3f4f6;
}
/* --- KONIEC NOWYCH STYLI --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* ========================================================== */
/* === NOWA, ZOPTYMALIZOWANA ANIMACJA ZMIANY MOTYWU === */
/* ========================================================== */
body, .main-nav, .filter-btn, .watch-face-content, 
.pagination-btn, #about, footer, .blog-post-card, 
.post-nav-link, .latest-post-card, .theme-toggle-btn {
    transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out;
}

h1, h2, h3, p, a, span, button, input {
    transition: color 0.2s ease-in-out, background-color 0.3s ease-in-out;
}

body.light-theme #disqus_thread iframe,
body.light-theme .zepp-badge {
    transition: filter 0.3s ease-in-out;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family:"Lato", Lato, Arial, sans-serif;
    font-weight: 400;
    font-style: normal;
    line-height: 1.5;
    min-height: 100vh;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: -1px -1px;
}

body.light-theme {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
}

body::before, body::after {
    content: '';
    position: fixed;
    left: 50%;
    top: 50%;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    z-index: -1;
    filter: blur(150px);
    opacity: 0.25;
    transition: opacity 0.3s ease;
}

body.light-theme::before, body.light-theme::after {
    opacity: 0.15;
}


body::before {
    background: radial-gradient(circle, var(--bg-color) 0%, rgba(59, 130, 246, 0) 70%);
    transform: translate(-80%, -20%);
    animation: blob-move-1 25s infinite alternate;
}

body::after {
    background: radial-gradient(circle, #7933ed 0%, rgba(121, 51, 237, 0) 70%);
    transform: translate(-20%, -80%);
    animation: blob-move-2 30s infinite alternate;
}

@keyframes blob-move-1 {
  to { transform: translate(-20%, -80%); }
}

@keyframes blob-move-2 {
  to { transform: translate(-80%, -20%); }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

a {
  text-decoration: none;
color: #b200ff;
} 


p { 
    font-weight: 400; 
    color: #DBDBDB;
} 

body.light-theme p {
    color: #4b5563;
}

/* --- PERMANENT NAVIGATION --- */
.main-nav {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 50;
    padding: 0.75rem 0;
    background: linear-gradient(115deg, rgb(0 0 0 / 25%), rgb(0 0 0 / 35%));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

body.light-theme .main-nav {
    background: linear-gradient(115deg, rgb(255 255 255 / 25%), rgb(255 255 255 / 35%));
}

.main-nav::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(
        to right,
        rgba(59, 130, 246, 0),
        rgba(59, 130, 246, 0.5),
        rgba(59, 130, 246, 0)
    );
    opacity: 0.8;
}

.nav-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
}

.main-nav a, .main-nav .lang-toggle {
    display: block;
    padding: 0.5rem 1rem;
    color: #a3c5ff;
    text-decoration: none;
    border-radius: 0.25rem;
    font-size: 0.9rem;
    white-space: nowrap;
}

body.light-theme .main-nav a, body.light-theme .main-nav .lang-toggle {
    color: #1d4ed8;
}

.main-nav a:hover, .main-nav .lang-toggle:hover {
    color: var(--primary);
    border: 1px solid #3A5978;
    gap: 0.4rem;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
}

.main-nav .lang-toggle {
    background: none;
    border: 1px solid #3A5978;
    color: #5496ff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

body.light-theme .main-nav .lang-toggle {
    border-color: #93c5fd;
    color: #1d4ed8;
}

.header-cta-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap; 
}

/* Header */
header {
    padding: 4rem 0 6rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.animate-charcter {
   text-transform: uppercase;
  background-image: linear-gradient(-125deg, #7933ed 0%, #60a5fa 25%, #DBDBDB 50%, #60a5fa 75%, #7933ed 100%);
  background-size: 200% auto;
  color: #fff;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textclip 3s linear infinite;
  position:relative;
  font-size: 4.2rem;
  font-weight: 900;
}

body.light-theme .animate-charcter {
    background-image: linear-gradient(-125deg, #7c3aed 0%, #3b82f6 25%, #374151 50%, #3b82f6 75%, #7c3aed 100%);
}

@keyframes textclip { to { background-position: -200% center; } }

h1 {
    font-size: 3.2rem;
    font-weight: bold;
    margin-bottom: 0.6rem;
    background: linear-gradient(to right, #6baeff, #bdbdff, #733dfd);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

body.light-theme h1 {
    background: linear-gradient(to right, #3b82f6, #6d28d9, #4f46e5);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

#heroSubtitle {
    max-width: 48rem;
    margin: 0.8rem auto 0;
    padding: 0 1rem;
}

/* Portfolio & Blog Filters */
#blog-filters-section { padding-top: 2rem; }

.portfolio-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.filter-btn {
    background-color: var(--gray-800) 40%;
    color: #a3c5ff;
    border: 1px solid #3A5978;
    padding: 0.6rem 1.2rem;
    border-radius: 9999px;
    cursor: pointer;
    font-weight: 600;
}

.filter-btn:hover {
    background-color: var(--gray-900);
    border-color: var(--primary);
}

.filter-btn.active {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

body.light-theme .filter-btn {
    background-color: var(--gray-800);
    color: var(--primary);
    border-color: #d1d5db;
}
body.light-theme .filter-btn:hover {
    background-color: #f3f4f6;
    border-color: var(--primary);
}
body.light-theme .filter-btn.active {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* --- Watch Face Card Styles --- */
.watch-faces-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    position: relative;
    align-items: stretch; 
}
@media (min-width: 768px) { .watch-faces-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .watch-faces-grid { grid-template-columns: repeat(3, 1fr); } }

/* 1. Główny kontener w siatce. */
.watch-face-card {
    perspective: 1500px;
}

/* 2. Wewnętrzny kontener, który się obraca. */
.watch-face-card-inner {
    position: relative; /* Anchor for the back face */
    width: 100%;
    height: 100%;
    transition: transform 0.7s cubic-bezier(0.5, 1.3, 0.5, 1);
    transform-style: preserve-3d;
}

.watch-face-card-inner.is-flipped {
    transform: rotateY(180deg);
}

/* 3. Obie strony karty. */
.watch-face-card-front,
.watch-face-card-back {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* 4. PRZÓD KARTY - zachowuje się normalnie, nadając wysokość. */
.watch-face-card-front {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.watch-face-image {
    width: 12rem;
    height: 12rem;
    border-radius: 50%;
    overflow: hidden; 
    margin: 0 auto;
    position: relative;
    z-index: 3;
    border: 4px solid var(--bg-color);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    transition: transform 0.4s ease, border-color 0.3s ease;
    flex-shrink: 0;
}
body.light-theme .watch-face-image { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1); }
.watch-face-card:hover .watch-face-image { transform: scale(1.1); }
.watch-face-image img { width: 100%; height: 100%; object-fit: cover; }

.watch-face-content {
    background: linear-gradient(180deg, var(--gray-900) 0%, rgba(17, 24, 39, 0.7) 70%, rgba(3, 7, 18, 0.4) 100%);
    backdrop-filter: blur(8px);
    border-radius: 0.5rem;
    padding: 7rem 1.5rem 1.5rem 1.5rem;
    margin-top: -6rem;
    text-align: center;
    border: 1px solid #1f2937;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Pozwala mu zająć całą dostępną przestrzeń */
    position: relative;
}
body.light-theme .watch-face-content {
    background: linear-gradient(180deg, var(--gray-900) 0%, rgb(255 255 255 / 70%) 70%, rgb(234 234 234 / 40%) 100%);
    border-color: #c3c5c9;
}
.zepp-badge { position: absolute; top: 1rem; right: 1rem; width: 60px; opacity: 0.4; transition: opacity 0.3s, filter 0.3s ease; z-index: 5; }
.zepp-badge:hover { opacity: 1; }
body.light-theme .zepp-badge { filter: invert(1); }
.watch-face-title { color: #60a5fa; font-size: 2rem; font-weight: 900; margin-bottom: 0.7rem; }
.watch-face-description { color: rgba(243, 244, 246, 0.9); margin-bottom: auto; }
body.light-theme .watch-face-title { color: #1d4ed8; }
body.light-theme .watch-face-description { color: #374151; }
.devices-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-top: 1rem; }
.device-tag { background: rgba(31, 41, 55, 0.4); color: #93c5fd; padding: 0.3rem 0.7rem; border-radius: 9999px; font-size: 0.80rem; border: 1px solid rgba(255, 255, 255, 0.2); }
body.light-theme .device-tag { background: rgba(229, 231, 235, 0.8); color: #1e40af; border-color: #d1d5db; }

/* 5. TYŁ KARTY - JEST POZYCJONOWANY ABSOLUTNIE. */
.watch-face-card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, var(--bg-color) 0%, #000000 100%);
    border: 1px solid var(--primary);
    border-radius: 0.5rem;
    color: var(--text-color);
    transform: rotateY(180deg);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}
body.light-theme .watch-face-card-back {
    background: linear-gradient(180deg, #f9fafb 0%, #f3f4f6 100%);
    border-color: var(--primary);
}

.details-content {
    flex-grow: 1;
    overflow-y: auto;
    padding-right: 10px;
    margin-bottom: 1rem;
    text-align: left;
    min-height: 0; /* Kluczowa reguła zapobiegająca rozpychaniu */
    -webkit-mask-image: linear-gradient(to bottom, black 93%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 93%, transparent 100%);
}
.details-content:after {
-webkit-mask-image: linear-gradient(to top, black 90%, transparent 100%);
    mask-image: linear-gradient(to top, black 90%, transparent 100%);
} 

.details-content h4 { color: var(--primary); font-size: 1.6rem; margin-bottom: 0.9rem; }

.details-content h5 { font-size: 1.1rem; margin-top: 0.3rem; margin-bottom: 0.5rem; color: #a3c5ff; }
.details-content p { font-size: 0.95rem; line-height: 1.6; color: #d1d5db; }
.details-content ul { list-style-position: inside; padding-left: 0.5rem; }
.details-content li { margin-bottom: 0.5rem; }
.details-content br { margin-bottom: 0.2rem; }
body.light-theme .details-content h5 { color: #1d4ed8; }
body.light-theme .details-content p { color: #4b5563; }

/* 6. Ikona "info" na przodzie karty */
.details-icon-btn {
    position: absolute;
    top: 2.2rem;
    left: 1.8rem;
    z-index: 5;
    background: transparent;
    border: none;
    cursor: pointer;
    color: rgba(243, 244, 246, 0.4);
    transition: color 0.2s, transform 0.2s;
    padding: 0;
}
.details-icon-btn:hover {
    color: rgba(243, 244, 246, 1);
    transform: scale(1.1);
}
body.light-theme .details-icon-btn { color: rgba(29, 78, 216, 0.5); }
body.light-theme .details-icon-btn:hover { color: rgba(29, 78, 216, 1); }
.details-icon-btn .lucide {
    width: 24px;
    height: 24px;
}

/* 7. Przycisk "Wróć" na tyle karty */
.details-flipper-btn {
    background-color: transparent; border: 1px solid #3A5978; color: #87B6E7; padding: 0.5rem 1rem;
    border-radius: 9999px; cursor: pointer; font-weight: 600; transition: all 0.2s; margin-top: auto; align-self: center;
    flex-shrink: 0;
}
.details-flipper-btn:hover { background-color: var(--primary); color: white; border-color: var(--primary); }
body.light-theme .details-flipper-btn { border-color: #d1d5db; color: #1d4ed8; }
body.light-theme .details-flipper-btn:hover { background-color: var(--primary); color: white; }

.cta-button2 { color: var(--primary); font-size: 0.85rem; opacity: 0; max-height: 0; overflow: hidden; padding: 0; transition: all 0.4s ease; text-decoration: none; }
.watch-face-card.card-active .cta-button2 { opacity: 0.8; max-height: 5em; padding: 1.5rem 0 0.5rem 0; }
.cta-button2:hover { color: #a3c5ff; }

body.light-theme .cta-button2 {
    color: #1d4ed8;
}
body.light-theme .cta-button2:hover {
    color: var(--primary);
}


/* --- Pagination Styles --- */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    padding-bottom: 2rem;
}
.pagination-btn {
    background-color: var(--gray-800);
    color: #a3c5ff;
    border: 1px solid #3A5978;
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    cursor: pointer;
    font-weight: 600;
}
.pagination-btn:hover:not(.disabled) { background-color: var(--gray-900); border-color: var(--primary); }
.pagination-btn.disabled { opacity: 0.5; cursor: not-allowed; }
#page-info { color: #a3c5ff; font-weight: 600; }

body.light-theme .pagination-btn {
    background-color: var(--gray-800);
    color: var(--primary);
    border-color: #d1d5db;
}
body.light-theme .pagination-btn:hover:not(.disabled) {
    background-color: #f3f4f6;
}
body.light-theme #page-info {
    color: #4b5563;
}

/* --- Generic Sections & Buttons --- */
h2 { text-align: center; font-size: 2.1rem; font-weight: bold; margin-bottom: 3rem; background: linear-gradient(to right, #5482bc, #aeaefd, #5333a4); -webkit-background-clip: text; background-clip: text; color: transparent; }
body.light-theme h2 {
    background: linear-gradient(to right, #3b82f6, #6d28d9, #4f46e5);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.cta-button { display: inline-block; background: var(--primary); color: white; padding: 0.75rem 2rem; border-radius: 9999px; text-decoration: none; font-weight: 600; transition: all 0.3s; }
.cta-button:hover { background: var(--primary-dark); transform: translateY(-2px); }

body.light-theme .cta-button:hover {
    background-color: #1d4ed8;
}

.cta-button3 { display: inline-block; background: #000000; color: #87B6E7; border: 1px solid #3A5978; padding: 0.55rem 2rem; border-radius: 9999px; text-decoration: none; font-weight: 700; transition: all 0.3s; margin-top: 1rem; margin-bottom: 1.5rem; }
.cta-button3:hover { background: var(--primary); color: #000000; } 

body.light-theme .cta-button3 {
    background: #ffffff;
    color: #1d4ed8;
    border-color: #d1d5db;
}
body.light-theme .cta-button3:hover {
    background: var(--primary);
    color: white;
}

.cta-button3b { background: #000000; color: #87B6E7; border: 1px solid #3A5978; padding: 0.7rem 1.4rem; border-radius: 5px; text-decoration: none; font-weight: 700; transition: all 0.3s; display: block; width: fit-content; margin: 2rem auto 1.5rem; text-align: center; box-shadow: 0px 1px 2px 0px #3A5978;} 
.cta-button3b:hover { background: var(--primary); color: #000000; }

body.light-theme .cta-button3b {
    background: #ffffff;
    color: #1d4ed8;
    border-color: #d1d5db;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
}
body.light-theme .cta-button3b:hover {
    background: var(--primary);
    color: white;
}

/* ========================================================== */
/* === ZMIENIONE STYLE DLA SEKCJI "O MNIE" === */
/* ========================================================== */

#about {
    background: rgba(17, 24, 39, 0.3);
    backdrop-filter: blur(8px);
    padding: 5rem 0;
    position: relative; /* Niezbędne dla pozycjonowania ::before */
    overflow: hidden;   /* Zapobiega wychodzeniu elementów poza sekcję */
}

#about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* --- ZMIANA: Poprawna ścieżka do lokalnego pliku --- */
    background-image: url('trk88pl-foto.png');
    
    background-repeat: no-repeat;
    
    /* --- ZMIANA: Ustawienie zdjęcia na środku --- */
    background-position: center center; 
    
    /* --- ZMIANA: Dopasowanie rozmiaru zdjęcia --- */
    background-size: contain; 
    
    z-index: -1;

    /* --- ZMIANA: Maska radialna dla subtelnego efektu zanikania na krawędziach --- */
    -webkit-mask-image: radial-gradient(circle, black 40%, transparent 75%);
    mask-image: radial-gradient(circle, black 40%, transparent 75%);
    
    /* --- ZMIANA: Animacja wysuwania się od dołu zamiast z boku --- */
    opacity: 0;
    transform: translateY(40px); /* Startuje lekko niżej */
    transition: opacity 1s ease-out, transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- ZMIANA: Aktywacja animacji po przewinięciu --- */
#about.is-visible::before {
    opacity: 0.19; /* Widoczność w ciemnym motywie */
    transform: translateY(0); /* Przesunięcie do pozycji końcowej */
}

body.light-theme #about {
    background: rgba(243, 244, 246, 0.5);
}

/* --- ZMIANA: Odwrócenie kolorów i mniejsza widoczność w jasnym motywie --- */
body.light-theme #about.is-visible::before {
    filter: invert(1);
    opacity: 0.14; /* Zdjęcie jest jeszcze bardziej subtelne w jasnym motywie */
}

.about-content {
    max-width: 48rem;
    margin: 0 auto;
    text-align: center;
    position: relative; /* Upewniamy się, że tekst jest nad tłem */
    z-index: 1;
}
#contact { padding: 0 0 3rem 0; }
.contact-links { display: flex; justify-content: center; gap: 2rem; margin-top: 2.7rem; margin-bottom: 1.5rem; }
.contact-link { display: flex; align-items: center; gap: 0.5rem; color: #9ca3af; text-decoration: none; transition: color 0.2s; }
.contact-link:hover { color: var(--primary); }
body.light-theme .contact-link {
    color: #6b7280;
}
body.light-theme .contact-link:hover {
    color: var(--primary);
}

footer { background: rgba(0, 0, 0, 0.3); backdrop-filter: blur(5px); padding: 2rem 0; text-align: center; color: #6b7280; width: 100%; }
body.light-theme footer {
    background: rgba(249, 250, 251, 0.8);
    color: #4b5563;
}

/* === WYSZUKIWARKA I NOWE FUNKCJE === */
.search-container {
    position: relative;
    max-width: 400px;
    margin: 1.3rem auto 2rem auto;
}
.search-input {
    width: 100%;
    padding: 0.6rem 2.8rem;
    border-radius: 9999px;
    border: 1px solid #3A5978;
    background-color: rgba(31, 41, 55, 0.4);
    color: var(--text-color);
    font-size: 1rem;
    outline: none;
}
.search-input::placeholder {
    color: #9ca3af;
    opacity: 0.5;
}
.search-input:focus {
    background-color: var(--gray-900);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}
.search-icon {
    position: absolute;
    left: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    width: 25px;
    height: 25px;
    color: #9ca3af;
    pointer-events: none;
}
.search-input:focus ~ .search-icon {
    color: var(--primary);
}
.clear-search-btn {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    border-radius: 50%;
    color: #9ca3af;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, color 0.2s, background-color 0.2s;
}
.clear-search-btn.visible {
    opacity: 1;
    pointer-events: auto;
}
.clear-search-btn:hover {
    color: var(--text-color);
    background-color: rgba(255, 255, 255, 0.1);
}
.clear-search-btn .lucide {
    width: 18px;
    height: 18px;
}
body.light-theme .search-input {
    background-color: var(--gray-800);
    border-color: #e5e7eb;
    color: #111827;
}
body.light-theme .search-input::placeholder {
    color: #6b7280;
    opacity: 1;
}
body.light-theme .search-icon {
    color: #6b7280;
}
body.light-theme .search-input:focus {
    background-color: var(--gray-800);
    border-color: var(--primary);
}
body.light-theme .clear-search-btn {
    color: #6b7280;
}
body.light-theme .clear-search-btn:hover {
    color: #1f2937;
    background-color: rgba(0, 0, 0, 0.05);
}

/* Poprawka dla wiadomości "Brak wyników" */
.no-results {
    grid-column: 1 / -1; /* Rozciąga element na wszystkie kolumny siatki */
    text-align: center;  /* Wyśrodkowuje tekst wewnątrz elementu */
    padding: 3rem 1rem;  /* Dodaje pionowy odstęp dla lepszego wyglądu */
    font-size: 1.1rem;   /* Lekko powiększona czcionka dla lepszej czytelności */
    font-weight: 500;
    color: #a3c5ff;      /* Bardziej spójny kolor */
    opacity: 0.8;
}

body.light-theme .no-results {
    color: #4b5563; /* Kolor dla jasnego motywu */
}

.blog-post-body blockquote {
    position: relative;
    margin: 1.5rem 0;
    padding: 1rem 1.5rem 1rem 2rem;
    background-color: rgba(31, 41, 55, 0.3);
    border-left: 4px solid var(--primary);
    border-radius: 0 8px 8px 0;
    font-style: normal;
}
body.light-theme .blog-post-body blockquote {
    background-color: #f3f4f6;
    border-left-color: var(--primary);
}

.blog-post-body blockquote p {
    color: #d1d5db;
    margin: 0;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}
body.light-theme .blog-post-body blockquote p {
    color: #374151;
}

.blog-post-body blockquote::before {
    content: '“';
    position: absolute;
    top: -0.2em;
    left: 0.1em;
    font-size: 2.1em;
    font-family: serif;
    color: rgba(59, 130, 246, 0.08);
    line-height: 1;
    z-index: 0;
    user-select: none;
    pointer-events: none;
}

.share-container {
    position: relative;
    display: flex;
    align-items: center;
}
.share-options {
    position: absolute;
    bottom: 140%;
    right: 50%;
    transform: translateX(50%);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    background-color: var(--gray-800);
    border: 1px solid #4b5563;
    border-radius: 9999px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transform: translate(50%, 10px);
    pointer-events: none;
    transition: opacity 0.2s ease-out, transform 0.2s ease-out;
    z-index: 10;
}
.share-options::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background-color: var(--gray-800);
    border-right: 1px solid #4b5563;
    border-bottom: 1px solid #4b5563;
}

body.light-theme .share-options {
    background-color: #ffffff;
    border-color: #d1d5db;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
body.light-theme .share-options::after {
    background-color: #ffffff;
    border-color: #d1d5db;
}

.share-container.active .share-options {
    opacity: 1;
    transform: translateX(50%);
    pointer-events: auto;
}
.share-option-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: transparent;
    border: none;
    border-radius: 50%;
    color: #9ca3af;
    cursor: pointer;
}

body.light-theme .share-option-btn {
    color: #6b7280;
}

.share-option-btn:hover {
    background-color: var(--primary);
    color: white;
    transform: scale(1.1);
}
.share-option-btn .lucide {
    width: 20px;
    height: 20px;
}
.share-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #9ca3af;
    cursor: pointer;
    background: none;
    border: none;
    font: inherit;
    padding: 0.5rem;
}
.share-btn:hover, .share-container.active .share-btn {
    color: var(--text-color);
}
body.light-theme .share-btn:hover,
body.light-theme .share-container.active .share-btn {
    color: #1f2937;
}

.device-tag.device-tag-highlight {
    background-color: #1d4ed8;
    color: white;
    border-color: #60a5fa;
    font-weight: 700;
}
body.light-theme .device-tag.device-tag-highlight {
    background-color: #3b82f6;
    color: white;
    border-color: var(--primary);
}

/* --- BLOG STYLES (z pliku bazowego) --- */
#blog-posts { padding-top: 1rem; }
.posts-grid { display: grid; gap: 2.5rem; padding-bottom: 1.5rem; }
.blog-post-card {
    background: linear-gradient(180deg, var(--gray-900) 0%, rgba(17, 24, 39, 0.7) 100%);
    border: 1px solid #1f2937;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    display: flex; flex-direction: column; position: relative;
}
.blog-post-card:hover { transform: translateY(-5px); box-shadow: 0 8px 24px rgba(0,0,0,0.4); }
body.light-theme .blog-post-card {
    background: linear-gradient(180deg, var(--gray-900) 0%, var(--gray-800) 100%);
    border-color: #c3c5c9;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
}
body.light-theme .blog-post-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
}
.featured-post { border: 1px solid rgba(59, 130, 246, 0.5); }
.featured-post:hover { border-color: var(--primary); }
.featured-badge {
    position: absolute; top: 250px; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10; background: linear-gradient(to right, var(--primary), #5a67d8);
    color: white; padding: 0.3rem 1rem; border-radius: 9999px;
    font-size: 0.8rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.5px; border: 2px solid var(--bg-color);
}
body.light-theme .featured-post {
    border-color: rgba(37, 99, 235, 0.8);
    border: 1px solid rgba(37, 99, 235, 0.8);
}
body.light-theme .featured-post:hover {
    border: 2px solid var(--primary);
}
.blog-post-image { width: 100%; height: 250px; object-fit: cover; display: block;
 }
.blog-post-content { padding: 1.5rem 2rem 2rem 2rem; display: flex; flex-direction: column; flex-grow: 1; }
.featured-post .blog-post-content { padding-top: 2.5rem; }
.blog-post-date { font-size: 0.85rem; color: #9ca3af; margin-bottom: 0.5rem; }
body.light-theme .blog-post-date {
    color: #6b7280;
}
.blog-post-title { font-size: 2rem; font-weight: 900; margin-bottom: 1rem; line-height: 1.3; text-align: left; }
.blog-post-title a { text-decoration: none; background: linear-gradient(to right, var(--primary), #ffffff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.blog-post-title a:hover { color: var(--primary); }
body.light-theme .blog-post-title a {
    background: linear-gradient(to right, var(--primary), #111827);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.blog-post-body { color: var(--text-color); line-height: 1.7; flex-grow: 1; }
.blog-post-body p { margin-bottom: 1rem; }
.blog-post-body-wrapper { position: relative; }
.long-post .blog-post-body-wrapper { max-height: 150px; overflow: hidden; -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%); mask-image: linear-gradient(to bottom, black 60%, transparent 100%); }
.blog-post-body a { color:#7d00b8; } 
body.light-theme .blog-post-body a { color:#9600db; } 
.read-more-btn { display: none; width: 100%; text-align: center; background-color: transparent; border: 1px solid var(--primary); color: var(--primary); padding: 0.75rem 1rem; border-radius: 5px; cursor: pointer; font-weight: 600; margin-top: 1.5rem; text-decoration: none; }
.read-more-btn:hover { background-color: var(--primary); color: white; }
.long-post .read-more-btn { display: block; }
#full-post-container { padding-top: 4rem; padding-bottom: 4rem; }
.full-post-view .blog-post-image { height: auto; max-height: 450px; border-radius: 0.5rem; }
.full-post-view .blog-post-title { font-size: 2.8rem; line-height: 1.1; }
.full-post-view .blog-post-body { font-size: 1.1rem; }
.blog-post-footer { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 1.5rem; position: relative; }
.blog-post-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient( to right, transparent 0%, rgba(159, 59, 246, 0.5) 50%, transparent 100% );
    opacity: 0.5;
}
.read-more-btn + .blog-post-footer { margin-top: 1.5rem; }
.post-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.tag { background: rgba(31, 41, 55, 0.8); color: #93c5fd; padding: 0.25rem 0.75rem; border-radius: 9999px; font-size: 0.8rem; font-weight: 600; text-transform: capitalize; text-decoration: none; display: inline-block; cursor:pointer; border:none;}
.tag:hover {
    filter: brightness(1.2);
    transform: translateY(-2px);
}
.tag.tag-exclusive {
    background: rgba(139, 92, 246, 0.8);
    color: #e9d5ff;
}
body.light-theme .tag {
    background: #e0e7ff;
    color: #3730a3;
}
body.light-theme .tag.tag-exclusive {
    background: #f3e8ff;
    color: #6b21a8;
}
.share-btn { display: flex; align-items: center; gap: 0.5rem; color: #9ca3af; cursor: pointer; background: none; border: none; font: inherit; }
.share-btn:hover { color: var(--text-color); }
.share-btn.copied { color: #4ade80; }
.share-btn .lucide { width: 20px; height: 20px; }
body.light-theme .share-btn {
    color: #6b7280;
}
body.light-theme .share-btn:hover {
    color: var(--text-color);
}
/* POST NAVIGATION STYLES */
#post-navigation-container { display: flex; justify-content: space-between; gap: 2rem; padding-top: 2rem; padding-bottom: 4rem; position: relative; }
#post-navigation-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient( to right, transparent 0%, #c7c7c7 50%, transparent 100% );
    opacity: 0.3;
}
.post-nav-link { flex: 1; display: flex; align-items: center; gap: 1rem; padding: 1.5rem; border: 1px solid #1f2937; border-radius: 0.5rem; color: var(--text-color); text-decoration: none; background: rgba(31, 41, 55, 0.2); position: relative; overflow: hidden; }
.post-nav-link:hover { border-color: var(--primary); transform: translateY(-5px); background: rgba(59, 130, 246, 0.1); }
.post-nav-link .lucide { width: 32px; height: 32px; color: var(--primary); flex-shrink: 0; }
.post-nav-link.next { text-align: right; justify-content: flex-end; }
.nav-link-text span { display: block; font-size: 0.9rem; color: #9ca3af; margin-bottom: 0.25rem; }
.nav-link-text h3 { font-size: 1.2rem; line-height: 1.3; }

body.light-theme .post-nav-link {
    border-color: #e5e7eb;
    background: rgba(243, 244, 246, 0.5);
    color: var(--text-color);
}
body.light-theme .post-nav-link:hover {
    background: rgba(59, 130, 246, 0.05);
}
body.light-theme .nav-link-text span {
    color: #6b7280;
}

.watch-face-card::before, .blog-post-card::before, .post-nav-link::before, .latest-post-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    border-radius: 0.5rem;
    background: radial-gradient( circle 250px at var(--x) var(--y), rgba(59, 130, 246, 0.1), transparent 20% );
    opacity: 0;
    transition: opacity 0.3s ease-out;
    z-index: 1;
    pointer-events: none;
}
body.light-theme .watch-face-card::before, 
body.light-theme .blog-post-card::before, 
body.light-theme .post-nav-link::before, 
body.light-theme .latest-post-card::before {
    background: radial-gradient( circle 250px at var(--x) var(--y), rgba(59, 130, 246, 0.15), transparent 25% );
}
.watch-face-card:hover::before, .blog-post-card:hover::before, .post-nav-link:hover::before, .latest-post-card:hover::before {
    opacity: 1;
}
.lang-toast {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: rgba(31, 41, 55, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid #3A5978;
    border-radius: 8px;
    color: var(--text-color);
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}
.lang-toast.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
    cursor: pointer;
}
.lang-toast-arrow {
    width: 22px;
    height: 22px;
    color: var(--primary);
    flex-shrink: 0;
    margin-left: 0.25rem;
}

body.light-theme .lang-toast {
background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid #DBDBDB;
    border-radius: 8px;
    color: var(--text-color);
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(255,255,255,0.3);
} 

body.light-theme .lang-toast-arrow {
    width: 22px;
    height: 22px;
    color: var(--primary);
    flex-shrink: 0;
    margin-left: 0.25rem;
} 


#disqus_thread {
    background: transparent;
    padding-top: 0.2rem;
    font-family: "Lato", Lato, Arial, sans-serif;
    font-weight: 400;
    font-style: normal;
    transition: opacity 0.2s ease-in-out;
}
@media (prefers-color-scheme: dark) {
  iframe[src*="disqus.com"] {
    color-scheme: light;
    background: transparent;
    padding-top: 0.2rem;
    font-family: "Lato", Lato, Arial, sans-serif;
    font-weight: 400;
    font-style: normal;
  }
}
@media (prefers-color-scheme: light) {
  #disqus_thread iframe {
    color-scheme: light;
  }
}
body.light-theme #disqus_thread iframe { 
    color-scheme: light;
    background: transparent;
    padding-top: 0.2rem;
    font-family: "Lato", Lato, Arial, sans-serif;
    font-weight: 400;
    font-style: normal;
    transition: opacity 0.2s ease-in-out;
} 
#disqus_thread.disqus-reloading {
    opacity: 0;
    min-height: 200px;
} 

.adblock-notice {
    position: relative;
    background: rgba(31, 41, 55, 0.5);
    border: 1px solid #3A5978;
    border-left: 4px solid var(--primary);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    color: var(--text-color);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}
.adblock-notice h3 {
    margin: 0 0 0.5rem 0;
    color: var(--primary);
    font-size: 1.2rem;
}
.adblock-notice p {
    margin: 0;
    color: #DBDBDB;
    line-height: 1.6;
}
body.light-theme .adblock-notice {
    background: #eef2ff;
    border-color: #d1d5db;
    border-left-color: var(--primary);
    color: var(--text-color);
}
body.light-theme .adblock-notice p {
    color: #374151;
}
.adblock-close-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.75rem;
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 2rem;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
}
.adblock-close-btn:hover {
    color: var(--text-color);
    transform: scale(1.1);
}

.share-container {
    position: relative;
    display: flex;
    align-items: center;
}
.share-options {
    position: absolute;
    bottom: 140%;
    right: 50%;
    transform: translateX(50%);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    background-color: var(--gray-800);
    border: 1px solid #4b5563;
    border-radius: 9999px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transform: translate(50%, 10px);
    pointer-events: none;
    transition: opacity 0.2s ease-out, transform 0.2s ease-out;
    z-index: 10;
}
.share-options::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background-color: var(--gray-800);
    border-right: 1px solid #4b5563;
    border-bottom: 1px solid #4b5563;
}
body.light-theme .share-options {
    background-color: #ffffff;
    border-color: #d1d5db;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
body.light-theme .share-options::after {
    background-color: #ffffff;
    border-color: #d1d5db;
}
.share-container.active .share-options {
    opacity: 1;
    transform: translateX(50%);
    pointer-events: auto;
}
.share-option-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: transparent;
    border: none;
    border-radius: 50%;
    color: #9ca3af;
    cursor: pointer;
}
body.light-theme .share-option-btn {
    color: #6b7280;
}
.share-option-btn:hover {
    background-color: var(--primary);
    color: white;
    transform: scale(1.1);
}
.share-option-btn .lucide {
    width: 20px;
    height: 20px;
}

#latest-post {
    padding: 5rem 0;
    background: rgba(17, 24, 39, 0.3);
    overflow: hidden;
}
body.light-theme #latest-post {
    background: rgba(249, 250, 251, 0.8);
}
.swiper-container.featured-posts-slider {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding-bottom: 4rem; 
}
.swiper-slide {
    height: auto; 
    transition: transform 0.4s ease, opacity 0.4s ease;
}
@media (min-width: 768px) {
    .swiper-slide {
        width: 75%;
    }
    .swiper-slide:not(.swiper-slide-active) {
        transform: scale(0.9);
        opacity: 0.5;
    }
}
.latest-post-card-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 25px; 
    display: flex;
    flex-direction: column;
    height: 100%;
}
.latest-post-card {
    display: flex; 
    flex-direction: column;
    width: 100%;
    flex-grow: 1;
    background: linear-gradient(180deg, var(--gray-900) 0%, rgba(17, 24, 39, 0.7) 100%);
    border: 1px solid #1f2937;
    border-radius: 0.5rem;
    overflow: hidden;
    text-decoration: none;
    color: var(--text-color);
}
body.light-theme .latest-post-card {
    background: var(--gray-800);
    border-color: #e5e7eb;
}
.latest-post-card:hover { 
    transform: translateY(-1px); 
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.6); 
    border-color: var(--primary); 
}
body.light-theme .latest-post-card:hover { 
    transform: translateY(-1px); 
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.6); 
    border-color: var(--primary); 
} 
.latest-post-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    flex-shrink: 0; 
}
.latest-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.latest-post-content {
    padding: 1.5rem 1.5rem 3.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.latest-post-date {
    order: -1; 
    font-size: 0.85rem;
    color: #9ca3af;
    margin-bottom: 1rem;
}
body.light-theme .latest-post-date { color: #6b7280; }
.latest-post-title {
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1rem; 
    text-decoration: none;
    background: linear-gradient(to right, var(--primary), #ffffff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
body.light-theme .latest-post-title {
    background: linear-gradient(to right, var(--primary), #000000);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.latest-post-card:hover .latest-post-title { color: var(--primary); }
.latest-post-excerpt {
    color: #DBDBDB;
    line-height: 1.6;
    flex-grow: 1;
}
body.light-theme .latest-post-excerpt { color: #4b5563; }
.latest-post-cta {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 50%);
    z-index: 11;
    display: inline-block;
}
.swiper-controls {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    width: 100%;
    z-index: 10;
}
#latest-post .swiper-button-next,
#latest-post .swiper-button-prev {
    position: static;
    transform: none;
    margin: 0;
    color: var(--primary);
    background-color: transparent;
    width: 36px;
    height: 36px;
    opacity: 0;
    transition: opacity 0.3s ease;
}
#latest-post:hover .swiper-button-next,
#latest-post:hover .swiper-button-prev {
    opacity: 1;
}
#latest-post .swiper-button-next::after,
#latest-post .swiper-button-prev::after {
    font-size: 32px;
    font-weight: 900;
}
.swiper-controls .swiper-pagination {
    position: static;
    width: auto;
}
.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background-color: #8d8d8d !important;
    opacity: 0.8;
}
.swiper-pagination-bullet-active {
    background-color: var(--primary) !important;
    transform: scale(1.2);
    width: 25px !important;
    border-radius: 10px  !important;
    opacity: 1;
}
body.light-theme .swiper-pagination-bullet { background-color: rgba(0, 0, 0, 0.7) !important; }
body.light-theme .swiper-pagination-bullet-active { background-color: var(--primary) !important; }

#reading-progress-bar-container {
    position: fixed;
    top: 61px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: rgba(31, 41, 55, 0.2);
    z-index: 51;
    transition: top 0.3s ease;
}
body.light-theme #reading-progress-bar-container {
    background-color: #e5e7eb;
}
#reading-progress-bar {
    height: 100%;
    width: 0%;
    background-color: var(--primary);
    border-radius: 0 2px 2px 0;
    transition: width 0.05s linear;
    opacity:0.6;
}
.post-meta-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    width: 100%;
    margin-bottom: 1rem;
    color: #9ca3af;
    font-size: 0.85rem;
}
body.light-theme .post-meta-info {
    color: #6b7280;
}
.post-meta-info .blog-post-date {
    margin-bottom: 0;
}
.reading-time {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.reading-time .lucide {
    width: 15px;
    height: 15px;
    opacity: 0.8;
}
#back-to-blog-container {
    text-align: center;
    padding: 0.5rem 0;
}

.back-to-top-btn {
    position: fixed;
    bottom: 30px; 
    right: 80px; 
    z-index: 99;
    width: 30px;
    height: 30px;
    background-color: var(--gray-800);
    border: 1px solid #4b5563;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.2s, border-color 0.2s;
}
.back-to-top-btn.show {
    opacity: 0.7;
    transform: translateY(0);
    pointer-events: auto;
}
.back-to-top-btn:hover {
    transform: scale(1.1);
    border-color: var(--primary);
}
.back-to-top-btn .lucide {
    width: 20px;
    height: 20px;
    color: var(--primary); 
    opacity:0.8;
}
body.light-theme .back-to-top-btn {
    background-color: #ffffff;
    border-color: #d1d5db;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
} 

.theme-toggle-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 100;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--gray-800);
    border: 1px solid #4b5563;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}
.theme-toggle-btn:hover {
    transform: scale(1.1) rotate(15deg);
    border-color: var(--primary);
}
.theme-toggle-btn .lucide {
    color: #facc15;
    transition: transform 0.3s ease-in-out;
}
.theme-toggle-btn .theme-icon-moon {
    color: #e0e7ff; 
}
.theme-icon-sun {
    display: none;
}
.theme-icon-moon {
    display: block;
}
body.light-theme .theme-icon-sun {
    display: block;
}
body.light-theme .theme-icon-moon {
    display: none;
}
body.light-theme .theme-toggle-btn {
    background-color: #ffffff;
    border-color: #d1d5db;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#stats-section {
    padding: 0.75rem 0 1.4rem 0;
    text-align: center;
}
.stats-grid-main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
    align-items: center;
}
.stat-item {
    display: block;
    padding: 1rem 0.5rem;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
}
.stat-item:hover {
    transform: translateY(-5px);
    background-color: rgba(59, 130, 246, 0.07);
}
.stat-item.title-item {
    grid-column: 1 / -1;
    margin-bottom: -1.5rem;
    cursor: default;
    pointer-events: none;
}
.stat-item.title-item:hover {
    transform: none;
    background-color: transparent;
}
.stat-number {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.1;
    background: linear-gradient(to right, #60a5fa, #a3c5ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.stat-label {
    margin-top: 0.2rem;
    font-size: 0.9rem;
    font-weight: 400;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 1px;
}
body.light-theme .stat-number {
    background: linear-gradient(to right, #2563eb, #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
body.light-theme .stat-label {
    color: #6b7280;
}
body.light-theme .stat-item:hover {
    background-color: rgba(37, 99, 235, 0.08);
}
.stat-item-small {
    grid-column: 1 / -1;
    margin-top: 1rem;
    cursor: default;
    pointer-events: none;
}
.stat-item-small:hover {
    transform: none;
    background-color: transparent;
}
.stat-item-small .stat-number {
    font-size: 2.5rem; 
}
.stat-number-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0rem;
}
.stat-prefix {
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1;
    background: linear-gradient(to right, #60a5fa, #a3c5ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-transform:uppercase;
    margin-bottom: 0.25rem;
}
.stat-label-main {
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1;
    background: linear-gradient(to right, #60a5fa, #a3c5ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-transform: uppercase;
    margin-top: 0.25rem;
}
.stat-label-source {
    margin-top: 0.5rem;
    font-size: 0.7rem;
    font-weight: 400;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 1px;
}
body.light-theme .stat-prefix,
body.light-theme .stat-label-main {
    background: linear-gradient(to right, #2563eb, #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
body.light-theme .stat-label-source {
    color: #6b7280;
}
.stats-divider {
    height: 2px;
    background: linear-gradient(to right, transparent, rgba(59, 130, 246, 0.2), transparent);
    margin: 2.5rem auto 1.5rem auto; 
    width: 90%;
    max-width: 500px;
}
#device-stats-container {
    max-width: 600px;
    margin: 0 auto;
}
#deviceStatsTitle {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    opacity: 0.9;
    text-align: center;
}
body.light-theme #deviceStatsTitle {
    color: var(--text-color);
}
.scroller[data-direction="vertical"] {
    max-height: 280px;
    overflow: hidden;
}
.scroller[data-direction="vertical"][data-animated="true"] {
    -webkit-mask: linear-gradient(180deg, transparent, white 15%, white 85%, transparent);
    mask: linear-gradient(180deg, transparent, white 15%, white 85%, transparent);
}
.scroller[data-direction="vertical"] .scroller-inner {
    display: flex;
    flex-direction: column;
    width: 100%;
    animation: scroll-vertical var(--_animation-duration, 40s) linear infinite;
    will-change: transform;
}
.scroller[data-direction="vertical"]:hover .scroller-inner {
    animation-play-state: paused;
}
@keyframes scroll-vertical {
    to {
        transform: translateY(calc(-50%));
    }
}
.device-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.8rem 1rem;
}
.device-list-item-scroll {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    font-size: 1.1rem;
    color: #9ca3af;
    width: 48%;
    text-align: left;
    cursor: pointer;
    border-radius: 8px;
    transition: background-color 0.2s ease, transform 0.2s ease;
    text-decoration: none;
}
.device-list-item-scroll:hover {
    background-color: rgba(59, 130, 246, 0.07);
    transform: scale(1.03);
}
body.light-theme .device-list-item-scroll:hover {
    background-color: rgba(37, 99, 235, 0.08);
}
.device-row .device-list-item-scroll:nth-child(2) {
    flex-direction: row-reverse;
}
.device-list-item-scroll .lucide-watch {
    width: 18px;
    height: 18px;
    color: var(--primary);
    opacity: 0.7;
    flex-shrink: 0;
}
.device-list-item-scroll strong {
    font-weight: 700;
    color: var(--text-color);
}
body.light-theme .device-list-item-scroll {
    color: #6b7280;
}
body.light-theme .device-list-item-scroll strong {
    color: #374151;
}

@media (max-width: 768px) {
    .container { padding: 0 1rem; }
    .nav-container { gap: 0.5rem; justify-content: space-between; flex-wrap: nowrap; }
    .main-nav a { font-size: 0.8rem; padding: 0.5rem 0.3rem; text-align: center; flex-shrink: 1; white-space: normal; line-height: 1.2; }
    .main-nav .lang-toggle { flex: 0 0 40px; width: 40px; height: 40px; padding: 0; }
    .nav-lang-text { display: none; }
    header { padding: 3rem 0 4rem 0; }
    .animate-charcter { font-size: 3.8rem; }
    h1 { font-size: 2.8rem; }
    .header-cta-container { flex-direction: column; gap: 0.75rem; }
    h2 { font-size: 1.8rem; margin-bottom: 1rem; }
    .filter-btn { padding: 0.5rem 1rem; font-size: 0.9rem; }
    .search-input { font-size: 1rem; padding-left: 2.5rem; }
    .search-icon { width: 20px; height: 20px; left: 0.7rem; }} 
        /* ====================================================== */
    /* === POPRAWKA NAWIGACJI POSTÓW DLA WIDOKU MOBILNEGO === */
    /* ====================================================== */

    /* Zmienia układ kontenera z poziomego na pionowy (jeden pod drugim) */
    #post-navigation-container {
        flex-direction: column;
        gap: 1rem; /* Zmniejsza odstęp między przyciskami na mobile */
    }

    /* Upewnia się, że każdy link nawigacyjny zajmuje pełną szerokość */
    .post-nav-link {
        width: 100%;
    }
    
    /* Poprawia stylizację przycisku "Następny wpis", aby ikona była po prawej */
    .post-nav-link.next {
        justify-content: flex-end; /* Rozsuwa tekst i ikonę na boki */
        text-align: right; /* Wyrównuje tekst w bloku do lewej */
    }

    @media (max-width: 1024px) and (orientation: landscape) {
        .latest-post-image { height: 200px; }
        .latest-post-title { font-size: 1.8rem; margin-bottom: 0.5rem; }
        .latest-post-content { padding: 1.25rem 1.25rem 3rem 1.25rem; }
    }
    @media (max-width: 768px) {
        .latest-post-cta { padding: 0.6rem 1.2rem; font-size: 0.9rem; white-space: nowrap; }
        #latest-post .swiper-button-next,
        #latest-post .swiper-button-prev { display: none !important; }
        .swiper-controls { gap: 0; }
        .latest-post-title { font-size: 1.7rem; }
    }
    @media (max-width: 500px) {
        #device-stats-container { max-width: 95%; }
        .device-row { padding: 0.8rem 0.5rem; }
        .device-list-item-scroll { font-size: 0.9rem; gap: 0.3rem; }
        .device-list-item-scroll .lucide-watch { width: 16px; height: 16px; }
    }
    body::before, 
    body::after {
        animation: none;
        display: none;
    }
    .watch-face-card:hover::before, 
    .latest-post-card:hover::before {
        opacity: 0;
        display: none;
    }
    .reveal-on-scroll {
        opacity: 0;
        transform: none;
        transition: opacity 0.5s ease-out;
    }
    .reveal-on-scroll.is-visible {
        opacity: 1;
    }
    .watch-face-card,
    .latest-post-card {
        will-change: transform, opacity;
    }
}

@media (max-width: 768px) {
    #reading-progress-bar-container { top: 61px; }
    .full-post-view .blog-post-title { font-size: 2.0rem; word-wrap: break-word; line-height: 1.3; 
    word-break: break-word;  
    hyphens: auto;
  }
}
/* === Styl dla podpowiedzi pod tytułem kompatybilności === */
.device-stats-hint {
    font-size: 0.65rem; /* Zwiększono lekko dla czytelności, 0.5rem jest ekstremalnie małe */
    font-weight: 400;
    color: #9ca3af;
    opacity: 0.9;
    margin-top: -1.2rem;
    margin-bottom: 1.5rem;
    text-align: center;
    letter-spacing: 0.3px;
}

body.light-theme .device-stats-hint {
    color: #6b7280;
}
.device-tag:hover {
    border-color: var(--primary);
    filter: brightness(1.2);
}

.device-tag:active {
    transform: scale(0.95);
    background-color: var(--primary);
    color: white;
}
/* ========================================================== */
/* === POPRAWKA DLA PRZEGLĄDARKI FIREFOX === */
/* ========================================================== */
/* Ta reguła ukrywa przednią stronę karty (z GIF-em) podczas, */
/* gdy jest ona obrócona, aby zapobiec "przebijaniu" obrazka. */
/* Działa tylko w przeglądarce Firefox. */
@-moz-document url-prefix() {
  .watch-face-card-inner.is-flipped .watch-face-card-front {
    visibility: hidden;
  }
}