/**
 * attractions-hub.css
 * Styles dla strony głównej atrakcji /atrakcje (Hub Page)
 * Booking.com-inspired layout
 */

/* =============================================
   HERO
   ============================================= */

.hub-hero {
    position: relative;
    min-height: 380px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #1e1b4b 0%, #3730a3 35%, #0891b2 100%);
    overflow: hidden;
}

.hub-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(99, 102, 241, 0.3) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(6, 182, 212, 0.25) 0%, transparent 50%);
    pointer-events: none;
}

.hub-hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 24px;
    text-align: center;
    color: #fff;
}

.hub-hero-eyebrow {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
    margin: 0 0 16px;
}

.hub-hero-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 20px;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

.hub-hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 36px;
    font-weight: 400;
}

.hub-hero-cta {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.hub-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.hub-btn-primary {
    background: #fff;
    color: #3730a3;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.hub-btn-primary:hover {
    background: #f0f4ff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    color: #3730a3;
    text-decoration: none;
}

.hub-btn-outline {
    background: rgba(255,255,255,0.12);
    color: #fff;
    border: 2px solid rgba(255,255,255,0.5);
    backdrop-filter: blur(4px);
}

.hub-btn-outline:hover {
    background: rgba(255,255,255,0.22);
    border-color: rgba(255,255,255,0.8);
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
}

/* =============================================
   STATS BAR
   ============================================= */

.hub-stats-bar {
    background: #fff;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    position: relative;
    z-index: 10;
}

.hub-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.hub-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    border-right: 1px solid #f1f5f9;
    text-align: center;
    transition: background 0.2s;
}

.hub-stat:last-child {
    border-right: none;
}

.hub-stat:hover {
    background: #f8faff;
}

.hub-stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: #3730a3;
    line-height: 1;
    margin-bottom: 4px;
}

.hub-stat-label {
    font-size: 0.8rem;
    color: #6b7280;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* =============================================
   SEKCJE OGÓLNE
   ============================================= */

.hub-section {
    padding: 64px 0;
}

.hub-section-alt {
    background: #f8faff;
}

.hub-section-dark {
    background: #1e1b4b;
    color: #fff;
}

.hub-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.hub-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 32px;
    gap: 16px;
}

.hub-section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e1b4b;
    margin: 0 0 6px;
}

.hub-section-dark .hub-section-title {
    color: #fff;
}

.hub-section-desc {
    font-size: 0.95rem;
    color: #6b7280;
    margin: 0;
}

.hub-section-dark .hub-section-desc {
    color: rgba(255,255,255,0.65);
}

.hub-see-all {
    font-size: 0.9rem;
    font-weight: 600;
    color: #3730a3;
    text-decoration: none;
    white-space: nowrap;
    padding: 6px 14px;
    border: 1.5px solid #c7d2fe;
    border-radius: 50px;
    transition: all 0.2s;
}

.hub-see-all:hover {
    background: #3730a3;
    color: #fff;
    border-color: #3730a3;
    text-decoration: none;
}

.hub-section-dark .hub-see-all {
    color: rgba(255,255,255,0.85);
    border-color: rgba(255,255,255,0.3);
}

.hub-section-dark .hub-see-all:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border-color: rgba(255,255,255,0.6);
}

/* =============================================
   POPULARNE ATRAKCJE - GRID
   ============================================= */

.hub-popular-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.hub-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    font-size: 3rem;
}

/* =============================================
   TYPY ATRAKCJI - GRID
   ============================================= */

.hub-types-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.hub-type-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px 16px 20px;
    background: #fff;
    border-radius: 14px;
    text-decoration: none;
    border: 2px solid #e8ecf5;
    transition: all 0.22s ease;
    position: relative;
    overflow: hidden;
    gap: 10px;
}

.hub-type-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3730a3, #0891b2);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.hub-type-card:hover {
    border-color: #a5b4fc;
    box-shadow: 0 6px 24px rgba(55, 48, 163, 0.12);
    transform: translateY(-3px);
    text-decoration: none;
}

.hub-type-card:hover::before {
    transform: scaleX(1);
}

.hub-type-icon {
    font-size: 2.2rem;
    line-height: 1;
}

.hub-type-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.3;
}

.hub-type-count {
    font-size: 0.78rem;
    color: #6b7280;
    font-weight: 500;
}

/* =============================================
   ODBIORCY - GRID
   ============================================= */

.hub-audiences-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.hub-audience-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px 16px 20px;
    background: #fff;
    border-radius: 14px;
    text-decoration: none;
    border: 2px solid #e8ecf5;
    transition: all 0.22s ease;
    position: relative;
    overflow: hidden;
    gap: 10px;
}

