/* ============================================
   CATEGORY PAGE - Shared Styles
   Used by: ac-services, electrician, plumber,
   home-appliances, geyser, cleaning, carpenter,
   services.php
   ============================================ */

:root {
    /* Primary Colors */
    --primary-blue: #0066FF;
    --brand-primary: #0066FF;
    --brand-secondary: #6366f1;

    /* Background */
    --bg-color: #FFFFFF;

    /* Text Colors */
    --text-dark: #111827;
    --text-primary: #111827;
    --text-secondary: #6B7280;
    --text-grey: #6B7280;

    /* Input / Borders */
    --input-bg: #F3F4F6;
    --border-color: #E5E7EB;

    /* Dark Mode (overridden by body.dark-mode) */
    --card-dark: #1c1c1e;
    --border-dark: #2c2c2e;
    --bg-dark: #0f0f0f;
    --grey-dark: #9ca3af;
}

/* ---- Dark Mode Variable Overrides ---- */
body.dark-mode {
    --bg-color: #0f0f0f;
    --text-primary: #f9fafb;
    --text-dark: #f9fafb;
    --text-secondary: #9ca3af;
    --text-grey: #9ca3af;
    --input-bg: #1f1f1f;
    --border-color: #2c2c2e;
    --card-dark: #1c1c1e;
    --border-dark: #2c2c2e;
    background-color: #0f0f0f;
}


* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    margin: 0;
    padding-bottom: 90px;
}

/* ============================================
   HEADER
   ============================================ */
.app-header {
    padding: 16px 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background: var(--bg-color);
}

.header-left h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 4px;
}

.header-subtitle {
    font-size: 14px;
    color: var(--text-grey);
    margin: 0 0 12px;
}

.location-selector {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--primary-blue);
    font-weight: 500;
    cursor: pointer;
}

.notification-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    font-size: 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    cursor: pointer;
}

/* ============================================
   SEARCH ROW
   ============================================ */
.search-row {
    padding: 20px;
    display: flex;
    gap: 12px;
    align-items: center;
}

.search-wrapper {
    flex: 1;
    background: var(--input-bg);
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-wrapper i.fa-search {
    color: #9CA3AF;
    font-size: 18px;
}

.search-wrapper input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    font-size: 15px;
    color: var(--text-dark);
    font-family: 'Inter', sans-serif;
}

.voice-mic {
    color: #6B7280;
    cursor: pointer;
    font-size: 18px;
    transition: color 0.2s;
}

.voice-mic.recording {
    color: #ef4444;
    animation: pulse 1s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.filter-btn-square {
    width: 52px;
    height: 52px;
    background: var(--input-bg);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    color: var(--text-dark);
    font-size: 18px;
}

/* ============================================
   CATEGORY PILLS
   ============================================ */
.categories-row {
    padding: 0 20px;
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 16px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.categories-row::-webkit-scrollbar {
    display: none;
}

.cat-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 25px;
    background: #F3F4F6;
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}

.cat-pill.active {
    background: var(--primary-blue);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.25);
}

/* ============================================
   SUB-SERVICE CARDS
   ============================================ */
.sub-services-row {
    padding: 0 16px 20px;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.sub-services-row::-webkit-scrollbar {
    display: none;
}

.sub-card {
    flex: 1;
    min-width: 72px;
    max-width: 90px;
    height: 88px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid #e0e7ff;
    padding: 10px 6px;
    text-align: center;
}

.sub-card:hover,
.sub-card.active {
    border-color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 255, 0.2);
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
}

.sub-card-icon {
    font-size: 24px;
    margin-bottom: 6px;
    color: var(--primary-blue);
    line-height: 1;
}

.sub-card span {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
    display: block;
}

/* ============================================
   SERVICES LIST & CONTAINER
   ============================================ */
.category-page-container {
    max-width: 1200px;
    margin: 0 auto;
}

.services-list {
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ============================================
   SEARCH RESULTS
   ============================================ */
.search-results-container {
    padding: 0 20px 30px;
    display: none;
}

.search-results-container.active {
    display: block;
}

.search-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

/* ============================================
   STICKY BOOKING FOOTER
   ============================================ */
.sticky-booking-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #111827;
    padding: 16px 20px;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.35);
    z-index: 1000;
    display: none;
}

.booking-footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
}

.booking-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.booking-price {
    display: flex;
    flex-direction: column;
}

.booking-price .label {
    font-size: 12px;
    color: #9CA3AF;
}

.booking-price .value {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
}

.booking-qty-badge {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 700;
}

.book-now-btn {
    background: #ffffff;
    color: #111827;
    border: none;
    padding: 14px 24px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

/* ============================================
   TOAST MESSAGE
   ============================================ */
.toast-msg {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: #1C1C1E;
    color: #fff;
    padding: 12px 24px;
    border-radius: 25px;
    z-index: 9999;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    animation: toastFadeIn 0.3s ease;
}

@keyframes toastFadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
    }
}

/* ============================================
   VOICE MODAL
   ============================================ */
.voice-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.voice-modal.active {
    display: flex;
}

.voice-modal-content {
    background: white;
    border-radius: 20px;
    padding: 32px;
    text-align: center;
    max-width: 300px;
}

/* ============================================
   FAQ SECTION
   ============================================ */
.faq-section {
    padding: 40px 20px;
    background: #fff;
}

.faq-item {
    border-bottom: 1px solid #eee;
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 16px 0;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    color: #1f2937;
    cursor: pointer;
}

.faq-answer {
    display: none;
    padding-bottom: 16px;
    color: #6b7280;
    line-height: 1.5;
}

/* ============================================
   SEO SECTION
   ============================================ */
.seo-section {
    background: #f8f9fa;
    padding: 40px 20px;
    margin-top: 32px;
    border-top: 1px solid #e5e7eb;
}

.seo-links-section {
    padding: 20px;
    background: #fff;
    margin-top: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.seo-tag-pill {
    color: #4b5563;
    text-decoration: none;
    font-size: 13px;
    background: #f3f4f6;
    padding: 8px 14px;
    border-radius: 20px;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.seo-tag-pill:hover {
    background: #e0f2fe;
    color: #0066FF;
    border-color: #0066FF;
}

.seo-tag-pill strong {
    font-weight: 600;
    color: #1f2937;
}