/* Global Styles */ * { margin: 0; padding: 0; box-sizing: border-box; } :root { --primary-color: #3182ce; --secondary-color: #ed8936; --common-color: #38b2ac; --dark-bg: #2d3748; --light-bg: #f8f9fa; --card-bg: white; --border-color: #edf2f7; --text-color: #333; --heading-color: #2d3748; --subheading-color: #4a5568; } body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; line-height: 1.6; color: var(--text-color); background-color: var(--light-bg); padding: 0; margin: 0; } header { background-color: var(--dark-bg); color: white; text-align: center; padding: 2.5rem 1rem; margin-bottom: 2rem; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); position: relative; overflow: hidden; } header::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(135deg, rgba(49, 130, 206, 0.2) 0%, rgba(237, 137, 54, 0.2) 100%); z-index: 1; } header h1, header p { position: relative; z-index: 2; } header h1 { margin-bottom: 0.5rem; font-size: 2.5rem; letter-spacing: 0.05em; } header p { font-size: 1.2rem; opacity: 0.9; } main { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; } section { background-color: var(--card-bg); border-radius: 12px; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.1); padding: 2.5rem; margin-bottom: 2.5rem; transition: transform 0.3s ease, box-shadow 0.3s ease; } section:hover { transform: translateY(-5px); box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1); } h2 { color: var(--heading-color); margin-bottom: 1.5rem; border-bottom: 2px solid var(--border-color); padding-bottom: 0.8rem; font-size: 1.8rem; position: relative; } h2::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 60px; height: 2px; background-color: var(--primary-color); } h3 { color: var(--subheading-color); margin-bottom: 1rem; font-size: 1.4rem; } ul { list-style-type: none; } li { padding: 0.75rem 0.5rem; border-bottom: 1px solid var(--border-color); transition: all 0.2s ease; cursor: pointer; } li:last-child { border-bottom: none; } footer { text-align: center; padding: 2.5rem; background-color: var(--dark-bg); color: white; margin-top: 3rem; position: relative; } footer::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(to right, var(--primary-color), var(--secondary-color)); } /* Branch Stats */ .branch-stats { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; margin-bottom: 2rem; } .stat-card { flex: 1; min-width: 200px; background-color: var(--border-color); padding: 1.8rem; border-radius: 12px; text-align: center; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); transition: transform 0.3s ease, box-shadow 0.3s ease; position: relative; overflow: hidden; } .stat-card:hover { transform: translateY(-5px); box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1); } .stat-card:nth-child(1)::before { content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%; background-color: var(--primary-color); } .stat-card:nth-child(2)::before { content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%; background-color: var(--secondary-color); } .stat-card:nth-child(3)::before { content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%; background-color: var(--common-color); } .stat-card h3 { margin-bottom: 0.5rem; } .stat-card p { font-size: 1.1rem; } .stat-card span { font-size: 1.8rem; font-weight: bold; display: block; margin-top: 0.5rem; color: var(--heading-color); } /* Branch Lists */ .branch-list { display: flex; flex-wrap: wrap; gap: 2.5rem; } .branch-column { flex: 1; min-width: 250px; } .branch-column h3 { margin-bottom: 1rem; padding-left: 0.5rem; border-left: 4px solid; } .branch-column:nth-child(1) h3 { border-color: var(--primary-color); } .branch-column:nth-child(2) h3 { border-color: var(--secondary-color); } .branch-column ul { background-color: #f7fafc; border-radius: 8px; padding: 1rem; box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05); } /* Visualization */ .visualization { padding: 3rem 2rem; } #venn-diagram { height: 450px; margin: 0 auto; transition: all 0.3s ease; } /* Responsive Design */ @media (max-width: 768px) { header h1 { font-size: 2rem; } .branch-stats { flex-direction: column; } .branch-list { flex-direction: column; } .stat-card, .branch-column { width: 100%; } section { padding: 1.5rem; } } /* Branch Item Styling */ li { display: flex; align-items: center; padding: 0.75rem 0.8rem; transition: all 0.2s ease; border-radius: 4px; margin-bottom: 0.5rem; } li.hover, li:hover { background-color: #edf2f7; transform: translateX(5px); } li.highlight { background-color: rgba(49, 130, 206, 0.2); transform: translateX(5px); } li.related { background-color: rgba(56, 178, 172, 0.2); transform: translateX(5px); } li::before { content: '→'; margin-right: 0.5rem; color: #718096; } /* Common Branch Highlight */ #common-branches li { background-color: rgba(56, 178, 172, 0.1); border-left: 4px solid var(--common-color); padding-left: 1rem; margin-bottom: 0.5rem; border-radius: 4px; } #common-branches li::before { content: '✓'; color: var(--common-color); } /* Main Only Branch Styling */ #main-only li { border-left: 4px solid var(--primary-color); padding-left: 1rem; margin-bottom: 0.5rem; border-radius: 4px; background-color: rgba(49, 130, 206, 0.05); } #main-only li::before { color: var(--primary-color); } /* Release Only Branch Styling */ #release-only li { border-left: 4px solid var(--secondary-color); padding-left: 1rem; margin-bottom: 0.5rem; border-radius: 4px; background-color: rgba(237, 137, 54, 0.05); } #release-only li::before { color: var(--secondary-color); } /* Animation */ @keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } } .animate-section { opacity: 0; animation: fadeIn 0.5s ease-out forwards; } .animate-item { opacity: 0; animation: fadeIn 0.3s ease-out forwards; } /* Filter and Search */ .filter-container { margin-top: 1.5rem; padding: 1rem; background-color: #f7fafc; border-radius: 8px; box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05); } .search-box { display: flex; margin-bottom: 1rem; } .search-box input { flex: 1; padding: 0.5rem; border: 1px solid #e2e8f0; border-radius: 4px 0 0 4px; font-size: 1rem; } .search-box button { padding: 0.5rem 1rem; background-color: var(--primary-color); color: white; border: none; border-radius: 0 4px 4px 0; cursor: pointer; transition: background-color 0.2s; } .search-box button:hover { background-color: #2b6cb0; } .filter-options { display: flex; gap: 1.5rem; flex-wrap: wrap; } .filter-options label { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; } .filter-options input[type="checkbox"] { width: 16px; height: 16px; } /* Tooltip */ .tooltip { position: fixed; background-color: white; border-radius: 4px; padding: 0.75rem; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); z-index: 1000; max-width: 300px; pointer-events: none; } .tooltip-title { font-weight: bold; margin-bottom: 0.5rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--border-color); } .tooltip-content { font-size: 0.9rem; } /* Modal */ .modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.5); z-index: 1001; justify-content: center; align-items: center; } .modal-content { background-color: white; border-radius: 8px; padding: 2rem; width: 90%; max-width: 600px; max-height: 80vh; overflow-y: auto; position: relative; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); } .close-button { position: absolute; top: 1rem; right: 1rem; font-size: 1.5rem; cursor: pointer; color: #718096; transition: color 0.2s; } .close-button:hover { color: #2d3748; } #modal-title { margin-bottom: 1.5rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--border-color); } .branch-type { display: inline-block; padding: 0.25rem 0.75rem; background-color: #edf2f7; border-radius: 4px; margin-bottom: 1rem; font-weight: bold; } .branch-details-section { margin-bottom: 1.5rem; } .branch-details-section h3 { margin-bottom: 0.5rem; font-size: 1.2rem; } .branch-details-section ul { background-color: #f7fafc; border-radius: 4px; padding: 0.75rem; } .branch-details-section li { padding: 0.5rem; border-bottom: 1px solid #e2e8f0; } .branch-details-section li:last-child { border-bottom: none; } .branch-details-section li::before { content: none; }