/* ===================================================================
   ASCE COMPARISON TOOL STYLES
   Professional comparison interface for ASCE 7-22 vs ASCE 7-16
   ================================================================== */

/* Main comparison tool styles */
.cc-panel {
    width: 100%;
    padding: 24px;
    background: #f9fafb;
    border-radius: 12px;
    margin-bottom: 20px;
}

.quick-questions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.comparison-quick-question {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.comparison-quick-question:hover {
    border-color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.cc-nav-link {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin-bottom: 4px;
    border: 2px solid transparent;
}

.cc-nav-link:hover {
    background-color: #f3f4f6;
    color: #3b82f6;
    border-color: #e5e7eb;
}

.cc-nav-link.active {
    background-color: #3b82f6;
    color: white;
    border-color: #2563eb;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

.cc-nav-link.active:hover {
    background-color: #2563eb;
    color: white;
}

.cc-nav-icon {
    margin-right: 8px;
    width: 16px;
}

.comparison-overview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.comparison-overview-card.selected {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.wind-panels-grid, .tornado-panels-grid, .cc-panels-grid, .implementation-panels-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.comparison-learn-btn, .feature-action-btn {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
}

.comparison-learn-btn:hover, .feature-action-btn:hover {
    background: #2563eb;
}

.cc-sidebar {
    width: 280px;
    background: white;
    border-right: 1px solid #e5e7eb;
    padding: 24px;
    height: calc(100vh - 80px);
    overflow-y: auto;
}

.cc-content-area {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
}

.cc-main-container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    min-height: calc(100vh - 80px);
}

.cc-header {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    color: white;
    padding: 20px 0;
}

.cc-header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cc-header-left {
    display: flex;
    align-items: center;
}

.cc-header-icon {
    margin-right: 16px;
}

.cc-header-title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
}

.cc-header-subtitle {
    margin: 4px 0 0 0;
    opacity: 0.9;
    font-size: 14px;
}

/* Advisory responses */
.advisory-responses {
    margin-top: 20px;
}

.advisory-response-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.advisory-response-title {
    color: #1f2937;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}

.advisory-response-content {
    color: #374151;
    line-height: 1.6;
    margin-bottom: 16px;
}

.response-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.follow-up-btn, .related-calc-btn, .close-response-btn {
    padding: 8px 12px;
    border-radius: 6px;
    border: none;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.follow-up-btn {
    background: #10b981;
    color: white;
}

.related-calc-btn {
    background: #8b5cf6;
    color: white;
}

.close-response-btn {
    background: #6b7280;
    color: white;
}

.follow-up-btn:hover {
    background: #059669;
}

.related-calc-btn:hover {
    background: #7c3aed;
}

.close-response-btn:hover {
    background: #4b5563;
}

/* Panel title styling */
.cc-panel-title {
    color: #1f2937;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.cc-panel-description {
    color: #6b7280;
    font-size: 16px;
    margin-bottom: 24px;
    line-height: 1.5;
}

/* Feature detail containers */
.feature-detail-container {
    background: rgba(59, 130, 246, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    padding: 24px;
    margin-top: 20px;
}

.feature-detail-title {
    color: #1e40af;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
}

.feature-detail-content {
    color: #374151;
    line-height: 1.6;
}

/* Comparison panels */
.wind-comparison-panel, .tornado-comparison-panel, .cc-comparison-panel, .implementation-panel {
    background: white;
    border-radius: 12px;
    padding: 24px;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
}

.wind-comparison-panel.modern {
    border-color: #10b981;
}

.wind-comparison-panel.legacy {
    border-color: #f59e0b;
}

.tornado-comparison-panel.revolutionary {
    border-color: #ef4444;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.05) 0%, rgba(220, 38, 38, 0.02) 100%);
}

.tornado-comparison-panel.critical-gap {
    border-color: #dc2626;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.08) 0%, rgba(185, 28, 28, 0.05) 100%);
}

.cc-comparison-panel.enhanced {
    border-color: #8b5cf6;
}

.cc-comparison-panel.traditional {
    border-color: #f59e0b;
}

.implementation-panel.current {
    border-color: #10b981;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(5, 150, 105, 0.02) 100%);
}

.implementation-panel.legacy {
    border-color: #f59e0b;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.05) 0%, rgba(217, 119, 6, 0.02) 100%);
}

/* Status badges */
.comparison-status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.comparison-status-badge.current {
    background: #dcfce7;
    color: #166534;
}

.comparison-status-badge.legacy {
    background: #fef3c7;
    color: #92400e;
}

.comparison-feature-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 8px;
}

.comparison-feature-badge.tornado {
    background: #fecaca;
    color: #991b1b;
}

.comparison-feature-badge.pre-tornado {
    background: #fed7d7;
    color: #7f1d1d;
}

/* Responsive design for comparison tool */
@media (max-width: 1024px) {
    .cc-main-container {
        flex-direction: column;
    }
    
    .cc-sidebar {
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
    }
    
    .comparison-overview-grid,
    .wind-panels-grid,
    .tornado-panels-grid,
    .cc-panels-grid,
    .implementation-panels-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .quick-questions-grid {
        grid-template-columns: 1fr;
    }
    
    .cc-header {
        padding: 15px 0;
    }
    
    .cc-header-content {
        padding: 0 16px;
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .cc-content-area {
        padding: 16px;
    }
    
    .cc-panel {
        padding: 16px;
    }
    
    .wind-comparison-panel,
    .tornado-comparison-panel,
    .cc-comparison-panel,
    .implementation-panel {
        padding: 16px;
    }
}

/* ===================================================================
   END OF ASCE COMPARISON TOOL STYLES
   ================================================================== */