/* ============================================================
   GEARCHOICE DASHBOARD - CarWale Style
   New CSS File - Does not affect other pages
============================================================ */

/* ==================== HERO SEARCH SECTION ==================== */
.gc_dashboard_hero {
    background: url('https://gearchoice.in/uploads/2025/12/young-family-with-kids-travelling-by-car-stopped-field.webp') center/cover no-repeat;
    padding: 0;
    margin-bottom: 30px;
    position: relative;
    height: 60vh;
    max-height: 600px;
    display: flex;
    align-items: flex-end;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: visible;
}

.gc_dashboard_hero_inner {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 0 20px 40px;
    position: relative;
    z-index: 2;
    overflow: visible;
}

.gc_hero_search_card {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.gc_hero_top_row {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.gc_hero_title {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    margin: 0;
}


.gc_hero_tabs_row {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.gc_hero_tabs {
    display: flex;
    background: #f3f4f6;
    border-radius: 8px;
    padding: 4px;
    gap: 4px;
}

.gc_hero_tab {
    padding: 8px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    transition: all 0.2s;
}

.gc_hero_tab.active {
    background: #ffffff;
    color: #1e40af;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.gc_hero_input_wrap {
    flex: 1;
    position: relative;
}

.gc_hero_input_icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #9ca3af;
}

.gc_hero_input_wrap input {
    width: 100%;
    padding: 12px 16px 12px 48px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
    background-color: #ffffff;
    color: #000000;
}

.gc_hero_input_wrap input::placeholder {
    color: #6b7280;
}

.gc_hero_input_wrap input:focus {
    border-color: #3b82f6;
    background-color: #ffffff;
    color: #000000;
}

.gc_hero_filters_row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.gc_filter_btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #374151;
    font-weight: 500;
    transition: all 0.2s;
}

.gc_filter_btn:hover {
    background: #f9fafb;
    border-color: #3b82f6;
}

.gc_filter_btn.primary {
    background: #1e40af;
    color: #ffffff;
    border-color: #1e40af;
}

.gc_filter_btn.primary:hover {
    background: #1e3a8a;
}

/* ==================== FILTER DROPDOWNS ==================== */
.gc_filter_dropdown_wrap {
    position: relative;
}

.gc_filter_dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 200px;
    z-index: 9999;
    display: none;
    padding: 8px 0;
    max-height: 300px;
    overflow-y: auto;
}

.gc_filter_dropdown.active {
    display: block;
}

.gc_filter_dropdown a {
    display: block;
    padding: 10px 16px;
    color: #374151;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.2s;
}

.gc_filter_dropdown a:hover {
    background-color: #f3f4f6;
    color: #1e40af;
}

.gc_all_filters_dropdown {
    min-width: 400px;
    padding: 16px;
}

.gc_filter_section {
    margin-bottom: 16px;
}

.gc_filter_section:last-child {
    margin-bottom: 0;
}

.gc_filter_section strong {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gc_filter_section a {
    display: block;
    padding: 8px 12px;
    margin-bottom: 4px;
    border-radius: 4px;
}

/* ==================== SEARCH AUTOCOMPLETE ==================== */
.gc_hero_input_wrap {
    position: relative;
}

.gc_search_results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 10000;
    display: none;
    max-height: 400px;
    overflow-y: auto;
}

.gc_search_results.active {
    display: block;
}

.gc_search_result_item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid #f3f4f6;
    transition: background-color 0.2s;
}

.gc_search_result_item:last-child {
    border-bottom: none;
}

.gc_search_result_item:hover {
    background-color: #f9fafb;
}

.gc_search_result_img {
    width: 60px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.gc_search_result_content {
    flex: 1;
    min-width: 0;
}

.gc_search_result_name {
    font-size: 14px;
    font-weight: 500;
    color: #111827;
    margin-bottom: 2px;
}

.gc_search_result_variant {
    font-size: 12px;
    color: #6b7280;
}

.gc_search_no_results {
    padding: 20px;
    text-align: center;
    color: #6b7280;
    font-size: 14px;
}

/* ==================== TRENDING CARS SECTION ==================== */
.gc_section {
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 0 20px;
}

.gc_section_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.gc_section_title {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.gc_section_link {
    font-size: 14px;
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

.gc_section_link:hover {
    text-decoration: underline;
}

.gc_trending_cars {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: thin;
}

.gc_trending_cars::-webkit-scrollbar {
    height: 6px;
}

.gc_trending_cars::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 3px;
}

.gc_trending_cars::-webkit-scrollbar-thumb {
    background: #9ca3af;
    border-radius: 3px;
}

.gc_trending_cars::-webkit-scrollbar-thumb:hover {
    background: #6b7280;
}

.gc_car_card {
    min-width: 180px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.gc_car_card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.gc_car_card_img_wrap {
    position: relative;
    width: 100%;
    height: 120px;
    overflow: hidden;
    background: #f3f4f6;
}

.gc_car_card_img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gc_upcoming_badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #f97316;
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.gc_car_card_content {
    padding: 12px;
}

.gc_car_card_title {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
}

.gc_car_card_price {
    font-size: 13px;
    color: #6b7280;
}

/* ==================== BUDGET TABS SECTION ==================== */
.gc_budget_tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e5e7eb;
}

.gc_budget_tab {
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    margin-bottom: -2px;
    transition: all 0.2s;
}

.gc_budget_tab.active {
    color: #1e40af;
    border-bottom-color: #1e40af;
}

.budget-content {
    display: none;
    opacity: 0;
    transform: translate3d(0, 10px, 0);
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
    backface-visibility: hidden;
    perspective: 1000px;
}

.budget-content.active {
    display: block;
    opacity: 1;
    transform: translate3d(0, 0, 0);
    animation: fadeInUp 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Core Web Vitals Optimized Animation - Using transform3d for GPU acceleration */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 10px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.gc_budget_subtabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.gc_budget_subtab {
    padding: 8px 16px;
    background: #f3f4f6;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    color: #374151;
    transition: all 0.2s;
}

.gc_budget_subtab.active {
    background: #1e40af;
    color: #ffffff;
}

.gc_cars_grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

/* ==================== BRANDS SECTION ==================== */
.gc_brands_grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 16px;
}

.gc_brand_card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
}

.gc_brand_card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.gc_brand_logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 8px;
}

