/* Case Study Specific Styles */

/* Hero Section */
.case-hero {
    padding: 8rem 0 5rem;
    margin-top: 5rem;
    position: relative;
    overflow: hidden;
}

.saas-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.ecommerce-gradient {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.travel-gradient {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.case-hero-content {
    text-align: center;
    color: white;
    max-width: 900px;
    margin: 0 auto;
}

.case-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2rem;
}

.case-headline {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.case-subheadline {
    font-size: 1.25rem;
    line-height: 1.6;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.case-metrics {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.metric-highlight {
    text-align: center;
}

.metric-number {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.metric-label {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.9;
}

/* Content Sections */
.case-section {
    padding: 5rem 0;
}

.case-section.alt-bg {
    background: var(--gray-50);
}

.case-content {
    max-width: 900px;
    margin: 0 auto;
}

.case-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--gray-900);
}

.case-content .lead {
    font-size: 1.25rem;
    color: var(--gray-600);
    margin-bottom: 3rem;
}

/* Challenge Grid */
.challenge-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 3rem 0;
}

.challenge-item {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--gray-200);
}

.challenge-item h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--gray-900);
}

.challenge-item p {
    color: var(--gray-600);
    line-height: 1.6;
}

/* Quote */
.case-quote {
    background: linear-gradient(135deg, rgba(234, 88, 12, 0.05), rgba(251, 146, 60, 0.05));
    border-left: 4px solid var(--primary-orange);
    padding: 2rem 2rem 2rem 3rem;
    margin: 3rem 0;
    border-radius: 8px;
}

.case-quote p {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--gray-700);
    margin-bottom: 1rem;
}

.case-quote cite {
    font-style: normal;
    font-weight: 600;
    color: var(--gray-900);
}

/* Solution Timeline */
.solution-timeline {
    margin: 3rem 0;
}

.timeline-step {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--gray-200);
}

.timeline-step:last-child {
    border-bottom: none;
}

.step-number {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.25rem;
}

.timeline-step h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--gray-900);
}

.timeline-step p {
    color: var(--gray-600);
    margin-bottom: 1rem;
}

.timeline-step ul {
    list-style: none;
    padding: 0;
}

.timeline-step li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.5rem;
    color: var(--gray-600);
}

.timeline-step li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 700;
}

/* Results Dashboard */
.results-dashboard {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 3rem 0;
}

.result-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--gray-200);
}

.result-card.primary {
    border-color: var(--primary-orange);
    background: linear-gradient(135deg, rgba(234, 88, 12, 0.03), rgba(251, 146, 60, 0.03));
}

.result-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--gray-900);
}

.result-stat {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 1rem 0;
    border-bottom: 1px solid var(--gray-100);
}

.result-stat:last-child {
    border-bottom: none;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-orange);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray-600);
    max-width: 60%;
    text-align: right;
}

/* Comparison Section */
.comparison-section {
    margin: 4rem 0;
}

.comparison-section h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.comparison-item h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--gray-700);
}

.comparison-item.before h4 {
    color: var(--danger);
}

.comparison-item.after h4 {
    color: var(--success);
}

.ai-response {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    overflow: hidden;
}

.response-header {
    background: var(--gray-900);
    color: white;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.ai-response p {
    padding: 1.5rem;
    line-height: 1.6;
    color: var(--gray-700);
    font-style: italic;
}

/* Insights Grid */
.insights-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin: 3rem 0;
}

.insight-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--gray-200);
    display: flex;
    gap: 1.5rem;
}

.insight-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.insight-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--gray-900);
}

.insight-card p {
    color: var(--gray-600);
    line-height: 1.5;
}

/* CTA Section */
.case-cta {
    padding: 5rem 0;
    background: var(--gradient-primary);
    text-align: center;
}

.case-cta .cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.case-cta h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
}

.case-cta p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Navigation Dropdown */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background: white;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 8px;
    z-index: 1000;
    top: 100%;
    margin-top: 0.5rem;
}

.nav-dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    color: var(--gray-700);
    padding: 0.75rem 1rem;
    display: block;
    transition: all 0.2s;
}

.dropdown-content a:hover,
.dropdown-content a.active {
    background: var(--gray-50);
    color: var(--primary-orange);
}

/* Responsive */
@media (max-width: 768px) {
    .case-metrics {
        gap: 2rem;
    }
    
    .challenge-grid,
    .results-dashboard {
        grid-template-columns: 1fr;
    }
    
    .comparison-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .insights-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline-step {
        flex-direction: column;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}