.chanma-comparison-2-0 {
    background: #ffffff;
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 30px;
    color: #1a1a1a;
    border: 1px solid #e5e5e5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.chanma-comparison-2-0 h2 {
    color: #1a1a1a;
    margin-top: 0;
    font-size: 32px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.chanma-comparison-2-0 .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
    opacity: 0.8;
}

.chanma-comparison-2-0 p {
    font-size: 15px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Version Timeline Selector */
.chanma-timeline-selector {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    align-items: end;
    margin: 30px 0;
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #e5e5e5;
}

.chanma-version-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    color: #1a1a1a;
    position: relative;
    border: 1px solid #e5e5e5;
}

.chanma-version-card.b {
    background: #f0f0f0;
    border-color: #d9d9d9;
}

.chanma-version-card select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    background-color: #ffffff;
    color: #1a1a1a;
    font-weight: 500;
    cursor: pointer;
    margin-top: 8px;
    font-size: 14px;
}

.chanma-version-card select:focus {
    outline: none;
    border-color: #999;
    box-shadow: 0 0 0 2px rgba(153, 153, 153, 0.1);
}

.chanma-version-card select option {
    background: #ffffff;
    color: #1a1a1a;
}

.chanma-version-card label {
    color: #333;
    font-weight: 600;
    display: block;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #666;
}

.chanma-timeline-arrow {
    text-align: center;
    margin-bottom: 10px;
}

.chanma-timeline-arrow span {
    font-size: 24px;
    animation: pulse-arrow 2s infinite;
    color: #999;
}

@keyframes pulse-arrow {
    0%, 100% { transform: translateX(0); opacity: 0.6; }
    50% { transform: translateX(5px); opacity: 1; }
}

.chanma-comparison-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.chanma-comparison-actions button {
    flex: 1;
    padding: 12px 20px;
    font-weight: 600;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #ffffff;
    color: #1a1a1a;
}

.chanma-comparison-actions button:hover {
    background: #f0f0f0;
    border-color: #999;
}

.chanma-comparison-actions .button-primary {
    background: #1a1a1a;
    color: white;
    border-color: #1a1a1a;
}

.chanma-comparison-actions .button-primary:hover {
    background: #333;
    border-color: #333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Main Comparison Results */
.chanma-comparison-results-2-0 {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #e5e5e5;
}

/* Stats Dashboard */
.chanma-stats-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin: 30px 0;
}

.chanma-stat-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    color: #1a1a1a;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    border: 1px solid #e5e5e5;
}

.chanma-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.chanma-stat-card.features {
    border-left: 4px solid #2ecc71;
    background: #f0fdf4;
}

.chanma-stat-card.bugfixes {
    border-left: 4px solid #e74c3c;
    background: #fef5f5;
}

.chanma-stat-card.improvements {
    border-left: 4px solid #3498db;
    background: #f0f8ff;
}

.chanma-stat-card.security {
    border-left: 4px solid #f39c12;
    background: #fffbf0;
}

.chanma-stat-card.total {
    border-left: 4px solid #7f8c8d;
    background: #f5f5f5;
}

.chanma-stat-number {
    font-size: 28px;
    font-weight: 700;
    display: block;
    margin-bottom: 5px;
    color: #1a1a1a;
}

.chanma-stat-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #666;
    font-weight: 600;
}

.chanma-stat-diff {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #e5e5e5;
    font-size: 11px;
}

.chanma-stat-diff.positive {
    color: #2ecc71;
    font-weight: 600;
}

.chanma-stat-diff.negative {
    color: #e74c3c;
    font-weight: 600;
}

/* Comparison View */
.chanma-comparison-view {
    margin-top: 30px;
}

.chanma-view-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
}

.chanma-view-tabs button {
    padding: 12px 20px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-weight: 600;
    color: #999;
    transition: all 0.3s ease;
    font-size: 14px;
}

.chanma-view-tabs button:hover {
    color: #333;
}

.chanma-view-tabs button.active {
    color: #1a1a1a;
    border-bottom-color: #1a1a1a;
}

/* Side by Side View */
.chanma-sidebyside-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.chanma-version-block {
    background: #ffffff;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #e5e5e5;
    max-height: 600px;
    overflow-y: auto;
}

.chanma-version-block h4 {
    background: #f0f0f0;
    color: #1a1a1a;
    padding: 12px 15px;
    border-radius: 6px;
    margin: -20px -20px 15px -20px;
    font-size: 16px;
    font-weight: 700;
    border-bottom: 2px solid #d9d9d9;
}

.chanma-version-block.b h4 {
    background: #f8f9fa;
    border-bottom-color: #d9d9d9;
}

