@charset "UTF-8";

/**
 * Section Header Title - Apple-Inspired with Theme Color
 * 
 * Purpose: Styled section titles with animated SVG arrow on hover/focus
 * Dependencies: variables.css
 * 
 * Features:
 * - Theme color integration
 * - Smooth SVG arrow animation
 * - Focus-visible support for accessibility
 * - Responsive typography
 * 
 * @version 1.0.0
 * @date 2026-01-27
 */

/* ============================================================
   SECTION HEADER TITLE
   ============================================================ */

.section-header {
    border-bottom: none;
}

/* Product section header – Apple theme glass effect */
.nx-product-section-header {
    gap: 1rem;
    flex-wrap: wrap;
}
.nx-product-section-header .nx-section-title {
    margin: 0;
    padding: 0;
    font-size: inherit;
    line-height: 1;
    font-weight: inherit;
}
.nx-product-section-header .nx-section-title-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--bs-primary, #0d6efd);
    text-decoration: none;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    padding: 0.5rem 1.25rem;
    position: relative;
    border-radius: 14px;
    /* Apple-style glassmorphism */
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: gap 0.25s ease, background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}
.nx-product-section-header .nx-section-title-link::after {
    content: '';
    position: absolute;
    left: 1.25rem;
    right: 1.25rem;
    bottom: 0.5rem;
    height: 2px;
    background: linear-gradient(90deg, var(--bs-primary, #0d6efd), transparent);
    border-radius: 1px;
    opacity: 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.nx-product-section-header .nx-section-title-link:hover,
.nx-product-section-header .nx-section-title-link:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.75);
    border-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 1);
    transform: translateY(-1px);
}
.nx-product-section-header .nx-section-title-link:hover::after,
.nx-product-section-header .nx-section-title-link:focus::after {
    opacity: 1;
    transform: scaleX(1);
}
/* Title text: theme color (bs-primary) with gradient accent */
.nx-product-section-header .nx-section-title-text {
    display: inline;
    color: var(--bs-primary, #0d6efd);
    font-weight: 800;
    letter-spacing: -0.025em;
    transition: color 0.25s ease, filter 0.25s ease;
    background: linear-gradient(135deg, var(--bs-primary, #0d6efd) 0%, var(--bs-primary-hover, #0b5ed7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.nx-product-section-header .nx-section-title-link:hover .nx-section-title-text,
.nx-product-section-header .nx-section-title-link:focus .nx-section-title-text {
    -webkit-text-fill-color: transparent;
    background: linear-gradient(135deg, var(--bs-primary-hover, #0b5ed7) 0%, var(--bs-primary, #0d6efd) 100%);
    -webkit-background-clip: text;
    background-clip: text;
}
.nx-product-section-header .nx-section-arrow {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.25s ease;
    opacity: 0.85;
}
.nx-product-section-header .nx-section-title-link:hover .nx-section-arrow,
.nx-product-section-header .nx-section-title-link:focus .nx-section-arrow {
    transform: translateX(4px);
    opacity: 1;
    color: var(--bs-primary-hover, #0b5ed7);
}
.nx-product-section-header .nx-section-title-link:focus-visible {
    outline: 2px solid var(--bs-primary, #0d6efd);
    outline-offset: 4px;
    border-radius: 14px;
}

/* See More button – light background */
.nx-section-see-more {
    background: color-mix(in srgb, var(--bs-primary, #0d6efd) 12%, transparent);
    color: var(--bs-primary, #0d6efd);
    border: 1px solid color-mix(in srgb, var(--bs-primary, #0d6efd) 30%, transparent);
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.nx-section-see-more:hover {
    background: color-mix(in srgb, var(--bs-primary, #0d6efd) 20%, transparent);
    color: var(--bs-primary-hover, #0b5ed7);
    border-color: color-mix(in srgb, var(--bs-primary, #0d6efd) 45%, transparent);
}
.nx-section-see-more:focus-visible {
    outline: 2px solid var(--bs-primary, #0d6efd);
    outline-offset: 2px;
}

@media (max-width: 767px) {
    .section-header {
        padding-left: 0;
    }
    .nx-product-section-header .nx-section-title-link {
        font-size: 1.5rem;
        padding: 0.45rem 1rem;
        border-radius: 12px;
    }
    .nx-product-section-header .nx-section-title-link::after {
        left: 1rem;
        right: 1rem;
        bottom: 0.45rem;
    }
    .nx-product-section-header .nx-section-arrow {
        width: 18px;
        height: 18px;
    }
}
@media (max-width: 575px) {
    .nx-product-section-header .nx-section-title-link {
        font-size: 1.35rem;
        letter-spacing: -0.01em;
        padding: 0.4rem 0.9rem;
        border-radius: 10px;
    }
    .nx-product-section-header .nx-section-title-link::after {
        left: 0.9rem;
        right: 0.9rem;
        bottom: 0.4rem;
    }
    .nx-product-section-header .nx-section-arrow {
        width: 16px;
        height: 16px;
    }
}

.section-header .h3 {
    margin: 0;
    padding: 0;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.section-header .h3 a {
    color: var(--bs-primary, #0d6efd);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 0.25rem 0;
}

.section-header .h3 a:hover,
.section-header .h3 a:focus {
    color: var(--bs-primary-hover, #0b5ed7);
    outline: none;
}

.section-header .h3 a:focus-visible {
    outline: 2px solid var(--bs-primary, #0d6efd);
    outline-offset: 4px;
    border-radius: 4px;
}

/* ============================================================
   SVG ARROW ICON
   ============================================================ */

.section-header .h3 a .nx-section-arrow {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(0);
    opacity: 0.7;
}

/* Arrow animation on hover/focus */
.section-header .h3 a:hover .nx-section-arrow,
.section-header .h3 a:focus .nx-section-arrow {
    transform: translateX(4px);
    opacity: 1;
}

/* ============================================================
   RESPONSIVE TYPOGRAPHY
   ============================================================ */

@media (max-width: 767px) {
    .section-header .h3 {
        font-size: 1.25rem;
    }
    
    .section-header .h3 a .nx-section-arrow {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 575px) {
    .section-header .h3 {
        font-size: 1.125rem;
    }
    
    .section-header .h3 a {
        gap: 0.375rem;
    }
    
    .section-header .h3 a .nx-section-arrow {
        width: 16px;
        height: 16px;
    }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
    .section-header .h3 a,
    .section-header .h3 a .nx-section-arrow {
        transition: none;
    }
    
    .section-header .h3 a:hover .nx-section-arrow,
    .section-header .h3 a:focus .nx-section-arrow {
        transform: translateX(2px);
    }
}
