
/* =============================================
   SEKCJA AUTORÓW ZDJĘĆ - KARUZELA SWIPER
   ============================================= */

.photo-authors-section {
    padding: 80px 0;

    position: relative;
    overflow: hidden;
}

.photo-authors-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(135deg, var(--agro-green-dark) 0%, var(--agro-green) 50%, var(--agro-sage) 100%);
    padding-bottom: 40px;
    pointer-events: none;
    z-index: -1;
   
}
.photo-authors-section .section-header-content p{
    color: var(--agro-white);
}
.photo-authors-section .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =============================================
   NAGŁÓWEK SEKCJI
   ============================================= */

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 50px;
}

.section-header-content h2 {
    font-size: 36px;
    color: #2c3e50;
    margin: 0 0 10px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.section-header-content h2 i {
    color: #667eea;
    font-size: 32px;
}

.section-subtitle {
    color: #64748b;
    font-size: 16px;
    margin: 0;
}

.section-subtitle strong {
    color: #667eea;
    font-weight: 700;
}

/* =============================================
   WYSZUKIWARKA AUTORÓW
   ============================================= */

.authors-search-wrapper {
    position: relative;
    min-width: 320px;
}

.authors-search {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 50px;
    padding: 5px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.authors-search:focus-within {
    border-color: #667eea;
    box-shadow: 0 4px 25px rgba(102, 126, 234, 0.2);
}

.authors-search i {
    color: #94a3b8;
    font-size: 16px;
    margin-right: 12px;
}

.authors-search input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 15px;
    padding: 12px 0;
    background: transparent;
    color: #1e293b;
}

.authors-search input::placeholder {
    color: #94a3b8;
}

.search-clear-btn {
    background: #e2e8f0;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: all 0.2s;
}

.search-clear-btn:hover {
    background: #667eea;
    color: white;
}

/* Wyniki wyszukiwania */
.authors-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    margin-top: 10px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 100;
    display: none;
}

.authors-search-results.visible {
    display: block;
    animation: fadeInDown 0.3s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid #f1f5f9;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: #f8fafc;
}

.search-result-item .result-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
}

.search-result-item .result-info {
    flex: 1;
}

.search-result-item .result-name {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 3px;
}

.search-result-item .result-count {
    font-size: 13px;
    color: #64748b;
}

.search-result-item .result-arrow {
    color: #94a3b8;
    transition: transform 0.2s;
}

.search-result-item:hover .result-arrow {
    transform: translateX(5px);
    color: #667eea;
}

.search-no-results {
    padding: 30px;
    text-align: center;
    color: #64748b;
}

.search-no-results i {
    font-size: 40px;
    margin-bottom: 15px;
    opacity: 0.5;
}

/* =============================================
   KARUZELA SWIPER
   ============================================= */

.authors-carousel-wrapper {
    margin-top: 140px;
    position: relative;
    
   
}

.authors-swiper {
   margin-top: 30px;
    padding: 20px 0;
}

/* Niestandardowe przyciski nawigacji */
.swiper-button-custom {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #667eea;
    font-size: 18px;
    transition: all 0.3s ease;
}

.swiper-button-custom:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.4);
}

.swiper-button-custom:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.swiper-button-prev-custom {
    left: 0;
}

.swiper-button-next-custom {
    right: 0;
}

/* Paginacja */
.authors-pagination {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.authors-pagination .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: #cbd5e1;
    opacity: 1;
    transition: all 0.3s;
}

.authors-pagination .swiper-pagination-bullet-active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    width: 35px;
    border-radius: 10px;
}

/* =============================================
   KARTA AUTORA
   ============================================= */
.swiper {
    overflow: unset !important;
}
.author-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.4s ease;
    cursor: pointer;
    border: 2px solid transparent;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
position: relative;
    /* Reszta Twoich stylów karty... */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    
   
}

.author-card:hover {
transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: #667eea; z-index: 9999;
}

.author-card.active {
    border-color: #667eea;
    background: linear-gradient(180deg, #f8fafc 0%, #eff6ff 100%);
    z-index: 9999;
}
.author-card-full-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    /* Warstwa 1: Przykrywa awatar i teksty */
    cursor: pointer;
}
/* Avatar */
.author-avatar {
    position: relative;
    width: 90px;
    height: 90px;
    margin-bottom: 20px;
}