.chanma-category-section {
    margin-bottom: 20px;
}

.chanma-category-title {
    font-weight: 600;
    padding: 8px 10px;
    background: #f8f9fa;
    border-left: 4px solid #3498db;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1a1a1a;
}

.chanma-category-title .dashicons {
    width: 18px;
    height: 18px;
    font-size: 18px;
}

.chanma-category-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.chanma-category-items li {
    padding: 8px 12px;
    background: #ffffff;
    margin-bottom: 6px;
    border-radius: 4px;
    border-left: 3px solid #e5e5e5;
    font-size: 13px;
    line-height: 1.5;
    transition: all 0.3s ease;
    color: #1a1a1a;
}

.chanma-category-items li:hover {
    background: #f9f9f9;
    border-left-color: #3498db;
    transform: translateX(4px);
}

.chanma-category-items li.new-item {
    background: #f0f8ff;
    border-left-color: #2ecc71;
    font-weight: 500;
}

.chanma-category-items li .new-badge {
    display: inline-block;
    background: #2ecc71;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 8px;
    font-weight: 700;
}

.chanma-empty-state {
    padding: 20px;
    text-align: center;
    color: #999;
    font-style: italic;
}

/* Diff View */
.chanma-diff-container {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.6;
}

.chanma-diff-line {
    padding: 6px 10px;
    margin: 2px 0;
    border-radius: 4px;
    border-left: 3px solid #e5e5e5;
}

.chanma-diff-added {
    background: #f0fdf4;
    border-left-color: #2ecc71;
    color: #15803d;
}

.chanma-diff-removed {
    background: #fef5f5;
    border-left-color: #e74c3c;
    color: #7f1d1d;
}

.chanma-diff-header {
    background: #f0f8ff;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 12px;
    font-weight: 600;
    color: #1e40af;
    border-left: 4px solid #3498db;
}

/* Timeline View */
.chanma-timeline-view {
    position: relative;
    padding: 20px 0;
}

.chanma-timeline-item {
    display: grid;
    grid-template-columns: 150px 1fr 150px;
    gap: 20px;
    margin-bottom: 30px;
    align-items: start;
}

.chanma-timeline-item.b {
    grid-template-columns: 150px 1fr 150px;
    direction: rtl;
}

.chanma-timeline-item.b > * {
    direction: ltr;
}

.chanma-timeline-date {
    text-align: center;
    font-weight: 600;
    color: #3498db;
    padding-top: 5px;
}

.chanma-timeline-content {
    background: #ffffff;
    padding: 15px;
    border-radius: 8px;
    border-left: 3px solid #3498db;
    color: #1a1a1a;
}

.chanma-timeline-item.b .chanma-timeline-content {
    border-left-color: #e74c3c;
    border-right: 3px solid #e74c3c;
}

.chanma-timeline-content h5 {
    margin-top: 0;
    color: #1a1a1a;
}

.chanma-timeline-stats {
    text-align: center;
    font-size: 12px;
    color: #999;
}

.chanma-timeline-badge {
    display: inline-block;
    background: #f0f0f0;
    color: #1a1a1a;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    margin-top: 8px;
    border: 1px solid #d9d9d9;
}

/* Export Section */
.chanma-export-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-top: 30px;
    color: #1a1a1a;
    border: 1px solid #e5e5e5;
}

.chanma-export-section h4 {
    color: #1a1a1a;
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.chanma-export-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.chanma-export-buttons button {
    padding: 10px 16px;
    border: 1px solid #d9d9d9;
    background: #ffffff;
    color: #1a1a1a;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.chanma-export-buttons button:hover {
    background: #f0f0f0;
    border-color: #999;
    transform: translateY(-2px);
}

/* Markdown Export */
.chanma-markdown-export {
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    display: none;
    border: 1px solid #e5e5e5;
}

.chanma-markdown-export.show {
    display: block;
}

.chanma-markdown-export textarea {
    width: 100%;
    height: 300px;
    padding: 12px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    resize: vertical;
    background: #fafafa;
    color: #1a1a1a;
}

.chanma-markdown-export button {
    margin-top: 10px;
    padding: 10px 20px;
    background: #1a1a1a;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.chanma-markdown-export button:hover {
    background: #333;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .chanma-timeline-selector {
        grid-template-columns: 1fr;
    }
    
    .chanma-sidebyside-container {
        grid-template-columns: 1fr;
    }
    
    .chanma-timeline-item {
        grid-template-columns: 1fr;
    }
    
    .chanma-timeline-item.b {
        grid-template-columns: 1fr;
        direction: ltr;
    }
}
