/* ==============================
   MOTYW: Praktyczna Psychologia
   Template: generatepress
   ============================== */

/* ================= HEADER ================= */
.site-header {
    display: none; /* ukrywa standardowy nagłówek */
}

/* ================= HERO ================= */
.hero-header {
    position: relative; /* ważne dla menu */
    width: 100%;
    font-family: 'Inter', sans-serif;
}

.hero-blend {
    position: relative;
    width: 100%;
    height: height: 80vh; /* wysokość zależna od okna */
    overflow: hidden;
}

.hero-image {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: url('https://praktycznapsychologia.pl/wp-content/uploads/2025/09/brain-9791036_1280.jpg') center/cover no-repeat;
    z-index: 1;
    transition: transform 0.3s ease-out;
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, rgba(0,30,60,0.7), rgba(0,30,60,0));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 4rem 2rem;
    z-index: 2;
    text-align: center;
}

.hero-title {
    font-family: 'Lora', serif;
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(45deg,#A3CEF1,#50E3C2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 5px rgba(163,206,241,0.6);
    margin-bottom: 1rem;
    display: inline-block;
    position: relative;
}


.hero-subtitle {
    font-size: 1.5rem;
    max-width: 900px;
    background: linear-gradient(45deg,#A3CEF1,#50E3C2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 3px rgba(163,206,241,0.5);
    margin-top: 0.5rem;
}

/* ====================== FUTURYSTYCZNE MENU — POPRAWKA ====================== */

/* --- Kontener menu i top-level --- */
.hero-menu {
    background: linear-gradient(
        to bottom,
	#000000 0%,
	rgba(5,10,20,1) 20%,
	rgba(10,20,40,0.98) 40%,
	#082840 68%,
	#0b314d 84%,
        rgba(12,57,90,0) 100%   
    );
    display: flex;
    justify-content: center;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: inset 0 -1px 8px rgba(0,191,255,0.1);
}

.hero-menu .menu-items {
    display: flex;          /* poziome ułożenie li */
    gap: 1rem;              /* odstępy między elementami */
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Top-level li jako kontekst dla submenu */
.hero-menu .menu-items > li {
    position: relative;
}

/* ====================== LINKI TOP-LEVEL ====================== */
.hero-menu .menu-items > li > a {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.75rem;
    background: linear-gradient(90deg,#00BFFF,#00FFFF,#1E90FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: #F0FFFF;
    color: #F0FFFF;
    display: block;         /* zajmuje cały <li> */
    padding: 0.6rem 1rem;
    position: relative;
    transition: all 0.25s ease;
    z-index: 10;
}

/* Neonowa kropka przy linkach */
.hero-menu .menu-items > li > a::before {
    content: '';
    position: absolute;
    left: -14px;
    top: 50%;
    transform: translateY(-50%);
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #E0FFFF;
    box-shadow: 0 0 10px #00FFFF, 0 0 20px #1E90FF;
    opacity: 0.95;
    transition: transform 0.18s ease, opacity 0.18s ease;
}

/* Hover / focus top-level */
.hero-menu .menu-items > li:hover > a,
.hero-menu .menu-items > li:focus-within > a {
    color: #00FFFF;
    text-shadow: 0 0 6px #00FFFF, 0 0 12px #1E90FF, 0 0 18px #1E90FF;
    background: none;
}

/* ====================== SUBMENU ====================== */
.hero-menu .menu-items li > ul {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    padding: 0.25rem 0;
    margin-top: 8px;
    border-radius: 8px;
    z-index: 1100;
    background: linear-gradient(to bottom, rgba(0,0,0,0.98) 0%, rgba(0,0,0,0.96) 12%, rgba(0,0,0,0.98) 100%);
    border: 1px solid rgba(0,191,255,0.10);
    box-shadow: 0 6px 30px rgba(0,191,255,0.06);
    backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}

/* Pokaż submenu na hover/focus */
.hero-menu .menu-items li:hover > ul,
.hero-menu .menu-items li:focus-within > ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Linki w submenu */
.hero-menu .menu-items li ul li a {
    display: block;
    padding: 0.65rem 1.1rem;
    color: #F0FFFF;
    font-weight: 500;
    text-decoration: none;
    background: none !important;
    -webkit-text-fill-color: #F0FFFF !important;
    -webkit-background-clip: border-box !important;
    transition: background 0.18s ease, color 0.18s ease, text-shadow 0.18s ease;
}

/* Hover linków submenu */
.hero-menu .menu-items li ul li a:hover,
.hero-menu .menu-items li ul li a:focus {
    color: #00FFFF;
    background: linear-gradient(90deg, rgba(0,191,255,0.14), rgba(30,144,255,0.10));
    text-shadow: 0 0 6px #00FFFF, 0 0 12px #1E90FF;
    border-radius: 6px;
}

/* ====================== SUB-SUBMENU ====================== */
.hero-menu .menu-items li ul li {
    position: relative;
}

.hero-menu .menu-items li ul li ul {
    top: 0;
    left: 100%;
    margin-left: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-6px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
    pointer-events: none;
}

.hero-menu .menu-items li ul li:hover > ul,
.hero-menu .menu-items li ul li:focus-within > ul {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: auto;
}

/* ====================== MOBILE MENU ====================== */
@media (max-width: 1024px) {
    .hero-menu {
        padding: 0.9rem 1rem;
    }

    .hero-menu .menu-items {
        flex-direction: column;  /* kolumna na mobile */
        width: 100%;
        display: none;
    }

    .hero-menu .menu-items.active {
        display: flex;
    }

    .hero-menu .menu-items > li > a::before {
        left: 8px;
    }

    .hero-menu .menu-items li > ul {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        margin-top: 0;
        background: transparent;
        box-shadow: none;
        border: none;
    }

    .hero-menu .menu-items li ul li a {
        padding-left: 2rem;
    }
}



/* ================= ENTRY CONTENT ================= */
.entry-content {
    font-family: 'Lora', serif;
    font-size: 1.1rem;
    line-height: 1.9;
    color: #1c1c1c;
    letter-spacing: 0.5px;
    max-width: 900px;
    margin: 0 auto;
}

.entry-content h1,h2,h3,h4,h5,h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 800;
    line-height: 1.2;
    background: linear-gradient(135deg,#2797f3,#2797f3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-top: 2rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.entry-content h2 { border-bottom: 3px solid #2797f3; padding-bottom: 0.4rem; }

.entry-content h1:hover, .entry-content h2:hover, .entry-content h3:hover {
    text-shadow: 0 4px 15px rgba(80,227,194,0.4);
}

.entry-content p {
    color: #333;
    font-size: 1.08rem;
    margin-bottom: 1.3rem;
    line-height: 1.85;
    text-align: justify;
}

.entry-content a {
    background: linear-gradient(90deg,#0ec8d2,#0ec8d2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
    transition: all 0.4s ease;
}

.entry-content a:hover {
    text-shadow: 0 0 10px rgba(80,227,194,0.5);
}

.entry-content blockquote {
    border-left: 5px solid #0d71c4;
    background: linear-gradient(120deg, rgba(80,227,194,0.05), rgba(74,144,226,0.05));
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    font-style: italic;
    color: #093c9;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.entry-content blockquote:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.entry-content section {
    background: rgba(240,248,255,0.08);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(50px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    transition: all 0.9s ease-out;
    position: relative;
    overflow: hidden;
}

.entry-content section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%; height: 200%;
    background: linear-gradient(120deg, rgba(80,227,194,0.05), rgba(74,144,226,0.05));
    transform: rotate(25deg);
    pointer-events: none;
}

.entry-content section.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* ================= TABLES ================= */
.entry-content table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.95rem;
    border: 1px solid rgba(0,191,255,0.25);
    white-space: nowrap;
}

.entry-content table th, .entry-content table td {
    padding: 0.75rem 1rem;
    border: 1px solid rgba(0,191,255,0.25);
    text-align: left;
}

.entry-content table th {
    background: linear-gradient(90deg, #083c94, #083c94);
    color: #ffffff;
    font-weight: 700;
}

.entry-content table tr:nth-child(even) {
    background-color: rgba(0,191,255,0.04);
}

/* ================= BUTTONS ================= */
.entry-content .button, .entry-content button {
    background: linear-gradient(45deg,#093c9a,#4A90E2);
    color: #fff;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.entry-content .button:hover, .entry-content button:hover {
    background: linear-gradient(45deg,#4A90E2,#50E3C2);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* ================= POST TITLE ================= */
.entry-title {
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    font-size: 2.8rem;
    line-height: 1.2;
    text-align: center;
    margin: 2rem 0 1rem 0;
    color: #2797f3;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    transition: text-shadow 0.3s ease, transform 0.3s ease;
}

.entry-title:hover {
    text-shadow: 0 0 8px rgba(0,191,255,0.4), 0 0 12px rgba(30,144,255,0.2);
    transform: scale(1.02);
}

/* ================= RESPONSYWNOŚĆ ================= */
@media(max-width:1024px){
    .hero-menu{padding:0.9rem 1rem;}
    .hero-title{font-size:2.8rem;}
    .hero-subtitle{font-size:1.4rem;}
    .entry-title{font-size:2.2rem;}
    .entry-content{font-size:1rem;line-height:1.7;}
    .entry-content h1{font-size:2rem;}
    .entry-content h2{font-size:1.7rem;}
    .entry-content h3{font-size:1.4rem;}
    .entry-content section{padding:2rem 1.5rem;}
}

@media(max-width:768px){
    .hero-title{font-size:2.5rem;}
    .hero-subtitle{font-size:1.2rem;}
    .entry-title{font-size:1.8rem;}
    .entry-content{font-size:0.98rem;line-height:1.6;}
    .entry-content h1{font-size:1.8rem;}
    .entry-content h2{font-size:1.5rem;}
    .entry-content h3{font-size:1.3rem;}
    .entry-content h4{font-size:1.2rem;}
    .entry-content h5{font-size:1rem;}
    .entry-content h6{font-size:0.9rem;}
}

/* ================= SEARCH FORM ================= */
.searchform .search-submit,
.search-form .search-submit,
.widget_search .search-submit,
.wp-block-search__button,
button.search-submit,
input.search-submit,
.search .search-submit {
    background: linear-gradient(45deg,#2797f3,#2797f3) !important;
    color: #FFFFFF !important;
    border: none !important;
    padding: 0.6rem 1.2rem !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25) !important;
    transition: all 0.22s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.searchform .search-submit:hover,
.search-form .search-submit:hover,
.wp-block-search__button:hover,
button.search-submit:hover,
input.search-submit:hover,
.search .search-submit:hover {
    background: #C0C0C0 !important;
    color: #0A0A0A !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 26px rgba(0,0,0,0.28) !important;
}

.searchform .search-field,
.search-form .search-field,
.widget_search .search-field,
input.search-field,
.wp-block-search__input {
    background: #ffffff !important;
    color: #0c2f7a !important;
    border: 1px solid #52c0e2 !important;
    padding: 0.55rem 0.9rem !important;
    border-radius: 8px 0 0 8px !important;
    outline: none !important;
    font-size: 1rem !important;
}

.searchform .search-field:focus,
.search-form .search-field:focus,
.wp-block-search__input:focus {
    border-color: #ffffff !important;
    box-shadow: 0 0 6px rgba(212,175,55,0.30) !important;
}

.search-form, .searchform, .widget_search form, .wp-block-search__button-wrapper {
    display: flex !important;
    align-items: center !important;
    gap: 0 !important;
}

.search-form label, .searchform label, .wp-block-search__label {
    display: none !important;
}

@media(max-width:768px){
    .hero-menu .menu-items{
        display:none;
    }
    .hamburger{display:block;}
}

@media(max-width:768px){
    .hamburger {
        display: block;
        font-size: 1.5rem;        /* większe */
        color: #00BFFF;           /* jasny niebieski */
        cursor: pointer;
        transition: color 0.3s ease, transform 0.3s ease;
    }

    .hamburger:hover {
        color: #50E3C2;           /* turkusowy przy hover */
        transform: scale(1.1);    /* lekko powiększenie przy hover */
    }
}

/* ====================== TABELA PREMIUM – CIEMNY NAGŁÓWEK, JASNE WIERSZE ====================== */

/* ================= DESKTOP / TABLET ================= */
.entry-content table {
    width: fit-content;        
    max-width: 100%;           
    margin: 2rem auto;         
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 16px; /* zaokrąglone rogi */
    background: #f5f5f5; /* domyślne tło dla tabeli */
    border: 1px solid #415a77; /* stylowe obramowanie */
    table-layout: auto;
    box-shadow: 0 8px 24px rgba(0, 0, 64, 0.1);
    font-family: 'Lora', serif;
}

/* Komórki */
.entry-content table th,
.entry-content table td {
    padding: 1rem 1.4rem;
    text-align: left;
    white-space: normal;
    word-break: break-word;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    transition: background 0.3s ease;
}

/* Nagłówki tabel – ciemnoniebieski z białym tekstem */
.entry-content table th {
    background: #0d1f77; /* jasnoniebieskie tło */
    color: #ffffff; /* czarny tekst */
    font-weight: 700;
    border-bottom: 2px solid #1b2c4d; /* stylowe podkreślenie nagłówka */
    text-transform: uppercase;
    text-shadow: 0 1px 2px rgba(0,0,0,0.4);
    font-family: 'Playfair Display', serif;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}

/* Hover nagłówków */
.entry-content table th:hover {
    background: #142a46; /* lekko jaśniejszy niebieski */
}

/* Wiersze parzyste i nieparzyste */
.entry-content table tr:nth-child(even),
.entry-content table tr:nth-child(odd) {
    background-color: #eaeaea; /* jasnoszary wiersz */
}

.entry-content table td {
    color: #000000; /* czarny tekst w wierszach */
}

/* Hover wierszy */
.entry-content table tr:hover {
    background-color: #d6d6d6; /* ciemniejszy szary przy hoverze */
    transition: background 0.2s ease;
    cursor: pointer;
}

/* Zaokrąglone rogi ostatniego wiersza */
.entry-content table tr:last-child td:first-child {
    border-bottom-left-radius: 16px;
}
.entry-content table tr:last-child td:last-child {
    border-bottom-right-radius: 16px;
}

/* ================= MOBILE / RESPONSYWNE ================= */
@media (max-width: 768px) {
    .entry-content {
        overflow-x: auto;             
        -webkit-overflow-scrolling: touch;
    }

    .entry-content table {
        display: inline-block;        
        width: auto;
        min-width: 500px;             
    }

    .entry-content table th,
    .entry-content table td {
        padding: 0.9rem 1rem;
        font-size: 0.95rem;
        min-width: 120px;             
        max-width: 200px;             
        white-space: normal;           
        word-break: break-word;        
        overflow-wrap: break-word;     
    }

    /* Subtelny scroll */
    .entry-content::-webkit-scrollbar {
        height: 6px;
    }
    .entry-content::-webkit-scrollbar-thumb {
        background: rgba(0,0,64,0.15);
        border-radius: 3px;
    }
    .entry-content::-webkit-scrollbar-track {
        background: rgba(0,0,64,0.03);
    }
}

.posted-on,
.entry-date,
.post-date {
    display: none !important;
}

.byline,
.author,
.post-author {
    display: none !important;
}

.comments-area,
#comments,
.comments-link {
    display: none !important;
}


/* ================= TREŚĆ WPISÓW W ARCHIWUM ================= */
.archive .post, 
.home .post {
    font-family: 'Lora', serif;
    font-size: 1.08rem;
    line-height: 1.85;
    color: #333;
    max-width: 900px;
    margin: 2rem auto;
    background: rgba(240,248,255,0.08);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    transition: all 0.5s ease;
}

/* Nagłówki wpisów w archiwum */
.archive .post h2,
.home .post h2 {
    font-family: 'Playfair Display', serif;
    font-weight: 800;
    line-height: 1.2;
    background: linear-gradient(135deg,#2797f3,#2797f3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-top: 1rem;
    margin-bottom: 1rem;
    border-bottom: 3px solid #2797f3;
    padding-bottom: 0.4rem;
}

/* Akapity */
.archive .post p,
.home .post p {
    color: #333;
    font-size: 1.08rem;
    line-height: 1.85;
    margin-bottom: 1.3rem;
    text-align: justify;
}

/* Linki we wpisach */
.archive .post a,
.home .post a {
    background: linear-gradient(90deg,#0ec8d2,#0ec8d2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
    text-decoration: underline;
    transition: all 0.4s ease;
}

.archive .post a:hover,
.home .post a:hover {
    text-shadow: 0 0 10px rgba(80,227,194,0.5);
}

/* Cytaty i boxy porad */
.archive .post blockquote,
.home .post blockquote {
    border-left: 5px solid #0d71c4;
    background: linear-gradient(120deg, rgba(80,227,194,0.05), rgba(74,144,226,0.05));
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    font-style: italic;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

/* Karty sekcji wpisu */
.archive .post section,
.home .post section {
    background: rgba(240,248,255,0.08);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

/* Dowiedz się więcej jak link we wpisie */
.archive .post .more-link,
.home .post .more-link {
    background: linear-gradient(90deg,#0ec8d2,#0ec8d2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
    text-decoration: underline;
    transition: all 0.4s ease;
}

.archive .post .more-link:hover,
.home .post .more-link:hover {
    text-shadow: 0 0 10px rgba(80,227,194,0.5);
}

/* Tytuły wpisów w archiwum jak w pojedynczym wpisie */
.archive h2.entry-title a,
.home h2.entry-title a {
    font-family: 'Playfair Display', serif;
    font-weight: 800;
    line-height: 1.2;
    color: #0d71c4;   /* ciemnoniebieski */
    text-decoration: none;
    background: none;
    -webkit-text-fill-color: unset;
}

.archive h2.entry-title a:hover,
.home h2.entry-title a:hover {
    color: #084c94;   /* ciemniejszy niebieski po najechaniu */
}

.hero-header .hero-title,
.hero-header .hero-subtitle {
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: #fff;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}

.single-post img.wp-post-image {
    border-radius: 12px; /* zaokrąglone rogi */
    box-shadow: 0 4px 12px rgba(0,0,0,0.15); /* delikatny cień */
    max-width: 100%; /* obrazek nie wyjdzie poza kontener */
    height: auto;
    margin-bottom: 1em; /* odstęp od tekstu */
    aspect-ratio: 16 / 9;
    object-fit: cover; /* przytnie obrazek, żeby pasował */
    width: 100%;
}

.hero-menu { position: relative; z-index: 10; }

.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 768px) {
  .menu-toggle { 
    display: inline-block; 
  }

  .menu-items { 
    display: none; 
  }

  .menu-items.is-open {
    display: block;
    position: absolute;
    top: 100%;
    left: 0; 
    right: 0;
    background: linear-gradient(
      180deg, 
      rgba(9, 21, 43, 0.9) 0%,   /* lekki "elektryczny" niebieski u góry */
      rgba(0, 0, 0, 0.95) 100%      /* prawie czarne na dole */
    ); /* ← tu zamknięcie gradientu */
    z-index: 20;
  }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 1.4rem;
    }
    .hero-subtitle {
        font-size: 1.2rem;
        padding: 0 1rem;
    }
    .hero-overlay {
        padding: 2rem 1rem;
    }
}
