/**
 * AC Service Page Styles
 * Button styling, brands section, and responsive design
 */

/* Base Button Styling - Shared by both Add Service and Added states */
.btn-add-catchy,
.btn-added {
    position: relative;
    overflow: hidden;
    font-weight: 600;
    letter-spacing: 0.3px;
    padding: 0.5rem 1.2rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    min-width: 145px;
    text-align: center;
    font-size: 0.95rem;
}

/* Add Service Button Specific Styling */
.btn-add-catchy {
    box-shadow: 0 4px 15px rgba(255, 199, 44, 0.3);
    border: 2px solid var(--gu-yellow);
}

.btn-add-catchy:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 199, 44, 0.5);
}

.btn-add-catchy:active {
    transform: translateY(0);
}

.btn-add-catchy::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-add-catchy:active::before {
    width: 300px;
    height: 300px;
}

/* Added State Specific Styling */
.btn-added {
    animation: successPulse 0.6s ease;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

@keyframes successPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Mobile Responsive Button Styling */
@media (max-width: 575.98px) {
    .btn-add-catchy,
    .btn-added {
        padding: 0.4rem 1rem !important;
        font-size: 0.85rem !important;
        border-radius: 20px !important;
        min-width: 130px !important;
        text-align: center;
    }
    
    .btn-confirm-booking {
        padding: 0.4rem 1rem;
        font-size: 0.85rem;
        border-radius: 20px;
        min-width: 130px;
        white-space: normal;
        line-height: 1.3;
    }
    
    .modal-footer.booking-modal-footer .btn {
        padding: 0.4rem 1rem;
        font-size: 0.85rem;
    }
    
    .modal-footer.booking-modal-footer {
        gap: 0.5rem;
    }
}

/* Tablet and Desktop Enhancements */
@media (min-width: 576px) and (max-width: 767.98px) {
    .btn-add-catchy,
    .btn-added {
        padding: 0.45rem 1.1rem !important;
        font-size: 0.9rem !important;
        min-width: 140px !important;
    }
}

@media (min-width: 768px) {
    .btn-add-catchy,
    .btn-added {
        min-width: 145px !important;
    }
}

/* Brands Section Styling */
.brands-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    text-align: center;
}

.brands-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gu-indigo);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.brands-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 1rem 0;
    object-fit: contain;
}

.brands-note {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 10px;
    font-size: 0.85rem;
    color: #6c757d;
    text-align: left;
}

.brands-note i {
    color: var(--gu-indigo);
    margin-top: 0.2rem;
    flex-shrink: 0;
}

/* Mobile Responsive for Brands Section */
@media (max-width: 575.98px) {
    .brands-section {
        padding: 1rem;
        margin-top: 1.5rem;
    }

    .brands-title {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }

    .brands-image {
        max-width: 100%;
        border-radius: 8px;
        margin: 0.75rem 0;
    }

    .brands-note {
        padding: 0.75rem;
        font-size: 0.75rem;
        flex-direction: column;
        gap: 0.25rem;
    }

    .brands-note i {
        margin-top: 0;
    }
    
    .warranty-icon {
        width: 50px;
    }
    
    .warranty-badge {
        padding: 0.2rem 0.35rem;
        font-size: 0.5rem !important;
        gap: 0.15rem;
        white-space: nowrap;
        border-radius: 10px;
    }
    
    .warranty-badge i {
        font-size: 0.6rem;
    }
    
    .warranty-badge-container {
        margin-bottom: 0.5rem !important;
    }
    
    /* Compact Service Section Design */
    .service-banner-card {
        margin-bottom: 0.5rem !important;
        padding: 0.75rem !important;
    }
    
    .hero-title {
        font-size: 1rem !important;
        margin-bottom: 0.2rem !important;
    }
    
    .service-card-row .text-muted.small {
        margin-bottom: 0.2rem !important;
        font-size: 0.75rem !important;
    }
    
    .service-card-row .mb-2 {
        margin-bottom: 0.2rem !important;
    }
    
    .service-card-row .mb-1 {
        margin-bottom: 0.2rem !important;
    }
    
    .price-tag {
        font-size: 1rem !important;
    }
    
    .service-card-row > div {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
    
    .service-card-row .mt-2 {
        margin-top: 0.3rem !important;
    }
    
    .link-details {
        font-size: 0.75rem !important;
    }
    
    .service-image {
        max-width: 100% !important;
        max-height: 80px !important;
        height: 80px !important;
        object-fit: cover !important;
        margin-bottom: 0.5rem !important;
    }
    
    .ac-img-container {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
    }
    
    /* Reduce button spacing */
    .btn-add-service {
        padding: 0.35rem 0.7rem !important;
        font-size: 0.8rem !important;
        width: 100% !important;
        margin-top: 0 !important;
    }
    
    .warranty-highlight-section {
        padding: 1rem 1.25rem;
        margin-bottom: 1.25rem;
    }
    
    .warranty-highlight-header i {
        font-size: 1.25rem;
    }
    
    .warranty-highlight-title {
        font-size: 0.95rem;
    }
    
    .warranty-highlight-desc {
        font-size: 0.85rem;
    }
}

/* Warranty Badge in Service Cards */
.warranty-badge-container {
    display: inline-block;
    margin-bottom: 0;
}

.warranty-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    padding: 0.3rem 0.6rem;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.25);
    transition: transform 0.2s ease;
}

