/* Estilos específicos para projeto Hub */

/* Flow Diagram */
.flow-diagram {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 30px 0;
    flex-wrap: wrap;
}

.flow-step {
    background: white;
    border: 2px solid var(--hub-color);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    flex: 1;
    max-width: 200px;
    margin: 10px;
}

.flow-number {
    background: var(--hub-color);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-weight: bold;
}

.flow-arrow {
    font-size: 2rem;
    color: var(--hub-color);
    margin: 0 10px;
}

/* Architecture Layers */
.architecture-layers {
    margin: 20px 0;
}

.arch-layer {
    background: white;
    border-left: 4px solid var(--hub-color);
    margin-bottom: 15px;
    padding: 20px;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.arch-layer h5 {
    color: var(--hub-color);
    margin-bottom: 10px;
}

/* Feature Cards */
.feature-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    height: 100%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.feature-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.feature-header i {
    font-size: 2rem;
    margin-right: 15px;
}

.feature-header h4 {
    margin: 0;
    color: var(--wiki-primary);
}

/* Setup Cards */
.setup-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    height: 100%;
}

.setup-card h4 {
    color: var(--hub-color);
    margin-bottom: 15px;
}

/* API Documentation */
.api-section {
    margin-bottom: 30px;
}

.api-section h4 {
    color: var(--hub-color);
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 2px solid var(--hub-color);
}

.api-endpoint {
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 5px;
    padding: 10px 15px;
    margin-bottom: 10px;
}

.api-method {
    font-size: 0.8rem;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 3px;
    margin-right: 15px;
    min-width: 60px;
    text-align: center;
}

.api-method.get { background: #d4edda; color: #155724; }
.api-method.post { background: #cce7ff; color: #004085; }
.api-method.put { background: #fff3cd; color: #856404; }
.api-method.delete { background: #f8d7da; color: #721c24; }

.api-path {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    margin-right: 15px;
    color: var(--hub-color);
}

.api-description {
    color: #6c757d;
    flex: 1;
}

/* Test Coverage */
.test-coverage {
    background: white;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #e9ecef;
}

.coverage-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.coverage-label {
    min-width: 150px;
    font-weight: 500;
}

.coverage-bar {
    flex: 1;
    background: #e9ecef;
    height: 25px;
    border-radius: 12px;
    position: relative;
    margin-left: 20px;
}

.coverage-fill {
    height: 100%;
    background: linear-gradient(90deg, #28a745, #20c997);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.8rem;
}

.coverage-95 { width: 95%; }
.coverage-88 { width: 88%; }
.coverage-92 { width: 92%; }
.coverage-91 { width: 91%; }

/* Technology List */
.tech-list {
    list-style: none;
    padding: 0;
}

.tech-list li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.tech-list li:last-child {
    border-bottom: none;
}

.tech-list strong {
    color: var(--hub-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .flow-diagram {
        flex-direction: column;
    }
    
    .flow-arrow {
        transform: rotate(90deg);
        margin: 10px 0;
    }
    
    .flow-step {
        max-width: 100%;
    }
    
    .api-endpoint {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .api-method {
        margin-bottom: 10px;
    }
    
    .coverage-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .coverage-bar {
        margin-left: 0;
        margin-top: 10px;
        width: 100%;
    }
}

/* ===================================
   TEMA DARK - CARA CORE HUB
   =================================== */

/* Flow Diagram - tema dark */
[data-theme="dark"] .flow-step {
    background: #f8f9fa;
    border-color: #5dade2;
    color: #2c3e50;
}

[data-theme="dark"] .flow-step h5 {
    color: #2c3e50;
}

[data-theme="dark"] .flow-step p {
    color: #495057;
}

[data-theme="dark"] .flow-number {
    background: #5dade2;
    color: #ffffff;
}

[data-theme="dark"] .flow-arrow {
    color: #5dade2;
}

/* Architecture Layers - tema dark */
[data-theme="dark"] .arch-layer {
    background: #f8f9fa;
    border-left-color: #5dade2;
    color: #2c3e50;
}

[data-theme="dark"] .arch-layer h5 {
    color: #5dade2;
}

[data-theme="dark"] .arch-layer p,
[data-theme="dark"] .arch-layer ul,
[data-theme="dark"] .arch-layer li {
    color: #495057;
}

/* Feature Cards - tema dark */
[data-theme="dark"] .feature-card {
    background: #f8f9fa;
    border-color: #dee2e6;
    color: #2c3e50;
}

[data-theme="dark"] .feature-header h4 {
    color: #2c3e50;
}

[data-theme="dark"] .feature-header i {
    color: #5dade2;
}

[data-theme="dark"] .feature-card p,
[data-theme="dark"] .feature-card ul,
[data-theme="dark"] .feature-card li {
    color: #495057;
}

/* Setup Cards - tema dark */
[data-theme="dark"] .setup-card {
    background: #f8f9fa;
    color: #2c3e50;
}

[data-theme="dark"] .setup-card h4 {
    color: #5dade2;
}

[data-theme="dark"] .setup-card p,
[data-theme="dark"] .setup-card ul,
[data-theme="dark"] .setup-card li {
    color: #495057;
}

[data-theme="dark"] .setup-card code {
    background: #e9ecef;
    color: #2c3e50;
}

/* API Documentation - tema dark */
[data-theme="dark"] .api-section h4 {
    color: #5dade2;
    border-bottom-color: #5dade2;
}

[data-theme="dark"] .api-endpoint {
    background: #f8f9fa;
    border-color: #dee2e6;
    color: #2c3e50;
}

[data-theme="dark"] .api-method.get {
    background: #d4edda;
    color: #155724;
}

[data-theme="dark"] .api-method.post {
    background: #cce7ff;
    color: #004085;
}

[data-theme="dark"] .api-method.put {
    background: #fff3cd;
    color: #856404;
}

[data-theme="dark"] .api-method.delete {
    background: #f8d7da;
    color: #721c24;
}

[data-theme="dark"] .api-path {
    color: #5dade2;
}

[data-theme="dark"] .api-description {
    color: #6c757d;
}

/* Test Coverage - tema dark */
[data-theme="dark"] .test-coverage {
    background: #f8f9fa;
    border-color: #dee2e6;
    color: #2c3e50;
}

[data-theme="dark"] .coverage-label {
    color: #2c3e50;
}

[data-theme="dark"] .coverage-bar {
    background: #e9ecef;
}

[data-theme="dark"] .coverage-fill {
    background: linear-gradient(90deg, #28a745, #20c997);
    color: #ffffff;
}

/* Technology List - tema dark */
[data-theme="dark"] .tech-list li {
    border-bottom-color: #dee2e6;
    color: #495057;
}

[data-theme="dark"] .tech-list strong {
    color: #5dade2;
}

/* Alert boxes - tema dark */
[data-theme="dark"] .alert-warning {
    background: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

[data-theme="dark"] .alert-warning h5,
[data-theme="dark"] .alert-warning p {
    color: #856404;
}
