/**
 * ========================================
 * CSS E-E-A-T DLA VISUAL COMPOSER STARTER
 * ========================================
 * 
 * INSTRUKCJA DODAWANIA:
 * 
 * SPOSÓB 1 (najłatwiejszy):
 * Wygląd → Dostosuj → Dodatkowy CSS → Wklej cały kod → Opublikuj
 * 
 * SPOSÓB 2:
 * Dodaj na końcu pliku style.css w child theme
 * 
 * Ścieżka FTP: /wp-content/themes/visualcomposer-starter-child/style.css
 */

/* ========================================
   Scrollable Breadcrumb z gradientem i dużymi przyciskami
   ======================================== */
.breadcrumb-wrapper {
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.breadcrumbs.eeat-breadcrumbs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  white-space: nowrap;
  scroll-behavior: smooth;
  scrollbar-width: none;
  text-transform: uppercase;
}
.breadcrumbs.eeat-breadcrumbs::-webkit-scrollbar {
  display: none;
}

/* Duże strzałki */
.breadcrumb-btn {
  background: none;
  border: none;
  font-size: 32px; /* duże strzałki */
  cursor: pointer;
  padding: 2px 10px;
  opacity: 0.6;
  transition: opacity 0.2s, visibility 0.2s;
  user-select: none;
  line-height: 1;
  z-index: 2; /* nad gradientem */
}
.breadcrumb-btn:hover {
  opacity: 1;
}
.breadcrumb-btn[style*="hidden"] {
  pointer-events: none;
  opacity: 0;
}

.breadcrumb-wrapper a {
    color: #777;
    font-size: 16px;
    font-weight: 500;
}

/* --- Gradient UX --- */
.breadcrumb-wrapper::before,
.breadcrumb-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40px;
  pointer-events: none;
  transition: opacity 0.3s;
  opacity: 0;
  z-index: 1;
}

.breadcrumb-wrapper::before { 
  left: 20px;
  background: linear-gradient(to right, rgba(255,255,255,0.95), transparent);
}
.breadcrumb-wrapper::after {
  right: 20px;
  background: linear-gradient(to left, rgba(255,255,255,0.95), transparent);
}

.breadcrumb-wrapper.show-left-gradient::before {
  opacity: 1;
}
.breadcrumb-wrapper.show-right-gradient::after {
  opacity: 1;
}

.breadcrumbs.eeat-breadcrumbs svg {
  opacity: 0.6;
  transition: opacity 0.2s;
}
.breadcrumbs.eeat-breadcrumbs a:hover + svg {
  opacity: 1;
}

/* ============================================
   META INFORMACJE NAD AUTOREM - CZAS
============================================ */
.eeat-post-meta-top {
    color: #5f6368;
}

/* ============================================
   KATEGORIA NAD TYTUŁEM
============================================ */
.eeat-category {
    margin-bottom: 15px;
}

