/* =============================================
   D-NOVA WORKSHOPS - BMW PREMIUM STYLE
   Warsztaty partnerskie z eleganckim designem
   ============================================= */

/* Main Container */
.workshops-page {
    background: linear-gradient(135deg, #0a0a0a, #1a1a1a);
    min-height: 100vh;
    padding: 140px 20px 60px;
}

.workshops-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* =============================================
   HERO SECTION WITH VIDEO BACKGROUND
   ============================================= */

.workshops-hero {
    position: relative;
    text-align: center;
    margin-bottom: 50px;
    overflow: hidden;
    border-radius: 30px;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 20px;
}

/* Video Background Container */
.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 30px;
    z-index: 0;
}

.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;
}

/* Show video when loaded */
.hero-video.loaded {
    opacity: 1;
}

/* Dark overlay for better text readability */
.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.75) 50%,
        rgba(10, 10, 10, 0.85) 100%
    );
    z-index: 1;
}

/* Additional gradient overlay for depth */
.hero-video-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        ellipse at center,
        transparent 0%,
        rgba(0, 0, 0, 0.3) 100%
    );
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 10;
    margin-bottom: 40px;
}

.hero-icon {
    font-size: 64px;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 4px 15px rgba(100, 150, 255, 0.5));
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-title {
    font-size: 56px;
    font-weight: 900;
    color: #ffffff;
    margin: 0 0 16px;
    background: linear-gradient(135deg, #ffffff, rgba(100, 150, 255, 0.9));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.95);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
    font-weight: 500;
}

/* =============================================
   TOOLBAR - SEARCH & FILTERS (Updated for Video BG)
   ============================================= */

.workshops-toolbar {
    position: relative;
    z-index: 10;
    background: linear-gradient(135deg,
        rgba(20, 20, 20, 0.95),
        rgba(30, 30, 30, 0.95)
    );
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid rgba(100, 150, 255, 0.3);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.search-form {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.search-input-wrapper {
    position: relative;
    flex: 1;
    min-width: 300px;
    max-width: 500px;
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: rgba(255, 255, 255, 0.4);
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 16px 20px 16px 55px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: #ffffff;
    font-size: 16px;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(100, 150, 255, 0.6);
    box-shadow: 0 0 20px rgba(100, 150, 255, 0.3);
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.country-filter {
    position: relative;
}

.country-select {
    padding: 16px 45px 16px 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: #ffffff;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    min-width: 200px;
}

.country-select:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(100, 150, 255, 0.6);
}

.country-select option {
    background: #1a1a1a;
    color: #ffffff;
}

.btn-search,
.btn-clear {
    padding: 16px 32px;
    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: 12px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-search:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(100, 150, 255, 0.5);
}

.btn-clear {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-clear:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* =============================================
   STATISTICS
   ============================================= */

.workshops-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.stat-item {
    background: linear-gradient(135deg,
        rgba(20, 20, 20, 0.8),
        rgba(30, 30, 30, 0.8)
    );
    backdrop-filter: blur(20px);
    border: 1px solid rgba(100, 150, 255, 0.2);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
}

.stat-value {
    font-size: 42px;
    font-weight: 900;
    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: 8px;
}

.stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =============================================
   WORKSHOPS GRID
   ============================================= */

.workshops-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.workshop-card {
    background: linear-gradient(135deg,
        rgba(20, 20, 20, 0.9),
        rgba(30, 30, 30, 0.9)
    );
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.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;
}

.workshop-card:hover {
    transform: translateY(-5px);
    border-color: rgba(100, 150, 255, 0.4);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

.workshop-card:hover::before {
    opacity: 1;
}

/* Featured Card */
.workshop-card.featured {
    border-color: rgba(255, 215, 0, 0.4);
}

.workshop-card.featured::before {
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 215, 0, 0.6) 50%,
        transparent 100%
    );
    opacity: 1;
}

/* Verified Card */
.workshop-card.verified {
    border-color: rgba(100, 200, 100, 0.3);
}

/* =============================================
   WORKSHOP CARD CONTENT
   ============================================= */

.workshop-header {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.workshop-logo,
.workshop-logo-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
}

.workshop-logo-placeholder {
    background: linear-gradient(135deg,
        rgba(100, 150, 255, 0.2),
        rgba(50, 100, 200, 0.2)
    );
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
}

.workshop-title-section {
    flex: 1;
}

.workshop-name {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: rgba(100, 200, 100, 0.2);
    border: 1px solid rgba(100, 200, 100, 0.5);
    border-radius: 50%;
    color: #64c864;
    font-size: 14px;
    font-weight: 900;
}

.featured-badge {
    font-size: 18px;
}

.workshop-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.rating-stars {
    display: flex;
    gap: 2px;
}

.star {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.2);
}

.star.filled {
    color: #ffd700;
}

.star.half {
    color: #ffd700;
    opacity: 0.5;
}

.rating-value {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
}

.rating-count {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

/* Description */
.workshop-description {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Location */
.workshop-location {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    margin-bottom: 20px;
}

.location-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.location-details {
    flex: 1;
}

.location-address {
    font-size: 15px;
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 4px;
}

.location-city {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

/* Services */
.workshop-services {
    margin-bottom: 20px;
}

.services-title {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.services-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.service-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(100, 150, 255, 0.15);
    border: 1px solid rgba(100, 150, 255, 0.3);
    border-radius: 20px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    white-space: nowrap;
}

/* Footer */
.workshop-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.workshop-contact {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    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: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(100, 150, 255, 0.5);
}

.contact-icon {
    font-size: 16px;
}

.btn-map {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    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: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-map:hover {
    background: linear-gradient(135deg,
        rgba(100, 150, 255, 0.3),
        rgba(50, 100, 200, 0.3)
    );
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(100, 150, 255, 0.3);
}

.btn-icon {
    font-size: 18px;
}

/* Business Hours */
.workshop-hours {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.hours-icon {
    font-size: 18px;
}

/* =============================================
   EMPTY STATE
   ============================================= */

.workshops-empty {
    text-align: center;
    padding: 80px 20px;
}

.empty-icon {
    font-size: 80px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-title {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 12px;
}

.empty-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

.empty-subtitle a {
    color: rgba(100, 150, 255, 0.9);
    text-decoration: underline;
}

/* =============================================
   INFO SECTION
   ============================================= */

.workshops-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.info-card {
    background: linear-gradient(135deg,
        rgba(20, 20, 20, 0.8),
        rgba(30, 30, 30, 0.8)
    );
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
}

.info-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.info-title {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 16px;
}

.info-text {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 24px;
}

.btn-info {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    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: 12px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-info:hover {
    background: linear-gradient(135deg,
        rgba(100, 150, 255, 0.3),
        rgba(50, 100, 200, 0.3)
    );
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(100, 150, 255, 0.3);
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 768px) {
    .workshops-page {
        padding: 120px 15px 40px;
    }

    .workshops-hero {
        min-height: 500px;
        padding: 60px 15px;
        border-radius: 20px;
    }

    .hero-video-container {
        border-radius: 20px;
    }

    .hero-icon {
        font-size: 48px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 16px;
        padding: 0 10px;
    }

    .workshops-toolbar {
        padding: 20px;
    }

    .search-form {
        flex-direction: column;
    }

    .search-input-wrapper,
    .country-select {
        width: 100%;
        max-width: 100%;
    }

    .btn-search,
    .btn-clear {
        width: 100%;
        justify-content: center;
    }

    .workshops-grid {
        grid-template-columns: 1fr;
    }

    .workshop-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .workshop-contact {
        justify-content: center;
    }

    .btn-map {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .workshops-hero {
        min-height: 450px;
        padding: 40px 10px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 14px;
    }
}

/* Performance optimization for video on mobile */
@media (prefers-reduced-motion: reduce) {
    .hero-video {
        animation: none;
    }
    
    .hero-icon {
        animation: none;
    }
}
