/* Salesforce AI Use Cases - Modern Dark Theme */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #fafafa;
    color: #1a1a1a;
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Hero Section */
.hero-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    min-height: 90vh;
    padding-top: calc(var(--qp-header-height, 72px) + 24px);
    padding-bottom: 60px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 600px;
    padding-left: 40px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 122, 255, 0.08);
    border: 1px solid rgba(0, 122, 255, 0.2);
    padding: 8px 16px;
    border-radius: 24px;
    font-size: 0.85rem;
    color: #0066cc;
    margin-bottom: 24px;
    font-weight: 500;
}

.badge-icon {
    font-size: 1rem;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    color: #1a1a1a;
}

.gradient-text {
    background: linear-gradient(135deg, #0066cc 0%, #004499 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #666666;
    margin-bottom: 40px;
    max-width: 540px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #0066cc;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: #888888;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
}

/* CTA rows for vertical layout */
.cta-row {
    display: flex;
    gap: 12px;
}

.cta-row--primary {
    margin-bottom: 4px;
}

.cta-row--secondary {
    opacity: 0.95;
}

.cta-primary {
    background: linear-gradient(135deg, #0066cc 0%, #004499 100%);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    white-space: nowrap;
    text-align: center;
}

.cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.25);
}

.cta-secondary {
    background: transparent;
    color: #333333;
    border: 1px solid #cccccc;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    white-space: nowrap;
    text-align: center;
}

.cta-secondary:hover {
    border-color: #0066cc;
    color: #0066cc;
}

/* Borderless variant for secondary CTA */
.cta-secondary--borderless {
    border-color: transparent;
    color: #555555;
    padding: 16px 16px;
}

.cta-secondary--borderless:hover {
    color: #0066cc;
    background: rgba(0, 102, 204, 0.06);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    position: relative;
    z-index: 2;
}

.visual-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.visual-card:hover {
    transform: translateY(-8px);
    border-color: #0066cc;
    box-shadow: 0 8px 32px rgba(0, 102, 204, 0.15);
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.card-text {
    color: #333333;
    font-weight: 500;
    font-size: 0.9rem;
}

.card-1 { animation: float 6s ease-in-out infinite; }
.card-2 { animation: float 6s ease-in-out infinite 1.5s; }
.card-3 { animation: float 6s ease-in-out infinite 3s; }
.card-4 { animation: float 6s ease-in-out infinite 4.5s; }

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.hero-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.bg-circle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.08) 0%, rgba(0, 68, 153, 0.04) 100%);
    animation: pulse 4s ease-in-out infinite;
}

.circle-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.circle-2 {
    width: 200px;
    height: 200px;
    bottom: -50px;
    left: -50px;
    animation-delay: 2s;
}

.circle-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    left: 20%;
    animation-delay: 1s;
}

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

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 40px 0;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666666;
    max-width: 600px;
    margin: 0 auto;
}

/* Main Content Layout */
.main-content {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 30px;
    align-items: start;
}

/* Sidebar Styles */
.sidebar {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #e0e0e0;
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.filter-section {
    margin-bottom: 32px;
}

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

.filter-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: #0066cc;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-controls {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
    user-select: none;
}

.filter-option:hover {
    background: #f5f5f5;
}

.filter-option input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #cccccc;
    border-radius: 4px;
    margin-right: 12px;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.filter-option input[type="checkbox"]:checked + .checkmark {
    background: linear-gradient(135deg, #0066cc 0%, #004499 100%);
    border-color: #0066cc;
}

.filter-option input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.filter-option span:not(.checkmark) {
    font-size: 0.9rem;
    color: #333333;
}

.results-summary {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e0e0e0;
}

.results-summary p {
    color: #666666;
    font-size: 0.9rem;
    text-align: center;
    font-weight: 500;
}

/* Use Cases Grid */
.use-cases-grid {
    min-height: 400px;
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Use Case Card Styles */
.use-case-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.use-case-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 102, 204, 0.12);
    border-color: #0066cc;
}

