/* ==============================================
   PTTK Pilot Pages — CSS
   ============================================== */

/* ---- ARCHIVE (listing pilotów) -------------- */

.pttk-pilots-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: 'Inter', sans-serif;
    color: #333;
}

.pttk-pilots-header {
    text-align: center;
    margin-bottom: 50px;
}

.pttk-pilots-header h1 {
    font-size: 2.8rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 12px;
}

.pttk-pilots-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 560px;
    margin: 0 auto;
}

.pttk-pilots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 32px;
}

.pttk-pilot-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.pttk-pilot-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.14);
    color: inherit;
    text-decoration: none;
}

.pttk-pilot-card__photo {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    object-position: top;
    display: block;
}

.pttk-pilot-card__photo-placeholder {
    width: 100%;
    aspect-ratio: 3/4;
    background: linear-gradient(135deg, #2d5a27 0%, #4a8c3f 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pttk-pilot-card__photo-placeholder svg {
    width: 80px;
    height: 80px;
    opacity: 0.4;
    fill: white;
}

.pttk-pilot-card__body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pttk-pilot-card__name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 6px;
}

.pttk-pilot-card__spec {
    font-size: 0.85rem;
    color: #2d5a27;
    font-weight: 600;
    margin: 0 0 16px;
    line-height: 1.4;
}

.pttk-pilot-card__link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #2d5a27;
    text-decoration: none;
}

.pttk-pilot-card__link svg {
    transition: transform 0.2s;
}

.pttk-pilot-card:hover .pttk-pilot-card__link svg {
    transform: translateX(4px);
}

/* ---- SINGLE PILOT --------------------------- */

.pttk-pilot-page {
    font-family: 'Inter', sans-serif;
    color: #333;
}

/* Hero */
.pttk-pilot-hero {
    position: relative;
    min-height: 320px;
    background: linear-gradient(135deg, #1a3318 0%, #2d5a27 60%, #4a8c3f 100%);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.pttk-pilot-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.25) 60%, transparent 100%);
    z-index: 1;
}

.pttk-pilot-hero__content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 20px 36px;
}

.pttk-pilot-hero__name {
    font-size: 3.2rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 8px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.4);
    line-height: 1.1;
}

.pttk-pilot-hero__spec {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.88);
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* Profile section */
.pttk-pilot-profile {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 20px 30px;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 48px;
    align-items: start;
}

.pttk-pilot-portrait {
    position: sticky;
    top: 80px;
}

.pttk-pilot-portrait img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    display: block;
    object-fit: cover;
    aspect-ratio: 3/4;
    object-position: top;
}

.pttk-pilot-portrait__placeholder {
    width: 100%;
    aspect-ratio: 3/4;
    background: linear-gradient(135deg, #e9f2eb 0%, #c8e0c4 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pttk-pilot-portrait__placeholder svg {
    width: 100px;
    opacity: 0.35;
    fill: #2d5a27;
}

.pttk-pilot-info__name {
    font-size: 2.4rem;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 8px;
}

.pttk-pilot-info__spec {
    font-size: 1rem;
    font-weight: 600;
    color: #2d5a27;
    margin: 0 0 28px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pttk-pilot-info__spec::before {
    content: '';
    display: inline-block;
    width: 32px;
    height: 3px;
    background: #2d5a27;
    border-radius: 2px;
    flex-shrink: 0;
}

.pttk-pilot-bio {
    background: #f8f9f6;
    border-left: 4px solid #2d5a27;
    border-radius: 0 12px 12px 0;
    padding: 20px 24px;
    margin-bottom: 0;
    font-size: 0.975rem;
    line-height: 1.7;
    color: #444;
}

.pttk-pilot-bio p:last-child {
    margin-bottom: 0;
}

/* Trips section */
.pttk-pilot-trips-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px 60px;
}

.pttk-pilot-trips-section h2 {
    font-size: 1.7rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px;
}

.pttk-pilot-trips-divider {
    width: 48px;
    height: 4px;
    background: #2d5a27;
    border-radius: 2px;
    margin-bottom: 32px;
}

.pttk-pilot-trips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

/* Trip card — active */
.pttk-pilot-trip-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.pttk-pilot-trip-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.13);
    color: inherit;
    text-decoration: none;
}

.pttk-pilot-trip-card__thumb {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.pttk-pilot-trip-card__thumb-placeholder {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, #e9f2eb 0%, #b6d4b1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pttk-pilot-trip-card__thumb-placeholder svg {
    width: 48px;
    opacity: 0.4;
    fill: #2d5a27;
}

.pttk-pilot-trip-card__body {
    padding: 18px 20px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pttk-pilot-trip-card__country {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #2d5a27;
    margin: 0 0 6px;
}

.pttk-pilot-trip-card__title {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 14px;
    line-height: 1.3;
}

.pttk-pilot-trip-card__meta {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.pttk-pilot-trip-card__date {
    color: #555;
    display: flex;
    align-items: center;
    gap: 5px;
}

.pttk-pilot-trip-card__price {
    font-weight: 700;
    color: #2d5a27;
    font-size: 1rem;
}

.pttk-pilot-trip-card__btn {
    display: inline-block;
    margin-top: 14px;
    background: #2d5a27;
    color: #fff;
    font-size: 0.825rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s;
    text-align: center;
}

.pttk-pilot-trip-card__btn:hover {
    background: #3d7535;
    color: #fff;
    text-decoration: none;
}

/* Trip card — archived */
.pttk-pilot-trip-card--archived {
    filter: grayscale(100%);
    opacity: 0.62;
    pointer-events: none;
}

.pttk-pilot-trip-card--archived .pttk-pilot-trip-card__btn {
    background: #999;
    cursor: default;
}

.pttk-pilot-trip-card__archived-badge {
    font-size: 0.78rem;
    font-weight: 600;
    color: #888;
    background: #f0f0f0;
    border-radius: 6px;
    padding: 5px 10px;
    margin-top: 14px;
    text-align: center;
}

/* Archived section header */
.pttk-pilot-archived-section {
    margin-top: 40px;
}

.pttk-pilot-archived-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #999;
    margin: 0 0 20px;
    padding-top: 24px;
    border-top: 1px solid #e8e8e8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.85rem;
}

/* Empty state */
.pttk-pilot-trips-empty {
    background: #f8f9f6;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    color: #888;
    font-size: 0.95rem;
    grid-column: 1 / -1;
}

/* Responsive */
@media (max-width: 768px) {
    .pttk-pilot-profile {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .pttk-pilot-portrait {
        position: static;
        max-width: 220px;
    }

    .pttk-pilot-hero__name {
        font-size: 2.2rem;
    }

    .pttk-pilots-header h1 {
        font-size: 2rem;
    }
}

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

    .pttk-pilots-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
}