.avatar-letter {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 700;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    transition: transform 0.3s;
}

.author-card:hover .avatar-letter {
    transform: scale(1.1);
}

.author-badge {
    position: absolute;
    bottom: -5px;
    right: -5px;
    background: #10b981;
    color: white;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    box-shadow: 0 3px 10px rgba(16, 185, 129, 0.4);
}

/* Info */
.author-card-info {
    flex: 1;
    margin-bottom: 20px;
}

.author-card .author-name {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 5px;
}

.author-card .author-count {
    font-size: 14px;
    color: #64748b;
}

/* Akcje */
.author-card-actions {
    display: flex;
    gap: 10px;
    width: 100%;
    position: relative;
        z-index: 2;
        /* Warstwa 2: Musi być wyżej niż full-link */
        pointer-events: none;
        /* Kliknięcie w puste miejsce między guzikami przejdzie do karty */
}

.btn-author-archive {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
}

.btn-author-archive:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
    color: white;
}

.btn-author-portfolio {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    color: #64748b;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s;
}

.btn-author-portfolio:hover {
    background: #667eea;
    color: white;
}
.author-card-actions a,
.author-card-actions button,
.author-card-actions span {
    pointer-events: auto;
}
/* =============================================
   QUICK PREVIEW
   ============================================= */

.author-quick-preview {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-radius: 30px 30px 0 0;
    box-shadow: 0 -10px 60px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.4s ease;
    max-height: 70vh;
    display: flex;
    flex-direction: column;
}

.author-quick-preview.visible {
    transform: translateY(0);
}

.preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px 30px;
    border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.preview-header h3 {
    margin: 0;
    font-size: 22px;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 12px;
}

.preview-header h3::before {
    content: '';
    width: 5px;
    height: 25px;
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
    border-radius: 5px;
}

.btn-close-preview {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #f1f5f9;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-close-preview:hover {
    background: #ef4444;
    color: white;
    transform: rotate(90deg);
}

.preview-content {
    flex: 1;
    overflow-y: auto;
    padding: 25px 30px;
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.preview-item {
    display: block;
    text-decoration: none;
    border-radius: 15px;
    overflow: hidden;
    background: #f8fafc;
    transition: all 0.3s;
}

.preview-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.preview-item img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.preview-item .preview-item-info {
    padding: 15px;
}

.preview-item .preview-item-title {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
    line-height: 1.4;
}

.preview-footer {
    padding: 20px 30px;
    border-top: 1px solid #e2e8f0;
    text-align: center;
    flex-shrink: 0;
}

.btn-preview-all {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-preview-all:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    color: white;
}

/* Preview loading */
.preview-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px;
}

.preview-loading .spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e2e8f0;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* =============================================
   PRZYCISK "ZOBACZ WSZYSTKICH"
   ============================================= */

.authors-view-all {
    text-align: center;
    margin-top: 40px;
}

.btn-view-all {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 40px;
    background: white;
    color: #667eea;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 2px solid #667eea;
    transition: all 0.3s;
}

.btn-view-all:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

/* =============================================
   OVERLAY DO PREVIEW
   ============================================= */

.preview-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.preview-overlay.visible {
    opacity: 1;
    visibility: visible;
}

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

@media (max-width: 1024px) {
    .authors-carousel-wrapper {
        padding: 0 50px;
    }

    .swiper-button-custom {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .photo-authors-section {
        padding: 50px 0;
    }

    .section-header {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .section-header-content h2 {
        font-size: 28px;
        justify-content: center;
    }

    .authors-search-wrapper {
        min-width: auto;
    }

    .authors-carousel-wrapper {
        padding: 0;
    }

    .swiper-button-custom {
        display: none;
    }

    .author-card {
        padding: 25px 20px;
    }

    .author-quick-preview {
        max-height: 80vh;
    }

    .preview-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .preview-grid {
        grid-template-columns: 1fr;
    }

    .author-card-actions {
        flex-direction: column;
    }

    .btn-author-portfolio {
        width: 100%;
    }
}

#authors-swiper .swiper-slide {
    width: 280px !important;
    /* Wymuszona szerokość */
    margin-right: 20px !important;
    /* Wymuszony odstęp */
}