/* GST Services Styling - Responsive Design */

:root {
    --gst-accent-primary: #17a2b8;
    --gst-accent-secondary: #0f9d76;
    --gst-bg-primary: #202124;
    --gst-surface-secondary: #2d2d2d;
    --gst-text-primary: #e8eaed;
    --gst-text-muted: #9aa0a6;
    --gst-border: #3c4043;
    --gst-success: #34a853;
}

/* Light mode overrides */
body:not(.dark-theme) {
    --gst-accent-primary: #0b66d0;
    --gst-accent-secondary: #1f7fc1;
    --gst-bg-primary: #ffffff;
    --gst-surface-secondary: #f5f7fa;
    --gst-text-primary: #202124;
    --gst-text-muted: #5f6368;
    --gst-border: #dadce0;
    --gst-success: #34a853;
}

/* Main Container */
.gst-services-container {
    font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    padding: 24px;
    max-width: 980px;
    margin: 0 auto;
}

/* Header Section */
.gst-header {
    background: linear-gradient(135deg, var(--gst-accent-primary) 0%, var(--gst-accent-secondary) 100%);
    color: white;
    padding: 32px 24px;
    border-radius: 18px;
    margin-bottom: 26px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.gst-header::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 10%, rgba(255,255,255,0.15), transparent 35%),
                radial-gradient(circle at 80% 80%, rgba(255,255,255,0.1), transparent 40%);
    pointer-events: none;
}

.gst-header-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.gst-header-icon {
    font-size: 2.4rem;
}

.gst-header h2 {
    margin: 0;
    font-size: 1.9rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: white;
}

.gst-header-sub {
    margin: 4px 0 0;
    opacity: 0.95;
    font-size: 1rem;
    color: rgba(255,255,255,0.95);
}

.gst-header-chips {
    margin-top: 14px;
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.chip {
    background: rgba(255,255,255,0.22);
    padding: 7px 16px;
    border-radius: 18px;
    font-size: 0.85rem;
    color: white;
    border: 1px solid rgba(255,255,255,0.15);
}

/* Context Section */
.gst-context {
    background: var(--gst-surface-secondary);
    border: 1px solid var(--gst-border);
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 24px;
}

.gst-context-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.context-icon {
    font-size: 1.2rem;
}

.context-body {
    color: var(--gst-text-primary);
}

.context-body strong {
    color: var(--gst-accent-primary);
    font-weight: 600;
}

.context-sub {
    margin: 4px 0 0;
    color: var(--gst-text-muted);
    font-size: 0.92rem;
}

/* Services Grid */
.gst-services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
    margin-bottom: 24px;
}

