/**
 * Service Categories Styles
 * Modern category archive and taxonomy pages
 */

/* ===================================
   SERVICE CATEGORY HEADER
   =================================== */

.service-category-header {
    background: var(--kraft-gradient);
    color: var(--kraft-white);
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}

.service-category-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.service-category-header .container {
    position: relative;
    z-index: 2;
}

.category-breadcrumb {
    margin-bottom: 30px;
    font-size: 14px;
    opacity: 0.9;
}

.category-breadcrumb a {
    color: var(--kraft-white);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.category-breadcrumb a:hover {
    opacity: 0.8;
}

.breadcrumb-separator {
    margin: 0 10px;
    opacity: 0.7;
}

.current-category {
    opacity: 0.9;
}

.category-title {
    font-size: 48px;
    font-weight: 800;
    margin: 0 0 20px;
    line-height: 1.2;
}

.category-description {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 25px;
    opacity: 0.9;
    max-width: 600px;
}

.category-stats {
    display: flex;
    align-items: center;
    gap: 20px;
}

.service-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

/* ===================================
   SERVICE CATEGORY FILTER
   =================================== */

.service-category-filter {
    background: var(--kraft-white);
    padding: 30px 0;
    border-bottom: 1px solid rgba(16, 185, 129, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.filter-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--kraft-white);
    color: var(--gray-600);
    text-decoration: none;
    border: 2px solid rgba(16, 185, 129, 0.2);
    border-radius: 25px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.filter-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--kraft-gradient);
    transition: left 0.3s ease;
    z-index: -1;
}

.filter-tab:hover,
.filter-tab.active {
    color: var(--kraft-white);
    border-color: var(--kraft-green);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.filter-tab.active::before,
.filter-tab:hover::before {
    left: 0;
}

.filter-tab .count {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

/* ===================================
   SERVICE CATEGORY CONTENT
   =================================== */

.service-category-content {
    padding: 80px 0;
    background: var(--kraft-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

/* Enhanced Service Card for Categories */
.service-card {
    background: var(--kraft-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(16, 185, 129, 0.1);
    position: relative;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.2);
}

.service-card-inner {
    padding: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--kraft-gradient);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--kraft-white);
    font-size: 24px;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.service-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.service-category-tag {
    background: rgba(16, 185, 129, 0.1);
    color: var(--kraft-green);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.service-content {
    flex: 1;
    margin-bottom: 25px;
}

.service-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--kraft-black);
    margin: 0 0 15px;
    line-height: 1.3;
}

.service-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.service-title a:hover {
    color: var(--kraft-green);
}

.service-excerpt {
    color: var(--gray-600);
    line-height: 1.6;
    margin: 0 0 20px;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

.service-features li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 8px;
    color: var(--gray-700);
    font-size: 14px;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--kraft-green);
    font-weight: bold;
    font-size: 16px;
}

.service-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(16, 185, 129, 0.1);
}

.service-price {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.price-label {
    font-size: 12px;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--kraft-green);
}

.service-duration {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray-600);
    font-size: 14px;
}

.service-duration .dashicons {
    color: var(--kraft-green);
    font-size: 16px;
}

.service-footer {
    display: flex;
    gap: 15px;
    margin-top: auto;
}

.service-footer .btn-primary,
.service-footer .btn-secondary {
    flex: 1;
    text-align: center;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    cursor: pointer;
}

.service-footer .btn-primary {
    background: var(--kraft-gradient);
    color: var(--kraft-white);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.service-footer .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
    color: var(--kraft-white);
}

.service-footer .btn-secondary {
    background: transparent;
    color: var(--kraft-green);
    border: 2px solid var(--kraft-green);
}

.service-footer .btn-secondary:hover {
    background: var(--kraft-green);
    color: var(--kraft-white);
    transform: translateY(-2px);
}

/* ===================================
   NO SERVICES FOUND
   =================================== */

.no-services-found {
    text-align: center;
    padding: 80px 0;
}

.no-services-content {
    max-width: 500px;
    margin: 0 auto;
}

.no-services-content .dashicons {
    font-size: 80px;
    color: var(--gray-300);
    margin-bottom: 30px;
}

.no-services-content h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--kraft-black);
    margin: 0 0 15px;
}

.no-services-content p {
    color: var(--gray-600);
    line-height: 1.6;
    margin: 0 0 30px;
}

.no-services-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.no-services-actions .btn-primary,
.no-services-actions .btn-secondary {
    padding: 15px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.no-services-actions .btn-primary {
    background: var(--kraft-gradient);
    color: var(--kraft-white);
}

.no-services-actions .btn-secondary {
    background: transparent;
    color: var(--kraft-green);
    border: 2px solid var(--kraft-green);
}

/* ===================================
   RELATED CATEGORIES
   =================================== */

.related-categories {
    background: var(--gray-50);
    padding: 80px 0;
}

.related-categories .section-header {
    text-align: center;
    margin-bottom: 50px;
}

.related-categories .section-header h2 {
    font-size: 36px;
    font-weight: 800;
    color: var(--kraft-black);
    margin: 0 0 15px;
}

.related-categories .section-header p {
    color: var(--gray-600);
    font-size: 16px;
    margin: 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.category-card {
    background: var(--kraft-white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(16, 185, 129, 0.1);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(16, 185, 129, 0.15);
}

.category-card-inner {
    padding: 25px;
    text-align: center;
}

.category-name {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 15px;
}

.category-name a {
    color: var(--kraft-black);
    text-decoration: none;
    transition: color 0.3s ease;
}

.category-name a:hover {
    color: var(--kraft-green);
}

.category-desc {
    color: var(--gray-600);
    line-height: 1.6;
    margin: 0 0 20px;
    font-size: 14px;
}

.category-meta {
    margin-bottom: 20px;
}

.category-count {
    background: rgba(16, 185, 129, 0.1);
    color: var(--kraft-green);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
}

.category-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--kraft-green);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.category-link:hover {
    color: var(--kraft-green-dark);
    transform: translateX(5px);
}

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

/* Tablet (768px - 1023px) */
@media (max-width: 1023px) {
    .category-title {
        font-size: 40px;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 25px;
    }
    
    .filter-tabs {
        gap: 8px;
    }
    
    .filter-tab {
        padding: 10px 16px;
        font-size: 13px;
    }
}

/* Mobile (< 768px) */
@media (max-width: 767px) {
    .service-category-header {
        padding: 80px 0 60px;
    }
    
    .category-title {
        font-size: 32px;
    }
    
    .category-description {
        font-size: 16px;
    }
    
    .category-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-card-inner {
        padding: 25px 20px;
    }
    
    .service-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .service-footer {
        flex-direction: column;
    }
    
    .service-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .filter-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-tab {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .related-categories .section-header h2 {
        font-size: 28px;
    }
    
    .no-services-actions {
        flex-direction: column;
        align-items: center;
    }
}

/* ===================================
   ANIMATIONS
   =================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card {
    animation: fadeInUp 0.6s ease forwards;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }
.service-card:nth-child(5) { animation-delay: 0.5s; }
.service-card:nth-child(6) { animation-delay: 0.6s; }

