/* ===========================================
   CASE STUDY PAGE STYLES
   Differentiated styling for portfolio/case study pages
   Extends article.css with marketing-focused elements
   =========================================== */

/* Case Study Page Body Modifier */
.case-study-page .article-header {
    padding-bottom: 60px;
}

/* Case Study Badge */
.case-study-badge {
    display: inline-block;
    background: rgba(34, 211, 238, 0.2);
    color: var(--cyan-accent);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.25rem;
    border: 1px solid rgba(34, 211, 238, 0.3);
}

/* Technology Stack Pills in Header */
.case-study-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.case-study-tech-tag {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 0.4rem 0.9rem;
    border-radius: 16px;
    font-size: 0.85rem;
    font-weight: 500;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.case-study-tech-tag:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* ===========================================
   METRICS BAR - Key Results at a Glance
   =========================================== */

.metrics-bar {
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.08), rgba(99, 102, 241, 0.08));
    border-bottom: 1px solid var(--border-color);
    padding: 2rem 20px;
}

.metrics-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 3rem;
}

.metric-item {
    text-align: center;
    min-width: 140px;
}

.metric-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
    background: linear-gradient(135deg, var(--gradient-start), var(--cyan-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.metric-label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    font-weight: 500;
}

/* ===========================================
   RESULTS SECTION - Visual Grid
   =========================================== */

.results-section {
    margin-top: 3rem;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.result-card {
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.06), rgba(99, 102, 241, 0.06));
    border: 1px solid rgba(34, 211, 238, 0.15);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.result-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(34, 211, 238, 0.15);
    border-color: rgba(34, 211, 238, 0.3);
}

.result-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--gradient-start), var(--cyan-accent));
    border-radius: 12px;
    font-size: 1.5rem;
}

.result-card h4 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.result-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* ===========================================
   CHALLENGE/SOLUTION HIGHLIGHT BOXES
   =========================================== */

.case-study-highlight {
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.08), rgba(139, 92, 246, 0.08));
    border-left: 4px solid var(--cyan-accent);
    padding: 1.5rem;
    border-radius: 0 12px 12px 0;
    margin: 2rem 0;
}

.case-study-highlight.challenge {
    border-left-color: #f59e0b;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(251, 191, 36, 0.05));
}

.case-study-highlight.solution {
    border-left-color: var(--cyan-accent);
}

.case-study-highlight h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.case-study-highlight p {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.7;
}

/* ===========================================
   TECH STACK SECTION (In-Article)
   =========================================== */

.tech-stack-used {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.tech-stack-used .tag {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: var(--primary-color);
    font-weight: 500;
}

/* ===========================================
   LESSONS LEARNED SECTION
   =========================================== */

.lessons-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.lessons-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1.25rem;
    line-height: 1.7;
}

.lessons-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--cyan-accent);
    font-weight: 600;
    font-size: 1.1rem;
}

/* ===========================================
   SIDEBAR MODIFICATIONS FOR CASE STUDIES
   =========================================== */

.case-study-page .article-sidebar h3 {
    color: var(--text-secondary);
}

.case-study-page .related-solutions a.current {
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.1), rgba(99, 102, 241, 0.1));
    border-color: var(--cyan-accent);
    color: var(--cyan-accent);
}

/* ===========================================
   CTA SECTION - Case Study Specific
   =========================================== */

.case-study-page .article-cta-section {
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.08), rgba(99, 102, 241, 0.08));
    border: 1px solid rgba(34, 211, 238, 0.15);
}

/* ===========================================
   RESPONSIVE DESIGN
   =========================================== */

@media (max-width: 768px) {
    .metrics-container {
        gap: 2rem;
    }

    .metric-item {
        min-width: 120px;
    }

    .metric-value {
        font-size: 2rem;
    }

    .results-grid {
        grid-template-columns: 1fr;
    }

    .case-study-tech {
        gap: 0.4rem;
    }

    .case-study-tech-tag {
        font-size: 0.8rem;
        padding: 0.35rem 0.75rem;
    }
}

@media (max-width: 480px) {
    .metrics-bar {
        padding: 1.5rem 16px;
    }

    .metrics-container {
        gap: 1.5rem;
    }

    .metric-value {
        font-size: 1.75rem;
    }

    .metric-label {
        font-size: 0.8rem;
    }
}
