/*
 Theme Name:   Artur Krzysztofik - Child Theme
 Description:  Lekki motyw potomny dla Astry
 Author:       Artur Krzysztofik
 Template:     astra
 Version:      1.0.0
*/


/* ==========================================================================
   1. MENU PIGUŁKA (PILL)
   ========================================================================== */

#pill-menu-top {
    position: fixed; top: 30px; left: 50%; transform: translateX(-50%);
    background: #ffffff;
    padding: 4px 12px;
    border-radius: 60px;
    display: flex; align-items: center;
    gap: 35px;
    z-index: 9995;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.pill-logo-img {
    /* Usuwamy stare max-width i max-height */
    height: 48px !important;    /* To wyznacza wielkość logo w pionie */
    width: auto !important;     /* To dba o proporcje */
    display: block;
    filter: drop-shadow(1px 1px 1px rgba(0,0,0,0.1));
    transition: transform 0.3s ease;
}

.pill-logo-link:hover .pill-logo-img { transform: scale(1.03); }

.nav-wrapper { display: flex; align-items: center; gap: 35px; }

.pill-item {
    color: #333;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 500;
    transition: 0.3s;
    white-space: nowrap;
}

.pill-item:hover { color: #c5a059; }


/* --------------------------------------------------------------------------
   1a. Podmenu
   -------------------------------------------------------------------------- */

.has-submenu { position: relative; cursor: pointer; }

.submenu {
    position: absolute; top: 120%; left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #fff; min-width: 170px; border-radius: 15px;
    list-style: none; padding: 10px 0; margin: 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    opacity: 0; visibility: hidden; transition: 0.3s;
}

.has-submenu:hover .submenu {
    opacity: 1; visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.submenu li a {
    display: block; padding: 10px 20px;
    color: #333; text-decoration: none; font-size: 14px;
    text-align: center;
}

.submenu li a:hover { background: #f9f9f9; color: #c5a059; }


/* --------------------------------------------------------------------------
   1b. Przycisk kontakt + efekt błysku
   -------------------------------------------------------------------------- */

.pill-item-contact {
    background: #d4af37;
    color: #fff !important;
    font-weight: 700;
    padding: 8px 18px;
    border-radius: 30px;
    position: relative;
    overflow: hidden;
    font-size: 13px;
}

.pill-item-contact::after {
    content: '';
    position: absolute; top: 0; left: -150%;
    width: 50%; height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.6), transparent);
    transform: skewX(-25deg);
    transition: left 0.6s ease;
}

.pill-item-contact:hover::after { left: 150%; }


/* --------------------------------------------------------------------------
   1c. Hamburger
   -------------------------------------------------------------------------- */

.pill-hamburger {
    display: none;
    background: none; border: none;
    cursor: pointer; padding: 5px; margin-left: 10px;
}

.pill-hamburger span {
    display: block; width: 22px; height: 2px;
    background: #c5a059; margin: 4px 0; transition: 0.3s;
}


/* --------------------------------------------------------------------------
   1d. Menu – wersja mobilna
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
    #pill-menu-top {
    min-width: 300px;
    padding: 4px 26px 4px 18px;
}
    .pill-logo-img { 
        height: 38px !important; /* Na mobile pigułka jest mniejsza */
    }
    .pill-logo-img { max-width: 160px; }
    .nav-wrapper {
        position: absolute; top: 60px; left: 0; width: 100%;
        background: #fff; flex-direction: column !important;
        padding: 20px !important; display: none; border-radius: 25px;
        box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    }
    #pill-menu-top.open .nav-wrapper { display: flex !important; align-items: center !important; }
    .pill-hamburger { display: block; margin-left: auto; }
    .pill-item {
        width: 100% !important; text-align: center !important;
        padding: 12px 0 !important; display: block !important;
    }
    .submenu {
        position: static !important; width: 100% !important;
        display: none; padding: 0 !important; margin: 0 !important;
        list-style: none !important; transform: none !important;
    }
    .has-submenu:hover .submenu {
        display: flex !important; flex-direction: column !important;
        align-items: center !important;
    }
    .submenu li { width: 100% !important; text-align: center !important; }
    .submenu li a {
        padding: 10px 0 !important; display: block !important;
        width: 100% !important; text-align: center !important;
    }
}


/* ==========================================================================
   2. COOKIE BANNER
   ========================================================================== */
#daria-cookie-banner {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: #111;
    color: #fff;
    padding: 20px;
    display: none;
    z-index: 9999;
    border-radius: 12px;
    border: 1px solid #c5a059;
    width: 420px;        /* szerszy baner */
    max-width: 420px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    font-size: 12px;     /* mniejsza czcionka dla całego banera */
    line-height: 1.6;
}

#daria-cookie-banner h4 {
    margin: 0 0 10px 0;
    color: #c5a059;
    font-size: 15px;     /* tytuł też trochę mniejszy */
}

