/* ==========================================================================
   Repair Price Styling - Hamonic Shop
   ========================================================================== */

/* Banner Section */
.banner-section {
    position: relative;
    padding: 100px 0 60px;
    background: linear-gradient(rgba(15, 23, 42, 0.55), rgba(15, 23, 42, 0.75)), url('assets/hamonic_page.jpg') center/cover no-repeat;
    color: #ffffff;
    text-align: center;
    margin-top: 80px; /* Header offset */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 420px;
}

.banner-overlay {
    display: none;
}

.banner-container {
    position: relative;
    z-index: 2;
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    padding: 3rem 2rem;
    background: rgba(15, 23, 42, 0.75);
    border-radius: 20px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.banner-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #ffffff, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.banner-title i {
    background: none;
    -webkit-text-fill-color: #ff8c42;
    color: #ff8c42;
    margin-right: 12px;
}

.banner-subtitle {
    font-size: 1.1rem;
    color: #94a3b8;
    margin: 0 0 2rem 0;
    line-height: 1.6;
}

/* Integrated Search Console Styling */
.banner-search-container {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.search-box-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    padding: 4px 6px 4px 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15), inset 0 2px 4px rgba(15, 23, 42, 0.02);
}

.search-box-wrapper:hover {
    border-color: rgba(79, 209, 139, 0.5);
}

.search-box-wrapper.focused {
    border-color: #4fd18b;
    box-shadow: 0 0 0 4px rgba(79, 209, 139, 0.25), 0 15px 30px rgba(0, 0, 0, 0.2);
}

.search-icon {
    color: #94a3b8;
    font-size: 1.25rem;
    margin-right: 12px;
    transition: color 0.3s ease;
}

.search-box-wrapper.focused .search-icon {
    color: #4fd18b;
}

#searchInput {
    flex: 1;
    width: 100%;
    border: none;
    background: transparent;
    padding: 12px 10px;
    font-size: 1.1rem;
    font-weight: 500;
    color: #0f172a;
    outline: none;
}

#searchInput::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.search-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-right: 14px;
}

.clear-search-btn {
    background: rgba(148, 163, 184, 0.15);
    border: none;
    color: #475569;
    cursor: pointer;
    font-size: 0.9rem;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.clear-search-btn:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    transform: scale(1.1);
}

