@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 .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);
    }
}
