/* Case Study Shared Styles - Minimal Design System */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    line-height: 1.7;
    color: #1d1d1f;
    background: #ffffff;
}

/* Navigation */
.nav {
    background: #000;
    padding: 15px 20px;
}

.nav a {
    color: #fff;
    text-decoration: none;
    font-size: 0.95em;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.nav a:hover {
    opacity: 0.8;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #000000 0%, #1d1d1f 100%);
    color: white;
    padding: 80px 20px 60px;
}

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

.category {
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
    margin-bottom: 15px;
}

.hero h1 {
    font-size: 3em;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -1px;
    line-height: 1.2;
}

.hero .domain {
    font-size: 1.2em;
    opacity: 0.9;
    font-style: italic;
}

/* Container */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* Sections */
.section {
    margin-bottom: 50px;
}

.section h2 {
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 20px;
    color: #000;
}

.section h3 {
    font-size: 1.4em;
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #1d1d1f;
}

.section p {
    margin-bottom: 16px;
    font-size: 1.05em;
    line-height: 1.8;
}

/* Highlight Boxes */
.highlight-box {
    background: #f5f5f7;
    border-left: 4px solid #000;
    padding: 25px;
    margin: 30px 0;
    border-radius: 4px;
}

/* Architecture Diagram */
.architecture-diagram {
    background: #ffffff;
    border: 2px solid #e0e0e0;
    padding: 30px;
    margin: 30px 0;
    border-radius: 8px;
}

.architecture-diagram .layer {
    background: #f5f5f7;
    padding: 20px;
    margin: 15px 0;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
}

.architecture-diagram .arrow {
    font-size: 2em;
    color: #000;
    margin: 10px 0;
    text-align: center;
}

.architecture-diagram .streams {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.architecture-diagram .stream {
    background: #e8e8ed;
    padding: 20px;
    border-radius: 6px;
}

.architecture-diagram .stream h4 {
    margin-bottom: 15px;
    font-size: 1.1em;
}

.architecture-diagram .stream p {
    font-size: 0.9em;
    margin: 8px 0;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.feature-card {
    background: #f5f5f7;
    padding: 25px;
    border-radius: 8px;
}

.feature-card h4 {
    font-size: 1.2em;
    margin-bottom: 12px;
    color: #000;
}

.feature-card p {
    font-size: 0.95em;
    color: #444;
    line-height: 1.6;
    margin: 0;
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.benefit-card {
    background: #f5f5f7;
    padding: 25px;
    border-radius: 8px;
}

.benefit-card h4 {
    font-size: 1.2em;
    margin-bottom: 12px;
    color: #000;
}

.benefit-card p {
    font-size: 0.95em;
    color: #444;
    line-height: 1.6;
    margin: 0;
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.metric-card {
    background: #f5f5f7;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
}

.metric-card .number {
    font-size: 2.5em;
    font-weight: 700;
    color: #000;
    margin-bottom: 10px;
}

.metric-card .label {
    font-size: 0.95em;
    color: #666;
}

/* Metric Highlight */
.metric-highlight {
    background: #000;
    color: #fff;
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    margin: 30px 0;
}

.metric-highlight .number {
    font-size: 4em;
    font-weight: 700;
    margin-bottom: 10px;
}

.metric-highlight .label {
    font-size: 1.2em;
    opacity: 0.9;
}

/* Workflow Diagram */
.workflow-diagram {
    background: #ffffff;
    border: 2px solid #e0e0e0;
    padding: 30px;
    margin: 30px 0;
    border-radius: 8px;
}

.workflow-step {
    background: #f5f5f7;
    padding: 20px;
    margin: 15px 0;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.workflow-step .number {
    background: #000;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.workflow-step .content h4 {
    margin-bottom: 8px;
    font-size: 1.1em;
}

.workflow-step .content p {
    margin: 0;
    font-size: 0.95em;
    color: #444;
}

/* Pipeline Diagram */
.pipeline-diagram {
    background: #ffffff;
    border: 2px solid #e0e0e0;
    padding: 30px;
    margin: 30px 0;
    border-radius: 8px;
}

.pipeline-step {
    background: #f5f5f7;
    padding: 20px;
    margin: 15px 0;
    border-radius: 6px;
    text-align: center;
}

.pipeline-step h4 {
    font-size: 1.1em;
    margin-bottom: 8px;
}

.pipeline-step p {
    font-size: 0.9em;
    margin: 0;
}

.pipeline-arrow {
    text-align: center;
    font-size: 2em;
    color: #000;
    margin: 10px 0;
}

/* Example Box */
.example-box {
    background: #fbfbfd;
    border: 2px solid #e0e0e0;
    padding: 25px;
    margin: 20px 0;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.example-box .label {
    font-weight: bold;
    color: #000;
    margin-bottom: 10px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

/* Technology Tags */
.tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.tech-tag {
    background: #000;
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 500;
}

/* Outcomes List */
ul.outcomes {
    list-style: none;
    padding: 0;
}

ul.outcomes li {
    padding: 12px 0 12px 30px;
    position: relative;
    font-size: 1.05em;
}

ul.outcomes li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #000;
    font-weight: bold;
    font-size: 1.2em;
}

/* Back Link */
.back-link {
    display: inline-block;
    margin-top: 40px;
    padding: 12px 24px;
    background: #000;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background 0.3s;
}

.back-link:hover {
    background: #333;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2em;
    }

    .architecture-diagram .streams {
        grid-template-columns: 1fr;
    }

    .features-grid,
    .benefits-grid,
    .metrics-grid {
        grid-template-columns: 1fr;
    }
}