.kbd-badge {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
    color: #64748b;
    display: inline-block;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1;
    padding: 4px 8px;
    user-select: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.search-box-wrapper.focused .kbd-badge {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

/* Dynamic search stats & feedback */
.search-stats-row {
    margin-top: 0.75rem;
    min-height: 20px;
}

.search-feedback {
    font-size: 0.9rem;
    color: #cbd5e1;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.search-feedback .count-highlight {
    color: #4fd18b;
    font-weight: 700;
}

/* Popular Searches */
.popular-searches {
    margin-top: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.popular-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 6px;
}

.popular-label i {
    color: #ff8c42;
    font-size: 1rem;
}

.popular-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.popular-tag {
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.popular-tag:hover {
    background: rgba(79, 209, 139, 0.15);
    border-color: rgba(79, 209, 139, 0.5);
    color: #4fd18b;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(79, 209, 139, 0.15);
}

.popular-tag:active {
    transform: translateY(0);
}

/* Main Content Area */
.main-content-area {
    padding: 3rem 0;
    background: #f8fafc;
    min-height: 400px;
}

/* Loading & Empty States */
.loading-state, .empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 1rem;
    text-align: center;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f1f3f4;
    border-top: 4px solid #ff8c42;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1.5rem;
}

.empty-icon {
    font-size: 4rem;
    color: #ccc;
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.empty-state p {
    color: #666;
}

/* Repair Grid & Cards */
.repair-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 992px) {
    .repair-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.repair-card {
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid #edf2f7;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: fit-content;
}

.repair-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 140, 66, 0.1);
    border-color: rgba(255, 140, 66, 0.2);
}

.repair-card-header {
    padding: 1.25rem 1.5rem;
    background: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #edf2f7;
}

.repair-card-header:hover {
    background-color: #fafbfc;
}

.header-left {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.model-badge-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.model-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.model-name i {
    color: #ff8c42;
    font-size: 1.1rem;
}

.model-desc {
    font-size: 0.88rem;
    color: #718096;
    margin: 0;
    font-weight: 400;
}

/* Badges */
.pricing-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
}

.badge-available {
    background-color: rgba(46, 204, 113, 0.12);
    color: #2e7d32;
}

.badge-contact {
    background-color: rgba(255, 140, 66, 0.12);
    color: #e65100;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.view-detail-link {
    color: #4fd18b;
    background: transparent;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    border: 1px solid rgba(79, 209, 139, 0.2);
}

.view-detail-link:hover {
    color: white;
    background: #4fd18b;
    box-shadow: 0 4px 10px rgba(79, 209, 139, 0.2);
}

.toggle-expand-btn {
    background: #ff8c42;
    color: white;
    border: none;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.toggle-expand-btn:hover {
    background: #ffa726;
}

.toggle-icon {
    transition: transform 0.3s ease;
    font-size: 0.8rem;
}

.repair-card.expanded .toggle-icon {
    transform: rotate(180deg);
}

.repair-card.expanded .toggle-expand-btn {
    background: #4a5568;
}

/* Accordion body wrapper */
.repair-card-body-wrapper {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
}

.repair-card-body {
    padding: 1.5rem;
}

/* Contact box styling */
.contact-pricing-box {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px dashed #e2e8f0;
    text-align: center;
}

.contact-pricing-info {
    margin-bottom: 1rem;
}

.contact-title {
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 0.25rem 0;
    font-size: 0.95rem;
}

.contact-desc {
    color: #718096;
    font-size: 0.82rem;
    margin: 0;
    line-height: 1.4;
}

.contact-pricing-actions {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.line-btn {
    background-color: #06c755;
    color: white;
}

.line-btn:hover {
    background-color: #05b04b;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(6, 199, 85, 0.2);
}

.phone-btn {
    background-color: #4a5568;
    color: white;
}

.phone-btn:hover {
    background-color: #2d3748;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(74, 85, 104, 0.2);
}

.map-btn {
    background-color: #4fd18b;
    color: white;
}

.map-btn:hover {
    background-color: #3ab776;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(79, 209, 139, 0.2);
}


/* Load More Button Styling */
.load-more-btn {
    background: #ffffff;
    color: #ff8c42;
    border: 2px solid #ff8c42;
    padding: 0.75rem 2.5rem;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    outline: none;
}

.load-more-btn:hover {
    background: #ff8c42;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 140, 66, 0.2);
}

.load-more-btn:active {
    transform: translateY(0);
}

/* Pricing Table */
.repair-table {
    width: 100%;
    border-collapse: collapse;
}

.repair-table th, .repair-table td {
    padding: 1rem 1.25rem;
    text-align: left;
}

.repair-table th {
    background: #f8fafc;
    color: #4a5568;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e2e8f0;
}

.repair-table td {
    border-bottom: 1px solid #edf2f7;
    color: #2d3748;
    font-size: 0.95rem;
}

.repair-table tr:last-child td {
    border-bottom: none;
}

.component-cell {
    font-weight: 600;
}

.price-cell {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

.price-active {
    color: #2f855a; /* Green */
}

.price-empty {
    color: #a0aec0; /* Muted gray */
    font-style: italic;
    font-weight: 400;
}

/* Hover highlights row */
.repair-table tr:hover td {
    background: #fffaf0; /* Light orange tint */
}

/* Mobile responsive fixes */
@media (max-width: 768px) {
    .banner-title {
        font-size: 2.2rem;
    }
    .repair-card-header {
        padding: 1.25rem 1.5rem;
    }
    .repair-card-body {
        padding: 1.25rem;
    }
    .repair-table th, .repair-table td {
        padding: 0.75rem 1rem;
        font-size: 0.88rem;
    }
}

@media (max-width: 480px) {
    .banner-title {
        font-size: 1.8rem;
    }
    .banner-subtitle {
        font-size: 0.95rem;
    }
    .repair-table th, .repair-table td {
        padding: 0.6rem 0.75rem;
        font-size: 0.8rem;
    }
}

/* Tab Navigation Bar */
.repair-tab-bar {
    display: flex;
    background: white;
    border-radius: 12px;
    padding: 6px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    border: 1px solid #e2e8f0;
    margin-bottom: 2rem;
}

.repair-tab-bar .tab-btn {
    flex: 1;
    padding: 12px 20px;
    background: none;
    border: none;
    font-size: 0.95rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
    text-decoration: none;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.repair-tab-bar .tab-btn.active {
    background: #f0fdf4;
    color: #166534;
}

.repair-tab-bar .tab-btn:not(.active):hover {
    color: #4fd18b;
    background: #f8fafc;
}

