/* =============================================
   D-NOVA WORKSHOPS - BMW PREMIUM STYLE (compact v2, scoped)
   Zwarty layout. WSZYSTKO zakresowane pod .workshops-page, bo generyczne
   klasy (.hero-title, .stat-item, .search-input...) są też w contact.css /
   mobile.css (ładowane później) i nadpisywały te reguły. Scoping = wygrywamy.
   ============================================= */

/* Main Container */
.workshops-page {
    background: linear-gradient(135deg, #0a0a0a, #1a1a1a);
    min-height: 100vh;
    padding: 130px 20px 50px;
}

.workshops-page .workshops-container {
    max-width: 1360px;
    margin: 0 auto;
}

/* =============================================
   HERO SECTION WITH VIDEO BACKGROUND (compact)
   ============================================= */

.workshops-page .workshops-hero {
    position: relative;
    text-align: center;
    margin-bottom: 22px;
    overflow: hidden;
    border-radius: 20px;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 34px 24px;
}

.workshops-page .hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 20px;
    z-index: 0;
}

.workshops-page .hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.workshops-page .hero-video.loaded {
    opacity: 1;
}

.workshops-page .hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(10, 10, 10, 0.85) 0%,
        rgba(20, 20, 30, 0.72) 50%,
        rgba(10, 10, 10, 0.85) 100%
    );
    z-index: 1;
}

.workshops-page .hero-content {
    position: relative;
    z-index: 10;
    margin-bottom: 20px;
}

.workshops-page .hero-icon {
    font-size: 34px;
    margin-bottom: 8px;
    filter: drop-shadow(0 4px 12px rgba(100, 150, 255, 0.4));
    animation: none;
}

.workshops-page .hero-title {
    font-size: 32px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 8px;
    background: linear-gradient(135deg, #ffffff, rgba(100, 150, 255, 0.9));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.workshops-page .hero-subtitle {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.5;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    font-weight: 400;
}

/* =============================================
   TOOLBAR - SEARCH & FILTERS (compact)
   ============================================= */

.workshops-page .workshops-toolbar {
    position: relative;
    z-index: 10;
    background: linear-gradient(135deg,
        rgba(20, 20, 20, 0.92),
        rgba(30, 30, 30, 0.92)
    );
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    border: 1px solid rgba(100, 150, 255, 0.25);
    border-radius: 14px;
    padding: 14px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
}

.workshops-page .search-form {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.workshops-page .search-input-wrapper {
    position: relative;
    flex: 1;
    min-width: 240px;
    max-width: 560px;
}

.workshops-page .search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 17px;
    color: rgba(255, 255, 255, 0.4);
    pointer-events: none;
}

.workshops-page .search-input {
    width: 100%;
    padding: 12px 16px 12px 44px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    color: #ffffff;
    font-size: 15px;
    transition: all 0.25s ease;
}

.workshops-page .search-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.11);
    border-color: rgba(100, 150, 255, 0.6);
    box-shadow: 0 0 16px rgba(100, 150, 255, 0.25);
}

.workshops-page .search-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.workshops-page .country-filter {
    position: relative;
}

.workshops-page .country-select {
    padding: 12px 40px 12px 16px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    color: #ffffff;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.25s ease;
    appearance: none;
    min-width: 180px;
}

.workshops-page .country-select:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.11);
    border-color: rgba(100, 150, 255, 0.6);
}

.workshops-page .country-select option {
    background: #1a1a1a;
    color: #ffffff;
}

.workshops-page .btn-search,
.workshops-page .btn-clear {
    padding: 12px 26px;
    background: linear-gradient(135deg,
        rgba(100, 150, 255, 0.9),
        rgba(50, 100, 200, 0.9)
    );
    border: 1px solid rgba(100, 150, 255, 0.3);
    border-radius: 10px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.workshops-page .btn-search:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(100, 150, 255, 0.45);
}

.workshops-page .btn-clear {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.18);
}

.workshops-page .btn-clear:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-1px);
}

/* =============================================
   STATISTICS (compact chips)
   ============================================= */

.workshops-page .workshops-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 22px;
}

.workshops-page .stat-item {
    background: linear-gradient(135deg,
        rgba(20, 20, 20, 0.8),
        rgba(30, 30, 30, 0.8)
    );
    border: 1px solid rgba(100, 150, 255, 0.18);
    border-radius: 12px;
    padding: 14px 18px;
    text-align: center;
}

.workshops-page .stat-value {
    font-size: 26px;
    font-weight: 800;
    color: #ffffff;
    background: linear-gradient(135deg, #ffffff, rgba(100, 150, 255, 0.9));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2px;
}

.workshops-page .stat-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.55);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

/* =============================================
   WORKSHOPS GRID (denser)
   ============================================= */

.workshops-page .workshops-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 18px;
    margin-bottom: 40px;
}