.eeat-category a {
    display: inline-block;
    padding: 6px 16px;
    background: #2271b1;
    color: white !important;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 600;
    text-decoration: none !important;
    border-radius: 4px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.eeat-category a:hover {
    background: #135e96;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(34, 113, 177, 0.3);
}

/* ============================================
   META INFORMACJE POD TYTUŁEM
============================================ */
.eeat-meta-wrapper {
    padding: 15px 0;
    margin: 5px 0 30px;
    border-top: 0px solid #e5e5e5;
    border-bottom: 0px solid #e5e5e5;
}

.eeat-author-meta {
    display: flex;
	align-items: center;
    gap: 15px;
}

.eeat-author-avatar {
    flex-shrink: 0;
}

.eeat-author-avatar img {
    border-radius: 50%;
    width: 43px;
    height: 43px;
} 

.eeat-author-info {
    flex: 1;
}

.eeat-author-name {
    font-size: 15px;
    margin-bottom: 0px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

.eeat-label {
    color: #666;
    font-weight: normal;
}

.eeat-author-name a {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
}

.eeat-author-name a:hover {
    color: #2271b1;
}

.eeat-author-role {
    color: #5f6368;
    font-weight: 600;
    font-size: 14px;
}

.eeat-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 14px;
    color: #666;
}

.eeat-posted-on,
.eeat-updated-on,
.eeat-reading-time {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* ============================================
   BOX Z AUTOREM NA KOŃCU ARTYKUŁU
============================================ */
.eeat-author-box {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    margin: 50px 0 40px;
	box-shadow: 0px 50px 90px rgba(210, 213, 218, 0.4);
}

.eeat-author-box-inner {
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

.eeat-author-box-avatar {
    flex-shrink: 0;
}

.eeat-author-box-avatar img {
    border-radius: 50%;
    width: 80px;
    height: 80px;
    border: 4px solid white;
    transition: transform 0.3s ease;
}

.eeat-author-box-avatar img:hover {
    transform: scale(1.05);
}

.eeat-author-box-content {
    flex: 1;
}

.eeat-author-box-title {
    font-size: 22px;
    margin: 0 0 12px;
    color: #1a1a1a;
    font-weight: 700;
}

.eeat-author-box-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.eeat-author-box-title a:hover {
    color: #000000;
}

.eeat-author-box-role {
    color: #000000;
    font-size: 16px;
    margin: 0 0 15px;
    font-weight: 600;
}

.eeat-author-box-description {
    font-size: 15px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 20px;
}

.eeat-author-box-description p {
    margin-bottom: 12px;
}

.eeat-author-box-description p:last-child {
    margin-bottom: 0;
}

.eeat-author-box-social {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.eeat-author-social-link {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: white;
    color: #666 !important;
    text-decoration: none !important;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid #dee2e6;
}

.eeat-author-social-link:hover {
    background: #2271b1;
    color: white !important;
    border-color: #2271b1;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(34, 113, 177, 0.3);
}

.eeat-author-box-link {
    display: inline-block;
    padding: 12px 24px;
    background: #2271b1;
    color: white !important;
    text-decoration: none !important;
    border-radius: 6px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    border: none;
}

.eeat-author-box-link:hover {
    background: #135e96;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(34, 113, 177, 0.4);
}

/* ============================================
   POWIĄZANE ARTYKUŁY
============================================ */
.eeat-related-posts {
    margin: 50px 0 40px;
    padding: 35px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0px 50px 90px rgba(210, 213, 218, 0.4);
}

.eeat-related-title {
    font-size: 2rem;
    margin: 0 0 25px;
    color: #1a1a1a;
    font-weight: 700;
	text-align: center;
}

.eeat-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.eeat-related-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e5e5;
}

.eeat-related-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.eeat-related-thumb {
    display: block;
    overflow: hidden;
    position: relative;
}

.eeat-related-thumb img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.eeat-related-item:hover .eeat-related-thumb img {
    transform: scale(1.08);
}

.eeat-related-content {
    padding: 20px;
}

.eeat-related-item-title {
    margin: 0 0 10px;
    font-size: 17px;
    line-height: 1.4;
}

.eeat-related-item-title a {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.eeat-related-item-title a:hover {
    color: #2271b1;
}

.eeat-related-date {
    display: block;
    font-size: 13px;
    color: #414141;
}

/* ============================================
   INTEGRACJA Z VISUAL COMPOSER STARTER
============================================ */

/* Dostosuj do istniejących stylów motywu */
.entry-full-content .eeat-author-box {
    margin-left: 0;
    margin-right: 0;
}

/* Jeśli masz sidebar, dostosuj szerokość powiązanych postów */
.has-sidebar .eeat-related-grid {
    grid-template-columns: 1fr;
}

/* Nadpisz style Visual Composer jeśli konflikują */
.eeat-author-box *,
.eeat-related-posts * {
    box-sizing: border-box;
}

/* ============================================
   RESPONSIVE - TABLET (768px - 991px)
============================================ */
@media (max-width: 991px) {
    .eeat-author-box {
        padding: 25px;
    }

    .eeat-author-box-inner {
        gap: 20px;
    }

    .eeat-related-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }

    .eeat-related-posts {
        padding: 30px 20px;
    }
}

/* ============================================
   RESPONSIVE - MOBILE (max 768px)
============================================ */
@media (max-width: 768px) {
    /* Kategoria */
    .eeat-category a {
        font-size: 11px;
        padding: 5px 12px;
    }

    /* Meta wrapper */
    .eeat-meta-wrapper {
        padding: 15px 0;
        margin: 15px 0 25px;
    }

    .eeat-author-meta {
        flex-direction: row;
        gap: 12px;
    }

    .eeat-author-avatar img {
        width: 45px;
        height: 45px;
    }

    .eeat-author-name {
        font-size: 14px;
    }

    .eeat-post-meta {
        flex-direction: row;
        gap: 8px;
        font-size: 13px;
    }

    /* Box z autorem */
    .eeat-author-box {
        padding: 20px;
        margin: 30px 0;
    }

    .eeat-author-box-inner {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .eeat-author-box-avatar { 
        margin: 0 auto;
    }

    .eeat-author-box-title {
        font-size: 20px;
    }

    .eeat-author-box-role {
        font-size: 15px;
    }

    .eeat-author-box-description {
        font-size: 14px;
        text-align: left;
    }

    .eeat-author-box-social {
        justify-content: center;
        gap: 10px;
    }

    .eeat-author-social-link {
        font-size: 13px;
        padding: 7px 14px;
    }

    .eeat-author-box-link {
        display: block;
        text-align: center;
        font-size: 14px;
        padding: 10px 20px;
    }

    /* Powiązane artykuły */
    .eeat-related-posts {
        padding: 25px 15px;
        margin: 30px 0;
    }

    .eeat-related-title {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .eeat-related-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .eeat-related-thumb img {
        height: 180px;
    }

    .eeat-related-content {
        padding: 15px;
    }

    .eeat-related-item-title {
        font-size: 16px;
    }
}

/* ============================================
   RESPONSIVE - BARDZO MAŁE EKRANY (max 480px)
============================================ */
@media (max-width: 480px) {
    .eeat-author-box {
        padding: 15px;
        border-radius: 8px;
    }

    .eeat-author-box-avatar img {
        width: 70px;
        height: 70px;
        border-width: 3px;
    }

    .eeat-author-box-title {
        font-size: 18px;
    }

    .eeat-author-box-social {
        flex-direction: column;
        gap: 8px;
    }

    .eeat-author-social-link {
        width: 100%;
        justify-content: center;
    }

    .eeat-related-posts {
        padding: 20px 10px;
        border-radius: 8px;
    }

    .eeat-related-title {
        font-size: 18px;
    }
}

/* ============================================
   PRINT STYLES (dla druku)
============================================ */
@media print {
    .eeat-breadcrumbs,
    .eeat-breadcrumbs-custom,
    .eeat-category,
    .eeat-author-box-social,
    .eeat-author-box-link,
    .eeat-related-posts,
    .post-navigation {
        display: none !important;
    }

    .eeat-author-box {
        border: 1px solid #ccc;
        box-shadow: none;
        page-break-inside: avoid;
        background: white;
    }

    .eeat-meta-wrapper {
        border-color: #ccc;
    }

    .eeat-author-box-avatar img {
        border-color: #ccc;
    }
}

/* ============================================
   DARK MODE SUPPORT (opcjonalne)
============================================ */
@media (prefers-color-scheme: dark) {
    .eeat-author-box {
        background: #fff;
        color: #000;
    }

    .eeat-author-box-title,
    .eeat-author-box-title a,
    .eeat-related-item-title a {
        color: #474747;
    }

    .eeat-author-box-description {
        color: #000000;
    }

    .eeat-related-posts {
		/*
        background: #85bc44;
        border-color: #50a837; 
		*/
    }

    .eeat-related-item {
        background: #ffffff;
        border-color: #dddddd;
    }

    .eeat-author-social-link {
        background: #1a202c;
        border-color: #4a5568;
        color: #e2e8f0 !important;
    }

    .eeat-meta-wrapper {
        border-color: #4a5568;
    }
}

/* ============================================
   CUSTOM - ZMIANA KOLORU GŁÓWNEGO 
============================================ */

/* 
Jeśli chcesz zmienić kolor z niebieskiego (#2271b1) na inny,
zamień wszystkie wystąpienia w tym pliku:

Znajdź: #2271b1
Zamień na: #TwójKolor

Przykłady kolorów:
#e74c3c - czerwony
#27ae60 - zielony  
#9b59b6 - fioletowy
#f39c12 - pomarańczowy
#3498db - jasnoniebieski
#e67e22 - pomarańczowy
*/

/* ============================================
   KONIEC STYLÓW E-E-A-T
============================================ */