/*
Theme Name:  TylkoFotografia Child
Theme URI:   https://tylkofotografia.pl
Description: Child theme for Blocksy — TylkoFotografia.pl
Author:      Krzysztof Turek
Author URI:  https://krzysztof-turek.com
Template:    blocksy
Version:     1.0.43
Text Domain: tylkofotografia
*/

/* ============================================================
   FONTY — Maven Pro (lokalnie)
   Pliki w: /wp-content/themes/tylkofotografia-child/fonts/
   ============================================================ */

@font-face {
    font-family: "Maven Pro";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("fonts/maven-pro-v32-latin-ext.woff2") format("woff2");
    unicode-range:
        U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF,
        U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Maven Pro";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("fonts/maven-pro-v32-latin-regular.woff2") format("woff2");
    unicode-range:
        U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
        U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
        U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Maven Pro";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("fonts/maven-pro-v32-latin-600-ext.woff2") format("woff2");
    unicode-range:
        U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF,
        U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Maven Pro";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("fonts/maven-pro-v32-latin-600.woff2") format("woff2");
    unicode-range:
        U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
        U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
        U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Maven Pro";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("fonts/maven-pro-v32-latin-700.woff2") format("woff2");
    unicode-range:
        U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
        U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
        U+FEFF, U+FFFD;
}

/* ============================================================
   TOKENY
   ============================================================ */

:root {
    --tf-navy: #1c2f40;
    --tf-navy-mid: #2e506d;
    --tf-text: #1a1d26;
    --tf-text-muted: #6b7887;
    --tf-text-light: #9fadbd;
    --tf-bg: #ffffff;
    --tf-bg-soft: #f8f9fa;
    --tf-border: #e8eaed;
    --tf-accent: #2563eb;
    --tf-accent-dark: #1a4fc4;
    --tf-radius: 8px;
    --tf-radius-lg: 12px;
    --tf-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    --tf-shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.14);
    --tf-transition: 200ms ease;
    --tf-font: "Maven Pro", sans-serif;
}

/* ============================================================
   GLOBALNE
   ============================================================ */

body {
    font-family: var(--tf-font);
    color: var(--tf-text);
    background: var(--tf-bg);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--tf-text-muted);
    text-decoration: none;
    transition: color var(--tf-transition);
}

a:hover {
    color: var(--tf-navy);
}

/* ============================================================
   STRONA GŁÓWNA — LISTA POSTÓW
   ============================================================ */

.tf-home {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px 60px;
}

/* --- Hero post (pierwszy, pełna szerokość) --- */

.tf-hero {
    position: relative;
    border-radius: var(--tf-radius-lg);
    overflow: hidden;
    margin-bottom: 48px;
    box-shadow: var(--tf-shadow);
    display: block; /* cały kafelek klikalny */
    color: inherit;
    text-decoration: none;
}

.tf-hero__img {
    width: 100%;
    aspect-ratio: 21 / 9;
    object-fit: cover;
    display: block;
    transition: transform 400ms ease;
}

.tf-hero:hover .tf-hero__img {
    transform: scale(1.02);
}

.tf-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(28, 47, 64, 0.88) 0%,
        rgba(28, 47, 64, 0.3) 50%,
        transparent 100%
    );
}

.tf-hero__body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 32px 36px;
}

.tf-hero__meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 10px;
}

.tf-hero__cat,
.tf-hero__date {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
}

.tf-hero__cat {
    color: #93c5fd;
}

.tf-hero__sep {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    flex-shrink: 0;
}

.tf-hero__title {
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    font-weight: 700;
    line-height: 1.25;
    color: #ffffff;
    margin: 0;
}

.tf-hero__excerpt {
    margin-top: 10px;
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    max-width: 680px;
}

/* --- Siatka postów (od 2. postu) --- */

.tf-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

/* --- Pojedynczy kafelek --- */

.tf-card {
    display: block;
    border-radius: var(--tf-radius-lg);
    overflow: hidden;
    background: var(--tf-bg);
    border: 1px solid var(--tf-border);
    box-shadow: var(--tf-shadow);
    text-decoration: none;
    color: inherit;
    transition:
        box-shadow var(--tf-transition),
        transform var(--tf-transition);
}

.tf-card:hover {
    box-shadow: var(--tf-shadow-hover);
    transform: translateY(-3px);
    color: inherit;
}

.tf-card__img-wrap {
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.tf-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 400ms ease;
}

.tf-card:hover .tf-card__img {
    transform: scale(1.04);
}

.tf-card__body {
    padding: 20px 22px 24px;
}

.tf-card__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.tf-card__cat {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--tf-accent);
}

.tf-card__sep {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--tf-border);
    flex-shrink: 0;
}

.tf-card__date {
    font-size: 0.75rem;
    color: var(--tf-text-muted);
}

.tf-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--tf-text);
    margin: 0 0 10px;
    transition: color var(--tf-transition);
}

.tf-card:hover .tf-card__title {
    color: var(--tf-accent);
}

.tf-card__excerpt {
    font-size: 0.88rem;
    line-height: 1.65;
    color: var(--tf-text-muted);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- Paginacja --- */

.tf-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--tf-border);
}

.tf-pagination__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--tf-text-muted);
    text-decoration: none;
    padding: 8px 16px;
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius);
    transition: all var(--tf-transition);
}

.tf-pagination__link:hover {
    color: var(--tf-accent);
    border-color: var(--tf-accent);
    background: rgba(37, 99, 235, 0.04);
}

.tf-pagination__link--empty {
    visibility: hidden;
}

/* ============================================================
   ARTYKUŁ (single post)
   ============================================================ */

