/**
 * Customer Care Page Styles
 * Mobile-first, modular approach
 */

/* ===== BASE STYLES (Mobile First) ===== */
.customer-care-directory {
    padding: 16px;
    max-width: 1200px;
    margin: 0 auto;
}

/* ===== HERO SECTION ===== */
.customer-care-hero {
    margin-bottom: 24px;
    text-align: center;
}

.directory-title {
    font-size: 28px;
    font-weight: 700;
    color: #121224;
    margin-bottom: 12px;
    line-height: 1.2;
}

.directory-tagline {
    font-size: 16px;
    color: #121224;
    margin-bottom: 24px;
    line-height: 1.5;
}

/* ===== ALPHABET FILTER ===== */
.alphabet-filter {
    margin-bottom: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
    padding: 0 8px;
}

.alphabet-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    padding-top: 2px;
    border-radius: 8px;
    background: #f8f9fa;
    color: #495057;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.2;
    text-align: center;
    transition: all 0.2s ease;
    border: 1px solid #e9ecef;
    touch-action: manipulation;
}

.alphabet-link:hover {
    background: #e9ecef;
    color: #495057;
    transform: translateY(-1px);
}

.alphabet-link.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.2);
}

.alphabet-link:active {
    transform: translateY(0);
}

/* ===== RESULTS SECTION ===== */
.results-section {
    min-height: 200px;
}

/* ===== CATEGORY GRID ===== */
.category-page-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 24px;
    width: 100%;
}

.category-page-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 8px 16px;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
    min-height: 60px;
    display: flex;
    align-items: center;
}

.category-page-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
    border-color: #007bff;
}

.category-page-card a {
    color: #007bff;
    font-weight: 600;
    text-decoration: none;
    font-size: 16px;
    line-height: 1.4;
    display: block;
    width: 100%;
    word-break: break-word;
}

.category-page-card a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* ===== NO RESULTS MESSAGE ===== */
.no-results-message {
    font-size: 16px;
    color: #dc3545;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    padding: 20px;
    margin: 24px 0;
    text-align: center;
    font-weight: 500;
}

/* ===== SEARCH BAR STYLES (if not using global search) ===== */
.customer-care-searchbar-wrap {
    max-width: 100%;
    margin: 0 auto 24px auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    padding: 0;
    position: relative;
    z-index: 100;
    display: flex;
    align-items: center;
    height: 48px;
    border: 1px solid #e9ecef;
}

.helpbix-google-style-search-form {
    width: 100%;
    display: flex;
    align-items: center;
    padding: 0 16px;
}

.helpbix-google-search-input {
    border: none;
    outline: none;
    font-size: 16px;
    background: transparent;
    padding: 12px 0;
    width: 100%;
    color: #495057;
}

.helpbix-google-search-input::placeholder {
    color: #6c757d;
    opacity: 1;
}

/* Global Search Bar Styles - Ensure they work */
.global-search-bar {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 28px;
    box-shadow: 0 2px 8px rgba(200, 100, 100, 0.08), 0 1.5px 4px rgba(0,0,0,0.06);
    padding: 0 16px;
    width: 100%;
    min-width: 220px;
    max-width: 600px;
    height: 48px;
    position: relative;
    margin: 0 auto 32px auto;
    z-index: 100;
}

.global-search-icon {
    display: flex;
    align-items: center;
    margin-right: 8px;
    color: #888;
}

.global-search-input {
    border: none;
    outline: none;
    font-size: 1rem;
    background: transparent;
    width: 100%;
    padding: 12px 0;
    color: #222;
}

.global-search-input::placeholder {
    color: #888;
    opacity: 1;
    font-size: 1rem;
}

/* ===== TABLET STYLES (768px+) ===== */
@media (min-width: 768px) {
    .customer-care-directory {
        padding: 24px;
    }
    
    .directory-title {
        font-size: 32px;
        margin-bottom: 16px;
    }
    
    .directory-tagline {
        font-size: 18px;
        margin-bottom: 32px;
    }
    
    .alphabet-filter {
        margin-bottom: 32px;
        gap: 6px;
    }
    
    .alphabet-link {
        width: 40px;
        height: 40px;
        font-size: 15px;
    }
    
    .category-page-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .category-page-card {
        padding: 8px 20px;
        min-height: 70px;
    }
    
    .category-page-card a {
        font-size: 17px;
    }
    
    .customer-care-searchbar-wrap {
        max-width: 600px;
        height: 56px;
        border-radius: 20px;
    }
    
    .helpbix-google-search-input {
        font-size: 17px;
        padding: 14px 0;
    }
}

/* ===== DESKTOP STYLES (1024px+) ===== */
@media (min-width: 1024px) {
    .customer-care-directory {
        padding: 32px;
    }
    
    .directory-title {
        font-size: 36px;
        margin-bottom: 20px;
    }
    
    .directory-tagline {
        font-size: 20px;
        margin-bottom: 40px;
    }
    
    .alphabet-filter {
        margin-bottom: 40px;
        gap: 8px;
    }
    
    .alphabet-link {
        width: 44px;
        height: 44px;
        font-size: 16px;
    }
    
    .category-page-list {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 20px;
        display: grid;
    }
    
    .category-page-card {
        padding: 8px 24px;
        min-height: 80px;
    }
    
    .category-page-card a {
        font-size: 18px;
    }
    
    .customer-care-searchbar-wrap {
        max-width: 700px;
        height: 64px;
        border-radius: 24px;
    }
    
    .helpbix-google-search-input {
        font-size: 18px;
        padding: 16px 0;
    }
}

/* ===== LARGE DESKTOP STYLES (1200px+) ===== */
@media (min-width: 1200px) {
    .category-page-list {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
    }
}

/* ===== ACCESSIBILITY IMPROVEMENTS ===== */
.alphabet-link:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

.category-page-card:focus-within {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* ===== HIGH CONTRAST MODE ===== */
@media (prefers-contrast: high) {
    .category-page-card {
        border: 2px solid #000;
    }
    
    .alphabet-link {
        border: 2px solid #000;
    }
    
    .alphabet-link.active {
        border: 2px solid #000;
    }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    .category-page-card,
    .alphabet-link {
        transition: none;
    }
    
    .category-page-card:hover {
        transform: none;
    }
    
    .alphabet-link:hover {
        transform: none;
    }
}

/* ===== DARK MODE SUPPORT ===== */
@media (prefers-color-scheme: dark) {
    .customer-care-directory {
        background: #1a1a1a;
        color: #ffffff;
    }
    
    .directory-title {
        color: #ffffff;
    }
    
    .directory-tagline {
        color: #121224 !important;
    }
    
    .category-page-card {
        background: #2d2d2d;
        border-color: #404040;
        color: #ffffff;
    }
    
    .category-page-card a {
        color: #4dabf7;
    }
    
    .category-page-card a:hover {
        color: #74c0fc;
    }
    
    .alphabet-link {
        background: #2d2d2d;
        color: #ffffff;
        border-color: #404040;
    }
    
    .alphabet-link:hover {
        background: #404040;
    }
    
    .alphabet-link.active {
        background: #0066cc;
        border-color: #0066cc;
    }
    
    .no-results-message {
        background: #2d2d2d;
        border-color: #404040;
        color: #ff6b6b;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .alphabet-filter {
        display: none;
    }
    
    .category-page-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .category-page-card {
        box-shadow: none;
        border: 1px solid #ccc;
        break-inside: avoid;
    }
} 