/* AI Combo Widget - Frontend Styles */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

.ai-combo-container {
    --ai-primary: #000000;
    --ai-bg: #ffffff;
    --ai-border: #e5e7eb;
    --ai-text: #111827;
    --ai-text-muted: #6b7280;
    --ai-success: #10b981;
    
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    max-width: 100%;
    margin: 0 auto;
}

.ai-combo-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--ai-bg);
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

/* ===================== LEFT SIDE: Profile ===================== */
.ai-combo-left {
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--ai-border);
}

.ai-combo-profile-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 24px 28px;
    background: var(--ai-primary);
    color: white;
}

.ai-combo-avatar {
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.15);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ai-combo-avatar svg {
    width: 24px;
    height: 24px;
}

.ai-combo-profile-title {
    flex: 1;
    min-width: 0;
}

.ai-combo-profile-title h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #fff !important;
}

.ai-combo-profile-title span {
    font-size: 13px;
    opacity: 0.7;
}

.ai-combo-live {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    flex-shrink: 0;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

/* Toggle */
.ai-combo-toggle {
    display: flex;
    padding: 16px 20px;
    gap: 8px;
    background: #f9fafb;
    border-bottom: 1px solid var(--ai-border);
}

.toggle-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ai-text-muted);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.toggle-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.toggle-btn:hover {
    color: var(--ai-text);
}

.toggle-btn.active {
    background: var(--ai-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Content Area */
.ai-combo-content {
    flex: 1;
    padding: 28px;
    position: relative;
    overflow: hidden;
}

.profile-view {
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    position: absolute;
    top: 28px;
    left: 28px;
    right: 28px;
}

.profile-view.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
    position: relative;
    top: 0;
    left: 0;
    right: 0;
}

#combo-json {
    transform: translateX(20px);
}

#combo-json.active {
    transform: translateX(0);
}

/* Profile Content */
.profile-business {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--ai-border);
}

.profile-logo {
    width: 52px;
    height: 52px;
    background: var(--ai-primary);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
}

.profile-business-info {
    min-width: 0;
    flex: 1;
}

.profile-business h3 {
    margin: 0;
    font-size: 26px;
    font-weight: 700;
    color: var(--ai-text);
}

.profile-type {
    display: inline-block;
    font-size: 13px;
    color: var(--ai-text-muted);
    background: #f3f4f6;
    padding: 4px 12px;
    border-radius: 6px;
    margin-top: 4px;
    border: 1px solid var(--ai-border);
}

.profile-desc {
    font-size: 15px;
    color: var(--ai-text);
    line-height: 1.6;
    margin: 0 0 24px 0;
}

.profile-section {
    margin-bottom: 24px;
}

.profile-section:last-child {
    margin-bottom: 0;
}

.profile-section h5 {
    font-size: 20px;
    font-weight: 700;
    color: var(--ai-text);
    margin: 0 0 14px 0;
}

.profile-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: var(--ai-text);
    margin-bottom: 10px;
    word-break: break-word;
}

.profile-item:last-child {
    margin-bottom: 0;
}

.profile-item svg {
    width: 18px;
    height: 18px;
    color: var(--ai-text-muted);
    flex-shrink: 0;
    margin-top: 2px;
}

.profile-hours {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 10px;
}

.profile-hours:last-child {
    margin-bottom: 0;
}

.profile-hours span:first-child {
    font-size: 14px;
    color: var(--ai-text);
}

.hours-value {
    color: var(--ai-success);
    font-weight: 600;
    font-size: 14px;
}

/* Profile Disclaimer */
.profile-disclaimer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
    padding: 14px;
    background: #f9fafb;
    border-radius: 12px;
    font-size: 13px;
    color: var(--ai-text-muted);
}

.profile-disclaimer svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* JSON View */
.json-container {
    background: #1e1e1e;
    border-radius: 12px;
    overflow: hidden;
}

.json-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #2d2d2d;
    font-size: 12px;
    font-family: monospace;
    color: #9ca3af;
}

.json-badge {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 4px 10px;
    background: #3b82f6;
    color: white;
    border-radius: 6px;
}

.json-code {
    margin: 0;
    padding: 16px;
    font-size: 12px;
    font-family: 'Monaco', 'Menlo', monospace;
    color: #9cdcfe;
    line-height: 1.6;
    overflow-x: auto;
}

.json-disclaimer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    padding: 14px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 12px;
    font-size: 13px;
    color: #3b82f6;
}

.json-disclaimer svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* ===================== RIGHT SIDE: Pricing ===================== */
.ai-combo-right {
    display: flex;
    flex-direction: column;
}

.ai-combo-pricing-top {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 24px 28px;
    background: var(--ai-primary);
    color: white;
}

.ai-combo-pricing-icon {
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.15);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ai-combo-pricing-icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.ai-combo-pricing-title {
    flex: 1;
    min-width: 0;
}

.ai-combo-pricing-title h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #fff !important;
}