.workshops-page .workshop-card {
    background: linear-gradient(135deg,
        rgba(20, 20, 20, 0.9),
        rgba(30, 30, 30, 0.9)
    );
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    overflow: hidden;
}

.workshops-page .workshop-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(100, 150, 255, 0.5) 50%,
        transparent 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.workshops-page .workshop-card:hover {
    transform: translateY(-4px);
    border-color: rgba(100, 150, 255, 0.4);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

.workshops-page .workshop-card:hover::before {
    opacity: 1;
}

.workshops-page .workshop-card.featured {
    border-color: rgba(255, 215, 0, 0.4);
    padding-top: 42px;
}

.workshops-page .workshop-card.featured::before {
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 215, 0, 0.6) 50%,
        transparent 100%
    );
    opacity: 1;
}

.workshops-page .workshop-card.verified {
    border-color: rgba(100, 200, 100, 0.3);
}

/* =============================================
   WORKSHOP CARD CONTENT (compact)
   ============================================= */

.workshops-page .workshop-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 14px;
}

/* Logo: contain (bez kadrowania), białe tło, elastyczna szerokość */
.workshops-page .workshop-logo {
    height: 58px;
    width: auto;
    min-width: 58px;
    max-width: 168px;
    object-fit: contain;
    background: #ffffff;
    padding: 7px 10px;
    border-radius: 13px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.workshops-page .workshop-logo-placeholder {
    width: 58px;
    height: 58px;
    border-radius: 13px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
    background: linear-gradient(135deg,
        rgba(100, 150, 255, 0.4),
        rgba(50, 100, 200, 0.25)
    );
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.workshops-page .workshop-title-section {
    flex: 1 1 180px;
    min-width: 0;
}

.workshops-page .workshop-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.workshops-page .verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(74, 222, 128, 0.14);
    border: 1px solid rgba(74, 222, 128, 0.4);
    color: #6ee7a0;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.workshops-page .workshop-name {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 6px;
    line-height: 1.25;
    word-break: break-word;
}

.workshops-page .featured-ribbon {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f5c542, #e0a020);
    color: #201700;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(224, 160, 32, 0.3);
}

.workshops-page .workshop-rating {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
}

.workshops-page .rating-stars {
    display: flex;
    gap: 1px;
}

.workshops-page .star {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.2);
}

.workshops-page .star.filled {
    color: #ffd700;
}

.workshops-page .star.half {
    color: #ffd700;
    opacity: 0.5;
}

.workshops-page .rating-value {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
}

.workshops-page .rating-count {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

/* Description — clamp do 3 linii */
.workshops-page .workshop-description {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.68);
    line-height: 1.5;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.workshops-page .workshop-location {
    display: flex;
    gap: 10px;
    padding: 11px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    margin-bottom: 14px;
}

.workshops-page .location-icon {
    font-size: 19px;
    flex-shrink: 0;
}

.workshops-page .location-details {
    flex: 1;
}

.workshops-page .location-address {
    font-size: 14px;
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 2px;
}

.workshops-page .location-city {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

/* Wiele lokalizacji (oddziały) */
.workshops-page .workshop-locations {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
}
.workshops-page .workshop-locations .workshop-location {
    margin-bottom: 0;
}
.workshops-page .location-branch-name {
    font-size: 12px;
    font-weight: 700;
    color: #7aa2ff;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 3px;
}
.workshops-page .location-phone {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
}
.workshops-page .location-phone:hover { color: #ffffff; }
.workshops-page .location-phone .phone-name { color: rgba(255, 255, 255, 0.55); }
.workshops-page .location-hours {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 6px;
}
.workshops-page .btn-map-sm {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 7px 12px;
    background: linear-gradient(135deg, rgba(100, 150, 255, 0.22), rgba(50, 100, 200, 0.22));
    border: 1px solid rgba(100, 150, 255, 0.4);
    border-radius: 8px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
}
.workshops-page .btn-map-sm:hover { filter: brightness(1.12); transform: translateY(-1px); }

.workshops-page .workshop-services {
    margin-bottom: 14px;
}

.workshops-page .services-title {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.55);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 8px;
}

.workshops-page .services-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.workshops-page .service-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 11px;
    background: rgba(100, 150, 255, 0.14);
    border: 1px solid rgba(100, 150, 255, 0.28);
    border-radius: 16px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.88);
    white-space: nowrap;
}

.workshops-page .workshop-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.workshops-page .workshop-contact {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.workshops-page .contact-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 11px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    text-decoration: none;
    transition: all 0.25s ease;
}

.workshops-page .contact-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(100, 150, 255, 0.5);
}

.workshops-page .contact-icon {
    font-size: 15px;
}

/* Social media — okrągłe ikonki w sekcji kontaktu */
.workshops-page .workshop-social {
    display: flex;
    gap: 8px;
    width: 100%;
    margin-top: 4px;
}

.workshops-page .social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    font-size: 16px;
    color: #ffffff;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: transform 0.2s ease, filter 0.2s ease;
}