.card-header {
    height: 100px;
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 16px;
}

.category-badge {
    background: rgba(0, 102, 204, 0.9);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 0 0 0 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: absolute;
    top: 0;
    right: 0;
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.2);
    border-left: 1px solid rgba(0, 102, 204, 0.3);
    border-bottom: 1px solid rgba(0, 102, 204, 0.3);
}

.card-content {
    padding: 20px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #1a1a1a;
    line-height: 1.4;
}

.card-description {
    color: #666666;
    font-size: 0.9rem;
    line-height: 1.5;
}

.additional-tags {
    margin-top: auto;
    padding-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag {
    background: #f0f8ff;
    color: #0066cc;
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 8px;
    border: 1px solid #e0e8f0;
}

/* Category-specific gradients */
.category-sales-optimization { 
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.9) 0%, rgba(238, 90, 36, 0.9) 100%); 
}
.category-marketing-lead-management { 
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.9) 0%, rgba(68, 160, 141, 0.9) 100%); 
}
.category-account-management { 
    background: linear-gradient(135deg, rgba(67, 233, 123, 0.9) 0%, rgba(56, 249, 215, 0.9) 100%); 
}
.category-customer-support-success { 
    background: linear-gradient(135deg, rgba(250, 112, 154, 0.9) 0%, rgba(254, 225, 64, 0.9) 100%); 
}
.category-reporting-analytics { 
    background: linear-gradient(135deg, rgba(69, 183, 209, 0.9) 0%, rgba(55, 66, 250, 0.9) 100%); 
}

/* No Results */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #888888;
}

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

/* Responsive Design */
@media (max-width: 1400px) {
    .cards-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: 280px 1fr;
        gap: 20px;
    }
    
    .cards-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 16px;
    }
    
    .hero-section {
        grid-template-columns: 1fr;
        gap: 24px;
        min-height: auto;
        padding: calc(var(--qp-header-mobile-height, 64px) + 16px) 0 40px;
        text-align: center;
    }
    
    .hero-content {
        padding-left: 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        justify-content: center;
        gap: 30px;
    }
    
    .hero-cta {
        justify-content: center;
        align-items: center;
    }
    .cta-row { flex-direction: column; align-items: center; width: 100%; gap: 10px; }
    .cta-primary, .cta-secondary { width: 100%; max-width: 320px; }
    
    .cta-primary, .cta-secondary {
        width: 100%;
        max-width: 280px;
    }
    
    .hero-visual {
        height: 300px;
    }
    
    .visual-grid {
        gap: 16px;
    }
    
    .visual-card {
        padding: 16px;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .main-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .sidebar {
        position: static;
        max-height: none;
    }
    
    .cards-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 24px 16px;
    }
    
    .header h1 {
        font-size: 1.75rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .sidebar {
        padding: 20px;
    }
    
    .use-case-card {
        margin-bottom: 0;
    }

    /* Mobile fine-tuning for hero */
    .hero-badge {
        font-size: 0.8rem;
        padding: 6px 12px;
        margin-bottom: 16px;
    }

    .hero-title {
        font-size: 1.85rem;
        line-height: 1.2;
        margin-bottom: 16px;
    }

    .hero-description {
        font-size: 0.95rem;
        line-height: 1.65;
        margin-bottom: 24px;
        margin-left: auto;
        margin-right: auto;
        padding: 0 4px;
    }

    .hero-cta {
        gap: 10px;
    }

    .cta-primary, .cta-secondary {
        padding: 14px 20px;
        font-size: 0.95rem;
    }

    .cta-primary svg {
        width: 14px;
        height: 14px;
    }

    .hero-visual {
        height: 220px;
    }

    .visual-grid {
        gap: 12px;
    }

    .visual-card {
        padding: 12px;
    }

    .card-icon {
        font-size: 1.5rem;
        margin-bottom: 8px;
    }

    .card-text {
        font-size: 0.85rem;
    }
}

/* Scrollbar Styling */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: #cccccc;
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: #999999;
}