.ai-combo-pricing-title span {
    font-size: 13px;
    opacity: 0.7;
    color: #fff;
}

.pricing-badge {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 14px;
    background: var(--ai-success);
    color: white;
    border-radius: 8px;
    flex-shrink: 0;
}

.ai-combo-pricing-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 36px 32px;
    background: #fafafa;
}

.ai-combo-pricing-header {
    text-align: center;
    margin-bottom: 32px;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
    margin-bottom: 8px;
}

.price-currency {
    font-size: 28px;
    font-weight: 600;
    color: var(--ai-text);
}

.price-amount {
    font-size: 72px;
    font-weight: 800;
    color: var(--ai-text);
    line-height: 1;
    letter-spacing: -3px;
}

.price-period {
    font-size: 20px;
    color: var(--ai-text-muted);
    font-weight: 500;
}

.pricing-tagline {
    margin: 0;
    font-size: 15px;
    color: var(--ai-text-muted);
}

/* Features */
.ai-combo-features {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 32px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.feature-item svg {
    width: 22px;
    height: 22px;
    color: var(--ai-success);
    flex-shrink: 0;
}

.feature-item span {
    font-size: 16px;
    font-weight: 500;
    color: var(--ai-text);
}

/* CTA */
.ai-combo-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px 32px;
    background: var(--ai-primary);
    color: #fff !important;
    font-size: 17px;
    font-weight: 600;
    text-decoration: none !important;
    border-radius: 14px;
    transition: all 0.2s ease;
}

.ai-combo-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
    color: #fff !important;
}

.ai-combo-cta svg {
    width: 20px;
    height: 20px;
    transition: transform 0.2s ease;
}

.ai-combo-cta:hover svg {
    transform: translateX(4px);
}

/* ===================== Responsive - Tablet ===================== */
@media (max-width: 900px) {
    .ai-combo-card {
        grid-template-columns: 1fr;
    }
    
    .ai-combo-left {
        border-right: none;
        border-bottom: 1px solid var(--ai-border);
    }
}