.workshops-page .social-link:hover {
    transform: translateY(-2px);
    filter: brightness(1.15);
}

.workshops-page .social-link.fb { background: #1877f2; }
.workshops-page .social-link.ig {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}
.workshops-page .social-link.tt { background: #010101; }

.workshops-page .btn-map {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 16px;
    background: linear-gradient(135deg,
        rgba(100, 150, 255, 0.22),
        rgba(50, 100, 200, 0.22)
    );
    border: 1px solid rgba(100, 150, 255, 0.4);
    border-radius: 9px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.workshops-page .btn-map:hover {
    background: linear-gradient(135deg,
        rgba(100, 150, 255, 0.32),
        rgba(50, 100, 200, 0.32)
    );
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(100, 150, 255, 0.3);
}

.workshops-page .btn-icon {
    font-size: 16px;
}

.workshops-page .workshop-hours {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.65);
}

.workshops-page .hours-icon {
    font-size: 16px;
}

/* =============================================
   EMPTY STATE
   ============================================= */

.workshops-page .workshops-empty {
    text-align: center;
    padding: 60px 20px;
}

.workshops-page .empty-icon {
    font-size: 60px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.workshops-page .empty-title {
    font-size: 26px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 10px;
}

.workshops-page .empty-subtitle {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

.workshops-page .empty-subtitle a {
    color: rgba(100, 150, 255, 0.9);
    text-decoration: underline;
}

/* =============================================
   INFO SECTION (compact)
   ============================================= */

.workshops-page .workshops-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
    margin-top: 40px;
}

.workshops-page .info-card {
    background: linear-gradient(135deg,
        rgba(20, 20, 20, 0.8),
        rgba(30, 30, 30, 0.8)
    );
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 26px;
    text-align: center;
}

.workshops-page .info-icon {
    font-size: 34px;
    margin-bottom: 12px;
}

.workshops-page .info-title {
    font-size: 19px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 10px;
}

.workshops-page .info-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.68);
    line-height: 1.55;
    margin-bottom: 18px;
}

.workshops-page .btn-info {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg,
        rgba(100, 150, 255, 0.2),
        rgba(50, 100, 200, 0.2)
    );
    border: 1px solid rgba(100, 150, 255, 0.4);
    border-radius: 10px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
}

.workshops-page .btn-info:hover {
    background: linear-gradient(135deg,
        rgba(100, 150, 255, 0.3),
        rgba(50, 100, 200, 0.3)
    );
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(100, 150, 255, 0.3);
}

/* =============================================
   RESPONSIVE — TABLET (<=768)
   ============================================= */

@media (max-width: 768px) {
    .workshops-page {
        padding: 96px 14px 96px;
    }

    .workshops-page .workshops-hero {
        padding: 26px 16px;
        margin-bottom: 16px;
        border-radius: 16px;
    }

    .workshops-page .hero-video-container {
        border-radius: 16px;
    }

    .workshops-page .hero-icon {
        font-size: 30px;
    }

    .workshops-page .hero-title {
        font-size: 26px;
    }

    .workshops-page .hero-subtitle {
        font-size: 14px;
        padding: 0 6px;
    }

    .workshops-page .workshops-toolbar {
        padding: 12px;
    }

    .workshops-page .search-form {
        flex-direction: column;
        gap: 10px;
    }

    .workshops-page .search-input-wrapper,
    .workshops-page .country-select {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .workshops-page .btn-search,
    .workshops-page .btn-clear {
        width: 100%;
        justify-content: center;
    }

    .workshops-page .workshops-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .workshops-page .stat-item {
        padding: 12px 8px;
    }

    .workshops-page .stat-value {
        font-size: 22px;
    }

    .workshops-page .stat-label {
        font-size: 10px;
        letter-spacing: 0.3px;
    }

    .workshops-page .workshops-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .workshops-page .workshop-card {
        padding: 18px;
    }

    .workshops-page .workshop-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .workshops-page .workshop-contact {
        justify-content: center;
    }

    .workshops-page .btn-map {
        justify-content: center;
    }

    .workshops-page .workshops-info {
        gap: 14px;
        margin-top: 32px;
    }

    .workshops-page .info-card {
        padding: 22px;
    }
}

/* =============================================
   RESPONSIVE — PHONE (<=480)
   ============================================= */

@media (max-width: 480px) {
    .workshops-page {
        padding: 84px 12px 96px;
    }

    .workshops-page .workshops-hero {
        padding: 22px 14px;
    }

    .workshops-page .hero-title {
        font-size: 23px;
    }

    .workshops-page .hero-subtitle {
        font-size: 13px;
    }

    .workshops-page .stat-value {
        font-size: 20px;
    }

    .workshops-page .workshop-card {
        padding: 16px;
    }

    .workshops-page .workshop-name {
        font-size: 17px;
    }
}

/* Performance / a11y */
@media (prefers-reduced-motion: reduce) {
    .workshops-page .hero-video {
        animation: none;
    }
}