.warranty-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.35);
}

.warranty-badge i {
    color: #ffd700;
    font-size: 0.85rem;
}

/* Desktop Service Card Content Spacing */
.service-card-title {
    margin-bottom: 0;
}

.service-card-subtitle {
    margin-bottom: 0;
}

.service-card-price {
    margin-bottom: 0;
}

.service-card-showmore {
    margin-bottom: 0;
}

/* Service Image Container - Desktop & Mobile */
.ac-img-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.service-image {
    max-width: 100%;
    margin-bottom: 0.5rem;
}

/* Warranty Icon Styling */
.warranty-image-container {
    display: inline-block;
}

.warranty-icon {
    width: 80px;
    height: auto;
    object-fit: contain;
    display: inline-block;
}

/* Warranty Highlight Section */
.warranty-highlight-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.warranty-highlight-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.warranty-highlight-header i {
    color: #ffd700;
    font-size: 1.5rem;
}

.warranty-highlight-title {
    color: #ffffff;
    font-weight: 700;
    font-size: 1.1rem;
    margin: 0;
}

.warranty-highlight-desc {
    color: #ffffff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    opacity: 0.95;
}

.warranty-highlight-desc i {
    color: #ffd700;
    font-size: 1rem;
    flex-shrink: 0;
}

/* Tablet Responsive */
@media (min-width: 576px) and (max-width: 767.98px) {
    .brands-title {
        font-size: 1.15rem;
    }

    .brands-image {
        max-width: 450px;
    }
}

/* Tablet Mode - Desktop Style Service Cards */
@media (min-width: 768px) and (max-width: 991.98px) {
    .service-banner-card {
        margin-bottom: 1rem !important;
        padding: 1rem !important;
    }
    
    .hero-title {
        font-size: 1.25rem !important;
        margin-bottom: 0.3rem !important;
    }
    
    .service-card-row .text-muted.small {
        font-size: 0.9rem !important;
        margin-bottom: 0.3rem !important;
    }
    
    .price-tag {
        font-size: 1.25rem !important;
    }
    
    .warranty-badge {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
        border-radius: 18px;
    }
    
    .warranty-badge i {
        font-size: 1rem;
    }
    
    .link-details {
        font-size: 0.9rem !important;
    }
    
    .btn-add-service {
        padding: 0.5rem 1rem !important;
        font-size: 0.95rem !important;
    }
    
    .service-image {
        margin-bottom: 0.75rem !important;
    }
}

/* Desktop Sidebar Styling */
.desktop-sidebar-sticky {
    position: sticky;
    top: 20px;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Sidebar Cart Section */
.sidebar-cart-section {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.sidebar-section-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, var(--gu-indigo) 0%, #5a4ba2 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
}

.sidebar-section-header i {
    font-size: 1.1rem;
}

.sidebar-cart-content {
    padding: 1rem 1.25rem;
    min-height: 120px;
    max-height: 300px;
    overflow-y: auto;
}

.sidebar-empty-cart {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    color: #6c757d;
    text-align: center;
}

.sidebar-empty-cart i {
    font-size: 2.5rem;
    color: #dee2e6;
    margin-bottom: 0.75rem;
}

.sidebar-empty-cart p {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 500;
}

.sidebar-cart-item {
    display: flex;
    justify-content: space-between;
    align-items: start;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.sidebar-cart-item:last-child {
    border-bottom: none;
}

.sidebar-cart-item-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.3;
    flex: 1;
    padding-right: 0.5rem;
}

.sidebar-cart-item-price {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--gu-indigo);
    white-space: nowrap;
}

.sidebar-cart-footer {
    padding: 1rem 1.25rem;
    background: #f8f9fa;
    border-top: 2px solid #e9ecef;
}

.sidebar-view-cart-link {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gu-indigo);
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.5rem;
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 8px;
}

.sidebar-view-cart-link:hover {
    background: #e9ecef;
    color: #4a3a82;
}

.sidebar-view-cart-link i {
    font-size: 0.95rem;
}

.sidebar-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-weight: 700;
}

.sidebar-total span:first-child {
    color: #495057;
    font-size: 0.95rem;
}

.sidebar-total-price {
    color: var(--gu-indigo);
    font-size: 1.25rem;
}

/* Sidebar Offers Section */
.sidebar-offers-section {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.sidebar-offer-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s ease;
}

.sidebar-offer-item:last-child {
    border-bottom: none;
}

.sidebar-offer-item:hover {
    background: #f8f9fa;
}

.offer-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.gold-gradient {
    background: linear-gradient(135deg, #f5af19 0%, #f12711 100%);
}

.green-gradient {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.sidebar-offer-item span {
    font-size: 0.875rem;
    font-weight: 500;
    color: #2c3e50;
    line-height: 1.3;
}

/* Sidebar Why Section */
.sidebar-why-section {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.sidebar-why-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid #f0f0f0;
}

.sidebar-why-item:last-child {
    border-bottom: none;
}

.sidebar-why-item i {
    color: var(--gu-indigo);
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.sidebar-why-item span {
    font-size: 0.875rem;
    font-weight: 500;
    color: #2c3e50;
    line-height: 1.3;
}

/* Mobile - Hide Desktop Sidebar */
@media (max-width: 991.98px) {
    .desktop-sidebar-sticky {
        display: none;
    }
}