/* ===================== Responsive - Mobile ===================== */
@media (max-width: 600px) {
    .ai-combo-card {
        border-radius: 20px;
    }
    
    .ai-combo-profile-header,
    .ai-combo-pricing-top {
        padding: 18px 20px;
        gap: 12px;
    }
    
    .ai-combo-avatar,
    .ai-combo-pricing-icon {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }
    
    .ai-combo-avatar svg,
    .ai-combo-pricing-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .ai-combo-profile-title h4,
    .ai-combo-pricing-title h4 {
        font-size: 15px;
    }
    
    .ai-combo-profile-title span,
    .ai-combo-pricing-title span {
        font-size: 11px;
    }
    
    .ai-combo-live {
        font-size: 11px;
    }
    
    .pricing-badge {
        font-size: 10px;
        padding: 4px 10px;
    }
    
    /* Toggle buttons */
    .ai-combo-toggle {
        padding: 12px 16px;
        gap: 6px;
    }
    
    .toggle-btn {
        padding: 10px 12px;
        font-size: 12px;
        gap: 6px;
        border-radius: 10px;
    }
    
    .toggle-btn svg {
        width: 14px;
        height: 14px;
    }
    
    /* Content area */
    .ai-combo-content {
        padding: 20px;
    }
    
    .profile-view {
        top: 20px;
        left: 20px;
        right: 20px;
    }
    
    /* Profile content */
    .profile-business {
        gap: 12px;
        margin-bottom: 16px;
        padding-bottom: 16px;
    }
    
    .profile-logo {
        width: 44px;
        height: 44px;
        font-size: 14px;
        border-radius: 10px;
    }
    
    .profile-business h3 {
        font-size: 20px;
    }
    
    .profile-type {
        font-size: 11px;
        padding: 3px 10px;
    }
    
    .profile-desc {
        font-size: 13px;
        margin-bottom: 20px;
    }
    
    .profile-section {
        margin-bottom: 20px;
    }
    
    .profile-section h5 {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .profile-item {
        font-size: 13px;
        gap: 10px;
    }
    
    .profile-item svg {
        width: 16px;
        height: 16px;
    }
    
    .profile-hours span:first-child,
    .hours-value {
        font-size: 13px;
    }
    
    .profile-disclaimer {
        padding: 12px;
        font-size: 11px;
        margin-top: 20px;
    }
    
    .profile-disclaimer svg {
        width: 14px;
        height: 14px;
    }
    
    /* Pricing body */
    .ai-combo-pricing-body {
        padding: 24px 20px;
    }
    
    .ai-combo-pricing-header {
        margin-bottom: 24px;
    }
    
    .price-currency {
        font-size: 20px;
    }
    
    .price-amount {
        font-size: 48px;
        letter-spacing: -2px;
    }
    
    .price-period {
        font-size: 16px;
    }
    
    .pricing-tagline {
        font-size: 13px;
    }
    
    /* Features */
    .ai-combo-features {
        gap: 14px;
        margin-bottom: 24px;
    }
    
    .feature-item {
        gap: 10px;
    }
    
    .feature-item svg {
        width: 18px;
        height: 18px;
    }
    
    .feature-item span {
        font-size: 14px;
    }
    
    /* CTA */
    .ai-combo-cta {
        padding: 16px 24px;
        font-size: 15px;
        border-radius: 12px;
    }
    
    .ai-combo-cta svg {
        width: 18px;
        height: 18px;
    }
    
    /* JSON view */
    .json-header {
        padding: 10px 12px;
        font-size: 10px;
    }
    
    .json-badge {
        font-size: 9px;
        padding: 3px 8px;
    }
    
    .json-code {
        padding: 12px;
        font-size: 10px;
    }
    
    .json-disclaimer {
        padding: 12px;
        font-size: 11px;
    }
}

/* ===================== Responsive - Small phones (iPhone SE) ===================== */
@media (max-width: 380px) {
    .ai-combo-card {
        border-radius: 16px;
    }
    
    .ai-combo-profile-header,
    .ai-combo-pricing-top {
        padding: 14px 16px;
        gap: 10px;
    }
    
    .ai-combo-avatar,
    .ai-combo-pricing-icon {
        width: 36px;
        height: 36px;
        border-radius: 8px;
    }
    
    .ai-combo-avatar svg,
    .ai-combo-pricing-icon svg {
        width: 18px;
        height: 18px;
    }
    
    .ai-combo-profile-title h4,
    .ai-combo-pricing-title h4 {
        font-size: 14px;
    }
    
    .ai-combo-profile-title span,
    .ai-combo-pricing-title span {
        font-size: 10px;
    }
    
    .ai-combo-live {
        font-size: 10px;
        gap: 4px;
    }
    
    .live-dot {
        width: 6px;
        height: 6px;
    }
    
    .pricing-badge {
        font-size: 9px;
        padding: 3px 8px;
    }
    
    /* Toggle - make more compact */
    .ai-combo-toggle {
        padding: 10px 12px;
        gap: 4px;
    }
    
    .toggle-btn {
        padding: 8px 10px;
        font-size: 11px;
        gap: 4px;
        border-radius: 8px;
    }
    
    .toggle-btn svg {
        width: 12px;
        height: 12px;
    }
    
    /* Content */
    .ai-combo-content {
        padding: 16px;
    }
    
    .profile-view {
        top: 16px;
        left: 16px;
        right: 16px;
    }
    
    .profile-business {
        gap: 10px;
        margin-bottom: 14px;
        padding-bottom: 14px;
    }
    
    .profile-logo {
        width: 40px;
        height: 40px;
        font-size: 13px;
        border-radius: 8px;
    }
    
    .profile-business h3 {
        font-size: 18px;
    }
    
    .profile-type {
        font-size: 10px;
        padding: 2px 8px;
    }
    
    .profile-desc {
        font-size: 12px;
        margin-bottom: 16px;
        line-height: 1.5;
    }
    
    .profile-section {
        margin-bottom: 16px;
    }
    
    .profile-section h5 {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .profile-item {
        font-size: 12px;
        gap: 8px;
        margin-bottom: 8px;
    }
    
    .profile-item svg {
        width: 14px;
        height: 14px;
    }
    
    .profile-hours span:first-child,
    .hours-value {
        font-size: 12px;
    }
    
    .profile-disclaimer {
        padding: 10px;
        font-size: 10px;
        margin-top: 16px;
        gap: 6px;
    }
    
    .profile-disclaimer svg {
        width: 12px;
        height: 12px;
    }
    
    /* Pricing */
    .ai-combo-pricing-body {
        padding: 20px 16px;
    }
    
    .ai-combo-pricing-header {
        margin-bottom: 20px;
    }
    
    .price-currency {
        font-size: 18px;
    }
    
    .price-amount {
        font-size: 40px;
        letter-spacing: -1px;
    }
    
    .price-period {
        font-size: 14px;
    }
    
    .pricing-tagline {
        font-size: 12px;
    }
    
    .ai-combo-features {
        gap: 12px;
        margin-bottom: 20px;
    }
    
    .feature-item {
        gap: 8px;
    }
    
    .feature-item svg {
        width: 16px;
        height: 16px;
    }
    
    .feature-item span {
        font-size: 13px;
    }
    
    .ai-combo-cta {
        padding: 14px 20px;
        font-size: 14px;
        border-radius: 10px;
        gap: 8px;
    }
    
    .ai-combo-cta svg {
        width: 16px;
        height: 16px;
    }
    
    /* JSON */
    .json-header {
        padding: 8px 10px;
        font-size: 9px;
    }
    
    .json-badge {
        font-size: 8px;
        padding: 2px 6px;
    }
    
    .json-code {
        padding: 10px;
        font-size: 9px;
        line-height: 1.5;
    }
    
    .json-disclaimer {
        padding: 10px;
        font-size: 10px;
        gap: 6px;
    }
    
    .json-disclaimer svg {
        width: 12px;
        height: 12px;
    }
}