#daria-cookie-banner p {
    margin: 0;
    color: #bbb;
    font-size: 12px;
    line-height: 1.6;
}

#daria-cookie-banner a {
    color: #c5a059;
    text-decoration: underline;
}

#daria-cookie-banner.active {
    display: block;
    animation: slideInRight 0.6s ease-out;
}

.c-button {
    background: linear-gradient(135deg, #c5a059 0%, #f1d38e 50%, #c5a059 100%);
    color: #000;
    border: none;
    padding: 12px 15px;
    cursor: pointer;
    font-weight: bold;
    border-radius: 5px;
    width: 100%;
    margin-top: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.2s;
    font-size: 13px;
}

#cookie-necessary-btn {
    background: none;
    border: 1px solid rgba(197, 160, 89, 0.4); /* delikatna złota obwódka */
    border-radius: 5px;
    padding: 12px 15px; /* taki sam padding jak .c-button */
    color: rgba(255, 255, 255, 0.7); /* wyraźniejszy tekst */
    font-size: 13px;    /* taki sam rozmiar jak .c-button */
    cursor: pointer;
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.2s ease, border-color 0.2s ease;
}

#cookie-necessary-btn:hover {
    color: #c5a059;
    border-color: #c5a059;
    text-decoration: none; /* usuwamy underline — mamy już obwódkę jako sygnał */
}

@keyframes slideInRight {
    from { transform: translateX(100px); opacity: 0; }
    to   { transform: translateX(0);     opacity: 1; }
}

/* MOBILE — baner na całą szerokość na dole ekranu */
@media (max-width: 767px) {
    #daria-cookie-banner {
        /* Zamiast rogu — pełna szerokość na dole */
        bottom: 0;
        right: 0;
        left: 0;
        width: 100%;
        max-width: 100%;
        border-radius: 12px 12px 0 0; /* zaokrąglenie tylko na górze */
        border-left: none;
        border-right: none;
        border-bottom: none;
        padding: 20px 16px;
    }

    #daria-cookie-banner.active {
        animation: slideInUp 0.5s ease-out; /* inne wejście na mobile */
    }

    @keyframes slideInUp {
        from { transform: translateY(100%); opacity: 0; }
        to   { transform: translateY(0);    opacity: 1; }
    }
}
/* ==========================================================================
   3. WIDOCZNOŚĆ SEKCJI O MNIE (desktop / mobile)
   ========================================================================== */

/* Ukrywanie na desktopie */
@media (min-width: 769px) {
    .about-mentor-mobile,
    .m-spacer-fix {
        display: none !important;
    }
}

/* Ukrywanie na mobile */
@media (max-width: 768px) {
    .about-mentor-header,
    .mentor-container {
        display: none !important;
    }
}

/* Ukrywanie kalendarza inline na telefonach */
@media (max-width: 767px) {
    #my-cal-inline-sesja {
        display: none !important;
    }
}

/* Ukrywanie przycisku pop-up na desktopie */
@media (min-width: 768px) {
    .twoj-przycisk-wyzwalajacy {
        display: none !important;
    }
}


/* ==========================================================================
   4. TYPOGRAFIA I TEKST
   ========================================================================== */

/* Zapobieganie łamaniu słów */
html, body {
    hyphens: none;
    -webkit-hyphens: none;
    -ms-hyphens: none;
    word-wrap: normal;
    overflow-wrap: anywhere;
}

/* Responsywne nagłówki na małych ekranach */
@media (max-width: 480px) {
    h1, h2, h3, .mentoring-header {
        font-size: clamp(1.2rem, 8vw, 2.5rem) !important;
        word-break: keep-all;
    }
}

/* Akapity – bez przenoszenia, responsywny rozmiar */
.entry-content p {
    hyphens: none !important;
    -webkit-hyphens: none !important;
    word-break: normal;
    font-size: clamp(15px, 1vw + 12px, 18px);
}

/* Złote zaznaczanie tekstu */
::selection {
    background-color: #c5a059;
    color: #ffffff;
}


/* ==========================================================================
   5. GRAFIKI
   ========================================================================== */

.wp-block-image img,
.wp-block-gallery img,
.wp-block-gallery figure img {
    border: 2px solid #c5a059;
    border-radius: 25px;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.wp-block-image img:hover,
.wp-block-gallery img:hover,
.wp-block-gallery figure img:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 20px rgba(197, 160, 89, 0.2);
}


/* ==========================================================================
   6. KOMPONENTY UKŁADU
   ========================================================================== */

/* Centrowanie listy Gutenberga */
.moja-centrowana-lista {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: left !important;
}

.moja-centrowana-lista ul,
.moja-centrowana-lista ol {
    display: inline-block !important;
    margin: 0 auto !important;
    padding-left: 1.5em !important;
}

/* Równe ramki (zdjęcia w gridzie) */
.rowna-ramka {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.rowna-ramka img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center;
}