/* 1. Wybiela separatory (kropki/kółka) pomiędzy elementami meta */
.hero-section[data-type="type-2"] .entry-meta {
    color: #fff; /* To powinno zmienić kolor kropek, jeśli są tekstem/znakiem */
}

/* Jeśli kropki to elementy dekoracyjne motywu, używamy tego: */
.hero-section[data-type="type-2"] .entry-meta li::before,
.hero-section[data-type="type-2"] .entry-meta li::after {
    background-color: #fff !important; /* Dla kropek będących kwadracikami/kołami */
    color: #fff !important;
    border-color: #fff !important;
}

/* 2. Wybiela opis (zajawkę testową) */
.hero-section[data-type="type-2"] .page-description,
.hero-section[data-type="type-2"] .page-description p {
    color: #fff;
}

/* 3. Bonus: Skrócona wersja Twojego kodu (zamiast rozbijać na każdy element) */
.hero-section[data-type="type-2"] .entry-header * {
    color: #fff;
}

/* 1. Upewnij się, że kontener ma pozycję relatywną */
.hero-section[data-type="type-2"] figure .ct-media-container {
    position: relative;
    display: block;
    line-height: 0; /* Usuwa zbędne odstępy pod obrazkiem */
}

/* 2. Tworzymy warstwę gradientu nad obrazkiem */
.hero-section[data-type="type-2"] figure .ct-media-container::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradient, który chcesz */
    background: linear-gradient(
        to top,
        rgba(28, 47, 64, 0.88) 0%,
        rgba(28, 47, 64, 0.3) 50%,
        transparent 100%
    );
    pointer-events: none; /* Dzięki temu kliknięcia przechodzą "przez" gradient */
    z-index: 1; /* Upewnia się, że jest nad obrazkiem */
}

/* 3. Upewnij się, że obrazek nie "przykrywa" gradientu */
.hero-section[data-type="type-2"] figure .ct-media-container img {
    position: relative;
    z-index: 0;
    display: block;
    width: 100%;
    height: auto;
}
.entry-content {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--tf-text);
}

.entry-content p {
    margin-bottom: 1.5rem;
}
.entry-content h2 {
    font-size: 1.55rem;
    font-weight: 700;
    margin: 2.4rem 0 0.8rem;
}
.entry-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 2rem 0 0.6rem;
}
.entry-content h4 {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 1.6rem 0 0.5rem;
}
.entry-content ul,
.entry-content ol {
    margin: 0 0 1.5rem 1.4rem;
}
.entry-content li {
    margin-bottom: 0.4rem;
    line-height: 1.7;
}
.entry-content strong {
    font-weight: 700;
}

.entry-content a {
    color: var(--tf-accent);
    text-decoration: underline;
    text-decoration-color: rgba(37, 99, 235, 0.35);
    text-underline-offset: 3px;
    transition: text-decoration-color var(--tf-transition);
}

.entry-content a:hover {
    text-decoration-color: var(--tf-accent);
}

.entry-content figure {
    margin: 2rem 0;
    text-align: center;
}

.entry-content figcaption {
    font-size: 0.82rem;
    color: var(--tf-text-muted);
    font-style: italic;
    margin-top: 8px;
}

/* ============================================================
   STOPKA
   ============================================================ */

.footer {
    background: var(--tf-navy);
    color: #fff;
}

footer a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: color var(--tf-transition);
}

footer a:hover {
    color: #fff;
    text-decoration: underline;
}

/* ============================================================
   RESPONSYWNOŚĆ
   ============================================================ */

@media (max-width: 768px) {
    .tf-home {
        padding: 24px 16px 40px;
    }

    .tf-hero__img {
        aspect-ratio: 4 / 3;
    }

    .tf-hero__body {
        padding: 20px 20px;
    }

    .tf-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .tf-pagination {
        margin-top: 32px;
    }
}

@media (max-width: 480px) {
    .tf-hero__title {
        font-size: 1.2rem;
    }

    .tf-hero__excerpt {
        display: none;
    }
}
/*
menu*/

/* Kontener główny */
.floating-side-menu {
    position: fixed !important;
    left: -260px; /* Chowa menu na sztywno, zostawiając kawałek paska */
    top: 60%;
    transform: translateY(-50%);
    display: flex !important;
    flex-direction: column !important;
    z-index: 999999 !important;
    background: #2c3e50 !important;
    box-shadow: 5px 0 25px rgba(0, 0, 0, 0.3);
    border-radius: 0 12px 12px 0;

    /* To pilnuje zaokrągleń rogów przy hoverze */
    overflow: hidden !important;

    width: 300px; /* Stała szerokość, żeby łatwiej kontrolować wysuwanie */
    padding: 0 !important;

    /* Maślana płynność */
    transition: left 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Wysuwanie - zmieniamy pozycję LEFT zamiast transform */
.floating-side-menu:hover {
    left: 0 !important;
}

/* Linki */
.floating-side-menu a {
    display: flex !important;
    align-items: center;
    padding: 15px 20px !important;
    color: #ffffff !important;
    text-decoration: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    white-space: normal;
    transition:
        background 0.3s ease,
        padding-left 0.3s ease !important;
}

/* Efekt najechania na konkretny link */
.floating-side-menu a:hover {
    background-color: var(--theme-palette-color-1) !important;
    padding-left: 30px !important;
}

/* Ostatni element */
.floating-side-menu a:last-child {
    border-bottom: none !important;
}

/* Jeśli masz nagłówek "Spis treści" */
.custom-card-header {
    background: rgba(0, 0, 0, 0.3);
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.custom-card-title {
    color: #00d1ff !important; /* Kolor błękitny dla wyróżnienia tytułu */
    margin: 0 !important;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}