@media (min-width: 900px) {
    .gst-services-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Category */
.gst-category {
    background: var(--gst-bg-primary);
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    border: 1px solid var(--gst-border);
}

.category-header {
    background: var(--gst-surface-secondary);
    padding: 16px 20px;
    border-bottom: 1px solid var(--gst-border);
}

.category-title {
    margin: 0;
    font-size: 1.12rem;
    font-weight: 600;
    color: var(--gst-accent-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.cat-icon {
    display: inline-block;
    font-size: 1.2rem;
}

.category-services {
    padding: 16px;
}

/* Service Card */
.service-card {
    background: var(--gst-surface-secondary);
    border: 1px solid var(--gst-border);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    transition: all 0.18s ease;
}

.service-card:hover {
    border-color: var(--gst-accent-primary);
    box-shadow: 0 6px 16px rgba(0,0,0,0.3);
    transform: translateY(-1.5px);
}

.service-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 10px;
}

.service-main {
    max-width: 72%;
    flex: 1;
}

.service-title {
    margin: 0 0 6px;
    color: var(--gst-text-primary);
    font-size: 1rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.txn-chip {
    background: var(--gst-bg-primary);
    color: var(--gst-accent-primary);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    margin-left: 8px;
    border: 1px solid var(--gst-accent-primary);
    font-weight: 500;
}

.note {
    margin: 8px 0 0;
    color: var(--gst-accent-primary);
    font-size: 0.86rem;
}

.service-actions {
    margin-top: 10px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.price-tag {
    background: linear-gradient(135deg, var(--gst-success) 0%, var(--gst-accent-secondary) 100%);
    color: white;
    padding: 10px 18px;
    border-radius: 10px;
    text-align: center;
    min-width: 128px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.price-text {
    font-size: 1.18rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    color: white;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.btn.sm {
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

.btn.add-cart {
    background: transparent;
    border: 1.5px solid var(--gst-accent-primary);
    color: var(--gst-accent-primary);
}

.btn.add-cart:hover {
    background: var(--gst-accent-primary);
    color: white;
    transform: translateY(-2px);
}

.btn.buy-now {
    background: var(--gst-accent-primary);
    color: white;
    border: none;
}

.btn.buy-now:hover {
    background: var(--gst-accent-secondary);
    transform: translateY(-2px);
}

.btn.call {
    background: var(--gst-surface-secondary);
    color: var(--gst-accent-primary);
    border: 1px solid var(--gst-border);
}

.btn.call:hover {
    background: var(--gst-accent-primary);
    color: white;
}

.btn.whatsapp {
    background: var(--gst-success);
    color: white;
    border: none;
}

.btn.whatsapp:hover {
    opacity: 0.92;
    transform: translateY(-2px);
}

/* CTA Section */
.gst-cta {
    background: linear-gradient(135deg, var(--gst-accent-primary) 0%, var(--gst-accent-secondary) 100%);
    color: white;
    padding: 28px;
    border-radius: 16px;
    margin-top: 24px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.gst-cta h3 {
    margin: 0 0 8px;
    font-size: 1.38rem;
    font-weight: 700;
    color: white;
}

.gst-cta p {
    margin: 0 0 18px;
    opacity: 0.95;
    color: rgba(255,255,255,0.95);
    font-size: 0.95rem;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

/* Info Box */
.gst-info {
    background: rgba(249, 171, 0, 0.1);
    border: 1px solid rgba(249, 171, 0, 0.3);
    padding: 20px;
    border-radius: 12px;
    margin-top: 20px;
}

.gst-info h4 {
    margin: 0 0 12px;
    color: #f9ab00;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.gst-info ul {
    margin: 0;
    padding-left: 20px;
    color: var(--gst-text-primary);
    line-height: 1.8;
}

.gst-info li {
    margin-bottom: 8px;
}

/* Related Services */
.gst-related {
    margin-top: 24px;
    padding: 20px;
    background: var(--gst-surface-secondary);
    border-radius: 12px;
    border: 1px solid var(--gst-border);
}

.gst-related h4 {
    margin: 0 0 14px;
    color: var(--gst-text-primary);
    font-weight: 600;
}

.related-chips {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.pill {
    background: var(--gst-bg-primary);
    border: 1px solid var(--gst-border);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    color: var(--gst-text-primary);
    transition: all 0.2s ease;
}

.pill:hover {
    border-color: var(--gst-accent-primary);
    color: var(--gst-accent-primary);
}

/* Floating Cart */
.gst-cart {
    position: fixed;
    right: 18px;
    bottom: 18px;
    background: var(--gst-accent-primary);
    color: white;
    padding: 12px 16px;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 999;
    animation: slideUp 0.3s ease;
}

.gst-cart .cart-summary {
    font-weight: 600;
    font-size: 0.9rem;
}

.gst-cart .btn.checkout {
    background: white;
    color: var(--gst-accent-primary);
    padding: 8px 14px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.85rem;
}

.gst-cart .btn.checkout:hover {
    opacity: 0.95;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .gst-services-container {
        padding: 16px;
    }

    .gst-header {
        padding: 24px 16px;
    }

    .gst-header h2 {
        font-size: 1.5rem;
    }

    .gst-header-chips {
        gap: 8px;
    }

    .chip {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .service-row {
        flex-direction: column;
    }

    .service-main {
        max-width: 100%;
    }

    .price-tag {
        width: 100%;
        margin-top: 10px;
    }

    .gst-services-grid {
        grid-template-columns: 1fr;
    }

    .service-actions {
        width: 100%;
    }

    .btn.sm {
        flex: 1;
        min-width: 120px;
    }
}

/* Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dark theme adjustments */
body.dark-theme .gst-info {
    background: rgba(249, 171, 0, 0.08);
    border-color: rgba(249, 171, 0, 0.25);
}

body.dark-theme .gst-info h4 {
    color: #ffa500;
}

/* ========== No Results / Error Message Styling (Dark Theme Compatible) ========== */
.no-results {
    background: linear-gradient(135deg, rgba(30, 30, 40, 0.95) 0%, rgba(20, 20, 30, 0.95) 100%);
    padding: 40px 24px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid rgba(139, 92, 246, 0.2);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    margin: 20px 0;
}

.no-results-content {
    max-width: 600px;
    margin: 0 auto;
}

.no-results-icon {
    font-size: 4rem;
    margin-bottom: 16px;
    display: block;
}

.no-results h3 {
    color: #F1F5F9;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.no-results p {
    color: #94A3B8;
    font-size: 1rem;
    margin-bottom: 24px;
    line-height: 1.6;
}

.no-results p strong {
    color: #A78BFA;
}

.suggestions {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: left;
}

.suggestions h4 {
    color: #A78BFA;
    font-size: 1rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.suggestions ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.suggestions li {
    color: #CBD5E1;
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
    font-size: 0.95rem;
    line-height: 1.5;
}

.suggestions li::before {
    content: '•';
    color: #8B5CF6;
    position: absolute;
    left: 0;
}

.suggestions li strong {
    color: #F1F5F9;
}

.example-searches {
    text-align: left;
}

.example-searches h4 {
    color: #A78BFA;
    font-size: 1rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.example-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.example-pill {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(168, 85, 247, 0.15) 100%);
    color: #E2E8F0;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid rgba(139, 92, 246, 0.3);
    cursor: pointer;
    transition: all 0.2s ease;
}

.example-pill:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.4) 0%, rgba(168, 85, 247, 0.3) 100%);
    border-color: rgba(139, 92, 246, 0.5);
    transform: translateY(-2px);
}

/* Performance Stats */
.search-stats {
    color: #64748B;
    font-size: 0.85rem;
    padding: 12px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Error State */
.error-message {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(220, 38, 38, 0.05) 100%);
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 24px;
    border-radius: 12px;
    text-align: center;
}

.error-message h3 {
    color: #FCA5A5;
    margin-bottom: 8px;
}

.error-message p {
    color: #FDA4AF;
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .no-results {
        padding: 24px 16px;
    }
    
    .no-results-icon {
        font-size: 3rem;
    }
    
    .no-results h3 {
        font-size: 1.25rem;
    }
    
    .suggestions {
        padding: 16px;
    }
    
    .example-pills {
        justify-content: center;
    }
}
