/**
 * Engineering-Specific Styles
 * Technical content, formulas, diagrams, and engineering layouts
 */

/* Engineering Formula Blocks */
.engineering-formula {
    background-color: #f8f9fa;
    border-left: 4px solid #ff6600;
    padding: 20px;
    margin: 25px 0;
    font-family: 'Courier New', Consolas, Monaco, monospace;
    font-size: 16px;
    line-height: 1.8;
    overflow-x: auto;
}

.formula-title {
    font-weight: 700;
    color: #003d7a;
    margin-bottom: 10px;
    font-family: 'Georgia', 'Times New Roman', serif;
}

.formula-equation {
    background-color: #fff;
    padding: 15px;
    border-radius: 5px;
    margin: 10px 0;
    text-align: center;
    font-size: 18px;
}

/* Technical Notes and Callouts */
.technical-note {
    background-color: #e8f4f8;
    border: 2px solid #0066cc;
    border-radius: 8px;
    padding: 20px;
    margin: 25px 0;
}

.technical-note h3,
.technical-note h4 {
    color: #003d7a;
    margin-top: 0;
}

.technical-note.warning {
    background-color: #fff3cd;
    border-color: #ffc107;
}

.technical-note.success {
    background-color: #d4edda;
    border-color: #28a745;
}

.technical-note.info {
    background-color: #d1ecf1;
    border-color: #17a2b8;
}

/* Engineering Diagrams */
.engineering-diagram {
    text-align: center;
    margin: 30px 0;
    padding: 20px;
    background-color: #f5f5f5;
    border-radius: 8px;
}

.engineering-diagram img {
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.diagram-caption {
    margin-top: 15px;
    font-style: italic;
    color: #666;
    font-size: 14px;
}

/* Specifications Table */
.specifications-table {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    margin: 25px 0;
}

.specifications-table th {
    background-color: #0066cc;
    color: #fff;
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.specifications-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
}

.specifications-table tr:last-child td {
    border-bottom: none;
}

.specifications-table tr:nth-child(even) {
    background-color: #f8f9fa;
}

/* Units and Variables */
.engineering-variable {
    font-family: 'Courier New', Consolas, Monaco, monospace;
    background-color: #f4f4f4;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 600;
    color: #0066cc;
}

.engineering-unit {
    font-family: 'Courier New', Consolas, Monaco, monospace;
    font-weight: 600;
    color: #ff6600;
}

/* Project Cards */
.project-card {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.project-card h3 {
    color: #003d7a;
    margin-top: 0;
}

.project-status {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.project-status.completed {
    background-color: #d4edda;
    color: #155724;
}

.project-status.in-progress {
    background-color: #fff3cd;
    color: #856404;
}

.project-status.planned {
    background-color: #d1ecf1;
    color: #0c5460;
}

/* Research Paper Styling */
.research-paper {
    background-color: #f8f9fa;
    border-left: 5px solid #0066cc;
    padding: 20px;
    margin: 25px 0;
}

.research-paper .paper-title {
    font-size: 20px;
    font-weight: 700;
    color: #003d7a;
    margin-bottom: 10px;
}

.research-paper .paper-authors {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.research-paper .paper-abstract {
    line-height: 1.8;
    color: #333;
}

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

.equipment-item {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: box-shadow 0.3s ease;
}

.equipment-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.equipment-icon {
    font-size: 48px;
    margin-bottom: 15px;
    color: #0066cc;
}

/* Responsive Design for Engineering Content */
@media (max-width: 768px) {
    .engineering-formula {
        font-size: 14px;
        padding: 15px;
    }
    
    .formula-equation {
        font-size: 16px;
        padding: 12px;
    }
    
    .equipment-grid {
        grid-template-columns: 1fr;
    }
    
    .technical-note {
        padding: 15px;
    }
}

/* Print Styles for Research Papers */
@media print {
    .engineering-formula,
    .technical-note,
    .research-paper {
        page-break-inside: avoid;
    }
    
    .project-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
