/* ============================================
   SERVICE ARCHIVE - SPECIFIC STYLES
   Premium Service Cards with Icons & Filters
   ============================================ */

/* ============================================
   SERVICE HERO ENHANCEMENTS
   ============================================ */
.service-hero-premium {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.service-hero-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* View Toggle Buttons */
.view-toggles {
    display: flex;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 0.25rem;
}

.view-toggle-btn {
    padding: 0.5rem 0.75rem;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-toggle-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.view-toggle-btn.active {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.view-toggle-btn svg {
    width: 20px;
    height: 20px;
}

/* ============================================
   FILTER BAR (Sticky)
   ============================================ */
.filter-bar-sticky {
    position: sticky;
    top: 80px;
    z-index: 90;
    background: white;
    border-bottom: 1px solid #e2e8f0;
    padding: 1.5rem 0;
    margin-bottom: 3rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.filter-bar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* Filter Pills */
.filter-pills {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.filter-pill {
    padding: 0.5rem 1.25rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
}

.filter-pill:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #0f172a;
}

.filter-pill.active {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border-color: #ef4444;
    color: white;
}

/* Sort Dropdown */
.sort-dropdown {
    position: relative;
}

.sort-dropdown select {
    padding: 0.625rem 2.5rem 0.625rem 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #0f172a;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    appearance: none;
    transition: all 0.3s;
}

.sort-dropdown select:hover {
    border-color: #cbd5e1;
}

.sort-dropdown select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.sort-dropdown::after {
    content: '';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #64748b;
    pointer-events: none;
}

/* Search Box */
.search-box-filter {
    position: relative;
    flex: 1;
    max-width: 300px;
}

.search-box-filter input {
    width: 100%;
    padding: 0.625rem 1rem 0.625rem 2.75rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.875rem;
    transition: all 0.3s;
}

.search-box-filter input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background: white;
}

.search-box-filter svg {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: #94a3b8;
}

/* ============================================
   SERVICE CARDS - PREMIUM
   ============================================ */
.service-card-premium {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card-premium:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
    border-color: #3b82f6;
}

/* Service Icon Overlay */
.service-icon-overlay {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    z-index: 3;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Service Badges */
.service-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.375rem 0.875rem;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    font-size: 0.6875rem;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 6px;
    letter-spacing: 0.5px;
    z-index: 2;
}

.service-badge.popular {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.service-badge.new {
    background: linear-gradient(135deg, #10b981, #059669);
}

.service-badge.featured {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

/* Price Badge */
.price-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #0f172a;
    font-weight: 700;
    font-size: 0.875rem;
}

.price-badge::before {
    content: '💰';
    margin-right: 0.5rem;
}

/* Service Features List */
.service-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
}

.service-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.375rem 0;
    font-size: 0.875rem;
    color: #64748b;
}

.service-features li::before {
    content: '✓';
    color: #10b981;
    font-weight: 700;
    flex-shrink: 0;
}

/* ============================================
   GRID LAYOUTS
   ============================================ */
.services-grid-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.services-grid-2col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

/* List View */
.services-list-view .service-card-premium {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
}

.services-list-view .service-thumbnail {
    aspect-ratio: 4/3;
}

/* Masonry View (Future Enhancement) */
.services-masonry-view {
    column-count: 3;
    column-gap: 2rem;
}

.services-masonry-view .service-card-premium {
    break-inside: avoid;
    margin-bottom: 2rem;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1200px) {
    .services-grid-3col {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-masonry-view {
        column-count: 2;
    }
}

@media (max-width: 768px) {
    .filter-bar-sticky {
        top: 60px;
        padding: 1rem 0;
    }

    .filter-bar-content {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box-filter {
        max-width: 100%;
    }

    .services-grid-3col,
    .services-grid-2col,
    .services-list-view {
        grid-template-columns: 1fr;
    }

    .services-list-view .service-card-premium {
        grid-template-columns: 1fr;
    }

    .services-masonry-view {
        column-count: 1;
    }

    .service-icon-overlay {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}

@media (max-width: 640px) {
    .view-toggles {
        display: none;
    }

    .filter-pills {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .filter-pills::-webkit-scrollbar {
        display: none;
    }
}