/**
 * HyzenPro Tool Slider Widget - Dedicated Styles
 * 
 * Horizontal scrolling tool cards matching reference design.
 * White cards with large rounded icons.
 * Full-width layout.
 */

/* ========================================
   TOOL SLIDER SECTION - Full Width
   ======================================== */

.hyzen-slider-section {
    padding: 2rem 0;
    background: #f8f8f8;
    overflow: visible;
}

@media (min-width: 768px) {
    .hyzen-slider-section {
        padding: 3rem 0;
    }
}

.hyzen-slider-section .hyzen-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .hyzen-slider-section .hyzen-container {
        padding: 0 2rem;
    }
}

@media (min-width: 1200px) {
    .hyzen-slider-section .hyzen-container {
        max-width: 1400px;
        padding: 0 3rem;
    }
}

/* Slider Header */
.hyzen-slider-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .hyzen-slider-header {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
        margin-bottom: 2rem;
    }
}

.hyzen-slider-header>div:first-child {
    flex: 1;
}

/* Trending Badge */
.hyzen-slider-header .hyzen-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.875rem;
    background: #171717;
    color: #ffffff;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.hyzen-slider-header .hyzen-hero-badge svg {
    width: 14px;
    height: 14px;
    color: #f59e0b;
}

.hyzen-slider-header h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #000000;
    margin: 0 0 0.375rem 0;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .hyzen-slider-header h2 {
        font-size: 2rem;
    }
}

.hyzen-slider-header p {
    font-size: 0.9375rem;
    color: #525252;
    margin: 0;
}

/* Navigation Buttons - In Header */
.hyzen-slider-nav {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.hyzen-slider-btn {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #171717;
    box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.08);
}

.hyzen-slider-btn:hover:not(:disabled) {
    background: #f5f5f5;
    border-color: #d4d4d4;
}

.hyzen-slider-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.hyzen-slider-btn svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* Slider Container */
.hyzen-slider-container {
    position: relative;
}

/* Slider Track */
.hyzen-slider-track {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 0.5rem 0 1.5rem 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

@media (min-width: 768px) {
    .hyzen-slider-track {
        gap: 1.25rem;
    }
}

.hyzen-slider-track::-webkit-scrollbar {
    display: none;
}

/* ========================================
   SLIDER CARDS - WHITE Design
   ======================================== */

.hyzen-slider-card {
    flex: 0 0 150px;
    scroll-snap-align: start;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 1rem;
    padding: 1.25rem 1rem;
    text-align: center;
    text-decoration: none;
    color: #171717;
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px -4px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

@media (min-width: 480px) {
    .hyzen-slider-card {
        flex: 0 0 160px;
        padding: 1.5rem 1rem;
    }
}

@media (min-width: 768px) {
    .hyzen-slider-card {
        flex: 0 0 170px;
        padding: 1.5rem 1.25rem;
        border-radius: 1.25rem;
    }
}

.hyzen-slider-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.15);
    border-color: #d4d4d4;
}

/* Tool Icon - Large Rounded Square */
.hyzen-slider-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    overflow: hidden;
}

@media (min-width: 768px) {
    .hyzen-slider-icon {
        width: 72px;
        height: 72px;
        border-radius: 1.25rem;
    }
}

.hyzen-slider-card:hover .hyzen-slider-icon {
    transform: scale(1.05);
}

.hyzen-slider-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

/* Gradient backgrounds for icons */
.hyzen-gradient-1 {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

.hyzen-gradient-2 {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.hyzen-gradient-3 {
    background: linear-gradient(135deg, #171717 0%, #404040 100%);
}

.hyzen-gradient-4 {
    background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
}

.hyzen-gradient-5 {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.hyzen-gradient-6 {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
}

/* Tool Name */
.hyzen-slider-name {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.9375rem;
    margin-bottom: 0.5rem;
    color: #171717;
}

/* Rating */
.hyzen-slider-rating {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #525252;
    margin-bottom: 0.75rem;
}

.hyzen-slider-rating svg {
    width: 0.875rem;
    height: 0.875rem;
    fill: #f59e0b;
    color: #f59e0b;
}

/* Explore Button */
.hyzen-slider-explore {
    width: 100%;
    padding: 0.625rem 1rem;
    background: #f5f5f5;
    color: #171717;
    border: 1px solid #e5e5e5;
    border-radius: 0.625rem;
    font-size: 0.8125rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    transition: all 0.3s ease;
}

.hyzen-slider-card:hover .hyzen-slider-explore {
    background: #171717;
    color: #ffffff;
    border-color: #171717;
}

.hyzen-slider-explore svg {
    width: 14px;
    height: 14px;
    opacity: 0;
    transform: translateX(-4px);
    transition: all 0.3s ease;
}

.hyzen-slider-card:hover .hyzen-slider-explore svg {
    opacity: 1;
    transform: translateX(0);
}

/* Dots Navigation */
.hyzen-slider-dots {
    display: flex;
    gap: 1.25rem;
    /* Increased spacing between dots */
    justify-content: center;
    margin-top: 1rem;
}

.hyzen-slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d4d4d4;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    position: relative;
    /* Needed for pseudo-element hit-area */
}

/* Hidden hit-area to meet 44px touch target requirement */
.hyzen-slider-dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 44px;
    height: 44px;
    transform: translate(-50%, -50%);
}

.hyzen-slider-dot:hover {
    background: #a3a3a3;
}

.hyzen-slider-dot.active {
    background: #171717;
    width: 24px;
    border-radius: 5px;
}