.hub-audience-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3730a3, #0891b2);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.hub-audience-card:hover {
    border-color: #a5b4fc;
    box-shadow: 0 6px 24px rgba(55, 48, 163, 0.12);
    transform: translateY(-3px);
    text-decoration: none;
}

.hub-audience-card:hover::before {
    transform: scaleX(1);
}

.hub-audience-icon {
    font-size: 2.2rem;
    line-height: 1;
}

.hub-audience-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.3;
}

.hub-audience-count {
    font-size: 0.78rem;
    color: #6b7280;
    font-weight: 500;
}

/* =============================================
   WOJEWÓDZTWA - GRID
   ============================================= */

.hub-voivodeships-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.hub-voivodeship-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(255,255,255,0.08);
    border: 1.5px solid rgba(255,255,255,0.15);
    border-radius: 12px;
    text-decoration: none;
    color: #fff;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
}

.hub-voivodeship-card:hover {
    background: rgba(255,255,255,0.16);
    border-color: rgba(255,255,255,0.4);
    transform: translateY(-2px);
    text-decoration: none;
    color: #fff;
}

.hub-voivodeship-pin {
    font-size: 1.5rem;
    flex-shrink: 0;
    opacity: 0.85;
}

.hub-voivodeship-info {
    flex: 1;
    min-width: 0;
}

.hub-voivodeship-name {
    font-size: 0.9rem;
    font-weight: 600;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #fff;
}

.hub-voivodeship-count {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.6);
}

/* =============================================
   TOP MIASTA - HORIZONTAL SCROLL
   ============================================= */

.hub-cities-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.hub-cities-scroll::-webkit-scrollbar {
    display: none;
}

.hub-city-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 50px;
    text-decoration: none;
    color: #374151;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.18s ease;
}

.hub-city-chip:hover {
    background: #3730a3;
    border-color: #3730a3;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(55, 48, 163, 0.2);
    text-decoration: none;
}

.hub-city-chip-count {
    font-size: 0.75rem;
    color: #9ca3af;
    font-weight: 500;
    transition: color 0.18s;
}

.hub-city-chip:hover .hub-city-chip-count {
    color: rgba(255,255,255,0.7);
}

/* =============================================
   SEO TEXT
   ============================================= */

.hub-seo {
    padding: 48px 0 64px;
    background: #fff;
}

.hub-seo-content {
    max-width: 800px;
    margin: 0 auto;
}

.hub-seo-content h2 {
    font-size: 1.4rem;
    color: #1e293b;
    margin-bottom: 16px;
}

.hub-seo-content p {
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.75;
    margin-bottom: 12px;
}

/* Grid SEO bloków tematycznych */
.hub-seo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 56px;
    max-width: 1000px;
    margin: 0 auto;
}

.hub-seo-block--wide {
    grid-column: 1 / -1;
    padding-bottom: 32px;
    border-bottom: 1px solid #e9ecef;
}

.hub-seo-block h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 14px;
    line-height: 1.3;
}

.hub-seo-block h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #1e1b4b;
    margin: 0 0 10px;
}

.hub-seo-block p {
    color: #6b7280;
    font-size: 0.93rem;
    line-height: 1.8;
    margin: 0;
}

.hub-seo-block p strong {
    color: #374151;
    font-weight: 600;
}

@media (max-width: 640px) {
    .hub-seo-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .hub-seo-block--wide {
        grid-column: 1;
    }
}

/* =============================================
   BREADCRUMBS (na hero)
   ============================================= */

.hub-breadcrumbs {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 14px 24px;
}

.hub-breadcrumbs-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}

.hub-breadcrumbs-inner a,
.hub-breadcrumbs-inner span {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
}

.hub-breadcrumbs-inner a:hover {
    color: #fff;
}

.hub-breadcrumbs-sep {
    color: rgba(255,255,255,0.4);
    font-size: 0.8rem;
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 1100px) {
    .hub-types-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 900px) {
    .hub-popular-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hub-types-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .hub-audiences-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hub-voivodeships-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 640px) {
    .hub-hero-content {
        padding: 80px 20px 48px;
    }

    .hub-hero-title {
        font-size: 1.85rem;
    }

    .hub-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hub-stat {
        border-right: none;
        border-bottom: 1px solid #f1f5f9;
    }

    .hub-stat:nth-child(odd) {
        border-right: 1px solid #f1f5f9;
    }

    .hub-stat:nth-child(3),
    .hub-stat:nth-child(4) {
        border-bottom: none;
    }

    .hub-popular-grid {
        grid-template-columns: 1fr;
    }

    .hub-types-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hub-audiences-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hub-voivodeships-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hub-section {
        padding: 40px 0;
    }

    .hub-section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .hub-section-title {
        font-size: 1.4rem;
    }
}

@media (max-width: 400px) {
    .hub-types-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hub-audiences-grid {
        grid-template-columns: 1fr 1fr;
    }
}