.gc_brand_name {
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    text-align: center;
}

/* ==================== USED CARS BY CITY ==================== */
.gc_cities_grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.gc_city_card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.gc_city_card_img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.gc_city_card_overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    padding: 16px;
    color: #ffffff;
}

.gc_city_name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.gc_city_stats {
    font-size: 13px;
    opacity: 0.9;
}

/* ==================== LATEST UPDATES SECTION ==================== */
.gc_updates_tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e5e7eb;
}

.gc_updates_tab {
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    margin-bottom: -2px;
    transition: all 0.2s;
}

.gc_updates_tab.active {
    color: #1e40af;
    border-bottom-color: #1e40af;
}

.gc_news_grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.gc_news_card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.3s;
}

.gc_news_card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.gc_news_img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.gc_news_content {
    padding: 16px;
}

.gc_news_title {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 8px;
    line-height: 1.4;
}

.gc_news_meta {
    font-size: 12px;
    color: #6b7280;
}

/* ==================== COMPARE CARS SECTION ==================== */
.gc_compare_grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.gc_compare_card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.3s;
}

.gc_compare_card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.gc_compare_cars {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.gc_compare_car {
    flex: 1;
    text-align: center;
}

.gc_compare_car_img {
    width: 80px;
    height: 60px;
    object-fit: contain;
    margin: 0 auto 8px;
}

.gc_compare_car_name {
    font-size: 12px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
}

.gc_compare_car_price {
    font-size: 11px;
    color: #6b7280;
}

.gc_compare_vs {
    font-size: 14px;
    font-weight: 600;
    color: #9ca3af;
}

.gc_compare_btn {
    width: 100%;
    padding: 10px;
    background: #1e40af;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.gc_compare_btn:hover {
    background: #1e3a8a;
}

/* ==================== LATEST BLOG ARTICLES ==================== */
.gc_blog_articles_grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.gc_blog_article_card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    display: block;
    height: 100%;
}

.gc_blog_article_card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.gc_blog_article_img_wrap {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #f3f4f6;
}

.gc_blog_article_img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gc_blog_article_card:hover .gc_blog_article_img {
    transform: scale(1.05);
}

.gc_blog_article_content {
    padding: 16px;
}

.gc_blog_article_title {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 8px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gc_blog_article_date {
    font-size: 13px;
    color: #6b7280;
    margin-top: 8px;
}

/* ==================== MOBILE RESPONSIVE ==================== */
@media (max-width: 768px) {
    .gc_dashboard_hero {
        height: 50vh;
        max-height: 500px;
        padding: 0;
    }
    
    .gc_dashboard_hero_inner {
        padding: 0 12px 30px;
    }

    .gc_hero_title {
        font-size: 20px;
    }

    .gc_hero_top_row {
        justify-content: center;
    }

    .gc_hero_tabs_row {
        flex-direction: column;
        gap: 12px;
    }

    .gc_hero_input_wrap {
        width: 100%;
    }
    
    .gc_blog_articles_grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 16px !important;
        margin-top: 20px !important;
        width: 100% !important;
    }
    
    .gc_blog_article_card {
        width: 100% !important;
        max-width: 100% !important;
        display: block !important;
    }
    
    .gc_blog_article_img_wrap {
        height: 180px !important;
        width: 100% !important;
        display: block !important;
    }
    
    .gc_blog_article_img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        display: block !important;
    }
    
    .gc_blog_article_content {
        padding: 16px !important;
        display: block !important;
    }
    
    .gc_blog_article_title {
        font-size: 15px !important;
        line-height: 1.4 !important;
        display: block !important;
    }
    
    .gc_blog_article_date {
        font-size: 12px !important;
        display: block !important;
    }

    .gc_hero_filters_row {
        gap: 6px;
        flex-wrap: wrap;
    }

    .gc_filter_btn {
        font-size: 12px;
        padding: 8px 12px;
        flex: 1 1 calc(50% - 3px);
        min-width: calc(50% - 3px);
    }

    .gc_filter_dropdown {
        left: 0;
        right: 0;
        min-width: auto;
        width: 100%;
    }

    .gc_all_filters_dropdown {
        min-width: auto;
        width: 100%;
    }

    .gc_search_results {
        left: 0;
        right: 0;
    }

    .gc_section {
        padding: 0 16px;
    }

    .gc_section_title {
        font-size: 20px;
    }

    .gc_cars_grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
    }

    .gc_brands_grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 12px;
    }

    .gc_news_grid {
        grid-template-columns: 1fr;
    }

    .gc_compare_grid {
        grid-template-columns: 1fr;
    }

    .gc_trending_cars {
        gap: 12px;
    }

    .gc_car_card {
        min-width: 160px;
    }

    .gc_budget_tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .gc_budget_subtabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .gc_updates_tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }
}

