/* ==========================================================================
   Compressors Module - Shared Styles
   Common styles used by both Centrifugal and Reciprocating compressor pages
   ========================================================================== */

/* ==========================================================================
   Feature Card Enhancements - Keep inline row layout with extra info
   ========================================================================== */

/* Card content wrapper - allows flex to work in row */
.compressor-module .features .feature-card .card-content {
    flex: 1;
    min-width: 0;
}

/* Nested h3 and p inside card-content */
.compressor-module .features .feature-card .card-content h3 {
    font-size: 0.9375rem;
    margin-bottom: 0.125rem;
    line-height: 1.3;
    color: var(--dark);
}

.compressor-module .features .feature-card .card-content p {
    font-size: 0.8125rem;
    margin-bottom: 0;
    line-height: 1.4;
    color: var(--dark-600);
}

/* Card standards subtitle - compact under title */
.compressor-module .card-standards {
    font-size: 0.6875rem;
    color: #64748b;
    display: block;
    margin-top: 0;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

/* Feature tags - inline below description */
.compressor-module .feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-top: 0.5rem;
}

.compressor-module .feature-tag {
    font-size: 0.625rem;
    font-weight: 500;
    padding: 0.125rem 0.4rem;
    background: #f1f5f9;
    color: #475569;
    border-radius: 100px;
    white-space: nowrap;
}

.compressor-module .feature-tag.primary {
    background: #dbeafe;
    color: #1d4ed8;
}

/* ==========================================================================
   Wizard Callout - Inline card style for CTAs
   ========================================================================== */
.compressor-module .wizard-callout {
    max-width: 900px;
    margin: 0 auto 1rem auto;
    padding: 0 var(--spacing-lg);
}

.compressor-module .wizard-callout-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid #93c5fd;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}

.compressor-module .wizard-callout-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.compressor-module .wizard-callout-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.compressor-module .wizard-callout-icon svg {
    width: 24px;
    height: 24px;
}

.compressor-module .wizard-callout-content {
    flex: 1;
}

.compressor-module .wizard-callout-content h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1e40af;
    margin: 0 0 0.125rem 0;
}

.compressor-module .wizard-callout-content p {
    font-size: 0.8125rem;
    color: #3b82f6;
    margin: 0;
}

.compressor-module .wizard-callout-arrow {
    color: #3b82f6;
    flex-shrink: 0;
}

.compressor-module .wizard-callout-arrow svg {
    width: 20px;
    height: 20px;
}

/* ==========================================================================
   Fundamentals Section - Compact card grid (shared by all compressor modules)
   ========================================================================== */
.compressor-module .fundamentals-section {
    padding: 1.5rem 0;
    background: white;
}

.compressor-module .fundamentals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.75rem;
    max-width: 900px;
    margin: 0 auto;
}

.compressor-module .fundamentals-card {
    background: #f8fafc;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
    border: 1px solid #e2e8f0;
}

.compressor-module .fundamentals-card:hover {
    background: #f1f5f9;
    border-color: #3b82f6;
}

.compressor-module .fundamentals-card h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 0.375rem 0;
}

.compressor-module .fundamentals-card p {
    font-size: 0.8125rem;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

/* ==========================================================================
   Compressor Type Comparison Cards (shared - centrifugal vs recip)
   ========================================================================== */
.compressor-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
}

.compressor-type-card {
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}

.compressor-type-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.compressor-type-card.centrifugal {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border: 1px solid #93c5fd;
}

.compressor-type-card.centrifugal:hover {
    border-color: #3b82f6;
}

.compressor-type-card.reciprocating {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 1px solid #fcd34d;
}

.compressor-type-card.reciprocating:hover {
    border-color: #f59e0b;
}

.compressor-type-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.compressor-type-card.centrifugal h3 { color: #1e40af; }
.compressor-type-card.reciprocating h3 { color: #92400e; }

.compressor-type-card p {
    font-size: 0.875rem;
    margin: 0 0 0.75rem 0;
    line-height: 1.5;
}

.compressor-type-card.centrifugal p { color: #3b82f6; }
.compressor-type-card.reciprocating p { color: #b45309; }

.compressor-type-card ul {
    margin: 0;
    padding-left: 1.25rem;
    font-size: 0.8125rem;
}

.compressor-type-card.centrifugal ul { color: #1e40af; }
.compressor-type-card.reciprocating ul { color: #92400e; }

.type-badge {
    padding: 0.1875rem 0.625rem;
    border-radius: 4px;
    font-size: 0.6875rem;
    font-weight: 600;
    color: white;
}

.compressor-type-card.centrifugal .type-badge { background: #3b82f6; }
.compressor-type-card.reciprocating .type-badge { background: #f59e0b; }

/* ==========================================================================
   Operating Range Cards (shared)
   ========================================================================== */
.operating-range-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
}

.range-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
}

.range-card .range-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e40af;
    margin-bottom: 0.25rem;
}

.range-card .range-label {
    font-size: 0.8125rem;
    color: #64748b;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 768px) {
    .compressor-module .wizard-callout-card {
        flex-direction: column;
        text-align: center;
    }

    .compressor-module .wizard-callout-arrow {
        display: none;
    }

    .compressor-type-grid {
        grid-template-columns: 1fr;
    }

    .operating-range-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .operating-range-grid {
        grid-template-columns: 1fr;
    }
}
